panic: unknown export format version -1 ("v0")

go version devel +94a4485 Tue Dec 6 22:33:48 2016 +0000 windows/amd64

@mattn I'm interested why the error occurs because I contributed some things related to bimport. (I want to take responsibility for what I do)
Would you mind explaining the situation where the error occurred?

Would you mind explaining the situation where the error occurred?

In the stacktrace. And I did completion with below's code.
package

import (
    "fmt"
)

func main() {
    fmt.
}

@mattn Hmm, that's strange because I also using go devel, now +61db2e4efa. and it's fine.
I'll investigate the situation where the export format will -1 (actually, p.version == -1, versionstr == v0)
Thanks for information.

Sorry delay. I don't make sure but this seems to be solved in tip.

still having this problem with 5070dacabf2a80deeaf4ddb0be3761d06fce7be5

@ekle What is situation? same as example code posted by mattn?
If you tell me you using go version, I can test it as same situation and environment.
Also, I don't know whether the related things, but it is worth of

go get -u -v github.com/nsf/gocode
go install -a -v std

tried your commands, they do not help
also tried it with go version go1.7.4 linux/amd64
i tried the example above and i don't get an error there
`panic: unknown export format version -1 ("v0")
1(runtime.call32): /usr/local/go/src/runtime/asm_amd64.s:479
2(runtime.gopanic): /usr/local/go/src/runtime/panic.go:458
3(main.(*gc_bin_parser).parse_export): .../go/src/github.com/nsf/gocode/package_bin.go:131
4(main.(*package_file_cache).process_package_data): .../go/src/github.com/nsf/gocode/package.go:141
5(main.(*package_file_cache).update_cache): .../go/src/github.com/nsf/gocode/package.go:90
6(main.update_packages.func1): .../go/src/github.com/nsf/gocode/autocompletecontext.go:381
7(runtime.goexit): /usr/local/go/src/runtime/asm_amd64.s:2086
panic: One of the package cache updaters panicked
1(runtime.call32): /usr/local/go/src/runtime/asm_amd64.s:479
2(runtime.gopanic): /usr/local/go/src/runtime/panic.go:458
3(main.update_packages): .../go/src/github.com/nsf/gocode/autocompletecontext.go:389
4(main.(*auto_complete_context).update_caches): .../go/src/github.com/nsf/gocode/autocompletecontext.go:165
5(main.(*auto_complete_context).apropos): .../go/src/github.com/nsf/gocode/autocompletecontext.go:303
6(main.server_auto_complete): .../go/src/github.com/nsf/gocode/server.go:196
7(main.(*RPC).RPC_auto_complete): .../go/src/github.com/nsf/gocode/rpc.go:26
8(runtime.call64): /usr/local/go/src/runtime/asm_amd64.s:480
9(reflect.Value.call): /usr/local/go/src/reflect/value.go:434
10(reflect.Value.Call): /usr/local/go/src/reflect/value.go:302
11(net/rpc.(*service).call): /usr/local/go/src/net/rpc/server.go:383
12(runtime.goexit): /usr/local/go/src/runtime/asm_amd64.s:2086
`

@ekle Hm.
I don't know what you edited .go code(if no problem, could you post to such as gist?), but it seems to import-ed some non-stdlib packages.
such as

github.com/coreos/etcd/clientv3.a
golang.org/x/net/context.a

It’s unlikely, and it may not be possible as an internal implementation of gocode(because have package_text.go parser), but if installed these packages long ago, it may be different from the go object binary spec of go1.7.4.
IIRC Go's binary spec officially changed at 1.7(maybe), so means like:

go runtime: 1.7.4
github.com/coreos/etcd/clientv3.a: installed using go1.6
golang.org/x/net/context.a: installed using go1.6

So, it is worth of re-install(go get) these packages using go1.7.4.
If you still have same errors, need to do more detailed debugging. or, @nsf may identify the problem.

ok, i deleted ../go/pkg/linux_amd64 completely and it helped.
go get -a -u -v
go build -a
did not help.
maybe this has to do with vendoring.

@ekle Ah, yeah if you use vendor directory, go toolchain will create .a object file to same directory path on $GOPATH/pkg.
But solved problem? I'm glad hear that.
I think you already know, but I'll leave comment for other users.
$GOPATH/src/github.com/zchee/foo/vendor/github.com/zchee/bar
If build foo package, That vendored bar packages object file will create at

$GOPATH/pkg/linux_amd64/github.com/zchee/foo/vendor/github.com/zchee/bar.a

So yes, go get -u github.com/zchee/bar is did not helped.
Update only

$GOPATH/pkg/linux_amd64/github.com/zchee/bar.a

but gocode will parses 1 object file. if that binary spec is old, gocode will PANIC.

Now I write above comment based on my (brain) memory. It may be wrong.


Query regarding reaction search using atom maps.

I want to filter some reactions using reaction SMARTS from USPTO dataset.
I'm using python 3.5 and rdkit Release 2018.03.4 on Linux.
From different discussions I've used given code but unable to get desired results.
Code is:
#Fischer esterification
rxn = rdChemReactions.ReactionFromSmarts('[CH3:19][CH2:20]O.[CH3:1][O:2][c:3]1[cH:4]c:5[cH:10][cH:11][c:12]1[OH:13].O=S(=O)(O)O>>[CH3:20][CH2:19][O:9]C:7[CH2:6][c:5]1[cH:10][cH:11]c:12c:3[cH:4]1',useSmiles=True)
qrxn = rdChemReactions.ReactionFromSmarts('[C:23]O[H].[O:9]=C:8[CH:7].O=S(=O)(O)O>>[C:23][O:9]C:8[CH:7]',useSmiles=True)
for r in rxn.GetReactants(): Chem.SanitizeMol(r)
for p in rxn.GetProducts(): Chem.SanitizeMol(p)
print(rdChemReactions.HasReactionSubstructMatch(rxn,qrxn,includeAgents=False))
Output: True
It gives me correct output for given reaction but when i use it for the entire dataset it gives me 8885 hits but i only have 2000 reactions of the query in dataset(from known dataset sample). When i dig deep i get that, it is only looking for substructures on both side of the reaction and do not involve atom maps. I've also tried fingerprinting but didn't end at desired results yet.
I'm new to rdkit, kindly share any solution or suggestions regarding this issue. Any help will be appreciated in advance.
Thank you.

Hi,
The RDKit does not use atom-mapping information when determining whether or not things are substructure matches.
You can, I think, accomplish what you want by modifying the reactions before doing the searches and using the atom map numbers to set the isotopes of atoms:
https://gist.github.com/greglandrum/3f3dae4897042a6f0800a2ce1f2e4eeb
Note that this presumes that you don't already have isotopes set on atoms in the reactants or products. You might want to confirm this.


Ambiguous failure message for text element

I have a test that was checking for an h1 with some text content.  At some point, we changed the h1 to an h4 and this test failed.
The problem is that the test failure message didn't give us much information and some significant time was spent tracking down the cause of the failure.
Here is the test:
    it('renders', () => {
      const subject = shallow(<MyComponent />);
      expect(subject.find('h1').text()).toBe('Some text');
    });

The failure looked like this:
FAILED TESTS:
  <MyComponent />
    initial mount
      ✖ renders
        PhantomJS 2.1.1 (Mac OS X 0.0.0)
      single
      text

I think it was saying that it couldn't find a "single" piece of "text", but this wasn't a very helpful message.
Perhaps something like "Expected to find <h1> with text 'Some text'" would make this more clear?

There's no way for the matcher here to know that's what you were trying to do; all you're doing is comparing strings.
You'd need a custom matcher that took "h1", 'text", and "some text" before that custom message would be possible.
You may want to look into chai and chai-enzyme; it's also possible someone has made custom matchers for jasmine/jest.


Time Travel "Jump" doesn't work in 3.2.2

I visited the live version of the example app here:
http://ngrx.github.io/example-app
Using the Redux Dev Tools extension in Chrome
I can skip Actions that have occurred as expected, but the "Jump" functionality does not seem to work at all.
I'm using Redux Dev Tools extension version 2.14.2 (the latest as of today)
Chrome Version 56.0.2924.87 (64-bit) on Mac

This doesn't seem to be an issue with the example-app specifically. I would suggest opening this issue in the @ngrx/store-devtools repo.


Incorrect Thread

Goals
What do you want to achieve?
Want to load data from db into an array of realm objects
Expected Results
What did you expected to happen?
It should load fine in an dispatch_queue
Actual Results
What did happened instead?
libc++abi.dylib: terminating with uncaught exception of type realm::IncorrectThreadException: Realm accessed from incorrect thread.
Steps to Reproduce
What are steps we can follow to reproduce this issue?
Code Sample
Provide a code sample or test case that highlights the issue.
If relevant, include your model definitions.
For larger code samples, links to external gists/repositories are preferred.
Alternatively share confidentially via mail to<EMAIL_ADDRESS>Full Xcode projects that we can compile ourselves are ideal!
          dispatch_async(dispatch_queue_create("background", nil)) {               let realm = try! Realm()              let allShows = realm.objects(Show.self)             for show in allShows {                 self.shows.append(show)             }             self.collectionView.reloadData()         }
Version of Realm and Tooling
In the CONTRIBUTING guidelines, you will find a script,
which will help determining these versions.
Realm version: ?
1.0.1
Xcode version: ?
7.3.1
iOS/OSX version: ?
iOS 9.3
Dependency manager + version: ?

