pass image file to server side function

hi, i have my server side function that is this
function createEventNormal(title, caption, image){
   var g = orient.getGraph();

   try{
      var user = request.getUser();

      var vertex = 'CREATE VERTEX EventNormal SET created=Date(), updated=Date(), title=?, caption=?, image=?';
      var v = g.command('sql', vertex, [title, caption, image]);
      var erid = v.getRecord().field('@rid');
      var created = v.getRecord().field('created');

      var edge = 'CREATE EDGE NewEventNormal FROM (SELECT FROM OUser WHERE name=?)    TO (SELECT FROM EventNormal WHERE @rid=?) SET created=?';
      g.command('sql', edge, [user, erid, created]);

      g.commit();

      return v;
   }
   catch(err){
     g.rollback();
     response.send(500, "Error on creating new user", "text/plain", err.toString() );
   }
}

}
how can i pass a image to this function? i try to pass a base64 string but is transferred only a small part.
my client side function is this
function upload(event){
        var title = event.title;
        var caption = event.caption;
        var image = event.image;
        var params = title + '/' + caption + '/' + image;

        return $http({
                  method: 'POST',
                  url: server +  '/function/' + database + '/createEventNormal/' + params,
                  headers: {
                    'Authorization': 'Basic ' + token,
                    'Content-Type': 'application/json'
                  }
                });
}

the operation succeed but only a little part of the base64 string is saved
@class
:
"EventNormal"
@fieldTypes
:
"created=t,updated=t,target=l,image=b,cover=b,in_NewEventNormal=g"
@rid
:
"#21:6"
@type
:
"d"
@version
:
1
caption
:
"eventoooooo"
created
:
"2016-12-01 20:18:57"
image
:
"iVBORw0KGgoAAAANSUhEUgAAAyAAAAMgCAYAAADbcAZoAAAgAElEQVR4Xu38Ua71SHJE6aagWWsAmrVQjboPjatsJZhkxl70YHz1vIN2fJn95nAk"
in_NewEventNormal
:
Array[1]
title
:
"evento con immagine"
updated
:
"2016-12-01 20:18:57"

the problem is that through server side functions i can send only string parameters. how can i solve this problem? i want to use a server side function because after the creation of the vertex is necessary to save also a edge in the same transaction

The OrientDB's http server doesn't fully support upload of multi-part yet, sorry.


Riyuan: Separated Project and contact to a new page

Created a route file that move Project and contact page to a new page.
L=ENG-153

Change-Id  was closed at https://gerrithub.io/q/


[BUG]Problem in Logic pro x on ventura 13.0.1

I installed the latest version of the plugin 0.7.4 correctly
My OS is Ventura 13.0.1
Logic pro version 10.7.5
I loaded the plugin and clicked on "select model" and selected a model i downloaded from tonehunt.org but nothing loaded
I loaded the plugin and clicked on "select ir" and selected a ir from a folder but nothing loaded
the plugin still says "select model" and select ir" I mean nothing is loaded there still
i tried the standalone mode it worked there but not in plugin
please kindly help
thank you

What is the full file path to the model/IR on your computer that you tried to use?

it is in my downloads folder on my mac
so it might be like this :
Downloads->1 NAM Profiles->5152 Clean ish.nam
actually i tried many others as well. the above one is just one example of
what i tried loading.
i tried loading lots and lots of models and IRs also from different
locations and also some very very old IRs that i had from many years old.
but basically none of the models or IRs is loading in that plugin in logic
pro. but the same ones load in standalone mode.
On Mon, Jul 24, 2023 at 6:26 AM Steven Atkinson @.***>
wrote:

What is the full file path to the model/IR on your computer that you tried
to use?
—
Reply to this email directly, view it on GitHub
https://github.com/sdatkinson/NeuralAmpModelerPlugin/issues/348#issuecomment-1647031946,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBOY5OHVFMNYJGPSRBX6MQ3XRXAERANCNFSM6AAAAAA2UXLEGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

This is likely to be a sandboxing issue. Try putting your models somewhere in ~/Music/ and see if you can access them via the plug-in UI there.

i will try and get to asap
thanks for your kind reply
i am a small producer from Nepal eagerly & enthusiastically trying your
amazing plugin
cheers

@dhokray

Downloads->1 NAM Profiles->5152 Clean ish.nam

Can you give the exact, full path? It matters here. I believe you may be seeing #306.
If that's the case, this would be solved by updating to the latest version, released yesterday.

It worked!! I put the IRs and profiles in music folder. Trying to open from the download folder still didn't work with the new updated 0.7.5. But that's ok since it is working from music folder now.
Thanks. Much appreciated. Best wishes for more and more success of this company/ plugin.
Namaste from Nepal. 🇳🇵

thanks! so this is kind of a duplicate of #254

Hard to tell, but perhaps. Going to close this since the Issue here is resolved, though it bothers me to not be sure (and it's not clear to me why it was a problem here and not for most other folks).

Don't know what happened in my system. I haven't tried from other locations
to open the profiles or IRs. I tried with download folder which didn't work
and later tried with music folder which worked. But the good news is it is
working.
Thanks.
On Fri, Jul 28, 2023 at 9:07 AM Steven Atkinson @.***>
wrote:

thanks! so this is kind of a duplicate of #254
https://github.com/sdatkinson/NeuralAmpModelerPlugin/issues/254
Hard to tell, but perhaps. Going to close this since the Issue here is
resolved, though it bothers me to not be sure (and it's not clear to me why
it was a problem here and not for most other folks).
—
Reply to this email directly, view it on GitHub
https://github.com/sdatkinson/NeuralAmpModelerPlugin/issues/348#issuecomment-1654923237,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBOY5OFZXC2YUK25BRHKMKTXSMV7NANCNFSM6AAAAAA2UXLEGI
.
You are receiving this because you were mentioned.Message ID:
@.***>


Define Automatic-Module-Name in Manifest

It would be good practice to define a stable Automatic-Module-Name for projects that want to depend on QF as a module.
Even though Quilt doesn't use it anymore Matcher is such a project and it even has a comment regarding this: https://github.com/QuiltMC/matcher/blob/main/build.gradle#L60.
What should the module name be?

org.jetbrains.java.decompiler
org.quiltmc.quiltflower
Something else?

Probably org.jetbrains.java.decompiler, since QF is still able to mostly be a drop-in replacement both in api and in CLI arg handling - plus QF hasn't repackaged FF at all


4.6.3-development ncgen hangs on bzip2 filter in install directory

Environment Information

What platform are you using? (please provide specific distribution/version in summary)

[x ] Linux
[ ] Windows
[ ] OSX
[ ] Other
[ ] NA

32 and/or 64 bit?

[ ] 32-bit
[x ] 64-bit

What build system are you using?

[x ] autotools (configure)
[ ] cmake

Can you provide a sample netCDF file or C code to recreate the issue?

[ x] Yes (please attach to this issue, thank you!)
[ ] No
[ ] Not at this time

Summary of Issue
ncgen fails to build bzip2.nc from bzip2.cdl when HDF5_PLUGIN_PATH points to the install library directory, though it works when pointing to the build library directory
Steps to reproduce the behavior

Grab my bzip2.cdl here or create it yourself from netcdf-c/examples/C/bzip2.nc.
Set filters to plugin build directory
export HDF5_PLUGIN_PATH=${DATA}/tmp/netcdf-c/plugins/.libs
Create file
ncgen -k netCDF-4 -b -o ~/nco/data/bzip2.nc ~/nco/data/bzip2.cdl # Works for me
Set filters to plugin install directory (/usr/local for me)
export HDF5_PLUGIN_PATH=/usr/local/lib
Try to create file
ncgen -k netCDF-4 -b -o ~/nco/data/bzip2.nc ~/nco/data/bzip2.cdl # Hangs
Any idea what's going on? This occurs with the latest (20190226 12:30 PT) master branch. Is the install mechanism copying everything needed to the install library directory? Some of the correct libraries seem to be in /usr/local:

zender@skyglow:/data/zender/tmp/netcdf-c/examples/C$ ls -l /usr/local/lib/libbzip* /usr/local/lib/libmisc*
-rwxr-xr-x. 1 root root   1033 Feb 26 12:32 /usr/local/lib/libbzip2.la
-rwxr-xr-x. 1 root root 109856 Feb 26 12:32 /usr/local/lib/libbzip2.so
-rwxr-xr-x. 1 root root   1046 Feb 26 12:32 /usr/local/lib/libmisc.la
-rwxr-xr-x. 1 root root  12616 Feb 26 12:32 /usr/local/lib/libmisc.so

Yet it seems to be missing something that is only in the build directory and does not get installed or configured correctly to work from the install directory. The filter libraries are definitely found in the install directory, otherwise I would get an obnoxious EHDFERR. Instead it just hangs. This does not appear to be related to #1344. Please verify that the filters work expected from the install directory and/or let me know the correct way to invoke filters.

Actually, I did not intend the .so files in netcdf-c/plugins to be installed. They are
intended only for testing and examples.
But ignoring that, I ran your example under Ubuntu 16.2 and it appears to work for me.
This is using the current netcdf-c master.
Try this to get some more info:

set env variable 'export NETCDF_LOG_LEVEL=1"
execute your ncgen command
report back the output (including the logging info).

Some other suggestions

do 'ldd /usr/local/lib/libbzip2.so'  and see if the supporting library paths look ok
export LD_LIBRARY_PATH=... to ensure the supporting libraries are found.

Thanks for the quick response. Glad it works for you. It fails for me on Fedora Core 26.
What are the reasons to not install the plugin libraries in INSTALLDIR/lib? I understand that it might be rude to overwrite the default libbzip2 and so forth, so if that is the main reason, please consider allowing users to specify a configure-able install location for any plugin filters that netCDF provides.
zender@skyglow:~/nco/data$ export NETCDF_LOG_LEVEL=1
zender@skyglow:~/nco/data$ export HDF5_PLUGIN_PATH=/usr/local/lib
zender@skyglow:~/nco/data$ ncgen -k netCDF-4 -b -o ~/nco/data/bzip2.nc ~/nco/data/bzip2.cdl
	HDF5 error messages have been turned off.
	NC4_create: path /home/zender/nco/data/bzip2.nc cmode 0x1000 parameters (nil)
	HDF5 error messages turned on.
	NC4_enddef: ncid 0x10000
Killed
zender@skyglow:~/nco/data$

NB: I am not killing the process. The "Killed" output happens automatically. At first I thought it was just hanging but after a minute or so it exits with "Killed". Here is the output with NETCDF_LOG_LEVEL=5:
zender@skyglow:~/nco/data$ export NETCDF_LOG_LEVEL=5
zender@skyglow:~/nco/data$ ncgen -k netCDF-4 -b -o ~/nco/data/bzip2.nc ~/nco/data/bzip2.cdl
				log_level changed to 5
	HDF5 error messages have been turned off.
	NC4_create: path /home/zender/nco/data/bzip2.nc cmode 0x1000 parameters (nil)
	HDF5 error messages turned on.
			nc4_create_file: path /home/zender/nco/data/bzip2.nc mode 0x1000
			nc4_grp_list_add: name /
				nc4_create_file: set HDF raw chunk cache to size 4194304 nelems 1009 preemption 0.750000
			NC4_set_provenance: ncid 0x0
		NC4_def_dim: ncid 0x10000 name dim0 len 4
		NC4_def_dim: ncid 0x10000 name dim1 len 4
		NC4_def_dim: ncid 0x10000 name dim2 len 4
		NC4_def_dim: ncid 0x10000 name dim3 len 4
				nc4_find_dim: dimid 0
				nc4_find_dim: dimid 1
				nc4_find_dim: dimid 2
				nc4_find_dim: dimid 3
		NC4_def_var: name var type 5 ndims 4
				dimid[0] 0
				dimid[1] 1
				dimid[2] 2
				dimid[3] 3
				nc4_get_typelen_mem xtype: 5
				nc4_type_new: size 4 name float assignedid 5
				nc4_find_dim: dimid 0
				nc4_find_dim: dimid 1
				nc4_find_dim: dimid 2
				nc4_find_dim: dimid 3
				allocating array of 4 size_t to hold chunksizes for var var
				nc4_find_default_chunksizes2: name var dim 0 DEFAULT_CHUNK_SIZE 4194304 num_values 256.000000 type_size 4 chunksize 4
				nc4_find_default_chunksizes2: name var dim 1 DEFAULT_CHUNK_SIZE 4194304 num_values 256.000000 type_size 4 chunksize 4
				nc4_find_default_chunksizes2: name var dim 2 DEFAULT_CHUNK_SIZE 4194304 num_values 256.000000 type_size 4 chunksize 4
				nc4_find_default_chunksizes2: name var dim 3 DEFAULT_CHUNK_SIZE 4194304 num_values 256.000000 type_size 4 chunksize 4
				total_chunk_size 1024.000000
				nc4_get_typelen_mem xtype: 5
				new varid 0
		nc_def_var_extra: ncid 0x10000 varid 0
				nc4_get_typelen_mem xtype: 5
		nc_def_var_extra: ncid 0x10000 varid 0
		NC4_def_var_filter: ncid 0x10000 varid 0
	NC4_enddef: ncid 0x10000
			nc4_enddef_netcdf4_file
			sync_netcdf4_file
		*** NetCDF-4 Internal Metadata: int_ncid 0x10000 ext_ncid 0x10000
		FILE - path: /home/zender/nco/data/bzip2.nc cmode: 0x1009 parallel: 0 redef: 0 fill_mode: 0 no_write: 0 next_nc_grpid: 1
		 GROUP - / nc_grpid: 0 nvars: 1 natts: 0
		 DIMENSION - dimid: 0 name: dim0 len: 4 unlimited: 0
		 DIMENSION - dimid: 1 name: dim1 len: 4 unlimited: 0
		 DIMENSION - dimid: 2 name: dim2 len: 4 unlimited: 0
		 DIMENSION - dimid: 3 name: dim3 len: 4 unlimited: 0
		 VARIABLE - varid: 0 name: var ndims: 4 dimscale: 0 dimids: 0 1 2 3
			nc4_rec_write_groups_types: grp->hdr.name /
			nc4_rec_write_metadata: grp->hdr.name /, bad_coord_order 0
				nc4_create_dim_wo_var: creating dim dim0
				nc4_create_dim_wo_var: about to H5Dcreate1 a dimscale dataset dim0
				write_netcdf4_dimid: writing secret dimid 0
				nc4_create_dim_wo_var: creating dim dim1
				nc4_create_dim_wo_var: about to H5Dcreate1 a dimscale dataset dim1
				write_netcdf4_dimid: writing secret dimid 1
				nc4_create_dim_wo_var: creating dim dim2
				nc4_create_dim_wo_var: about to H5Dcreate1 a dimscale dataset dim2
				write_netcdf4_dimid: writing secret dimid 2
				nc4_create_dim_wo_var: creating dim dim3
				nc4_create_dim_wo_var: about to H5Dcreate1 a dimscale dataset dim3
				write_netcdf4_dimid: writing secret dimid 3
				write_var: writing var var
			var_create_dataset:: name var
Killed
zender@skyglow:~/nco/data$

That 'Killed' is so weird. I have never seen it before. The only thing that comes to mind
is some kind of memory error. Since we do not strip ncgen (I think),
you might be able to apply gdb or valgrind to the ncgen command
to get some more info. Also, I assume you are not using mpio.
I think you are right that installing the bzip plugin is ok -- there is no point in installing
libmisc since it is only for testing. As you note, I would worry about overwriting some
existing bzip2 library. We need some alternate name, something like libhdf5bzip2.so.

I found some info here:
https://stackoverflow.com/questions/726690/what-killed-my-process-and-why

Thanks. I ran it again and watched memory with "top" and it seems to cause an OOM so the kernel OOM-killer must have been invoked. I agree that the filter libraries either need a new name or their own install location so as not to conflict with existing libraries of the same name. I will try to create a filter for Zstandard and if/when it works might netCDF be interested in distributing it if I create and submit a PR?

We have never quite decided what to do about providing custom filters.
Since you are going to have to register it with the HDF group to get a standard
filter id number, it might be best to do what they suggest for now.

I believe the bzip filter should be installed, just as the zstandard filter is to be installed. (See #2294).


Document how to provide deleted Custom Type schemas

Is your feature request related to a problem? Please describe.
Custom Types that have been used at least once and deleted still need to be provide to the plugin. This is required because the Prismic API returns a list of all Custom Types for a repository, including deleted ones.
The official way to address this is to provide an empty object ({}) as the schema like the following example:
// gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-prismic',
      options: {
        schemas: {
          my_deleted_schema: {}
        }
      }
    }
  ]
}

Describe the solution you'd like
This should be documented on the official docs (https://prismic.io/docs/technologies/install-the-plugin-gatsby).
The error message that appears for missing schemas should also mention how to address this. The plugin currently prints the following message:
JSON schema for "[type]" is missing

Describe alternatives you've considered
N/A
Additional context
https://github.com/prismicio/prismic-gatsby/issues/445#issuecomment-918477652

I have adressed them this issue, they told me that they will work on it.

This is included as part of V5. The following message will be printed if a missing schema is found:
JSON model for "%s" is missing. If the Custom Type is no longer in use, you may provide "{}" as the JSON model.


Cloudflare R2 example

https://github.com/Klowner/tussle/tree/main/examples/cloudflare-worker-r2 works for upload but how does one suppose to reassemble the file for reading/processing/downloading ? Despite Readme stating that files are available for download after uploading, I could not find any meaningful way to do it. Thanks.

Good question, I need better documentation.
TussleStorageR2 has a getFile() method which returns an R2File instance.
R2File has a body property which exposes a ReadableStream which handles reassembling the parts in correct order and returning them as a single stream.
If you have thousands of file parts, you will likely need to get a little more creative since you'll probably exhaust the Cloudflare Worker's CPU limits or R2 API call limits, in which case you can devise your own implementation by iterating over the R2File's keys array (which is just an ordered array of R2 object keys representing the file parts).

You could always add an after-complete handler that stores the R2File.body
as a new single R2 object and then delete the keys.
On Fri, Sep 23, 2022, 6:33 PM phpb-com @.***> wrote:

Closed #5 https://github.com/Klowner/tussle/issues/5 as completed.
—
Reply to this email directly, view it on GitHub
https://github.com/Klowner/tussle/issues/5#event-7450689502, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAACJHTHF4FQEPSF5FMXYALV7YV3LANCNFSM6AAAAAAQTFVK6M
.
You are receiving this because you commented.Message ID:
@.***>


chore(main): release 3.1.1

:robot: I have created a release beep boop
3.1.1 (2024-01-07)
Bug Fixes

Update Parallel node to use XTokens V3 & Update Calamari node to use unlimited fees 🔧 (38b8bef)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/paraspell/xcm-sdk/releases/tag/v3.1.1 :sunflower:


housekeeping: use<EMAIL_ADDRESS>for all communication

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
housekeeping
What is the current behavior? (You can also link to an open issue here)

email paul
email geoff

What is the new behavior (if this is a feature change)?

email shared inbox

Does this PR introduce a breaking change?
no
Please check if the PR fulfills these requirements

[x] The commit follows our guidelines: https://github.com/reactiveui/reactiveui#contribute
[ ] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

Other information:

Coverage remained the same at 66.824% when pulling 28e60642fc0996d4412673575e826346e8644eca on update-email-address into 9e4c9fe02362feab8a7fed3d206b2504cfe3daea on develop.


Download files

Hi!
Can we use webview to dowload files? In the browser, when I click on the file download button, the file manager opens or the download starts automatically.
Nothing happens in the webview.

@nickfaces Thanks for your feedback! We are unable to support this with just simple settings. It needs to be implemented for all platforms using the native method. Unfortunately, we do not have enough resources to do so. If you are willing to do it, you are welcome to submit a PR. Thank you!


README: invalid link to cli doc replaced by link to emerald-cli project

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Change how number of items are displayed

Instead of having [ItemName] You own [ItemCount] of these, I can replace it with more compact version, without losing it's meaning. Exmaple [ItemCount]x [ItemName]. Readme file would have to be also updated.

Implemented in 4c42354


Success message should be shown after Recreate Topic

Describe the bug

If you click Recreate Topic it`s not obvious that the action has done.
Set up

https://www.kafka-ui.provectus.io/
Steps to Reproduce
Steps to reproduce the behavior:

Navigate to local/Topics
Choose some topic and click on sandwich menu
Click Recreate Topic
Observe: Messages updated to 0 but without Success message it`s not clear that it worked well.

Expected behavior

Show Success message on the page after action completed.
Screenshots

Additional context

If you Click on Recreate Topic inside the topic the messages don`t disappear after the action, you must refresh page to see the result.

Is fixed on https://github.com/provectus/kafka-ui/pull/1830


112 a round may have a different deadline for staff than external users

Description

A round may have a different deadline for staff than external users.
For example, the ISIS direct deadline is 1 week later for staff as they provide support and advice to users during the user submission period.
Motivation and Context
These changes will allow internal users to submit proposals after call close when it is set in the call through a call internal call end date and including internal editable in the proposal workflow.

How Has This Been Tested

E2E test have been added
Fixes
https://github.com/UserOfficeProject/user-office-project-issue-tracker/issues/112

Changes

Add additional field for internal call end date and its related flag in database.
Add proposal workflow status for editable submitted internal proposals.
Add call internal event to be emitted when internal call ends.
Update existing call end asynchronous job for call internal ended check and proposal update.
Add a new filter to calls for active internal calls.
Add new internal user identifier flag to user JWT payload back and front end,
Add internal call event for internal call close.

Depends on

Validation of internal call end date is included in this PR
https://github.com/UserOfficeProject/user-office-lib/pull/155
Tests included/Docs Updated?

[x] I have added tests to cover my changes.
[ ] All relevant doc has been updated

Have added change requested from sprint meeting


Feature request: Add a color picker on click on adornment

Popping a color picker is almost trivial.
But to hook it up to the adornment is beyond my skills.
Still, I must ask because this extension is very useful, and adding this functionality would be a boon.
Thank you.

There are already a number of other extensions that offer a color picker and the ability to change colors.
Have you tried them?
Are there any compatibility issues?
I don't want to reinvent the wheel when there already solutions out there.

I know of this one:
https://shemeerns.wordpress.com/plugins/color-picker/
The problem is that the adornment works poorly (or not at all) and it is quite a heavy extension.
What I am looking for is exactly what yours provides plus the color picker popup. If you know of an extension like that, please let me know.
Or if you can tell me how to respond to click events on the adornment of your extension, I will try to code it myself (fingers crossed).
Thank you.

This one looks pretty light weight: https://marketplace.visualstudio.com/items?itemName=NikolaMSFT.InlineColorPickerX64Preview

I'll try that one again.
Thank you.

Darn.
Inline Color Picker does not work with named colors and the support for C# is spotty.
Nonetheless, its code is on GitHub. I might be able to port some of it to your extension.
Thanks again for your help.

I can see named colors as an input, but should they also be supported as an output?
If wanting to support named colors as an output it will also be necessary to add support for categorizing named colors by their type. At the moment, I just treat all named colors the same and let the compiler warn if something is invalid. As an example, if you specified ConsoleColor.HotPink you would get a "HotPink" color indicator displayed even though this isn't a valid ConsoleColor (but is a valid System.Drawing.Color). I think it's ok to handle invalid input as if it's valid, but in terms of outputting code, it should always be valid.
There might be similar considerations needed for other conversions of formatting and namespaces.
If going from a named color, how should the output code be structured? With FromRgb? With a ColorConverter passing the Hex value? WIll it depend on project type?
If going from FromRgb() and then selecting a color with an alpha channel value, should it also convert to FromArgb?
The hard (time-consuming) part isn't going to be displaying the UI. It's going to be working out all the different scenarios and building appropriate tests.

Let's start by documenting all the possible inputs

I will restrict myself first to the inputs that the extension is already handling and try to "reply back" in kind.

Having gone through the RegExs
Supported inputs:

System.Drawing.Color.FromArgb(A, R, G, B)
Color.FromArgb(A,  R, G, B)   (assumes using System.Drawing or System.Windows.Media)
Microsoft.Maui.Graphics.Color(R, G, B)
Color(R, G, B)   (assumes using Microsoft.Maui.Graphics)
System.Drawing.Color.FromName(name)
Color.FromName(name)  (assumes using System.Drawing)
Color.FromRgb(R, G, B)  (assumes using System.Drawing or System.Windows.Media)
0x12345678
#12345678
 Color="#12345678" (This is in XML files only--for MAUI project files)
<Color=#12345678> (This is for Unity)
System.Drawing.Color.Name
Color.Name
System.Windows.Media.Colors.Name
Colors.Name
ConsoleColor.Name
System.Drawing.KnownColor.Name
KnownColor.Name

Not yet supported inputs:

System.Drawing.Color.FromArgb(255, Color.Red)
Any other method-based construction from System.Windows.Media.Color

Some comments from a quick look through the code:

In terms of updating the existing code: try and keep the original code format as much as possible;
Need to consider if the alpha channel should be added if the picked color adds alpha, but the original value was only specified with R, G, & B.
Named colors can be replaced with Color.FromArgb(A, R, G, B) and let the developer add the missing namespace declaration if required.
The ColorTag is going to need to be extended to store more details of where the original match was made so it knows what to replace and where to out it.
After a brief scan, the InlineColorPicker XAML code is more complicated than I'd like to support.

Darn, that's quick and great. We'll look at it this weekend.

Also need to consider if/when/how changes should be made to the source.
Should changes be automatically applied?
Do they need to be confirmed?
Does the dialog/popup need to display a cancel option not to make any changes?
Source changes also need to integrate with the undo stack.
There are also many options for displaying a color spectrum and options for darkness and opacity. I'm not sure which I prefer. Is there an objective "best" option? What are the pros and cons of the different options?

I'm going to go with the simplest option in all cases.

A cancel is a no-go. Otherwise, update.

There are essentially only two types of colors: named or picker. Whatever is in the user's code will be returned.

The user's code must be turned from a string to a color (i.e., the string must have "meaning"). But the replacement on the user's code is always the replacement of a string for another string (i.e., "meaning" is irrelevant). This approach might also take care of the undo stack.

I think I'll code this mess on a form to avoid the hassle of debugging an extension. Once it's done, it can be plugged in.

I'm going to go with the simplest option in all cases.

A cancel is a no-go. Otherwise, update.

So will there be a dedicated cancel button? Or will (soft?) dismiss of the picker without specifically choosing a new value be considered a cancel?
Relatedly, will there be a button to apply the picked color?

There are essentially only two types of colors: named or picker. Whatever is in the user's code will be returned.

Does this imply you're considering/suggesting two different types of picker?

one with a color spectrum, plus light/dark and opacity adjustors
One with named colors

Is the version with named colors necessary? What does it add that intellisense doesn't provide?
Also, does this mean you're not considering supporting RGB to RGBA changes?

The user's code must be turned from a string to a color (i.e., the string must have "meaning"). But the replacement on the user's code is always the replacement of a string for another string (i.e., "meaning" is irrelevant). This approach might also take care of the undo stack.

We already have the code to turn a named value into hex and the adornment will only be shown if it's something that can be parsed/understood as a color.
As the picker will only be available when a known color exists (and adornment shown), we already have a System.Windows.Media.Color instance.
We're going to need to go from an instance of a Color, a set of RegEx matches, and a SnapshotSpan. Then, if given a new color (however this is defined) work out what the replacement text should be. I'd start by looking at adding tests for this.
Integration with the undo stack must be added as part of modifying the code in the editor. It's straight forward but must be added explicitly. I mentioned this earlier so I don't forget.

The ColorDialog has a "close" button on the titlebar. That's the "cancel".
A simple dialog popup with a listview can be used for the named colors. That will provide the (color) preview that intellisense doesn't provide and that forces the user to constantly look up a color table somewhere else (like the property dropdown in the designer).
I do not want to worry about the A in ARGB now. Whatever the user had, it's fine as it is. Alpha channels, in any case, do not preview well in my experience.
The extension parses fine. The only thing there is to add a flag that states what string to return (named, ARGB/RGB, 0x/#) to paste in place of the existing selection.

Turns out my current setup is not hooked to debug extensions and it isn't mine to mess with. I'm out.
I did write the code to capture a mouse click in ColorAdornment which would call an Action passed via the constructor from ColorAdornmentTagger. This might make it possible to reach the adornmentCache in IntraTextAdornmentTagger (with the chosen new color) to then update it in the editor.
Or this could just be complete nonsense. I can't test it.
Apologies for being of no help whatsoever.

Well, I can get something to show when I double-click on certain color adorners.

I know the original text, it's location, and what type of picker to display (list of named colors--first, full ARGB picker--second)

That would certainly do.

Well, I can get something to show when I double-click on certain color adorners.

I know the original text, it's location, and what type of picker to display (list of named colors--first, full ARGB picker--second)

I haven't forgotten this. I just can't get the popup to correctly support light dismiss and scrolling the contents of the popup gets confused with the scrolling of the page and it makes for a horrible experience that I certainly wouldn't want to use. Back to the drawing board....

Honestly, "light dismiss" is more of a quirk. If it is modal, that's fine too. After all, it is invoked via a double-click.
Also, you can simplify by mixing in some WinForms which would give you access to the ColorDialog and that would deal with the non-named colors. For the named and system colors, you can just use a listview and dump the enum KnownColor with a preview (ForeColor ^ 0xffffff, BackColor would do). That's how I did it, sorting by hue ls.OrderByDescending( color => color.GetHue() ).ThenBy( o => o.R * 3 + o.G * 2 + o.B * 1 )
There must be WPF alternatives too.

I haven't forgotten about this.
Going for a simple (well, relatively simple) modal dialog option.
Here's an early look at changing a named color:

Double-click the colored square to open the dialog.
Select from the list sorted alphabetically or by color.
Cancel by closing the dialog without clicking on a color.

That looks great.
Are you using WPF for this?
If so, you can use the Extended WPF Toolkit to also include a ColorPicker:
https://github.com/xceedsoftware/wpftoolkit/wiki/ColorPicker

Yes, this is with WPF.
The Xceed WPFToolkit ColorCanvas could be useful for some of the other options.

V1.18 includes the pickers for named colors (as shown above)
Support for colors specified in other ways (Hex, ARGB, GRGB, etc.) will follow in the future

you rock

Ha! I made a screen capture for this yesterday but forgot to include it above.

Double-click on the color visual to open the appropriate dialog.
Double-click on the desired color to change it.
Or close the dialog to change nothing.
It also creates the appropriate entry in the undo stack, so if you don't like the change, you can use the editor's built-in undo capability.

yep, I tested it and it works as intended
btw, you might want to know that it cannot be found in the Visual Studio Marketplace when the filter is "Visual Studio 2022" (it's found with "Any" but you may want to fix this)


Feature: Auto Quality Switch Based on Bandwith

It would be great if there's an Auto option and it can switch between the quality depending upon the bandwith speed automatically.

This will be a great feature but,
I'm not sure how to implement this feature.... 😕
Please share if you have any resource or references, or please try to contribute 🤗

I'm thinking of a way to implement this
Would it be possible to extract the dash manifest of a youtube video and let the video_player handle the quality switching?

I'm thinking of a way to implement this
Would it be possible to extract the dash manifest of a youtube video and let the video_player handle the quality switching?

Checkout youtube_explode_dart:  or https://piped-docs.kavin.rocks/docs/api-documentation/
might help you 🤗


Grids should allow us to specify the domain

Right now RegularCartesianGrid forces you to use x = [0, Lx], y = [0, Ly], and z = [-Lz, 0] but would be good to be able to specify the interval manually.
This will also allow the user to pick whether the vertical coordinate is negative or positive.

Add a keyword argument called x0 that accepts a tuple which specifies the origin of the coordinate system.

Hmmm, since we're making lots of breaking changes to the API already would it be a good idea to replace the L kwarg with x, y, and z kwargs?
So now the domain must be specified, not just the lengths?
grid = RegularCartesianGrid(N=(32, 32, 16), x=(0, Lx), y=(0, Ly), z=(-Lz, 0))

Hmm. I'm okay with that. However, I was suggesting
grid = RegularCartesianGrid(N=(32, 32, 16), L=(Lx, Ly, Lz), x₀=(0, 0, -L[3]))

which is a little less writing for users who don't care where their origin is. What you've proposed is more explicit though (closely resembles what dedalus does).

Could also use X₀ for the origin (keeping with the apparent emerging convection that tuples / vectors are denoted by capital letters...)

Hmmm, I personally find
x₀=(0, 0, -L[3])

a little less readable than
x=(0, Lx), y=(0, Ly), z=(-Lz, 0)

but my suggestion will introduce breaking changes while yours won't (although right now seems like a good time to introduce breaking changes).
@suyashbire1 any thoughts?

Since our intention is to make the code as readable as possible, I'd prefer x=(0, Lx), y=(0, Ly), z=(-Lz, 0). We could also use Julia's built-in ranges, which are even more readable.

I can add x, y, z kwargs to RegularCartesianGrid but keep a legacy constructor that does x=(0, L[1]), y=(0, L[2]), z=(-L[3], 0) by default.
Would be nice to get this into the stratified Couette flow experiment as z = (-h, h) in there which complicates the analysis scripts a little bit.

The suggestion here is to require users to explicitly define x, y, and z? Would users still have to define all three for two-dimensional domains?
I understand the benefit in terms of being explicit, but I'm worried there are a lot of use cases in which the origin of the domain is simply unimportant, and the only relevant parameter is the domain extent.
Is there any concern about confusion between specifying the domain in terms of bounding cell faces versus cell centers?

Just opened a PR with this, we can discuss what's the best approach.

Would users still have to define all three for two-dimensional domains?

Ideally no. I can modify RegularCartesianGrid to take this into account.

I understand the benefit in terms of being explicit, but I'm worried there are a lot of use cases in which the origin of the domain is simply unimportant, and the only relevant parameter is the domain extent.

The legacy constructor RegularCartesianGrid(N, L) can still be used in this case.

Is there any concern about confusion between specifying the domain in terms of bounding cell faces versus cell centers?

I don't think so. When specifying the domain size, you are in effect specifying the location of the first and last face. All cell centers are located strictly between the first and last cell interface. I don't think it makes sense to specify the domain via the cell centers.


bitbucket-snippet-runner 1.1.1

New Pull Request Checklist
Please mark the points which you did / accept.

[x] I read the Step Development Guideline
[x] I have a test for my Step, which can be run with bitrise run test (in the step's repository)
[x] I did run bitrise run audit-this-step (in the step's repository - note, if you don't have this workflow in your bitrise.yml, you can copy it from the step template.)
[x] I read and accept the Abandoned Step policy

Thanks for the PR @nhammond101 - guys please review it! (@godrei @trapacska @kdobmayer )


Lazy Refactor Native OP

@piiswrong @tqchen
The purpose of refactor is to simplify C++ NativeOp. For aug_state, it is still left there.

why do we still need nativeop?

It is easy to write C++ Native Op. For CustomOp, as reported there is memory leak in  multi-device, so we still need NativeOp for a while.

@antinucleon Could you tell more about the memory leakage problem? I've recently changed all my python-side Ops to CustomOp

@sxjscience One user reported there is memory leak when CustomOp runs on multi device for a long time, I don't verify it by myself yet. As I need C++ NativeOp so I refactor this first.

did he create symbols repeatedly? Currently created symbol and operators will never be deleted

Yes, in faster rcnn, it requires bind at each batch. Before fix it, I am
thinking to make NativeOp support save & load.
On Sun, May 29, 2016 at 00:13 Eric Junyuan Xie<EMAIL_ADDRESS>wrote:

did he create symbols repeatedly? Currently created symbol and operators
will never be deleted
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/mxnet/pull/2272#issuecomment-222346485, or mute
the thread
https://github.com/notifications/unsubscribe/ABM13svmKdAcySYM74__tF4ned-iaoAOks5qGTyAgaJpZM4IpNXu
.

--
Sent from mobile phone

Ok. Should be easy to fix. Just clear the ref_holders when operators are deleted

@winstywang I think the lazy refactor is done, please help me review it. Basically, I changed it to Async and replace buffer with fixed host memory. For saving and loading, we may postpone for a while because it is not urgent.


input type="date" of input matInput is not working in ios

 is not working in ios.
my app should be platform indipendent
not working in ios

  <input type="date" matInput placeholder="Date of birth" #DOB [max]="today" (keyup)="dobValidation(DOB)" (input)="dobValidation(DOB)">
</mat-form-field>

What is the use-case or motivation for changing an existing behavior?
####I'm using angular 2  1.1.0 and meterial design vertion is material 2 . Its not working in all browsers in ios

Closing this issue as it does not follow the issue template. Please file a new issue that follows the template, which gives the team the information needed to investigate.


fix: dynamic tab

Resolves #73

i am trying not use any of jQuery helpers, like: parents, data, find... We need to write that in pure js, like this for parents()
https://github.com/vladotesanovic/ngSemantic/blob/master/ng-semantic/input/input.ts#L47

I don't mind doing it in pure JS, but AFAIK there's no equivalent for the .data() method.
And anyway, you have to include jQuery to make the component working at the moment 😄


Disengage when upstream input != output.

After wrestling with #155 for a while, I’m convinced that the correct way to handle invalid inputs from outside the view is to disengage rather than autocorrecting the value (neither sync, nor async), because this kind of reentrancy is not supported in SwiftUI. Having said that, autocorrection when the user interacts directly with the view should not change. I have mocked up a solution, tried it, and it feels natural.

Just to clarify, this rule should not apply on focus transitions.

Note that: unless you’re using the example app, you kind of have to go out of your way to enter invalid values in this way. An example would be having a nonnegative integer field and, while it is in focus, set its binding to -1 with a button.

Introduced dismiss mechanism in ac76804ad8d98cd573adb115d04a84419d38ad28.


ion-scroll scrollY blocked on Android devices

Ionic version:  (check one with "x")
[X ] 3.x
I'm submitting a ...  (check one with "x")
[X ] bug report
Current behavior:
Using list in ion-scroll (scrollY) on android devices where both click and swipe are used, make the list not scrollable (see screenshot to see which part of the screen isn't scrollable).
Expected behavior:
A working scrollable list in an ion-scroll with both click and swipe support.
Steps to reproduce:

Here a project to reproduce the problem https://github.com/peterpeterparker/myIonScroll

ionic platform add android

ionic build android --prod

start and test on a device. the scroll list on home.html not gonna be scrollable

if you wish, you could remove the swipe event from the list, redo the test behavior and will notice that without it the list gonna be scrollable

Related code:
See https://github.com/peterpeterparker/myIonScroll/blob/master/src/pages/home/home.html
Other information:
I'm freaking stuck with the upgrade to Ionic 3 because of such scroll problems since more than two weeks now, not that I deserve an award, just to let you know that I tried and invested hours to solve these.
I resolved the similar problem with iOS (basically, a foreign lib which was using hammerjs which seems to be buggy has that effect, see https://forum.ionicframework.com/t/swipe-event-freeze-scroll-on-ios-and-android/86085/12).
But in this issue, I don't import any foreign libraries.
Same project I provided as example works (= list is scrollable) in chrome debug, in iOS thru Xcode but not on an android device.
I don't use Crosswalk.
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.3.4
ios-deploy version: 1.9.0
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v7.2.1
Xcode version: Xcode 8.3 Build version 8E162

Hello! Thanks for opening an issue with us. I am going to close this issue as a duplicate of https://github.com/driftyco/ionic/issues/11112. Please feel free to add your findings to that issue.

@jgw96 could we hope to see a fix in a near future?


[codemod] react/19/replace-default-props

I already reported the issue but maybe not in the place where you typically look - https://github.com/reactjs/react-codemod/issues/321. There are also other people experiencing the same problem. The gist is when I am running npx codemod react/19/replace-default-props it only removes defaultProps and not adding default props to destructured component props. It happens to all files.
Codemod version: 0.14.2
React/19/replace-default-props: 1.0.0
Faulty codemod

codemod name, e.g., react/19/replace-default-props
source

Sample code snippets
Original
const Button = ({ size, color }) => {
    return <button style={{ color, fontSize: size }}>Click me</button>;
}

Button.defaultProps = {
    size: '16px',
    color: 'blue'
}

Expected
const Button = ({ size = '16px', color = 'blue' }) => {
    return <button style={{ color, fontSize: size }}>Click me</button>;
}

Actual
const Button = ({ size, color }) => {
    return <button style={{ color, fontSize: size }}>Click me</button>;
}

Logs:
Sorry somehow but I cannot get the logs.
I run
codemod react/19/replace-default-props --logs
codemod --log

and logs are empty
Additional context
Add any other context about the problem here. This might include the target project, an explanation of the faulty output related to business logic, relevant links, etc.

thanks so much for reporting this issue. we will look into this.

cc @amirabbas-gh

Thanks for reporting this issue. We’re aware of it and appreciate your feedback. Due to other priorities, it might take some time before we can address it. We’ll keep this issue open and on our radar in the meantime.

actually i went ahead and published a new version of this codemod to the registry and tested on the test fixtures that @quarhodron shared and it works fine now... thanks @amirabbas-gh for the fix. closing this.


WFLY-4678 IllegalStateException when accessing DistributableCache

https://issues.jboss.org/browse/WFLY-4678

Retest this please.

Windows Build 1621 is now running using a merge of e979225845dba7f80245b629ff2a95fb696b8c1b

Linux with security manager Build 1449 is now running using a merge of e979225845dba7f80245b629ff2a95fb696b8c1b

Linux Build 6543 is now running using a merge of e979225845dba7f80245b629ff2a95fb696b8c1b

Linux with security manager Build 1449 outcome was SUCCESS using a merge of e979225845dba7f80245b629ff2a95fb696b8c1b
Summary: Tests passed: 825, ignored: 319 Build time: 0:06:07

Windows Build 1621 outcome was SUCCESS using a merge of e979225845dba7f80245b629ff2a95fb696b8c1b
Summary: Tests passed: 2875, ignored: 374 Build time: 0:47:50

Linux Build 6543 outcome was SUCCESS using a merge of e979225845dba7f80245b629ff2a95fb696b8c1b
Summary: Tests passed: 2874, ignored: 374, muted: 1 Build time: 0:48:48


String deconstructing produces wrong output in template compiling

Version
2.6.11
Reproduction link
https://codesandbox.io/s/silly-snowflake-gd586?file=/src/App.vue
Steps to reproduce
Check output
What is expected?
[...'abc'] should compile to ['a', 'b', 'c']
Example component output should be:
a
b
c
What is actually happening?
[...'abc'] compiles to ['abc']
Example component output is:
abc

If I use the string decontructor in a computed property it will be applied correctly. I have added that into the example component.

You can just do v-for="entry in 'abc'". It will also avoid creating a new array every time the component renders

That's a very good workaround. But still a work around. Keep in mind that this Bug will also hit you at any other usage of the [...'abc'] statement anywhere in the template. For example if you were to put it into a prop to pass it into a subcomponent.
Yes, you can always do it differently, maybe even better. But if the compiler doesn't handle this correctly it shouldn't accept it without an error warning.

I tried it on a jsfiddle and on the template explorer: https://template-explorer.vuejs.org/#<div id%3D"app">
      <div v-for%3D"entry in [...'abc'%5D%22%3E%7B%7B%20entry%20%7D%7D%2C%3C%2Fdiv%3E%0A%20%20%20%20%20%20%3Cp%3E%7B%7B%20%5B...'abc'%5D%20%7D%7D%3C%2Fp%3E%0A%3C%2Fdiv%3E and the result is correct. The problem does reproduce with a bare project with the CLI, so this is probably coming from vue-loader. Could you open an issue there?
Keep in mind using a spread in the template is in general a bad idea because it's  creating a new array every render


when creating a new VM from template specify optional disk type

// Clone makes sure that the disks are cloned from the template and are not linked.
// Defaults to false.
// +optional
Clone *bool json:"clone,omitempty"
// Sparse indicates that sparse provisioning should not be used and disks should be preallocated.
// Defaults to false.
// +optional
Sparse *bool json:"sparse,omitempty"
// Format is the disk format that the disks are in. Can be "cow" or "raw". "raw" disables several features that
// may be needed, such as incremental backups. Defaults to "cow".
// +optional
Format string json:"format,omitempty"

Implemented in  #131 and #127


reflect: add a range like interface for Value

The current reflect.Value interface for traversing maps requires allocating
all the keys at once (reflect.Value.MapKeys), which is not efficient for
huge maps.
Additionally, as floating point NaNs are never equal to each other, the
current interface makes it impossible to get the value for NaN keys.
We can introduce this
func (v Value) MapKeyValues() [][2]Value

to solve the NaN problem, but I'm more interested in the first problem.
Actually, if we decide to introduce a range like operation on reflect.Value,
I think we should make it work for other range-able types (channels,
arrays, strings and slices) too.

reflect.Value already allows efficient emulation of range semantics for arrays, slices, strings, and channels, so a fully generic range-like operation is unnecessary.  It need only work for maps.
There's an argument for making it generic for consistency's sake, but I think it's pretty weak.  For arrays, slices, and channels, range is only syntactic sugar, which doesn't provide the same value in reflect.  Even if there were a generic range operation, I would still favor the existing Len/Index methods for ranging arrays and slices and the Recv method for ranging a channel.

I'm not particularly worried, especially about NaNs. It doesn't seem important enough to introduce yet more API here.

This is a little sad. I was hoping there would be an efficient way to use reflect to range over a map.

Another reason for this feature is that there's no way to iterate over a map while respecting deletions that occur during the iteration, as documented by the spec, making  it impossible to implement a Go interpreter in Go using maps to represent maps.
I've quickly sketched an implementation in CL 33572.

There's something wrong with this issue: it's 1) open 2) assigned to a closed milestone (go1.6).
I moved it to go1.9 and unlocked it.

Would love to give this a go (found via https://dev.golang.org/imfeelinghelpful btw), any particular reason https://go-review.googlesource.com/33572 is marked as DO NOT SUBMIT (is it just incomplete or was it only meant to be a PoC)?

@kshvmdn, looks like the CL is marked for Go 1.10 and this issue are marked for Go 1.10.
@alandonovan, what's the state of the CL?

The CL works to the best of my knowledge but has not been reviewed by someone who knows the runtime.

@bradfitz moved the CL to Go1.11 and so will I punt this issue to Go1.11 too, thanks for the CL @alandonovan and others for the discussions.

Fixed by ede5958.


docs: add adapter specification

Signed-off-by: closetool<EMAIL_ADDRESS>Fix: casbin/casbin#827

@hsluoyz @Zxilly @nodece Request for comments.

@closetool don't create new page, merge your texts into: https://casbin.org/docs/en/adapters#how-to-write-an-adapter

@closetool a looooooots of typos:


bug[next]: Fix astype for local fields

Now calling  _map additionally.
Some dace tests are skipped because they are failing:

dace_itir: will probably be deprecated soon?
dace_gtir: this feature is missing

>       raise NotImplementedError(f"Unexpected 'FunCall' node ({node}).")
E       NotImplementedError: Unexpected 'FunCall' node ((λ(val) → cast_(val, int64))(__arg0)).

#1753 will remove the dace_itir backend, and this should solve the first problem. I am in favor of merging #1753, I have added @havogt as reviewer.
I will push a fix for the second problem, in dace_gtir backend.

I will push a fix for the second problem, in dace_gtir backend.

Thanks @edopao, the test now also passes with dace_gtir.

OK from my side for the dace lowering.

The dace.itir backend has been deleted in main branch, so I have removed the pytest.skip in the new test case.


[TA] Update the SDK API version compatible with latest service API version

Description

Most of the files are JSON-recorded files for the new service API version.
open azure core implementation.util folder in runtime for accessibility in tests.
Disable tests issue: https://github.com/Azure/azure-sdk-for-java/issues/31390

All SDK Contribution checklist:

[X] The pull request does not introduce [breaking changes]
[X] CHANGELOG is updated for new features, bug fixes or other significant changes.
[X] I have read the contribution guidelines.

General Guidelines and Best Practices

[X] Title of the pull request is clear and informative.
[X] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[X] Pull request includes test coverage for the included changes.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-ai-textanalytics


Boss Template errors on call to BossBase.gd:_on_HitBox_area_exited(area) under certain conditions

I first noticed this bug while playing at a higher resolution and then decided to try to reproduce it in the unmodified engine.
The specific error is:
Invalid get index 'parent' (on base: 'Area2D').
Stack Frames:
0 - res://Scripts/Boss/BossBase.gd:80 - at function: _on_HitBox_area_exited
I believe it is related to the position of the boss... the reason I encountered this more frequently in the higher resolution mode was because the boss was visible as it was descending and easy to hit as it was entering the frame. The easiest way I find to reproduce this error is to have the lightning shield and to hit the boss as it is coming down from the sky. The higher the more reliable.
Once the bug is first triggered it seems to persist throughout the fight and even as the boss is leaving. Simply entering his 'area' at that point makes triggering the error almost inevitable.
EDIT: Worth noting, it is accompanied by this error being logged, but not stopping the engine.
E 0:17:06.363   area_set_shape_disabled: Can't change this state while flushing queries. Use call_deferred() or set_deferred() to change monitoring state instead.
  <C++ Error>   Condition "area->get_space() && flushing_queries" is true.
  <C++ Source>  servers/physics_2d/physics_2d_server_sw.cpp:362 @ area_set_shape_disabled()
  <Stack Trace> BossBoundrySetter.gd:29 @ _on_BoundrySetter_body_entered()

The bug also intermittently happens without using the lightning shield to attack it out of frame.

Turns out there wasn't a check to see if the parent actually existed, I'm not entirely sure why it only worked when the boss was off screen but adding a check to make sure the object has a parent before removing it from the array fixed it and is now on the main branch.


Array.prototype.every() explanation

**in the 3rd solution on the hint section we have this explanation:  For every object in the collection array, check the truthiness of object’s property passed in pre parameter
Array#every method internally checks if the value returned from the callback is truthy.
Return true if it passes for every object. Otherwise, return false.
**
https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-everything-be-true/16011
**Recommended fix, suggestions (how would you update it?): I think the second bullet has a misspelling.  It should go something like "Array.prototype.every() or in the case of this solution collection.every method internally checks if the value returned from the callback is truthy. **
If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):

Thank you, for pointing this out.
I have updated the guide post with Array.prototype.every for clarity. As such, I am closing this issue.


configure a script to release mod release and upload to Steam

proposed requirements:

no credentials saved in the script. the credentials (user/passw/api-key) should be accepted from command line params. these will be provided by Jenkins (CI tool running the builds).
should run on a standard Linux VM with Python2/3 or bash, etc.
should bump the mod version on each release build.
should upload the distributive (set of files? zip archive?) to Steam, if the credentials are valid. should print an error message if the credentials are not provided
I see a version number in "CQUI.modinfo" file. should this version be updated on each release? if yes, it should be a part of that script

once we have a script ready, I can:

add it to a running Jenkins instance where it will be executed on each commit (merge) to master branch.

@the-m4a @alimulhuda  hey guys, are you interested in working on this task?

also, I see version number in "CQUI.modinfo" file. should this version be updated on each release? if yes, it should be a part of that script

is there any Rest API made available by steam that lets us publish outside of the Workshop uploader?  I assume there's something, but a quick search didn't provide me with hope beyond being able to query for stuff that already exists.
We're getting enough hits on the workshop msgs that we'll be busy with other things for a bit... :/

Did a bit of research on this, and it looks like uploads to the workshop are controlled by each app (rather than directly by steam).  The application invokes the API calls to upload to the workshop, but the end-user needs to do it via the application.  Given that I don't expect that the upload process is going to be scriptable.

This could be done by a Python3 script and SteamCMD, they even have a container, so you just need Python on that.
All this hinges on is if SteamCMD is what you are looking for and subprocess can in fact latch onto it. I've messed around with it a few times and once I uploaded a file to a game's steam workshop without any questions, so this seems perfect for automation to me.
Additional info for implementation, feel free to ignore, I just like to play around with ideas:
argparse (builtin) can easily handle CLI arguments, implementation is simple.
def parse_args() -> argparse.Namespace:
    parser = argparse.ArgumentParser()

    parser.add_argument(
        '-u',
        '--username',
        default=os.environ['STEAM_USERNAME'],  # optional, for flexibility,  since Jenkins can set the environment too
        # this also provides and easy way to overwrite the credentials for specific uploads
        # however you if you throw this idea away, then you can set required=True, which instantly solves the checking for you
        help='The Steam username of the uploader',  # for clarity's sake
    )
    #  repeat add_argument for password and api key, additionally for version bumping, to decide between major and minor versions, there are many ways to do this, but here's one
    parser.add_argument(
        '-m',
        '--major',
        action='store_true',
        dest='is_major_version',
        help='Use if version change is major, omit if minor, used for version bumping',
    )

    return parser.parse_args()

# ignore try/except if required=True is set
try:
    args = parse_args()
except ValueError:
    print('Not all required arguments were set')
    sys.exit(1)

You can run SteamCMD via subprocess.Popen.
You can bump the version number with a builtin xml parser/handler of which Python has several or take an easier way out and use string templating.
I hope this helps, good luck!

This could be done by a Python3 script and SteamCMD, they even have a container, so you just need Python on that.
All this hinges on is if SteamCMD is what you are looking for and subprocess can in fact latch onto it. I've messed around with it a few times and once I uploaded a file to a game's steam workshop without any questions, so this seems perfect for automation to me.
Additional info for implementation, feel free to ignore, I just like to play around with ideas:
argparse (builtin) can easily handle CLI arguments, implementation is simple.
def parse_args() -> argparse.Namespace:
    parser = argparse.ArgumentParser()

    parser.add_argument(
        '-u',
        '--username',
        default=os.environ['STEAM_USERNAME'],  # optional, for flexibility,  since Jenkins can set the environment too
        # this also provides and easy way to overwrite the credentials for specific uploads
        # however you if you throw this idea away, then you can set required=True, which instantly solves the checking for you
        help='The Steam username of the uploader',  # for clarity's sake
    )
    #  repeat add_argument for password and api key, additionally for version bumping, to decide between major and minor versions, there are many ways to do this, but here's one
    parser.add_argument(
        '-m',
        '--major',
        action='store_true',
        dest='is_major_version',
        help='Use if version change is major, omit if minor, used for version bumping',
    )

    return parser.parse_args()

# ignore try/except if required=True is set
try:
    args = parse_args()
except ValueError:
    print('Not all required arguments were set')
    sys.exit(1)

You can run SteamCMD via subprocess.Popen.
You can bump the version number with a builtin xml parser/handler of which Python has several or take an easier way out and use string templating.
I hope this helps, good luck!

closing as i don't think there's enough of a need with this one


How to add lvgl to existing Makefile project

I'm trying lvgl with stm32 mcu. I have a cubemx generated Makefile project and have included lvgl.
Why do the *.mk files use variable LVGL_DIR for CFLAGS only ? But not for VPATH or DEPPATH
right now i have this in my makefile. Is this the right way to add lvgl to makefile project?
LVGL_DIR = Drivers
CFLAGS += -IDrivers/lvgl
CFLAGS += -DLV_CONF_INCLUDE_SIMPLE
include $(LVGL_DIR)/lvgl/lv_core/lv_core.mk
include $(LVGL_DIR)/lvgl/lv_draw/lv_draw.mk
include $(LVGL_DIR)/lvgl/lv_fonts/lv_fonts.mk
include $(LVGL_DIR)/lvgl/lv_hal/lv_hal.mk
include $(LVGL_DIR)/lvgl/lv_misc/lv_misc.mk
include $(LVGL_DIR)/lvgl/lv_objx/lv_objx.mk
include $(LVGL_DIR)/lvgl/lv_themes/lv_themes.mk
C_SOURCES += $(CSRCS)
VPATH := $(subst lvgl,$(LVGL_DIR)/lvgl,$(VPATH))
DEPPATH := $(subst lvgl,$(LVGL_DIR)/lvgl,$(DEPPATH))

Hi,
Good observation!
The current Makefile was designed to work with NuttX but it seems your updates won't break it. Using absolute path seems event better.
I updated VPATH and DEPPATH in the .mk files according to your suggestion and I will update the Makefile in the v5.3 release too (in a few weeks)

Updated here: https://github.com/littlevgl/pc_simulator_sdl_eclipse/blob/master/Makefile
Thank you for the suggestion!


Directx driver causes go program exit when screen blanks or user locks

Hi! I'm using v2.3.5 (newest v2 release as of right now) on Windows 10 with the directx driver in use.  If you are running an ebiten executable and lock the screen or the monitor suspends due to windows settings the program ebiten.RunGame returns with an error.  You can see this behavior with the examples.
Here's the error:
$ go run hue.go
2022/07/03 14:40:08 directx: IDXGISwapChain4::Present failed: The Present operation was invisible to the user.
exit status 1

It is really easy to reproduce, just run a program and hit the keys winkey-l (that's a L) to lock the screen.  Unlock the screen and you'll see the error.
Is there a way to just re-invoke the Run call and it will leave off where it started as a workaround?
A naive expected behavior would be that ebiten wouldn't care about this error and continue with update calls and ignoring the presentation error, perhaps pause draw calls until the machine is back in a state where present wouldn't cause an error?
This is how most games on windows work, when my monitor suspends I usually can hear the sounds and the game events keep going in the background. Think idle games where this behavior is important. My current project is a long running simulation which is important to have this ability too.
Another option is a pause of the engine until directx will process the Present?  However, if that is an option I'd like it a configurable behavior.
One way to tackle this (and maybe it does?) is to register a callback on these kinds of errors/events that cause them and the game logic can return in the callback if it should suspend processing or continue updates without display in the meantime? Maybe return timeout where the game engine will check again and call the callback again if it still can't Present?

Can confirm opengl works as my naive expectations, it just keeps working in the background.
Workaround for others that see this, place this before your main game loop:
os.Setenv("EBITEN_GRAPHICS_LIBRARY", "opengl")

Thanks, I'll take a look!

Confirmed.

OK I've fixed the issue. Could you try 29b41fd07f24299866d951f6ad310433dd182407?
go get github.com/hajimehoshi/ebiten/v2@29b41fd07f24299866d951f6ad310433dd182407

Thanks!

A naive expected behavior would be that ebiten wouldn't care about this error and continue with update calls and ignoring the presentation error, perhaps pause draw calls until the machine is back in a state where present wouldn't cause an error?

Ideally this seems the way to go. The current implementation is just to ignore the error. I'll consider a more sophisticated way at #2181.

This is how most games on windows work, when my monitor suspends I usually can hear the sounds and the game events keep going in the background. Think idle games where this behavior is important. My current project is a long running simulation which is important to have this ability too.

I see. You can control the behavior when unfocused with SetRunnableOnUnfocused.

One way to tackle this (and maybe it does?) is to register a callback on these kinds of errors/events that cause them and the game logic can return in the callback if it should suspend processing or continue updates without display in the meantime? Maybe return timeout where the game engine will check again and call the callback again if it still can't Present?

IIUC testing presenting with DXGI_PRESENT_TEST seems the way to go.

go get github.com/hajimehoshi/ebiten/v2@29b41fd07f24299866d951f6ad310433dd182407

Confirmed that game doesn't error out when I lock the screen with directx and this change any longer, I'll resume using directx to help find any other issues with it as soon as it makes it to v2 officially.

Thank you very much!


ioctl(USB_RAW_IOCTL_EP_READ): Cannot send after transport endpoint shutdown when changing altinterface

log
kmsg
This issue when passing through an xbox controller and with my raspberry pi 4B
When trying to run the program the program hangs for 5-10 second before crashing an printing the error
When switching interfaces the program tries to terminate endpoints but one of them hangs when reading and from what I can tell that causes the crash
The proxy works perfectly using dummy raw gadget and also another device (usb drive) which changes interfaces
A wireshark file as a result of proxying the controller is here

Hi,
Thanks for reporting the issue!
could you please provide the output of this command lsusb -v -d 045e:02ea?

Bus 001 Device 010: ID 045e:02ea Microsoft Corp. Xbox One S Controller
Couldn't open device, some information will be missing
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass          255 Vendor Specific Class
bDeviceSubClass        71
bDeviceProtocol       208
bMaxPacketSize0        64
idVendor           0x045e Microsoft Corp.
idProduct          0x02ea Xbox One S Controller
bcdDevice            5.0d
iManufacturer           1 Microsoft
iProduct                2 Controller
iSerial                 3<PHONE_NUMBER>313331323636383530
bNumConfigurations      1
Configuration Descriptor:
bLength                 9
bDescriptorType         2
wTotalLength       0x0077
bNumInterfaces          3
bConfigurationValue     1
iConfiguration          0
bmAttributes         0xa0
(Bus Powered)
Remote Wakeup
MaxPower              500mA
Interface Descriptor:
bLength                 9
bDescriptorType         4
bInterfaceNumber        0
bAlternateSetting       0
bNumEndpoints           2
bInterfaceClass       255 Vendor Specific Class
bInterfaceSubClass     71
bInterfaceProtocol    208
iInterface              0
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x02  EP 2 OUT
bmAttributes            3
Transfer Type            Interrupt
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0040  1x 64 bytes
bInterval               4
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x82  EP 2 IN
bmAttributes            3
Transfer Type            Interrupt
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0040  1x 64 bytes
bInterval               4
Interface Descriptor:
bLength                 9
bDescriptorType         4
bInterfaceNumber        0
bAlternateSetting       1
bNumEndpoints           2
bInterfaceClass       255 Vendor Specific Class
bInterfaceSubClass     71
bInterfaceProtocol    208
iInterface              0
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x02  EP 2 OUT
bmAttributes            3
Transfer Type            Interrupt
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0040  1x 64 bytes
bInterval               4
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x82  EP 2 IN
bmAttributes            3
Transfer Type            Interrupt
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0040  1x 64 bytes
bInterval               2
Interface Descriptor:
bLength                 9
bDescriptorType         4
bInterfaceNumber        1
bAlternateSetting       0
bNumEndpoints           0
bInterfaceClass       255 Vendor Specific Class
bInterfaceSubClass     71
bInterfaceProtocol    208
iInterface              0
Interface Descriptor:
bLength                 9
bDescriptorType         4
bInterfaceNumber        1
bAlternateSetting       1
bNumEndpoints           2
bInterfaceClass       255 Vendor Specific Class
bInterfaceSubClass     71
bInterfaceProtocol    208
iInterface              0
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x03  EP 3 OUT
bmAttributes            1
Transfer Type            Isochronous
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x00e4  1x 228 bytes
bInterval               1
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x83  EP 3 IN
bmAttributes            1
Transfer Type            Isochronous
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0040  1x 64 bytes
bInterval               1
Interface Descriptor:
bLength                 9
bDescriptorType         4
bInterfaceNumber        2
bAlternateSetting       0
bNumEndpoints           0
bInterfaceClass       255 Vendor Specific Class
bInterfaceSubClass     71
bInterfaceProtocol    208
iInterface              0
Interface Descriptor:
bLength                 9
bDescriptorType         4
bInterfaceNumber        2
bAlternateSetting       1
bNumEndpoints           2
bInterfaceClass       255 Vendor Specific Class
bInterfaceSubClass     71
bInterfaceProtocol    208
iInterface              0
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x04  EP 4 OUT
bmAttributes            2
Transfer Type            Bulk
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0040  1x 64 bytes
bInterval               0
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x84  EP 4 IN
bmAttributes            2
Transfer Type            Bulk
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0040  1x 64 bytes
bInterval               0

Hi @RandomOnlineName ,
Thanks for providing the info, could you please also provide the output of uname -a?
And I got a Xbox controller to test today, I do encounter similiar issue, and please try to switch to commit ID 6aecd455b2ef3d6734ab92105ca00c01464d4030 to test again
# in usb-proxy directory
$ git reset --hard 6aecd455b2ef3d6734ab92105ca00c01464d4030
$ make -j$(nproc)

with commit ID 6aecd455b2ef3d6734ab92105ca00c01464d4030, the xbox controller seems to be able to send some data and usb-proxy won't die, but does't look like it's working totally fine, I will spend more time on this issue when I have time, thanks!

uname -a outputs "Linux rasberrypi 5.15.89v7lAlex+ #3 SMP Tue Mar 21 18:08:19 GMT 2023 armv7l GNU/Linux"
I reset to top 6aecd455b2ef3d6734ab92105ca00c01464d4030 but the same issue persists
The error above occurs when proxying to a windows laptop but another error happens when using both a linux laptop and a chromebook
"ioctl(USB_RAW_IOCTL_RUN): No such device" just after "Setup USB config successfully"

I think the problem is that the please_stop_eps logic doesn't really work with Raw Gadget. usb_raw_ep_read blocks until it receives some data. We need to kill the thread that calls usb_raw_ep_read when switching altsetting/interface (and also on a USB reset event, although Raw Gadget has no capability of reporting that yet). Otherwise, usb_raw_ep_read will fail with -ESHUTDOWN once usb_raw_ep_disable is called. It's actually surprising that proxy worked for some altsetting/interface-switching devices at all.

It's also possible that we need this Raw Gadget patch https://github.com/xairy/raw-gadget/commit/60042be6d82215d9536a4c85613aaa2e8a15e487 to avoid disabling the Raw Gadget device if the emulation code accidentally does an endpoint operation on a disabled endpoint.

Hi @xairy ,
Thanks for helping out on this issue!
I was awared that the please_stop_eps logic is not fully compatible with Raw Gadget previously, and I remember that there is a To-Do to make Raw Gadget operate in non_blocking mode, and I assume it would be working with the current please_stop_eps logic better.
I didn't try to implement the mechanism to kill the thread that calls usb_raw_ep_read when switching altsetting/interface previously, because IMHO I think it is a workaround and implementing non_blocking mode may be a better solution for this issue. I am 100% willing to try to implement it in Raw Gadget, but unfortunately I am not a kernel expert, so I don't know where and how to start :(
I will try that patch and update the result here when I have time. Thanks again for the help!

I don't think implementing the non-blocking mode will make that much of a difference: we will still need some way to wait for the transfer to complete and will still need a way to interrupt this waiting.
Using a signal to interrupt a blocking syscall is not that unusual of an approach. Technically, we don't even need to kill the thread. We can use any signal and add a no-op handler for it. The important part is that sending a signal will interrupt the usb_raw_ep_read call and make it return to userspace. And then the rest of the please_stop_eps logic should just work.
To make this work, we also need this patch btw https://github.com/xairy/raw-gadget/commit/98f9a648dd0aac15195e7e9cecc733671ad3431c, besides the one I linked above. If all this proves to work, I will send these patches upstream.

Hi @xairy , I see, thanks for the explanation!
Hi @RandomOnlineName , I might need your help, I think my Xbox controller behaves differently by comparing your log and my log, I never received the USB control request to change interface/altsetting, so please apply the patches mentioned above for Raw Gadget and apply the following for usb-proxy
diff --git a/proxy.cpp b/proxy.cpp
index e3dbd57..e139e3a 100644
--- a/proxy.cpp
+++ b/proxy.cpp
@@ -291,8 +291,15 @@ void terminate_eps(int fd, int config, int interface, int altsetting) {
        for (int i = 0; i < alt->interface.bNumEndpoints; i++) {
                struct raw_gadget_endpoint *ep = &alt->endpoints[i];

-               if (ep->thread_read && pthread_join(ep->thread_read, NULL)) {
-                       fprintf(stderr, "Error join thread_read\n");
+               if (ep->thread_read) {
+                       if (ep->thread_info.dir == "out") {
+                               pthread_kill(ep->thread_read, SIGINT);
+                               printf("Sent SIGINT to thread_read for EP%02x\n",
+                                               ep->thread_info.endpoint.bEndpointAddress);
+                       }
+                       if (pthread_join(ep->thread_read, NULL)) {
+                               fprintf(stderr, "Error join thread_read\n");
+                       }
                }
                if (ep->thread_write && pthread_join(ep->thread_write, NULL)) {
                        fprintf(stderr, "Error join thread_write\n");

I don't have a proper USB device to test this logic, hopefully it works, feel free to let me know if it doesn't, thanks

I will test this when I get back to my computer. Thank you for the help.

It causes an "ioctl(USB_RAW_IOCTL_READ): Interrupted system call" error with the same log otherwise

I tested out the approach I suggested: https://github.com/xairy/raw-gadget/commit/c328b9d3988d79d0c11acf7796f54fd64072cb4e, it works. I used it for handling the reset event, but it should work the same for switching altsetting/interface.

A cleaner solution via pthread_cancel: https://github.com/xairy/raw-gadget/commit/9600542afbad76a310b6763ad36f2cb181133b2b.
On a side note, I found this article very useful to learn about pthread cancellation.

Looked through usb-proxy code: https://github.com/AristoChen/usb-proxy/issues/9#issuecomment-1733750175 + pthread_cancel instead of pthread_kill should work, but there's a caveat: if the endpoint thread gets cancelled with data_mutex locked, this will result in a dead lock. Also if it gets cancelled while data is allocated, there will be a memory leak.
However, what I just realized is that we don't need to interrupt the ioctl via a signal. We can just disable the endpoint (before attempting to join the thread) and the blocking ioctl should exit with -ESHUTDOWN (or with -EBUSY if the endpoint is disabled before the ioctl is called).
@RandomOnlineName, could you check if this patch works for you (with Raw Gadget patches from its dev branch)?

Looks like interrupting blocked threads will not fix proxying the device. Something else is wrong: I don't think the host is supposed to send those USB_REQ_SET_INTERFACE requests at all. They make no sense: each interface already has the altsetting 0 set. https://github.com/xairy/usb-proxy/commit/b21a3a1b7eeaed948311e2520a86e825422064a9 surfaces the issue.

Added support for reset handling: https://github.com/xairy/usb-proxy/tree/reset. Together with ignoring meaningless SET_INTERFACE requests, I can proxy an Xbox controller (connected to Windows; Linux works as is).
Requires Raw Gadget patches from dev branch. I've sent them upstream, but it's going to take some time before they are merged. I'll hold off sending a PR before the patches are at least in one of the USB trees.

I have tried https://github.com/xairy/usb-proxy/tree/reset and https://github.com/xairy/raw-gadget/tree/dev but get
event: disconnect
usb_raw_ep_read(): Cannot send after transport endpoint shutdown
usb_raw_ep_write(): Cannot send after transport endpoint shutdown
Could there be something different about our devices like kernel version or something else?

Ah, I think this is that bug in dwc2 that is reports a disconnect instead of a reset.
Please try this patch:
diff --git a/proxy.cpp b/proxy.cpp
index 28d288e..ec09b82 100644
--- a/proxy.cpp
+++ b/proxy.cpp
@@ -354,7 +354,7 @@ void ep0_loop(int fd) {
                        return;
                }

-               if (event.inner.type == USB_RAW_EVENT_RESET) {
+               if (event.inner.type == USB_RAW_EVENT_RESET || event.inner.type == USB_RAW_EVENT_DISCONNECT) {
                        printf("Resetting device\n");
                        // Normally, we would need to stop endpoint threads first and only then
                        // reset the device. However, libusb does not allow interrupting queued

If it still fails, please upload the full log somewhere and share.

Checked with my R Pi 4, we also need something like this:
diff --git a/proxy.cpp b/proxy.cpp
index 2ae255a..6474545 100644
--- a/proxy.cpp
+++ b/proxy.cpp
@@ -129,7 +129,7 @@ void *ep_loop_write(void *arg) {

                if (ep.bEndpointAddress & USB_DIR_IN) {
                        int rv = usb_raw_ep_write(fd, (struct usb_raw_ep_io *)&io);
-                       if (rv < 0 && please_stop_eps) {
+                       if (rv < 0) {
                                printf("EP%x(%s_%s): thread interrupted\n", ep.bEndpointAddress,
                                        transfer_type.c_str(), dir.c_str());
                                break;
@@ -218,7 +218,7 @@ void *ep_loop_read(void *arg) {
                        io.inner.length = sizeof(io.data);

                        int rv = usb_raw_ep_read(fd, (struct usb_raw_ep_io *)&io);
-                       if (rv < 0 && please_stop_eps) {
+                       if (rv < 0) {
                                printf("EP%x(%s_%s): thread interrupted\n", ep.bEndpointAddress,
                                        transfer_type.c_str(), dir.c_str());
                                break;

And then it works.
I'll think about how to implement this more cleanly.

Raw Gadget patches are now in usb-next, so I includes the changes into the master branch of Raw Gadget.
Waiting for #10 to be reviewed, and then will send another PR with reset handling that fixes this issue (https://github.com/xairy/usb-proxy/commits/reset).


authenticator: allow multiple repos w/ same netloc

@Darsstar thanks for the review; I have applied your suggestions and added the changes to https://github.com/python-poetry/poetry/pull/5518. Another pass there would be appreciated.


Cluster tag table shows null in currency column

https://beta.graphsense.info/#!btc/cluster/508051015
Not a major issue but sth to take into account for the next release.

I can't reproduce:


use metadata for amp-date-picker experiment

Use metadata instead of the usual experiment

Ok! I will wait those to be in place before merging this.


Trying to pull non-existent NBT tags crash the server

I'm trying to get the crashlogs from the server admin, but until I do I wanted to start to get the ball rolling on this bug report.
I pulled a TileEntity NBT card from a Block Reader looking at a Mekanism Chemical Washer.  The relevant snip of the NBT Tree, when it contains a slurry, are as follows:
{
	SlurryTanks: [{
		stored: {
			amount: 1000L,
			slurryName: "mekanism:clean_iron"
		},
		Tank: 1b
	}]
}

vs when it's empty:
{
	SlurryTanks: [{}]
}

I told the NBT Extractor to pull the reference of the "amount" tag, and put this card in a Display Panel.  When the tank has clean slurry, it works fine.  However, when the slurry is pulled out (and empty), this card in the Display would crash the server.  When the server came back online, the Display would show a red X and the Block Reader would need to be broken/replaced before it started working again in the Display (if there was Slurry in the tank) or crash the server again (if the tank was empty).
I'm assuming that, for whatever reason, trying to pull a tag from a non-existent/no longer existing path causes a crash.  I didn't expect this to crash the server, I expected an error or the card to just not work...if I get the crashlog from the server admins I'll add them, the only one they sent me (thus far, which I think was the wrong one) was a watchdog crash, and when this happened, the server crashed instantly (most watchdog crashes I've experienced in the past, I remember being on a non-responsive server for a minute or so before it went down, and the crashes I experienced above were instant).
This happened in the Direwolf20 1.16 version 1.5.1 of the pack, using the following relevant mod versions (let me know if I missed one you need):
Forge 35.1.36
CyclopsCore-1.16.4-1.11.0
IntegratedDynamics-1.16.4-1.4.0
integratednbt-1.16.4-1.4.0
Mekanism-1.16.4-<IP_ADDRESS>5

That is definitely one of the use cases I tested during development. I probably missed some edge cases. I will try to reproduce ASAP. Meanwhile, if you get the log, please send it. Thanks.

@LezChap I don't need the log anymore. I have successfully reproduced the problem. I will push out a fix ASAP.

Ok it got automatically closed because I said Fix #6 in the commit message. I have not uploaded the jar file to CurseForge just yet.

I have uploaded the updated jar to CurseForge: https://www.curseforge.com/minecraft/mc-mods/integrated-nbt/files/3192227


cats-plugin disappear and after i update the plugin,error occur

hi, admin, I open my blender today and found out that cats plugin is gone then when I get to the user preference the plugin,its still on,then I go check the plugin webpage if any update,and there is update on MAY 2018 then I dl it and overwrite the plugin by following back the instruction given on the download page ,but then error occur when i try to activate it back,here is the reference picture,plesae help me ><><><

Try to start Blender as an admin

I assume that this fixed it, reopen if it's not fixed.


Update README.md

🛠 Related Issue

Closes #[issue_number]

📝 Description

[Provide a concise description of the changes. Include the purpose and any relevant context or details.]
🔍 Type of PR

[ ] 🐛 Bug fix
[x] ✨ Feature enhancement
[x] 📚 Documentation update
[ ] 🛑 Other (specify): _______________

📸 Screenshots / 🎥 Videos (if applicable)

[Attach screenshots or videos]
✅ Checklist

[x] I have performed a self-review of my code.
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have commented my code, particularly in hard-to-understand areas.

ℹ Additional Context

[Include any additional context or information that might assist reviewers in understanding the changes]

#676

But readme.md file should be visible in the repo right


Fix Output products issues [WIP]

OK, this is one of those pull requests.
I've addressed issues with the output products of cosimulation. There are three ways to run code: Without ANY output products (aside from print_stats), With waveforms, and with traces.
I'm still trying to get combinations to work (i.e. with traces AND waveforms) but I think this PR addresses the 95% case.
Here's the output of make help
      regression: Run all cosimulation regression tests for
             this subdirectory
      waveforms: Run all cosimulation regression tests for
             this subdirectory and generate waveforms
      traces: Run all cosimulation regression tests for
             this subdirectory and generate traces
      <test_name>: Build the cosimulation binary for a specific
             test
      <test_name.log>: Run a specific cosimulation test and
             generate the log file (will not generate traces)
      <test_name.vanilla.log>: Run a specific cosimulation test and
             generate the vanilla.log and vanilla_operation_trace.csv
             and vanilla_operation_trace.csv file
      <test_name.vanilla_operation_trace.csv>: Same as above

      clean: Remove all subdirectory-specific outputs

(Thanks to @dpetrisko for ideas)

Just curious... how did you get around this for no_debug_pp?
https://github.com/aws/aws-fpga/blob/1f67d8e375be81176a9f672544d870dfb24303e8/hdk/common/verif/tb/sv/tb.sv#L32-L33
That needs -debug_pp or equivalent, right?

I'm magical

(Just kidding. This is why I use -undef_vcs_macro)

No side affects with that?

Not that we've noticed. We've be running with -undef_vcs_macro for months now, you just didn't know it. It was part of EXTRA_TURBO

So a major question is: Should all waveforms produce traces?

I found traces helpful in getting a sense of direction in the sea of signals available in waveforms.

So a major question is: Should all waveforms produce traces?

I found traces helpful in getting a sense of direction in the sea of signals available in waveforms.

I think a tcl file with the list of important signals checked into the repo would do the job. Since traces make sim considerably slow, I agree that it's better to avoid them when possible.

name | regression | traces | waveforms | waveforms+traces
-- | -- | -- | -- | --
test_barrier | 55.5 | 38.92 | 84.29 | 103.67
test_binary_load_buffer | 35.47 | 42.37 | 76.56 | 102.94
test_conv1d | 40.81 | 61.62 | 92.87 | 262.44
test_conv2d | 49.28 | 48.65 | 95.49 | 117.46
test_device_memcpy | 38.1 | 39.65 | 102.51 | 90.7
test_device_memset | 38.63 | 46.76 | 84.34 | 111.65
test_dram_device_allocated | 56.34 | 62.87 | 103.32 | 131.28
test_dram_host_allocated | 39.73 | 41.26 | 82.93 | 104.11
test_dram_load_store | 58.24 | 72.59 | 125.18 | 155.4
test_empty | 34.5 | 38.48 | 77.39 | 99.13
test_empty_parallel | 39.03 | 40.55 | 85.7 | 98.11
test_float_all_ops | 112.51 | 177.64 | 229.08 | 314.14
test_float_matrix_mul | 82.66 | 117.53 | 160.51 | 215.01
test_float_matrix_mul_shared_mem | 134.18 | 262.86 | 320.22 | 498.71
test_float_vec_add | 50.23 | 59.41 | 116.63 | 125.41
test_float_vec_add_shared_mem | 57.19 | 81.81 | 121.28 | 163.15
test_float_vec_div | 65.16 | 110.22 | 140.8 | 215.44
test_float_vec_exp | 82.75 | 141.04 | 168.19 | 247.07
test_float_vec_log | 76.64 | 139.96 | 168.75 | 258.1
test_float_vec_mul | 52.84 | 70.71 | 109.13 | 141.72
test_float_vec_sqrt | 72.38 | 111.02 | 165.33 | 217.45
test_host_memset | 37.74 | 39.76 | 105.52 | 101.22
test_log_softmax | 128.45 | 274.16 | 246.45 | 448.4
test_matrix_mul | 91 | 137.5 | 161.72 | 252.49
test_matrix_mul_shared_mem | 133.6 | 288.69 | 317.35 | 513.32
test_max_pool2d | 46.78 | 44.43 | 110.73 | 127.09
test_multiple_binary_load | 67.67 | 70.52 | 146.73 | 169.9
test_scalar_print | 38.01 | 44.26 | 83.8 | 114.49
test_shared_mem_load_store | 87.1 | 98.8 | 153.54 | 215.91
test_shared_mem | 42.08 | 45.94 | 106.95 | 115.86
test_softmax | 82.95 | 163.34 | 188.47 | 282.14
test_stack_load | 40.79 | 40.48 | 87.64 | 110.47
test_tile_info | 41.3 | 62.59 | 92.12 | 121.96
test_vec_add | 62.04 | 59.54 | 102.73 | 128.3
test_vec_add_parallel | 59.99 | 64.77 | 116.58 | 144.83
test_vec_add_parallel_multi_grid | 54.78 | 76.27 | 121.31 | 174.65
test_vec_add_serial_multi_grid | 70.27 | 72.41 | 119.8 | 159.53
test_vec_add_shared_mem | 49.36 | 62.74 | 98.78 | 120.3
TOTAL | 2406.08 | 3452.12 | 5070.72 | 7073.95

maybe regress, regress-waves, regress-traces, regress-waves-traces, so that
it is clear they are all regressions?
On Tue, Feb 25, 2020 at 3:34 PM Dustin Richmond<EMAIL_ADDRESS>wrote:

OK, this is one of those pull requests.
I've addressed issues with the output products of cosimulation. There are
three ways to run code: Without ANY output products (aside from
print_stats), With waveforms, and with traces.
I'm still trying to get combinations to work (i.e. with traces AND
waveforms) but I think this PR addresses the 95% case.
Here's the output of make help
  regression: Run all cosimulation regression tests for
         this subdirectory
  waveforms: Run all cosimulation regression tests for
         this subdirectory and generate waveforms
  traces: Run all cosimulation regression tests for
         this subdirectory and generate traces
  <test_name>: Build the cosimulation binary for a specific
         test
  <test_name.log>: Run a specific cosimulation test and
         generate the log file (will not generate traces)
  <test_name.vanilla.log>: Run a specific cosimulation test and
         generate the vanilla.log and vanilla_operation_trace.csv
         and vanilla_operation_trace.csv file
  <test_name.vanilla_operation_trace.csv>: Same as above

  clean: Remove all subdirectory-specific outputs

(Thanks to @dpetrisko https://github.com/dpetrisko for ideas)
You can view, comment on, or merge this pull request online at:
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509
Commit Summary

First attempt at teasing apart VPD and trace generation
Added .PRECIOUS targets to hardware.mk
Added .PRECIOUS to compilation.mk
Improved simlibs.mk
Fixed missing -undef_vcs_macro vlogan flag
New rules work with SPMD
Propogating changes to all other test suites
Removed dve.mk

File Changes

M hardware/hardware.mk
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-0
(1)
M regression/compilation.mk
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-1
(1)
M testbenches/cosimulation.mk
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-2
(61)
M testbenches/cuda/Makefile
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-3
(23)
D testbenches/dve.mk
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-4
(76)
M testbenches/library/Makefile
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-5
(22)
M testbenches/link.mk
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-6
(45)
M testbenches/python/Makefile
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-7
(6)
M testbenches/pytorch/Makefile
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-8
(6)
M testbenches/simlibs.mk
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-9
(42)
M testbenches/specint/Makefile
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-10
(8)
M testbenches/spmd/Makefile
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509/files#diff-11
(27)

Patch Links:

https://github.com/bespoke-silicon-group/bsg_replicant/pull/509.patch
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bespoke-silicon-group/bsg_replicant/pull/509?email_source=notifications&email_token=AEFG5AAZNM6CCFZDMSOFIVTREWTJFA5CNFSM4K3WQ6I2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQHSFEQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEFG5AH3TYIX5X2J7DIST3LREWTJFANCNFSM4K3WQ6IQ
.

Yeah, I can do something like that. At the very least I'll be sticking with regression because that's currently how you run regression and I don't want to change it.
regression+waves+traces might be tricky. I'll experiment again when I have more time. Going to try to get #503 reviewed and in.

OK, this is ready to roll.

make {target(s)}
      regression: Run all cosimulation regression tests for
             this subdirectory and print pass/fail results

      regression+traces: Run all cosimulation regression tests
             for this subdirectory and generate traces for each
             test. Does not print aggregate pass/fail results.

      regression+waveforms: Run all cosimulation regression
             tests for this subdirectory and generate waveforms
             for each test. Does not print aggregate pass/fail
             results.

      regression+traces+waveforms: Run all cosimulation
             regression tests for this subdirectory and generate
             traces and waveforms for each test. Does not print
             aggregate pass/fail results.

      <test_name>: Build the cosimulation binary for a specific
             test

      <test_name>.log: Run a specific cosimulation test and
             generate the log file (will not generate traces)

      <test_name>.vanilla.log: Run a specific cosimulation test
             and generate the vanilla.log file.

      <test_name>.vanilla_operation_trace.csv: Run a specific
             cosimulation test and generate the
             vanilla_operation_trace.csv file.

      clean: Remove all subdirectory-specific outputs

      help: Print this message (default)

Available <test_name> targets:
        test_scalar_print test_empty test_tile_info test_barrier test_striped
        test_binary_load_buffer test_empty_parallel test_multiple_binary_load
        test_host_memset test_stack_load test_dram_load_store
        test_dram_host_allocated test_dram_device_allocated
        test_device_memset test_device_memcpy test_vec_add
        test_vec_add_parallel test_vec_add_parallel_multi_grid
        test_vec_add_serial_multi_grid test_vec_add_shared_mem
        test_max_pool2d test_shared_mem test_shared_mem_load_store
        test_matrix_mul test_matrix_mul_shared_mem test_float_all_ops
        test_float_vec_add test_float_vec_add_shared_mem test_float_vec_mul
        test_float_vec_div test_float_vec_exp test_float_vec_sqrt
        test_float_vec_log test_float_matrix_mul
        test_float_matrix_mul_shared_mem test_softmax test_log_softmax
        test_conv1d test_conv2d

example make help


How to put low Power Mode 5MP_OV5642

Hi, I would like to know how to set the camera on low power mode and how to put it back to normal mode, I read the register table and Im not sure if I have to write the register 0X03 or 0x06. Thanks! My model os 5MP_OV5642. Could you give me the addres and data I have to write? thanks!

@angeac
Use the myCAM.clear_bit(ARDUCHIP_GPIO,GPIO_PWDN_MASK) function to put it back to normal.
Use the myCAM.set)bit(ARDUCHIP_GPIO,GPIO_PWDN_MASK) function to set it to low power mode.


Ptway.net-admin

https://github.com/apache/dubbo-admin/pull/833#issue-1029788920

we can't accept PR with no detail and information