Realm objects are confined to the thread on which they were created or retrieved.
This constraint is in place to preserve the isolation of your object graph between versions.
In your case, you're likely accessing Realm objects from self.shows on your main thread (judging from your call to collectionView.reloadData()), even though they were retrieved on a background thread.
If you want Realm objects from a query (in this case realm.objects(Show.self) to be retrieved and kept up to date in the background, you can simply use Results.addNotificationBlock(), which will asynchronously load and maintain the Results, as long as you don't access one of its elements until the .Initial notification is delivered. You should always prefer using Realm collections like Results and List rather than copying objects into a standard library container like Array.
For more information on Realm and threading, see our docs on Threading.
For more information on asynchronous Results, see our docs on Auto-Updating Results.

hey @jpsim thanks for replying
I changed the code to this
        let realm = try! Realm()

        shows = realm.objects(Show.self)

        self.collectionView.reloadData()

shows being Results but isn't that synchronous? I want to implement asynchronous task here
Please can u help (new here) thanks !

Yes, that's synchronous, but addNotificationBlock(_:) will load the results asynchronously. Take a look at our TableView example to see this in action.

also isn't that too synchronous as we are storing the objects in results directly
@jpsim

@chashmeetsingh obviously you'll need to add a notificationToken property on your view controller if you're trying to assign to one.

also isn't that too synchronous as we are storing the objects in results directly

Have you read the documentation links from my previous comment (https://github.com/realm/realm-cocoa/issues/3810#issuecomment-229661795)?

ahh ok thanks for that missed the docs part
@jpsim

@jpsim how do I verify if its asynchronously

Xcode ships with a tool called Instruments which is quite useful to see what threads are up to.
Or crudely:
print("1")
self.notificationToken = results.addNotificationBlock { _ in
  print("3")
}
print("2")

awesome thanks for the great help 👍


Preserves wheel events over the CodeMirror editor.

This change prevents 'wheel' events from bubbling out of the CodeMirror editor (and being handled by the Flutter web engine, which prevents their default behavior which is... scrolling).
After this change, users should be able to scroll the CodeMirror source with the scroll wheel of their mice as expected.
(Discussed offline with @johnpryan)

[x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.

Contribution guidelines:

See our contributor guide for general expectations for PRs.
Larger or significant changes should be discussed in an issue before creating a PR.
Contributions to our repos should follow the Dart style guide and use dart format.
Most changes should add an entry to the changelog and may need to rev the pubspec package version.
Changes to packages require corresponding tests.

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

whoops, forgot to run dart format

whoops, forgot to run dart format

Welcome to the dark side =]

Welcome to the dark side =]

Haha already a seasoned Sith, dart format is enforced pretty strictly in flutter/packages as well :P


On naming models and files

On discussing #588 one thing that came up was the model name and how it is used. Right now we require a model name, and it is used as the GeoPackage and TOML file names. Additionally we use the convention to use this model name as the directory name, by using model.write(datadir / model.modelname) to specify the directory.
path/to/modelname/
    modelname.gpkg
    modelname.toml
    output/

I'd like to propose to not use the model name in the filenames, and default to filenames like the following:
path/to/model/
    database.gpkg
    ribasim.toml
    results/

The TOML stays the entry point for a model, from here the path to the GeoPacage and other data can be found. This also raises the point if we need to define a model name at all? It's good to also look at this in line with #47.

I never like input and output, as it needs a perspective from which it works. E.g. from the perspective of a shell/GUI around the model, the input (for the model) is actually output (from the shell/GUI) and the output is actually input (to the GUI).
I would prefer:
ribasim_model.gpkg or basemodel.gpkg or even 'to_ribasim.gpkg' over input.gpkg
and ribasim_results or results or 'from_ribasim' over output
the introduction of base fits with the idea that you can specify the diffs to the base in a case definition (#47)

Thanks for the input.
In the proposal above I changed config.toml to ribasim.toml, to signal more clearly this is a Ribasim model, and that this is the entrypoint. output is now results, and input.gpkg became database.gpkg, since it is a database, it contains model data, but is not the entrypoint, and it contains base since Arrow tables can override it. Calling the GeoPackage *model.gpkg might make people think the whole model is there.

Thanks for the input. In the proposal above I changed config.toml to ribasim.toml, to signal more clearly this is a Ribasim model, and that this is the entrypoint. output is now results, and input.gpkg became database.gpkg, since it is a database, it contains model data, but is not the entrypoint, and it contains base since Arrow tables can override it. Calling the GeoPackage *model.gpkg might make people think the whole model is there.

I like these names a lot. I was never too fond of the idea that we simply expect that people are able to guess what a gpkg or toml file might be used for.

Sounds good to me

I'm all for clarification and naming things correctly, but I'm not sure what we're solving with this proposal.
Because of the proposed unique naming, we can't store multiple models (or different configs with the same database.gpkg) in a single folder. This would also limit the possible designs for the proposed cases features (and if we do changes like these, ideally only once instead of twice). Besides, as we now require separate folders for each model, we implicitly still use the modelname.
Renaming from output to results however seems effect free, so 👍🏻

I like these names a lot. I was never too fond of the idea that we simply expect that people are able to guess what a gpkg or toml file might be used for.

I wonder if that's a real use case. If you need to distinguish between them, you are a Ribasim modeller, and you would know. Besides, shapefile (horribly to use it as example 😓) have many files with extensions that I'm not even familiar with and everyone just copies all files that are named the same (the old design), so it keeps working.

Because of the proposed unique naming, we can't store multiple models (or different configs with the same database.gpkg) in a single folder.

We can still do that. The proposed names are just convention, nothing hardcoded. These conventions we set in e.g. our test models. I think single model directory is a good convention since it is less confusing, but we can still support the more advanced use case of multiple models in a directory / cases.

Agreed, it's just a sane default for Ribasim Python, not a hard requirement for Ribasim itself.

On a related note, right now the geopackage key is required, so the path is always explicit. Other paths, such as the results, are optional, with defaults.
Would it make sense to never use default paths? That way it's always explicit which files are related to the model and how. Now, if an external application wants to find the output files from the TOML, it needs the JSON schema of the config to be able to fill in the defaults.

Would it make sense to never use default paths?

Sounds good to me.

Would it make sense to never use default paths? That way it's always explicit which files are related to the model and how. Now, if an external application wants to find the output files from the TOML, it needs the JSON schema of the config to be able to fill in the defaults.

Would that imply that all node keys that could point to an arrow file, should instead point to the geopackage? (which is exactly how the python refactor would expose it)

Hmm that's not what I had in mind. That way the TOML becomes much more verbose, and you have to modify the TOML every time you add a node type.
It's fine if that is how it's implemented, I suppose we could just leave it out of the TOML if it points to the geopackage?

          Why do you still have to specify "results" here? :)

Shouldn't this just be flow.arrow now?
Originally posted by @Hofer-Julian in https://github.com/Deltares/Ribasim/pull/798#discussion_r1397344155
As pointed out above, we should discuss results_dir as well. In Julia the results_dir is actually set to ., and the individual files are like results/file.arrow, which should probably be changed.

Last remaining tasks will be in #799


Color Gradients

Add button atop Clipboard prompting user to select two colors, then apply a gradient between them to all displayed thumbnails.

https://stackoverflow.com/a/29736037
https://bsouthga.dev/posts/color-gradients-with-python

Maybe use the same pop-up menu as StatusBar?


Horizontal Scrollbar and Vertical Scrollbar broken on IE9 with version 3.0.0-rc.16

On this grid you may see the Horizontal and Vertical Scrollbar completely out of place, that just happens when you see it on IE9

Same grid opened on Chome 41

In this grid taken from http://ui-grid.info/docs/#/tutorial/213_auto_resizing you also may see the same issue since I am opening it on IE9

Could someone look at this on the latest unstable.  There have been quite a few changes gone in on scrolling which may resolve this.  Also, the grid menus are now positioned absolute, which should fix the popup menus.

@PaulL1 I just checked one of the tutorial pages with IE9 and see that the scrollbars are in place, however there seems to be an issue with a horizontal scrolling - as if a scrollbar appears even when it doesn't need to be there and when engaged it does move columns but not the header.
  Unusable.  Maybe IE9 fires more scroll events than the other browsers and therefore we need to throttle it.

Note to self: look at using track by $index on col repeater unless there's custom cellTemplates in the column defs, and alter the repeater template if a cellTemplate appears or all disappear from the column defs.

Changing the topic of this bug as the scrollbar positioning in IE9 is fixed, but the horizontal performance issue is still present.


Have Jenkinsfile use vagov swarm node

Ref: department-of-veterans-affairs/vets.gov-team#18570

Error when running in VAEC swarm node:
http://jenkins.vetsgov-internal/job/testing/job/vets-saml-proxy/job/njdister-jenkinsfile-vagov/1/console
Step 8/13 : RUN npm install
 ---> Running in 96a2ce34c84a
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t<EMAIL_ADDRESS>npm ERR!
npm ERR! error: cannot run ssh: No such file or directory
npm ERR! fatal: unable to fork
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-06-14T20_12_09_490Z-debug.log
The command '/bin/sh -c npm install' returned a non-zero code: 1


Fix audio overlay issues

The definition audio should stop playing if:
a. The popup is closed
b. The reader takes a quiz
c. The reader leaves the reading screen using the buttons on the sidebar
d. The reader begins playing the audio for the book
The book audio should stop playing if:
a. The reader cues the audio for an individual word
b. The reader cues audio for a definition. This shouldn't be able to happen, but it currently can. See issue #166
Individual word audio should stop playing if:
a. The reader cues audio for definition
b. The reader starts the audiobook

under what circumstances is The reader leaves the reading screen using the buttons on the sidebar a thing?


Compiler error: argument $color of lightness($color) must be a color

After preloading bourbon.io and my sass source files, the sass.js compiler keeps throwing this error:
argument `$color` of `lightness($color)` must be a color
Backtrace:
	sass/flattish/utils/_functions.scss:6, in function `lightness`
	sass/flattish/utils/_functions.scss:6, in function `set-text-color`
	sass/flattish/components/_buttons.scss:214

However, my stylesheet compiles with no errors in node-sass as well as in this atom package. I'm attempting to load and compile my entire project in sass.js

which versions of sass.js and node-sass are you using here? I've just published 0.9.9 (upgrading to libsass 3.3.5) - does your problem still exist?

I'm using node-sass version 3.4.2, and I've just updated my sass.js/dist to 0.9.9. Unfortunately I'm still getting the same error. I'm starting to think that perhaps I'm not loading sass.js correctly in my project?

I'm using node-sass version 3.4.2, and I've just updated my sass.js/dist to 0.9.9. Unfortunately I'm still getting the same error.

node-sass 3.4.2 is using libsass 3.3.2, sass.js 0.9.9 is using libsass 3.3.5. You could try sassc or one of the other wrappers using a newer version of libsass to verify the issue.
Or go the other way around and try sass.js 0.9.4 (using libsass 3.3.1) or 0.9.5 (using libsass 3.3.3) to verify the problem did not exist in that version. (I don't have a libsass 3.3.2 build, so it'll be an approximation…)
The error you're seeing (argument $coloroflightness($color) must be a color) is raised by libsass, not sass.js, so the issue is definitely with libsass.

I'm starting to think that perhaps I'm not loading sass.js correctly in my project?

If you were not, you'd probably get no output at all.

After preloading bourbon.io and my sass source files,

I don't think bourbon has anything to do with this, as lightness() is a built-in function.

Ah, yeah I just included the bit about bourbon as a bit of context. I just tested using sass.js 0.9.4 and 0.9.5: No errors on 0.9.4, but I get the same error when using 0.9.5. Should I report this issue to the libsass devs?

Ah, yeah I just included the bit about bourbon as a bit of context. I just tested using sass.js 0.9.4 and 0.9.5: No errors on 0.9.4, but I get the same error when using 0.9.5 so I'll downgrade to 0.9.4 for now. Should I report this issue to the libsass devs instead?

Should I report this issue to the libsass devs instead?

yes, please. It seems that libsass 3.3.3 introduced the problem. It would help them if you can provide a minimal test case. I.e. what exactly is the value you're trying to pass to lightness(). Good luck!


spin build: detect if invoking Spin, and if so use current Spin binary

Although these are currently on the decrease with the new Python and JS SDKs, we have some cases in spin build where Spin invokes itself, specifically to run a plugin.
This is grand if Spin is on PATH, but is a problem if Spin is not on PATH, or the Spin on PATH is a different one from the one driving the build: this is biting the folks at Rancher Desktop (#2555).
We should consider detecting if Spin is invoking itself during build, and if so, to substitute in the path to the running Spin binary.
cc @jandubois

this is biting the folks at Rancher Desktop

I want to clarify that this is not a problem for Rancher Desktop; it is just something that I discovered while testing stuff (while working on bundling spin with Rancher Desktop).
I do think the current behaviour can be surprising, and ideally should be changed, but the change is not needed for Rancher Desktop itself. Only the issues listed in the "wish list" in #2555 would be helpful in future updates.

We should consider detecting if Spin is invoking itself during build, and if so, to substitute in the path to the running Spin binary.

I'm not a Rust developer, but it looks like the information is readily available via std::env::current_exe().
I don't know if you also have the situation where spin would invoke itself indirectly (spin invokes a plugin, and the plugin invokes spin again).
In that case it might be useful to extend the plugin "contract" to set an environment variable, e.g. SPIN_EXE to the current_exe() before invoking the plugin, so plugins can use that variable (if set) to call back into the same spin that has been invoking them.
But I kind of hope that this scenario does not even exist. 😄

We do currently set SPIN_BIN_PATH for external commands. It might be nice to support something similar for spin build via shellexpand or envsubst, though perhaps we should go with something a little friendlier in that context: $SPIN?


I'm trying to create my own upload event to upload multiple images to Firebase storage and I would need the dataURL to upload.
Thanks in advance for the response.

Hi, thanks for the response. I wish it was that easy. :)
I can do console.log(file.name')
nd that gives me the name of the file but console.log('dataURL') or any other value always returns an error. I don't have the project on my current computer, but I will add some of the code later today and check the exact error message I get.

My code looks like this:
 fileAdded: function(file) {
      console.log("data url: " + file.dataURL);
    }

Yes I do know how to do that, and I also tried that. Could the problem be that the 'name' attribute is in the 'header' . If you check the first line:
File(2351) {upload: Object, status: "added", previewElement: div.dz-preview.dz-file-preview, previewTemplate: div.dz-preview.dz-file-preview, name: "facebook.png", …}
the name attribute is there, but the 'dataURL' is a level below that?
File(2351) {upload: Object, status: "added", previewElement: div.dz-preview.dz-file-preview, previewTemplate: div.dz-preview.dz-file-preview, name: "facebook.png", …}
accepted:true
dataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAYAAACI7Fo9AAAACXBIWXMAAAsSAAALEgHS3X78AAAI4UlEQVR4Ae3dXYhU5xnA8ePumLqu0Rg/U2u2JiJNbZuSkBRSqiH246IsFRoSelMDhURCL2oLzU0pIeQ6Df2U0ot61RQClUgvhEoRkrSUhsa2pk1QozWmju46WbOzs3VXt5xlNJt1d3Vn1p3zzvP7wYDKgmee499z5sw7cxaMjY1lM9m2c9/HsyzbXn9snfGHgfl0MMuyvfnjwO7e4zP9vdOGXg/86SzLdth1UHh78l6nC37K0Lft3PedLMt+ZN9CcnYd2N37/OSNvir0bTv3/dpRHJK258Du3scmPoGOib8RObSFHfWWr7gSev10XeTQHnbUmx43fupev/D2th0MbWdDfoHu8hH9afsX2tJ42wseeuIlR3Nobxs66gthgPa1XejQ/sZDt6wV2tvWDjsY2p/QIQChQwBChwCEDgEIHQIQOgQgdAhA6BCA0CEAoUMAQocAhA4BCB0CEDoEIHQIQOgQgNAhAKFDAEKHAIQOAQgdAhA6BCB0CEDoEEDJTiZlG9cvzbq7Fjb9DI6+cz4bHBpp238LQqfw8pg39dxSu2Pd0jP33rWq1N1VKq1YtmjNjd7u/oHh8vCFi8OXf3/4aKVUrY2M5r8+dur86lNnql1ZIv9JCJ3CycO+b/PqygN3rx3ctH7ZylKpIw8qf/TM57ZO/s9k3aruGX/+u8+9mh16q/9Gb1ZDhE4h5HFvf3BD35Z7buvs7lq4PMuyyw/mgNBpmSWLF2a9W3oqj355Y8fNixcuy7Jspb1xYwidebd2xeLsyUc2lz+3efXSUqnDUXseCJ15kx/Bv7/js+XP3702f+17wy+m8QGhMy8e+dKdw9/62ifGSqUOgbeA0Lmh8otszz55f9+q5V1ef7eQ0Llh8qP4E1//5CIX2VpP6My5/LX4Mzvv67t70wqBF4TQmVNO1YtJ6...
height:250
lastModified:1534417876469
lastModifiedDate:Thu Aug 16 2018 13:11:16 GMT+0200 (Central European Summer Time) {}
__proto__:Object {constructor: , toString: , toDateString: , …}
name:"facebook.png"
previewElement:div.dz-preview.dz-image-preview {align: "", title: "", lang: "", …}
previewTemplate:div.dz-preview.dz-image-preview {align: "", title: "", lang: "", …}
size:2351
status:"queued"
type:"image/png"
upload:Object {uuid: "6cf72602-b499-453d-9863-8f90a8b69583", progress: 0, total: 2351, …}
webkitRelativePath:""
width:250
__proto__:File {name: <accessor>, lastModified: <accessor>, lastModifiedDate: <accessor>, …}
facebook.png

OK, I finally figured it out. The dataURL isn't part of the file object so I don't think there is a way to access the dataURL? Or maybe it is but I have no idea how to do that.
What I did now is, I used vdropzone-thumbnail in stead of vdropzone-file-added and that does have the dataURL as an attribute so for now I'm going to use that approach. Feel free to correct me if you think there is a better approach or if i'm missing something.

I'm not sure why you can access using the event that you did given that the data is there, but you've got it resolved so perhaps let's leave it at that :)

Hi there! I have the same problem. I need to customise uploading action. but something goes wrong
<vue-dropzone ref="myVueDropzone" id="dropzone" @vdropzone-file-added="saveImages" :options="dropzoneOptions"> ...         dropzoneOptions: {           url: null,           dictDefaultMessage: 'Перетащите сюда фотографии (или нажмите)',           maxFilesize: 10         }, ...       saveImages(data) {         const file = new FormData         file.append('file', data[0])         file.append('id', this.flat.id)         this.$http.post('api/v1/upload', file)       },
@rowanwins

great helper library, many thanks @rowanwins !
tho i'm also having issues intercepting the default url Post behavior and uploading an Audio file to firebase storage. when i console.log the file from the vdropzone-file-added event, it seems that the MP3s I'm uploading do not have this .dataURL field to use in the firebase.storage upload function. any suggestions?
File {upload: {…}, status: "added", previewElement: div.dz-preview.dz-file-preview, previewTemplate: div.dz-preview.dz-file-preview, name: "SimonSays.mp3", …}
accepted: true
lastModified:<PHONE_NUMBER>000
lastModifiedDate: Sat Apr 20 2019 19:03:29 GMT-0700 (Pacific Daylight Time) {}
name: "SimonSays.mp3"
previewElement: div.dz-preview.dz-file-preview.dz-processing.dz-success.dz-complete
previewTemplate: div.dz-preview.dz-file-preview.dz-processing.dz-success.dz-complete
processing: true
size: 2755956
status: "success"
type: "audio/mp3"
upload: {uuid: "1b60974d-13d2-4fce-b8f5-50cd648dbcc3", progress: 100, total: 2756142, bytesSent: 2756142, filename: "SimonSays.mp3", …}
webkitRelativePath: ""
xhr: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 30000, withCredentials: false, upload: XMLHttpRequestUpload, …}
__proto__: File

I am having exactly the same issue. Console.log(file.dataURL) returns "undefined". So how is one expected to get the dataURL to be saved to database?

I am having exactly the same issue. Console.log(file.dataURL) returns "undefined". So how is one expected to get the dataURL to be saved to database?

Add a function which will called on vdropzone-file-added event which will receive vdropzone file as an argument. Then inside that function you can do the next to get dataURL:
const reader = new FileReader()
reader.readAsDataURL(file)

reader.onload = function(event) {
  //   event.target.result - is dataURL data
};

I am having exactly the same issue. Console.log(file.dataURL) returns "undefined". So how is one expected to get the dataURL to be saved to database?

Add a function which will called on vdropzone-file-added event which will receive vdropzone file as an argument. Then inside that function you can do the next to get dataURL:
const reader = new FileReader()
reader.readAsDataURL(file)

reader.onload = function(event) {
  //   event.target.result - is dataURL data
};

I had to wait until the file is read, and pass it along with the dropzone file object for further processing. So I used the following (used onloadend event to trigger the function after file reading is completed)
`const reader = new FileReader();
let receivedFile;
reader.readAsDataURL(file);
reader.onload = function(event) {
// console.log('file reading', event.target.result);
receivedFile = event.target.result; // event.target.result contains base64 encoded image
};
    reader.onloadend = () => this.addedFile(file, receivedFile)`

I am having exactly the same issue. Console.log(file.dataURL) returns "undefined". So how is one expected to get the dataURL to be saved to database?

Add a function which will called on vdropzone-file-added event which will receive vdropzone file as an argument. Then inside that function you can do the next to get dataURL:
const reader = new FileReader()
reader.readAsDataURL(file)

reader.onload = function(event) {
  //   event.target.result - is dataURL data
};

I had to wait until the file is read, and pass it along with the dropzone file object for further processing. So I used the following (used onloadend event to trigger the function after file reading is completed)
addedFile() is my custom method.
let receivedFile;
reader.readAsDataURL(file);
reader.onload = function(event) {
receivedFile = event.target.result; // event.target.result contains base64 encoded image
};
reader.onloadend = () => this.addedFile(file, receivedFile)

I'd like to pass the base64 format in an extra parameter but. When I use the vdropzone-file-added(file) event to get base64 format and set it to the this.base64 it is still empty inside vdropzone-sending(file, xhr, formData).
vsendingFile(file, xhr, formData) {
      console.log('send')
      formData.append('data', this.base64)
    },
    vFileAdded(file) {
      const reader = new FileReader()
      reader.onload = (event) => {
        this.base64 = event.target.result
      };
      reader.readAsDataURL(file)
    }

What am I doing wrong?

vsendingFile(file, xhr, formData) {
      console.log('send')
      formData.append('data', this.base64)
    },
    vFileAdded(file) {
      const reader = new FileReader()
      reader.onload = (event) => {
        this.base64 = event.target.result
      };
      reader.readAsDataURL(file)
    }

What am I doing wrong?

Because the FileReader reading is asynchronous and as soon as you dropped the file into dropzone it'll fire both file-added and sending callbacks while the reading is in progress (Unless you disabled auto queue processing). I'd suggest you read the file inside vsendingFile method using the file object you receive. Even then it's better to wrap the file reading reading into a Promise and use async await so you can block until the file is read, and append to formData then proceed.

Still getting the issue. While using vdropzone-thumbnail the image i get is of very low quality

use getAcceptedFiles()
for example : getAcceptedFiles()[0].dataURL   (note 0 is array key just for sample)
but u cannot use getAcceptedFiles() in multiplefilesadded or fileadded event u will use in thumbnail event or your submit form function for example with Vue js
thumbnail: function (file, dataUrl) {
console.log(this.$refs.myVueDropzone.getAcceptedFiles()[0].dataURL);//your origin image data url
console.log(dataUrl)//thumbnail data url
        //your code

}
or u can use in your submit function
// when click submit button
submitform:function (event) {
console.log(this.$refs.myVueDropzone.getAcceptedFiles()[0].dataURL);//your origin image data url
        //your code
      }

OK, I finally figured it out. The dataURL isn't part of the file object so I don't think there is a way to access the dataURL? Or maybe it is but I have no idea how to do that.
What I did now is, I used vdropzone-thumbnail instead of vdropzone-file-added and that does have the dataURL as an attribute so for now I'm going to use that approach. Feel free to correct me if you think there is a better approach or if i'm missing something.

The reason you are unable to get the dataURL out of vdropzone-file-added is because you are asking for it immediately when the file is added, in fact the dataURL will only be available AFTER the file is uploaded.
So use v-dropzone-success instead.


Positives is no longer supported in yara

Dear Author of Yara,
I recently used VirusTotal hunting rules and find that several fields including "positives" are no longer supported but still shown as examples in malware hunting rules. Would you please specify how to filter files using detection rate in yara? Thanks.

Some variables like "positives", "file_type", "signatures" and so on are supported in VirusTotal's Malware Hunting, but not in VirusTotal's Retrohunt. Also keep in mind that those variables are specific to Malware Hunting, not YARA in general.


avTransport events throw exception when connected via spotify direct

The latest stable sonos update finally supports spotify direct connect. While this works fine it apparently breaks avTransport events. If I play a track via spotify direct events throw following exception
Exception happened during processing of request from ('<IP_ADDRESS>', 35521)

File "/Users/maru/source/python/virtual/kivy/lib/python2.7/site-packages/soco/data_structures.py", line 504, in from_element
raise DIDLMetadataError("Missing restricted attribute")
DIDLMetadataError: Missing restricted attribute
For debugging purposes I put a debug print to see the returned element. Apparently I get THREE
<item xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" id="-1" parentID="-1"><res duration="0:04:10" protocolInfo="http-get:*:audio/x-spotify:*">x-sonos-spotify:spotify%3atrack%3a3zmOCkma2GQdMV4AZYLfZB?sid=9&flags=0&sn=9</res><upnp:albumArtURI>https://i.scdn.co/image/131f47a6be760db779ea6b0789235a224f19e9cb</upnp:albumArtURI><upnp:class>object.item.audioItem.musicTrack</upnp:class><dc:title>Fashionable People</dc:title><dc:creator>Joel Plaskett Emergency</dc:creator><r:albumArtist>Joel Plaskett Emergency</r:albumArtist><upnp:album>Ashtray Rock</upnp:album><r:tiid>591805489</r:tiid></item>
<item xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" id="-1" parentID="-1"><res duration="0:03:45" protocolInfo="http-get:*:audio/x-spotify:*">x-sonos-spotify:spotify%3atrack%3a6kCQBXyvuCz8Vy4XPGIXQX?sid=9&flags=0&sn=9</res><upnp:albumArtURI>https://i.scdn.co/image/2a2a91a5ae23b8b7291c8a92eba5c7759f38798e</upnp:albumArtURI><upnp:class>object.item.audioItem.musicTrack</upnp:class><dc:title>Feeling You Got</dc:title><dc:creator>El Rego</dc:creator><r:albumArtist>El Rego</r:albumArtist><upnp:album>El Rego</upnp:album><r:tiid>2007133592</r:tiid></item>
<item xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" id="-1" parentID="-1" restricted="true"><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">https://sca-eu.ws.sonos.com/RINCON_000E58F9564801400:115/9/sn_9/v2.0/</desc></item>
The first one is the currently playing track, missing the restricted tag. The next item is the next entry in the queue. The last item is missing the title argument and apparently an audioBroadcast.
Is this even in spec?

Can we ignore the restricted tag altogether?  Or if it is missing, just assume True?  It is one line of code to adjust in data_structures.py.

same happens for google play services
Exception happened during processing of request from ('<IP_ADDRESS>', 43951)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 596, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 652, in init
self.handle()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File "/usr/local/lib/python2.7/dist-packages/soco/events.py", line 227, in do_NOTIFY
variables = parse_event_xml(content)
File "/usr/local/lib/python2.7/dist-packages/soco/events.py", line 130, in parse_event_xml
value = from_didl_string(value)[0]
File "/usr/local/lib/python2.7/dist-packages/soco/data_structures.py", line 99, in from_didl_string
items.append(cls.from_element(elt))
File "/usr/local/lib/python2.7/dist-packages/soco/data_structures.py", line 504, in from_element
raise DIDLMetadataError("Missing restricted attribute")
DIDLMetadataError: Missing restricted attribute

looking at what i receive from google play
<?xml version="1.0" encoding="UTF-8"?> <DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/">    <item id="-1" parentID="-1">       <res protocolInfo="http-get:*:audio/mpeg:*" duration="0:03:31">https://mclients.googleapis.com/music/mplay?mjck=Ta7kzjoymusrhv2gqhkzxb5rzwa&pt=a&dv=1&slt=1483642918868&sig=1XQrAIvWaEvHDrdJENg6X2tr0F0</res>       <upnp:albumArtURI>http://lh3.googleusercontent.com/SRJu1KoeoLfexwJenStV8ym6iORiOrIzD3n-4GIZPXVKTCsLbjCAliO5Gvyb8VH6lDY5a-P4_fM</upnp:albumArtURI>       <upnp:class>object.item.audioItem.musicTrack</upnp:class>       <dc:title>Muhammad Ali (Radio Edit)</dc:title>       <dc:creator>Faithless</dc:creator>       <r:albumArtist>Faithless</r:albumArtist>       <upnp:album>Forever Faithless - The Greatest Hits (C)</upnp:album>       <r:tiid>6617792e-1927-4d7e-b522-a7a311fe7503</r:tiid>    </item> </DIDL-Lite>

a fix is available in #466

#466 was superseded by #467 which should fix in the manner proposed here by @nlagaros. Feel free to test the PR branch.

Hello,
Sorry for the really long delay. But I can confirm that the pull request fixes the issue I am seeing with Spotify connect. That said there is still an error afterwards since apparently the title attribute is missing, but the initial reported problem
DIDLMetadataError: Missing restricted attribute
has been fixed.


Only send/return data that changed instead of all data

This is implemented in PR #137 which is now merged into master. Closing.

This is implemented in PR #137 which is now merged into master. Closing.


Inconsistent result of tesseract 3.04 in for loop

Hi,
I'm building a program where I need to run several times Tesseract on the same image. Hence I've noticed strange behavior of the OCR occurring when you run similar code:
for (int i = 0; i < 100; i++) {
	ocr->SetImage((unsigned char *) img.data, img.size().width, img.size().height, img.channels(), img.step1());
	ocr->SetPageSegMode(tesseract::PSM_SINGLE_WORD);
	ocr->Recognize(0);
	tesseract::ResultIterator* ri = ocr->GetIterator();
	if(ri != 0) {
		char *word;
		do {
			word = ri->GetUTF8Text(tesseract::RIL_SYMBOL);
			if(word != 0 ) {
				float conf = ri->Confidence(tesseract::RIL_SYMBOL);
				printf("-> word:%s, confidence: %f\n", word, conf );
			}
			delete[] word;
		} while((ri->Next(tesseract::RIL_SYMBOL)));

		delete ri;
	}
	ocr->Clear();
}

If the input image is  I get the following result:
-> word:P, confidence: 88.156876
-> word:P, confidence: 88.156876
-> word:I, confidence: 99.609375
-> word:I, confidence: 99.609375
-> word:I, confidence: 99.609375
...

Even stranger, this behavior only happens with some images.
I'm using Tesseract 3.04, and I tested this code on both Linux (Linux 4.1.5-1-ARCH x86_64) and OS X (Sierra 10.12.2) and I'm getting the same results.

I don't know if it will help in this case, but try also calling ClearAdaptiveClassifier().

It's actually working now! Interesting...
Thanks you very much @amitdo!


Permissions and warning for custom emoji overriding unicode emoji

Only administrators/owners should be able to override unicode emoji

If an administrator attempts to override a unicode emoji with a custom emoji, they should get a warning. #16937 attempts to fix this, but it is currently not working in production.

We should also shorten the warning message and avoid referring to "unicode" to avoid confusing non-technical users:

Override built-in emoji?
Uploading a custom emoji with the name  will override the built-in  emoji. Continue?

If a non-administrator attempts to override an emoji, show an error in the same style as the error for overriding custom emoji (screenshot below). Text: "Failed: An emoji with this name already exists. Only administrators can override built-in emoji."

Error for overriding custom emoji:

Related issue: #18269
Related CZO thread

@aryanshridhar FYI

Thanks alya!
@zulipbot claim


Add link to https://services.github.com/on-demand to cheatsheet

Overview
TL;DR
There is a link at the bottom of github-cheat-sheet.pdf to training.github.com, but no link to https://services.github.com/on-demand. It would be good to have a link at the bottom of the cheatsheet so people know where to go for more resources.
Extra Detail
I couldn't figure out where the footer comes from (it does not appear in github-cheat-sheet.md), hence this issue rather than a pull request...

Thank you for opening this issue, @izahn. You're 💯 correct! Since the PDF is managed and printed internally at GitHub, and then the source file is updated in this repository, I'm going to move this conversation to a different repository within GitHub (that will be private). Hopefully we will be able to push an update soon. Thank you again! ✨


extended locale variants use _ (underscore) instead of - (dash)

Is it possible to use - (dash) instead of _ (underscore) for extended locale variants? E.g. fr-ca instead of fr_ca.
Or if it's possible to allow the user pick between the two, that would be great.
Thanks!

Thank you for reporting, this has now been fixed. I've submitted the extension for review and it'll be published and updated automatically in a few days.

thanks @athyuttamre !!!


fix(getMutableData): Adding additional debuging to console

:tada: This PR is included in version 2.3.3 :tada:
Your semantic-release bot :package::rocket:


One hundred code coverage for evaluator

Description
One hundred code coverage for evaluator
Type of change

Unit tests (no changes in the code)

Testing steps
Done on CI
Checklist

[ ] make before_commit passes
[ ] updated documentation wherever necessary
[ ] added or modified tests if necessary
[ ] updated schemas and validators in insights-data-schemas in case of input/output change

Codecov Report
Base: 91.30% // Head: 91.45% // Increases project coverage by +0.15% :tada:

Coverage data is based on head (06ebefb) compared to base (bb2b690).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #260      +/-   ##
==========================================
+ Coverage   91.30%   91.45%   +0.15%
==========================================
  Files          38       38
  Lines        1299     1299
==========================================
+ Hits         1186     1188       +2
+ Misses         95       93       -2
  Partials       18       18

Impacted Files
Coverage Δ

evaluator/evaluator.go
100.00% <0.00%> (+2.94%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Accessing referenced embedded documents causes error (missing proxy)

Hi,
I recently upgraded to 3.4.1 (doctrine-odm-bundle, using 1.2 of doctrine-odm) and found that doctrine no longer generates proxies for embedded documents (see #430).
This is a problem in my case:

I use embedded documents to create nodes of a tree-like data structure
other parts of the application reference specific nodes (using referenceOne / referenceMany)
trying to access one of these referenced embedded documents now causes an error because Doctrine tries to load a non-existent proxy file

Any ideas?
Downgrading doctrine-odm to 1.1.5 fixed the issue for the time being.

Without any steps to reproduce or code to look at I'd say that referencing embedded documents was never supported and I have no clue how it could be working in the first place :)

Honestly, I was a bit suprised to see it work. Here is some very simple example code to reproduce the behaviour:
/** @Document */
class Tree
{
    /** @EmbedMany(targetDocument="Node") */
    private $nodes = array();
    // ...
}

/** @EmbeddedDocument */
class Node
{
    /** @Id */
    private $id;
    // ...
}

/** @Document */
class NodeCondition
{
    /** @ReferenceOne(targetDocument="Node") */
    private $node;
    // ...
}

Basically, referencing embedded documents worked fine as long as the embedded document had its own id. This creates a regular DBRef in MongoDB, using the document's class name as the $ref part, even though no collection with that name exists.
I have no clue how this gets resolved but a freshly hydrated instance of NodeCondition would correctly point to the specified instance of Node.
Let me know if there is anything else I can do to help with this issue.

referencing embedded documents worked fine as long as the embedded document had its own id. This creates a regular DBRef in MongoDB, using the document's class name as the $ref part

Can't back up my guess with code as I can't run anything ATM, but here goes my shot: (probably) the Node you were referencing was always already loaded by ODM (i.e. it was present in UnitOfWork). Due to the fact the Node had a mapped identifier, it could be looked up with it even though it was an embedded document. Later, when Proxy was being resolved the first thing that ODM tries is to lookup the document internally in UnitOfWork and, accidentally, there was a hit. I think this is how the Proxy was resolving correctly, if you could check that theory with a not loaded Node (so just by fetching NodeCondition and trying to access $node from there) that would be great.

That makes perfect sense and seems to be correct. In my tests, accessing the referenced Node only worked if the corresponding Tree was already loaded.
Soo ... basically, I was relying on an unintended side effect of the ODM, not an actual feature?

Soo ... basically, I was relying on an unintended side effect of the ODM, not an actual feature?

Sorry to say, but yes :)

Guess I have a lot of technical debt to work through, then. Thanks for your help and input!


How to install new 2.0.1?

Hi, I want install new version, and use dotnet new -i Skoruba.IdentityServer4.Admin.Templates::2.0.1 and get exception from TemplatePackageCoordinator

Few days ago, I installed MAUI for test'n'fun.
For now, my current .Net SDK is 6.0 preview.
Solved example.


Show highway=path at zoom 13

Thinking about an outdoor style, the convention is to show path features at zoom 13.
(We're currently showing them at zoom 14.)

Verified.


Custom model can't get parameters

Python:
import numpy as np
import torch as th
from torch import nn

class NatureCNN(nn.Module):
    def __init__(self, features_dim: int = 512) -> None:
        super().__init__()
        self.cnn = nn.Sequential(
            nn.Conv2d(3, 32, kernel_size=8, stride=4, padding=0),
            nn.ReLU(),
            nn.Conv2d(32, 64, kernel_size=4, stride=2, padding=0),
            nn.ReLU(),
            nn.Conv2d(64, 64, kernel_size=3, stride=1, padding=0),
            nn.ReLU(),
            nn.Flatten(),
        )

        temp = np.zeros((3, 128, 128))

        with th.no_grad():
            n_flatten = self.cnn(th.as_tensor(temp).float()).shape[1]

        self.linear = nn.Sequential(nn.Linear(n_flatten, features_dim), nn.ReLU())

    def forward(self, observations: th.Tensor) -> th.Tensor:
        return self.linear(self.cnn(observations))

cnn = NatureCNN()
print(cnn.parameters())
for param in cnn.parameters():
    print(param.size())

Console:
<generator object Module.parameters at 0x7f5dec222b20>
torch.Size([32, 3, 8, 8])
torch.Size([32])
torch.Size([64, 32, 4, 4])
torch.Size([64])
torch.Size([64, 64, 3, 3])
torch.Size([64])
torch.Size([512, 144])
torch.Size([512])

C#
using TorchSharp.Modules;
using static TorchSharp.torch;

namespace TestApp1;

public class NatureCNN : nn.Module<Tensor, Tensor>
{
    private readonly Sequential cnn;
    private readonly Sequential linear;

    public NatureCNN(int featuresDim = 512)
        : base(nameof(NatureCNN))
    {
        cnn = nn.Sequential(
            nn.Conv2d(3, 32, 8, 4, 0),
            nn.ReLU(),
            nn.Conv2d(32, 64, 4, 2, 0),
            nn.ReLU(),
            nn.Conv2d(64, 64, 3, 1, 0),
            nn.ReLU(),
            nn.Flatten()
            );

        double[,,] temp = new double[3, 128, 128];

        long nFlatten;
        // Compute shape by doing one forward pass
        using (no_grad())
        {
            nFlatten = cnn.forward(as_tensor(temp).@float()).shape[1];
        }
        linear = nn.Sequential(nn.Linear(nFlatten, featuresDim), nn.ReLU());
    }

    public override Tensor forward(Tensor observations)
        => linear.forward(cnn.forward(observations));

    protected override void Dispose(bool disposing)
    {
        if (disposing)
        {
            cnn.Dispose();
            linear.Dispose();
        }
        base.Dispose(disposing);
    }
}

NatureCNN cNN = new NatureCNN();
var a = cNN.parameters().ToList();
// a nothing

You need to call RegisterComponents() at the end of the constructor. See the examples.

Oh~ thank you.

I want to make sure I'm doing it right? About nn.utils.parameters_to_vector and nn.utils.vector_to_parameters
NatureCNN cNN = new NatureCNN();
float[] array = nn.utils.parameters_to_vector(cNN.parameters()).detach().cpu().data<float>().ToArray();
nn.utils.vector_to_parameters(FloatTensor(as_tensor(array)).cpu(), cNN.parameters());

Some context, please -- what are you trying to accomplish?

Serialize and store weights and environment state for reinforcement learning.
https://github.com/DLR-RM/stable-baselines3/blob/92f7a6f23b90a9965c2e9cbe53f775055c5e0dc4/stable_baselines3/common/policies.py#L196
https://github.com/DLR-RM/stable-baselines3/blob/92f7a6f23b90a9965c2e9cbe53f775055c5e0dc4/stable_baselines3/common/policies.py#L169

The most direct way would be to use Module.save/load for that, using the BinaryWriter/Reader overloads.

However, I need to package the state of the environment together, not just
store the weights.
Theoretically, the SB3 approach should also work in TorchSharp?
Niklas Gustafsson @.***> 於 2023年1月18日 週三 下午11:22 寫道：

The most direct way would be to use Module.save/load for that, using the
BinaryWriter/Reader overloads.
—
Reply to this email directly, view it on GitHub
https://github.com/dotnet/TorchSharp/issues/887#issuecomment-1387246434,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHYHHRXFUBA64XE25ADQJ4DWTADDFANCNFSM6AAAAAAT4K7R64
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

Yes, but you can serialize the weights to a MemoryStream using save(), then get the byte array from the stream, and store that with the environment. That should also do fewer copies than the code above.

OK, Thank you


add sys init endpoint

This add the /sys/init endpoint, which is useful to automate production Vault initialization.

Nice work, thanks


Error while building the BIQUAD Tests

/home/ubuntu/cmsis-dsp/CMSIS-DSP/Testing/Include/Tests/BIQUADF64.h:13:22: fatal error: 'BIQUADF64_decl.h' file not found
#include "BIQUADF64_decl.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
Applies to all BIQUAD

the GeneratedInclude was created. Must be a user error in steps while first generating the C includes


Add tarpc::server proc-macro as syntactic sugar for async methods.

The tarpc::server proc-macro can be used to annotate implementations of
services to turn async functions into the proper declarations needed
for tarpc to be able to call them.

@googlebot I signed it!

Thank you very much for this great addition. I'm excited to use it!


ci: Install RACK on the Github Actions runner, test with Pytest

Based on #201, but with tests run natively on the Actions runner. Fixes #204.
There is a speed-up over the strategy in #201 (first build the RACK-box image, then run it, and run tests against it).

The installation step takes ~6:30 in Packer/Docker, and only ~3:40 on the Github Actions runner.
We also don't have to cache, download, or build documentation files, saving a few seconds
This method only waits for the SemTK services to start up once, not twice (saving ~1min or so)

It's possible that we would see more of a speed up if we used Docker's layering system more agressively, but this would come with an additional maintenance burden.
One remaining concern is whether the tests would always report the same results when run against the Github runner as they would when run on the official RACK-Box image. I plan to address this by running scheduled CI jobs that run the same test suite against the RACK-Box container (you can see the seeds of that in the conftest.py file in this PR).

This needs a serious rebase.

Okay, I've rebased it, let's see what shakes loose...

Woah, this is an interesting error:
ERROR: Exception:
Traceback (most recent call last):
  File "/home/runner/.local/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 228, in _main
    status = self.run(options, args)
  File "/home/runner/.local/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 182, in wrapper
    return func(self, options, args)
  File "/home/runner/.local/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 294, in run
    reqs = self.get_requirements(args, options, finder, session)
  File "/home/runner/.local/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 334, in get_requirements
    for parsed_req in parse_requirements(
  File "/home/runner/.local/lib/python3.8/site-packages/pip/_internal/req/req_file.py", line 150, in parse_requirements
    for parsed_line in parser.parse(filename, constraint):
  File "/home/runner/.local/lib/python3.8/site-packages/pip/_internal/req/req_file.py", line 338, in parse
    for line in self._parse_and_recurse(filename, constraint):
  File "/home/runner/.local/lib/python3.8/site-packages/pip/_internal/req/req_file.py", line 343, in _parse_and_recurse
    for line in self._parse_file(filename, constraint):
  File "/home/runner/.local/lib/python3.8/site-packages/pip/_internal/req/req_file.py", line 376, in _parse_file
    _, content = get_file_content(
  File "/home/runner/.local/lib/python3.8/site-packages/pip/_internal/req/req_file.py", line 584, in get_file_content
    content = auto_decode(f.read())
  File "/home/runner/.local/lib/python3.8/site-packages/pip/_internal/utils/encoding.py", line 39, in auto_decode
    return data.decode(
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac in position 11: invalid start byte
Error: Process completed with exit code 2.

From some online searching, this appears to be a bug in pip. However, we're already using the latest version of pip in CI:
Collecting pip
  Downloading pip-20.2.4-py2.py3-none-any.whl (1.5 MB)

https://pypi.org/project/pip/
Still looking for a workaroud...


Update the French documentation

Pull Request Checklist:

[ ] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes #xyz

[x] (If applicable) Documentation has been added / updated (for bug fixes / features).
[ ] (If applicable) Tests have been added.
[ ] CHANGELOG.rst has been updated (with summary of main changes).

[ ] Link to issue (:issue:number) and pull request (:pull:number) has been added.

What kind of change does this PR introduce?

This is a first batch of translations that were missing from the current documentation.
I've changed the Makefile to create files for the Docstrings, but I haven't gone around to translate them yet.
This PR is only for the translations themselves, but I've used a script to automate most of the process that could be implemented in a GitHub workflow eventually. We'll probably also want to share my script somewhere, to help other users translate their PRs.
This partly addresses #63, but not fully.

Does this PR introduce a breaking change?
Other information:

I don't think that we need to translate the ChangeLog?

@RondeauG
/home/docs/checkouts/readthedocs.org/user_builds/xhydro-fr/checkouts/163/docs/notebooks/climate_change.ipynb:941: WARNING: File not found: 'notebooks/local_Frequency_analysis.ipynb'

@Zeitsperre I see that quite a few translations get ignored. Would you know why?


[v2] Update repository descriptions and tags etc

Generic changes (e.g. a common template) and specific changes (plus priority for rolling this out i.e. what repos first)
We have proposed changes to the descriptions, so they should be applied to the GitHub repositories.
Priority driven off traffic and importance assessment
Acceptance criteria

[ ] Descriptions reflect suggestions from the spreadsheet. https://docs.google.com/spreadsheets/d/1qByu4qw56hFUdJIY5IOC7d8TQBud-k31J6720hg1h2w/edit#gid=311025204 (Products sheet)
[ ] We make good use of repository tags to communicate each project.

Tasks

[ ] Apply updates to descriptions as per spreadsheet https://docs.google.com/spreadsheets/d/1qByu4qw56hFUdJIY5IOC7d8TQBud-k31J6720hg1h2w/edit#gid=311025204 (Products sheet)
[ ] Add tags

Standardize (may be Future)
This may be future work esp if we move to more docs setup rather than github README

[ ] Set out common template for README

I've reviewed the spreadsheet with the list of changes and I think it needs quite a bit of work - often there are no suggestions and where there are, the suggestion could be improved I think. I also think we want to focus this on the github repos - so replace fd.io links with the github repo e.g. for specs
https://github.com/frictionlessdata/specs rather than https://frictionlessdata.io/specs
@lwinfree @roll do you guys want to look into this - we can start by updating the spreadsheet and maybe just with a few and then review and do more.

Is this issue only about updating the descriptions in the readmes? If so, I am happy with the content in the spreadsheet. It is my understanding that @roll talked with @Irio about the rest of the readme content (the documentation parts) and that the plan is to not have all the documentation in the readmes.

@lwinfree yes it is only about updating the github descriptions (not even the readmes afaik).

@lwinfree are you and @roll able to look at this in this sprint - it could be nice to have this updated before csvconf - wdyt?

Yeah @rufuspollock we'll look into it!

The descriptions are already updated according to the doc.
Regarding tags - is there any evidence that it helps to find our software? I mean I have nothing against tags but we can add the csv tag (+10 other formats) to fifty of our repositories. It will take time and bloat the org visual representation - just trying to understand the pros vs cons
TBH this issue feels like a very low priority for me as we might rework our repositories structure soon.

Thanks @roll! I agree with you regarding tags. Maybe we revisit tagging in the future after it has been decided if the repos structure is changing?

@lwinfree looks like most stuff is now done. Do you want to update the description with the status of items (if you can do as per https://playbook.datopian.com/issues-tasks/#completing-tasks that really helps me 😉 ...) then we can close i think ...

@rufuspollock hey I've updated. If you want to update in the future, please feel free to do so


The exercise does not work

Hello,
I followed the instructions and got the ADF pipeline to run successfully, but it did not work, because on the databricks side i did not see job cluster created or any activities.
thanks!
Abdel
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a176f27b-f9fc-e0ff-0a48-aa42036051f2
Version Independent ID: d2356b83-3101-4b56-baaf-8bdf31e3bb57
Content: Run a Databricks Notebook with the activity - Azure Data Factory
Content Source: articles/data-factory/transform-data-using-databricks-notebook.md
Service: data-factory
GitHub Login: @nabhishek
Microsoft Alias: abnarain

@ahalabi
Thank you for reaching out. At this time we are reviewing the ask and will provide an update as appropriate

Hi @ahalabi I have followed the exact steps described in the tutorial to make sure if it is working or not and I was able to see the new cluster created and also verified by looking at the job run history.

Hope this helps.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion.
Thanks


[Request] Remove soulbound from New Transmog

Could you do so that soulbound items don't go into the New Transmog group? It's quite annoying having to check each item one by one to figure out which ones I can sell and which I can send to an alt after I have done an old raid.

This will be in the next version.
I'm adding an option for an optional category for unknown but soulbound appearance items that could be saved until patch 11.0 allow you to learn them. Off by default for now.


wallet dekstop windows

Description
Error: [DecimalError] Invalid argument: null
at new i (file:///E:/ANCHOR%20WALLET/resources/app.asar/dist/renderer.main.prod.js:2:3268558)
at i (file:///E:/ANCHOR%20WALLET/resources/app.asar/dist/renderer.main.prod.js:2:3268027)
at Object.t.onChange (file:///E:/ANCHOR%20WALLET/resources/app.asar/dist/renderer.main.prod.js:2:2178362)
at i. (file:///E:/ANCHOR%20WALLET/resources/app.asar/dist/renderer.main.prod.js:2:1390037)
at vi (file:///E:/ANCHOR%20WALLET/resources/app.asar/dist/renderer.main.prod.js:2:4107302)
at su (file:///E:/ANCHOR%20WALLET/resources/app.asar/dist/renderer.main.prod.js:2:4142325)
at wc (file:///E:/ANCHOR%20WALLET/resources/app.asar/dist/renderer.main.prod.js:2:4159801)
at t.unstable_runWithPriority (file:///E:/ANCHOR%20WALLET/resources/app.asar/dist/renderer.main.prod.js:2:4636213)
at Qo (file:///E:/ANCHOR%20WALLET/resources/app.asar/dist/renderer.main.prod.js:2:4103772)
at Ac (file:///E:/ANCHOR%20WALLET/resources/app.asar/dist/renderer.main.prod.js:2:4156467)
Platform
Desktop (Windows)
Steps To Reproduce
No response
Relevant log output
No response
Contact Details
No response
Anything else?

What were you trying to do? What network was this on?
It looks like you've configured a custom network (the ? as the network icon in the upper left), did you misdefine any of the configuration parameters?


Configuration HAS_DTS has no function, preventing compile for vendors without device tree

DTS has been made mandatory, however certain vendors do not want to go down that road.
Where an empty device tree in certain configurations is sufficient, in others, the number of hacks needed to compile is unreasonable.
Expected behavior
It should be possible to use- and unset the existing CONFIG_HAS_DTS to compile zephyr on vendor platforms.
Impact
Currently a local hack is used to compile without DTS. This can quickly be made into a PR if accepted (the "if/endif" added to CMakeLists.txt):
if(CONFIG_HAS_DTS)
  # dev_handles.c is generated from ${ZEPHYR_PREBUILT_EXECUTABLE} by
  # gen_handles.py
  add_custom_command(
    OUTPUT dev_handles.c
    COMMAND
    ${PYTHON_EXECUTABLE}
    ${ZEPHYR_BASE}/scripts/gen_handles.py
    --output-source dev_handles.c
    --kernel $<TARGET_FILE:${ZEPHYR_PREBUILT_EXECUTABLE}>
    --zephyr-base ${ZEPHYR_BASE}
    DEPENDS ${ZEPHYR_PREBUILT_EXECUTABLE}
    )
  set_property(GLOBAL APPEND PROPERTY GENERATED_KERNEL_SOURCE_FILES dev_handles.c)
endif()

Can you post this as a PR.  Thanks.


Optimizing bug fixed scripts

I talked briefly about this on the discord with Pickysaurus and Orvid, but I am willing and able to optimize any scripts that are bug fixed.
Mostly fixing slow functions and possibly caching commonly used properties to speed up scripts. This is very useful for people who are cpu bound.
I've already done the current scripts you've fixed and attached the source if you want to look them over.
I also have a beta on nexus that does these optimizations across most of the problem scripts in the game here and I am very open with merging with the community patch when more is known about the new VM. I wouldn't suggest doing it now as there could be adverse affects that haven't been reported yet.
community patch.zip

@RedxYeti can you please double-check the script optimisations still apply? I know it's taken a while to get to this!

The script fixes have been redone on the official source files now. I'll close this issue, as the originally provided scripts no longer apply. RedxYeti, if you are still willing to assist, you can find us in the Starfield Modding discord server.


nuxt.options.nitro.publicAssets.push leads to 404 errors

Environment
Nuxt project info:                                                                                22:50:35

------------------------------
- Operating System: Windows_NT
- Node Version:     v22.4.1
- Nuxt Version:     3.12.3
- CLI Version:      3.12.0
- Nitro Version:    2.9.7
- Package Manager<EMAIL_ADDRESS>- Builder:          -
- User Config:      ssr, compatibilityDate, app, css, vite, modules, nitro, eslint, runtimeConfig, content, googleFonts, site, sitemap, linkChecker, commitShaFileGenerator, cname, experimental
- Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS>~/modules/commit-sha-file-generator, ~/modules/content-downloader, ~/modules/latex-pdf-generator, ~/modules/nuxt-content-latex<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>- Build Modules:    -
------------------------------

Reproduction
https://github.com/Skyost/MesCoursDeMaths/blob/master/modules/nuxt-content-latex/index.ts#L62
Describe the bug
I'm trying to push dynamically generated resources to Nitro.
nuxt.options.nitro.publicAssets = nuxt.options.nitro.publicAssets || []
nuxt.options.nitro.publicAssets.push({
  baseURL: '/images/',
  dir: dynamicImagesDir
})

The problem is that, as my /images/ directory already exists in my public folder, all my "static" images that are in public/images lead to 404 errors.
Additional context
It wasn't happening with the previous version of Nuxt (3.11.2).
Logs
No response

Would you see if you can reproduce this in pure Nitro (reproduction sandbox), and if so, raise there? 🙏

Just tried to reproduce the error without Nuxt : https://stackblitz.com/edit/github-kmwgkj?file=nitro.config.ts. Is it good @danielroe ?

Ah. That's helpful. I don't think it's a bug though. You just enable fallthrough if you want to opt out of early returning if a given public asset dir doesn't have a file. (It's a performance feature.)

Oh okay, I wasn't aware of this. How can I enable it to see if it works ?

It's possible it's an issue in Nuxt if it was introduced in an update to Nuxt itself.
Sorry to trouble you again, but could you create a minimal Nuxt reproduction? 🙏

@danielroe Sure, here is it : https://stackblitz.com/edit/github-a9mcsr?file=modules%2FdownloadImage.ts,pages%2Findex.vue.

Checking, this seems fine:
  nuxt.options.nitro.publicAssets.push({
    baseURL: '/images/',
    dir: destinationDirectory,
+   fallthrough: true,
  });

That is what I would expect. I'm not sure why this might have been a change in behaviour here but it might have been in a nitropack update.

Thanks a lot !


Improved CMakeLists.txt

Improve CMakeLists.txt to find libraries instead of them being hardcoded.

LGTM 👍🏼


Switch to injected EquationSolvers, add custom mfem::Solver override

It didn't make sense to add a setLinearSolver function to all the physics modules that just acts as a passthrough to the EquationSolver, so I thought this would be a good time to switch to injected EquationSolvers as constructor arguments.
Resolves #186, addresses part of #118
By removing the dependency of the operator solvers on the "main" solver, this also resolves #187 - each of the three solver types (direct, iterative, custom) have their own set of parameters, that is, iterative parameters will no longer be unconditionally required.
This PR also adds default parameter sets for each of the solvers and resolves #31.
Breaking changes and how to fix them

Physics modules should now define a Parameters member type that encapsulates the LinearSolverParams and optionally the NonlinearSolverParams required for the EquationSolver member, in addition to any solver params used in a separate operator class, and a TimeStepMethod for dynamic simulations.  For example, if a physics module supports only quasistatic mode and uses a single nonlinear solver, the type might be defined as std::tuple<LinearSolverParams, NonlinearSolverParams>.
A physics module that uses one linear solver in the time-dependent operator and one linear solver in quasistatic mode might use
std::variant<LinearSolverParams, std::pair<serac::TimestepMethod, LinearSolverParams>>.
This Parameters member should be added as a constructor argument
The solver_ member of the BasePhysics class was removed.  Any physics modules inheriting from this class should add an EquationSolver member if they used solver_
Any set*SolverParams functions can be removed from physics modules.  If associated member variables are not used after construction (e.g. to initialize an operator), they should also be removed.
Before constructing an EquationSolver, the parameters should be augmented by passing them to augmentAMGWithSpace, e.g. const auto& augmented_params = augmentAMGWithSpace(params, fe_space_to_use_with_AMG);
The default solver parameters should be added to the class as static constexpr member variables.

Examples of all the above can be found in the Elasticity, ThermalConduction, and NonlinearSolid modules

From our discussion earlier, we might also want to introduce some sensible defaults for the solver parameters. One approach might be to define physics-specific  something like default EquationSolver const static member variable, e.g.
LinearSolverParams lin_params = PhysicsModule::DefaultLinearSolverParams;
NonlinearSolverParams nonlin_params  = PhysicsModule::DefaultNonlinearSolverParams;
EquationSolver eqn_solver(MPI_COMM_WORLD, lin_params, nonlin_params);
PhysicsModule m(/*prev params */, eqn_solver);

or take the parameters as constructor arguments, and initialize the EquationSolver inside the Physics module:
LinearSolverParams lin_params = PhysicsModule::DefaultLinearSolverParams;
NonlinearSolverParams nonlin_params  = PhysicsModule::DefaultNonlinearSolverParams;
EquationSolver eqn_solver(MPI_COMM_WORLD, lin_params, nonlin_params);
PhysicsModule m(/*prev params */, eqn_solver);

After develop gets merged in, is this ready for review again?

After develop gets merged in, is this ready for review again?

The new stdlib (introduced as part of the inlet PR) is slightly broken.  Instead of trying to work around that directly, I think it makes more sense to switch to input files for the defaults, but reading structs in from inlet is still in development.  Possibly I could just remove all the default solver parameters that were introduced per https://github.com/LLNL/serac/pull/223#issuecomment-700271819

Closing (at least temporarily), extended by #243


Overhaul of the ipf() function

Removed ipf_multi().  ipf() now handles one or multiple "zones"
seamlessly.  Change target marginal inputs to a named list.
Added extra error handling and extra flexibility based on recent
use cases.  Updated ipf() to show these features off.
Addresses #5 and makes #1 irrelevant (I think).
Basically @gregmacfarlane, this is what ipfr should have been when you started with it a few days ago.

I see that Travis isn't building.  Let's take a look Monday.


fix: extend the required terraform version to < 1.7

/run pipeline

/run pipeline

/run pipeline

:tada: This PR is included in version 1.3.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Couchdb-photon is not working

Couchdb-photon  is not working i  am following error.
uname=zzzz; upwd=xxxxx; \

couch="-H Content-Type:application/json -X PUT http://$uname:$upwd@<IP_ADDRESS>:5984";
curl $couch/photon; curl https://raw.githubusercontent.com/ermouth/couch-photon/master/photon.json |
curl $couch/photon/_design/photon -d @- ; curl $couch/photon/_security -d '{}' ;
curl $couch/_node/_local/_config/csp/attachments_enable -d '"false"' ;
curl $couch/_node/_local/_config/chttpd_auth/same_site -d '"lax"' ;
couch=''; uname='zzzz'; upwd='xxxxx'
curl: (3) Port number ended with 'd'
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100 2191k  100 2191k    0     0  31.4M      0 --:--:-- --:--:-- --:--:-- 31.4M
curl: (3) Port number ended with 'd'
curl: (3) Port number ended with 'd'
curl: (3) Port number ended with 'd'
curl: (3) Port number ended with 'd'

Hi,
photon is a third-party project. Please ask here for help.


[Bug] Change the title and body of incoming Push Notifications BEFORE showing the banner

I need to change the title and body and sometimes the icon of the incoming Push Notification and THEN show the banner to the user to click on.
I tried it by using a CustomNotificationBuilder implementing INotificationBuilder and also by using a CustomPushNotificationHandler implementing IPushNotificationHandler but nothing worked as expected. (so maybe i should have marked this as a bug?)
Problem with the CustomNotificationBuilder:
The OnNotificationReceived() gets triggered before the banner is shown - so far so good. But when I alter the content, nothing happens and no banner is shown. When I alter the content and make with it a new notification via NotificationManagerCompat the OnNotificationReceived() is triggered again and we have an infinite loop.
Problem with the CustomPushNotificationHandler:
The OnReceived() Handler is never triggered. The banner is shown upon arrival of the push notification as if there is no handler. By the way, the OnOpened() handler works, but that doesn't help.
Please implement a solution similar to the Plugin.FirebasePushNotification by Rendy del Rosario where you could build a custom handler that did the things mentioned above and it worked.

Ok, interesting. I'm currently bit out of time but I can come back to this when the dust settles.
Can you explain why you want to change the title and the body of the incoming push notification? (I just try to understand that use case).

Thanks for the quick reply.
We are not sending the message itself but a kind of "code" that is replaced inside the app after reception with the actual title and body in the right language (set in the app) etc.
I'm not excluding I'm using the mentioned Interfaces wrong.. I did not find any documentations of how to create a custom handler/custom builder

Ok, I understand. The thing with the missing documentation is, this project was created because there was nothing ready-to-use when we migrated to .NET MAUI.  So, bear with me if not everything is shiny in this library.
So, I take your case as a new use case and try to extend the project accordingly.

We have to be able to receive push notifications which contain codes as title/body which can be replaced somewhere before the message is dispatched to the app.
The updated title/body should be used in all event handlers and also used to display the notification popup.


Improve management of null values

I was a bit lazy at first and ended up adding a few non-null assertions. It'd be great to get rid of them and handle them properly.

After reviewing it, they're actually probably ok. The true fix here would be to add integration tests #4


Add action argument example in readme

Fix https://github.com/concretesolutions/redux-zero/issues/66
I've added a simple example using arguments in action (using incrementBy(amount) example)
I don't think if it's elegant, or if it's the better way, but I think it works to solve #66 problem.
If you have some suggestion, would be great to improve this PR!

Hi @renatorib
Thanks for the PR, but this information is going to live on the full documentation.

No problem :)


Mismatch between thunkAPI.getState() return type and returned object

The type says we're returning the slice's state, but in reality, we're getting the entire app state.

Decide which behavior is correct
Update either the type or the implementation

Oh no, I was just using it incorrectly (createEffectInputs() has to be passed to app state, not the slice state, fixed in 67d2209). Never mind.


Facet: Explore approach to facets using generic on IdSelectionOptions

e.g.
IdSelectionOptions<? extends Facets> and do away with the ApplicationIdSelectionOptions extending IdSelectionOptions.

#3810

Perhaps this could be implemented as a simple (maximal) property on IdSelectionOptions ?
abstract class IdSelectionOptions {
  ....
  public abstract SelectionFilters selectionFilters();
 ....
}

abstract class SelectionFilters {
   @Value.Default
   public abstract Set<ApplicationKind> applicationKinds() { ... }
   ...
}

We lose some safety and have the risk of SelectionFilters becoming bloated.  But it minimizes code paths that need to do instanceOf and casting.


Fixed missing quotation marks in web_stomp when including the stomp.j…

There was a missing quotation marks in site/web-stomp.md when including the stomp.js function

@fiordiconio Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@fiordiconio Thank you for signing the Contributor License Agreement!


Fix lcov summary coverage reporting

Using an lcov display tool, I found it displayed an incorrect coverage % when consuming an lcov file generated by coverage lcov. This is a snippet from the output of coverage lcov:
TN:
SF:project/core/types.py
DA:1,1,Q79QNYSUr7l/H6QbUTIbnQ
DA:2,1,ux0VOXuozR4u9iPOuXevGQ
DA:4,1,1Lx3z5HXY+kl9IQ6OARx8Q
DA:6,1,bqdoEo/iolQ7++YdNQhW9w
DA:8,1,UjDZl/ceZYYsCkFKBHJNug
DA:11,1,wQ3lbrGSqimUtHT/JTAbNw
DA:12,1,FoJS1jyk8SqNwzpvvgQbeQ
DA:13,1,IVBPmf2okaGhnhyTf2Uw5w
DA:15,1,1CevO4qnIVBVuhhXOfIEaw
DA:18,1,jpD1iWjBSxIaXY1rWyoUVw
DA:20,1,KzuZhvPiACkp2UaKWv69fQ
DA:22,1,+Zdhl8oX5ermx6jQRu4LVw
DA:27,1,/6yJxkh7yAHIDBy/cthfrw
DA:28,1,Q+/s5+skYAEH0S7cCAszFA
DA:29,1,M1PxRBbO5YFINBVhUbMlsg
DA:30,1,oAGvqi16mvSqeECZoCrQlA
DA:33,1,XzUkDZyD0yX41pZ/dwgH0Q
DA:34,1,CBRBHDDHPBrv8OxO7t+WCw
DA:35,1,/ZvqiDY7XVzMiSFdpC6ZCg
DA:16,0,rNSBT+zRP2ZHZLQ+Rxql5w
LF:18 <----
LH:19 <----
end_of_record

You see that LH (lines hit) is > LF (lines found), which is incorrect.
Using coverage json or simply coverage report displays the correct coverage info:
...
            "summary": {
                "covered_lines": 17,       <---
                "num_statements": 18,   <---
                "percent_covered": 94.44444444444444,
                "percent_covered_display": "94",
                "missing_lines": 1,
                "excluded_lines": 0
            },
...

Name                                                   Stmts   Miss  Cover   Missing
------------------------------------------------------------------------------------
project/core/types.py                                   18      1    94%   16

Can you provide at least a summary of what is wrong with the lcov summary reporting?
Also, if you want to make styling changes to the code, please discuss them first, and put them in separate commits.

Thank you for the quick reply! I've updated the PR.

I'm still curious why only one test needs fixing, but the fix seems right.

This is now released as part of coverage 7.2.2.


[CMake] Link against host swiftReflection instead of target swiftRefl…

…ection
I'm doing this because I think we should be linking against the swiftReflection library built for the host. The other swift libraries being linked against are all host libraries, so I don't think swiftReflection is a special case.

cc @compnerd @dcci @weliveindetail

Hmmm, I don't remember reverting this, thus I don't remember the reasons and my commit message was rather terse. I suppose it broke something in LLDB. We did change the Reflection build in the meantime to unconditionally build a static host library. The change looks reasonable to me.

@swift-ci please test

It seems like the reverts were to match whatever was on Swift-5.0's branch, which probably meant that we were not building Reflection for the Host there. I don't think that's the case anymore though, so I think this should be okay.


MDSA Retro Follow-on: Standardize architecture diagramming tools and templates

Goal is to standardize our architecture diagramming tools and templates. Need to standardize where we store past documents, also what components and layouts can be reused across organizational diagrams. Aim is to have a uniform look and feel across diagrams produced in the future and also reuse past work as much as possible to reduce time spent.

Closing as complete. We will use LucidChart team folders at this link to store diagrams: https://lucid.app/documents/?utm_medium=email&utm_source=sendgrid&utm_campaign=welcome&utm_email=ent-suite-suite-license-granted&utm_lang=en&utm_prod=suite#/documents?folder_id=363722068


led device cleanup, bug fix and schemas

1. Tell us something about your changes.
sk6812SPI was buggy
cleaned up code - make sk6812spi and ws2812spi more consistent
led device schema updates
2. If this changes affect the .conf file. Please provide the changed section
3. Reference an issue (optional)
Note: For further discussions use our forum: forum.hyperion-project.org

big thx - hyperion is now a bit better as before :-)

you guys are awesome!


Experiment with jgit, and keep it up to date

What feature do you want to see added?
During our last meeting, we discussed the use of jgit. I'd like to propose a few ideas for consideration:

Version Alignment:
What if we use the same version of jgit as the one used in either:

The Jenkins Git plugin
The Git Client Plugin

Version Discovery:
We could utilize updatecli to help us identify the correct version from the Git Client Plugin's pom file.

Dependency Management:
We might consider adding the Git Client Plugin's pom as a Bill of Materials (BOM) for better dependency management.

Expert Input:
@jonesbusy may have valuable insights or alternative approaches to suggest.

Initial Approach:
For now, we could start with a pinned version of jgit. Later, we can explore ways to keep it synchronized with the version used in Git plugins.

What are your thoughts on these suggestions? I'm open to any feedback or alternative ideas.
Upstream changes
No response
Are you interested in contributing this feature?
No response

You might want to take a look at #49.
Please do not merge it, let's discuss it here if you don't mind.
Thanks.

At the end does it really matter to have same version than the git-client plugin ?
We will not have any classpath issue
I would just use latest jgit version and keep it up-to-date with dependabot like any other dependency

I would just use latest jgit version and keep it up-to-date with dependabot like any other dependency

This is what I have been thinking of from the beginning, and I don't understand why do we want to have the same version of jgit as in git-client or git plugin.

I'd like to clarify the rationale behind using the same jgit version as the git-client plugin:

Proven Reliability:

This version is used on thousands of Jenkins controllers.
It undergoes thorough testing by Mark before any upgrades.
This approach ensures we're using a reliable jgit version without known regressions.

Risk Mitigation:

If we were to allow Dependabot to propose the latest available version automatically, we might encounter issues if our tests aren't comprehensive enough.

Balanced Approach:

While I see benefits in aligning with the git-client plugin version, I'm open to alternatives.
We could define the jgit version manually and then use Dependabot to keep it updated.

I'm interested in hearing your thoughts on this approach and any potential drawbacks or benefits you foresee.


⚠ Bofrost.lu has degraded performance

In d716ee1, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1916 ms

Resolved: Bofrost.lu performance has improved in 17e3fad after 6 minutes.


feat(pbts): Adds timestamp to the msgInfo written into the WAL

Closes #2322

PR checklist

[x] Tests written/updated
[ ] Changelog entry added in .changelog (we use unclog to manage our changelog)
[x] Updated relevant documentation (docs/ or spec/) and code comments
[x] Title follows the Conventional Commits spec

Before this PR
Managed to repro tendermint/tendermint#8739 easily with this patch:
diff --git a/internal/consensus/state.go b/internal/consensus/state.go
index f6dce0882..1faec9da4 100644
--- a/internal/consensus/state.go
+++ b/internal/consensus/state.go
@@ -2557,6 +2557,7 @@ func (cs *State) signAddVote(
 		panic(fmt.Errorf("vote extension absence/presence does not match extensions enabled %t!=%t, height %d, type %v",
 			hasExt, extEnabled, vote.Height, vote.Type))
 	}
+	time.Sleep(1 * time.Second)
 	cs.sendInternalMessage(msgInfo{&VoteMessage{vote}, "", time.Time{}})
 	cs.Logger.Debug("signed and pushed vote", "height", cs.Height, "round", cs.Round, "vote", vote)
 }
diff --git a/test/e2e/networks/simple.toml b/test/e2e/networks/simple.toml
index 96b81f79f..9bfebcf34 100644
--- a/test/e2e/networks/simple.toml
+++ b/test/e2e/networks/simple.toml
@@ -1,4 +1,6 @@
+pbts_enable_height = 1
+
 [node.validator01]
+perturb = ["kill"]
+
 [node.validator02]
-[node.validator03]
-[node.validator04]

You need to lauch the e2e steps manually, and launch "perturb" several times until it kills validator01 at the right moment.
These are the logs when reproing:
validator01  | I[2024-02-26|12:10:07.766] Replay: Proposal                             module=consensus height=52 round=0 header=1:1A1DCB7F4EE4 pol=-1 peer=local receive_time="0001-01-01 00:00:00 +0000 UTC"
validator01  | I[2024-02-26|12:10:07.767] received proposal                            module=consensus proposal="Proposal{52/0 (30AD0242ABFD507702B85D8F6894C7CC4806ED4DDCCE8A98AC8A6EC0C03E2E97:1:1A1DCB7F4EE4, -1) 4FA743475BE1 @ 2024-02-26T12:09:30.615924583Z}" proposer=D3B5BFD2AEAC159C79812DD9426DE51A971C7A61
validator01  | I[2024-02-26|12:10:07.767] Replay: BlockPart                            module=consensus height=52 round=0 peer=local
validator01  | I[2024-02-26|12:10:07.767] received complete proposal block             module=consensus height=52 hash=30AD0242ABFD507702B85D8F6894C7CC4806ED4DDCCE8A98AC8A6EC0C03E2E97
validator01  | D[2024-02-26|12:10:07.767] entering prevote step                        module=consensus height=52 round=0 current=52/0/RoundStepPropose
validator01  | D[2024-02-26|12:10:07.767] prevote step: Proposal is not timely; prevoting nil module=consensus height=52 round=0 proposed=2024-02-26T12:09:30.615924583Z received=0001-01-01T00:00:00Z msg_delay=2s precision=500ms
validator01  | E[2024-02-26|12:10:07.768] failed signing vote                          module=consensus height=52 round=0 vote="Vote{1:D3B5BFD2AEAC 52/00/SIGNED_MSG_TYPE_PREVOTE(Prevote)<PHONE_NUMBER>00<PHONE_NUMBER>00<PHONE_NUMBER>00 @ 2024-02-26T12:10:07.768676795Z}" err="error signing vote: conflicting data"

After this PR
Coming up

@cason and @sergio-mena
Merging since all comments seem to have been addressed.


Update index.html

CSSgram Favicon and closed all the list tags 👍

I think this is a dupe of #183


Hover effect to footer section

Footer section can be made more attractive by adding some great hovering effects ,
please assigned this issue to me under GSSOC'23 .

Yeah, we can add some good hover effects,
assigning this issue to you

Please assign me this task under GSSOC 23

We are closing this issue because it has been inactive for a long time.


How to use StreamingFilesDataset

System information

TensorFlow version (you are using):
2.6
Python version (you are using):
3.7

Describe the feature and the current behavior/state.
I open a colab tpu runtime and try to run this notebook
I use your sample code of tpu setting and follow the instructions of
StreamingFilesDataset in tensorflow.python.tpu.datasets.py
and create similar function get_dataset2() like original one.
But it didn't work. My adapted notebook
It raised errors like

InvalidArgumentError: cycle_length must be > 0 [Op:LegacyParallelInterleaveDatasetV2]
or
source_iterator has no attribute string_handle()

You can quickly find my adaptions about tpu setting and get_dataset2()
from table.
I have checked some issue reports and know that it probably is a conflict of version. But I downgrade the tensorflow version to 1.x, it still didn't work.
Would you help me find the solution of using StreamingFilesDataset().
Thanks a lot!

Thanks a lot for reply.
Although I studied for hours for the references, I think that I am not very familiar with TF 1.x backend. I will try my best to understand it.


We need more validation for step

https://github.com/robfig/cron/blob/bc59245fe10efaed9d51b56900192527ed733435/parser.go#L313
There is not enough validation for step
So when we use cron expression like "0/9999 * * * * ?", it still works, but it seems like out of expectation, and more strange
Further more, what do you expect for  "0/9999 0/666 * * * ?"

Maybe we need to use the bounds to limit range as well as start and end

// cron/parser.go

// Validate step ranges for each cron field
func validateStep(step int, min int, max int) error {
    if step == 0 {
        return fmt.Errorf("step cannot be 0")
    }
    if step < min || step > max {
        return fmt.Errorf("step %d is out of bounds, must be between %d and %d", step, min, max)
    }
    return nil
}

// The cron expression parsing logic
func parseCronExpression(expression string) error {
    // Example for validating minute field with step values
    minuteField := "0/9999"  // Example invalid value
    step := parseStep(minuteField)  // hypothetical function to parse step value from cron expression

    // Step validation for minute field (0 to 59)
    if err := validateStep(step, 0, 59); err != nil {
        return err
    }

    // Example for validating hour field with step values
    hourField := "0/666"  // Example invalid value
    step = parseStep(hourField)  // hypothetical function to parse step value from cron expression

    // Step validation for hour field (0 to 23)
    if err := validateStep(step, 0, 23); err != nil {
        return err
    }

    // Similarly for other fields (day of month, month, day of week), define their valid ranges:
    // - Day of month: 1 to 31
    // - Month: 1 to 12
    // - Day of week: 0 to 6 (Sunday to Saturday)

    return nil
}


Fix features on wasm-bindgen-msrv crate

Implements the change requested here. I made this its own PR, because this is a fix for the misconfigured features of the msrv crate and has nothing to do with marker traits.

Closing in favor of https://github.com/rustwasm/wasm-bindgen/pull/4278.


chore: reports-check 0.1.1

PR-Codex overview
This PR adds a GitHub Actions workflow reports-check that runs on opened issues to check reports using tracehubpm/reports-check-action.
Detailed summary

Added GitHub Actions workflow reports-check.yml
Triggered on opened issues
Utilizes<EMAIL_ADDRESS>Requires GITHUB_TOKEN and DEEPINFRA_TOKEN secrets

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@h1alexbel thank you for your Pull Request. I'll assign someone to review it soon.
If this PR solves a todo from the code, please don't forget to remove it.

@rultor merge

@l3r8yJ I couldn't find any assignee for this task. This is either because there are no contributors with role REV available or because the project does not have enough funds.
Please, make sure there is at least one available contributor with the required role and the project can afford to pay them.

@rultor merge

@l3r8yj OK, I'll try to merge now. You can check the progress of the merge here


Installation and Testing of Management Console on Barebones Amazon Venue

We'll clear all SSM parameters and policies in Unity-CM, then run our "run.sh" script to check for a smooth install and ensure all issues are fixed, confirming the script runs without failures. This ensures that the script can be successfully run by others without relying on pre-set SSM parameters.
Additionally, we'll document the SSM parameters that require a secure string

Slack Integration URL
Github token
github username
github email

we tested and added necessary scripts, etc.. This can be closed.


Problem with "mono SteamBot.exe"

Hi ! I have this problem.I don't know where is error.How to fix this error ? Thank you for help ....
@ubuntu:~# mono SteamBot.exe
Runtime critical type System.RuntimeType not found
Native stacktrace:
    mono() [0x4affb8]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x10330) [0x7fec3b56e330]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7fec3afb9c37]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7fec3afbd028]
    mono() [0x654d4f]
    mono() [0x654b3c]
    mono() [0x654bf2]
    mono() [0x5346cf]
    mono() [0x5b7c89]
    mono() [0x4273c6]
    mono(mono_main+0x393) [0x4810d3]
    mono() [0x420735]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fec3afa4f45]
    mono() [0x420ac7]

Debug info from gdb:
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
Aborted (core dumped)

#427 #527

Hey there ;)
... yea, closed, but what was the trick to make it work ?
Like, the solution.
Cheers