Grouping plugins for same filetypes

What is the best way to group plugins for same filetype?
I wanted to use this:
if index(['pm','perl','xs'], &filetype) > -1
  Plug 'vim-perl/vim-perl'
  Plug 'vim-scripts/perl-support.vim'
endif

But it does not work. I want to avoid use multiply keyword for:
  Plug 'vim-perl/vim-perl', {'for',['perl','xs','pm']}
  Plug 'vim-scripts/perl-support.vim', {'for',['perl','xs','pm']}

Of course xs and pm files have same filetype: perl. This is only example.
Best regards Piotr

What are you trying to achieve? Using for option for filetype-specific plugins is mostly unnecessary and discouraged. They are inherently designed to be loaded on demand, and an additional lazy loading mechanism from vim-plug is completely unnecessary for them.
See https://github.com/junegunn/vim-plug/wiki/faq#when-should-i-use-on-or-for-option

Sometimes I don't need additional menu in Gvim. Sometimes there is a conflict in mapping. So using for option is useful.

Since Plug is the central piece of downloading plugins and placing them to be autoloaded, I think it is the perfect place to organize on demand rules. Can't always rely on plugin authors to implement specifically for certain file types.
For me it's not a matter of optimization, its a matter of conflicting plugins, file types, settings and other things that I would like to avoid.

Related: I've tried and failed to split Plug calls into relevant ftplugins, problem being that plug#end() call would have to come after all the ftplugins are loaded.
Similarly, it would also be nice to group the non-filetype-specific Plug calls into files under plugin/ without explicitely sourcing them, relying on Vim runtime load order instead, but this has similar problems.
Loading plugs incrementally as per https://github.com/junegunn/vim-plug/issues/615 would likely solve this.


Use Gles3 backend when targeting WasmEmscripten

Fixes https://github.com/floooh/sokol-rust/issues/10
This fixes the build error and generates correct-looking files, but I haven't actually tested them.
Tested and working.

Perfect, many thanks!


polyglot: init at 0.5.18

Motivation for this change
polyglot is an 'industry'-leading source code line counting tool written in ATS.
Notes

Once #44887 is done and merged, we will want to switch to building with ats-pkg instead of downloading binaries.
It's possible this doesn't work for all architectures that have prebuilt binaries available yet, since I wasn't sure how to check what the possible system strings on other platforms are and if there need to be any other adaptations beyond those already existent (which are taken from the install script).

Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

Any issue with merging this?

I understand I can use haskellPackages.ats-pkg to build this from source? In that case I'd probably rather change this to do that.

Yes, though I just had the following issue:
https://github.com/vmchale/atspkg/issues/11
On Sat, Mar 23, 2019, 6:41 AM hyperfekt<EMAIL_ADDRESS>wrote:

I understand I can use haskellPackages.ats-pkg to build this from source?
In that case I'd probably rather change this to do that.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/pull/51985#issuecomment-475859116, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA37jo9cXoebRvN_9q8mN-NlrStVfnxfks5vZgS_gaJpZM4ZS2o8
.


A clic on a form field induces a zoom in, but submitting it don't induce a zoom out - Smartphones and tablets

When clicking on a form field, smartphones and tables zoom in for a better usability, which is good. But when the user clicks on submit, it doesn't zoom out, which is not so usable as the user needs to zoom out himself in order to see the content of the page which is not displayed

This is a default feature of Safari on iOS: if an input has a font-size set to a smaller size than 16px, it will trigger this zoom. A workaround would be to increase the font-size for the form elements on mobile.

SWG-81

Fehler nicht nnachvollziehbar


Retrieve licence from Podfile

Brainstorm for development of tool to automatically retrieve licence from the Podfile

Perhaps we could do this by pulling from the Pod Acknowledgements file (plist or markdown) during a Build Script Phase?

Yes that's probably the better way :-)
I'll will try it if I have some free time !


Fix core-decorators link

oh my, thanks for pointing this one out. aarrrgh

@jayphelps sorry, messed up, had to force push to master...

@jayphelps please consider following the contribution guideline which states that one should always PR to dev-next instead of master... :grinning:


Refactoring. Increase immutability. Replace deprecated method call

Type of change

[ ] New feature
[ ] Bug fix
[ ] Security patch
[ ] Documentation update
[X] Refactoring

Description
Refactoring:

Increase usage of val
Replace deprecated method call Char.toInt() (deprecated since Kotlin 1.5)
Make helper functions private
Remove outdated comments @JvmStatic
Minor refactoring

Does not change behaviour.
Increases code quality and readability (hopefully)

Motivation

Because you love clean code 😃
Checklist

[X] I have read the CONTRIBUTING document.
[X] I have read and accepted the Code of conduct
[X] Tests passes.
[] Style lints passes.
[] Documentation of new public methods exists.

@ullenius looks good! Kotlin does now follow the latest specification as all other packages does.
Feel free to work on a pull request that follows version 3, we would appreciate it since none really knows or works with Kotlin.


Putty Private key link broken on wiki

Putty Private key link broken on wiki
https://github.com/commaai/openpilot/blob/master/tools/ssh/key/id_rsa.ppk

As of 0.8.3, that key is only used for setup and references to it should be removed from the wiki.


inverse color

Description of the new feature / enhancement
support inverse colors for specific application.
Scenario when this would be used?
such as evernote doesn't support dark mode,
Now, windows only supports global inverse: ctrl+win+c, but can't only inverse one app.
Supporting information
No response

/dup #13005


10.1126/sciadv.aba1983

Adams et al.
Single-cell RNA-seq reveals ectopic and aberrant lung-resident cell populations in idiopathic pulmonary fibrosis
https://www.science.org/doi/10.1126/sciadv.aba1983
Data:
https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE136831

I would like to work on this dataset during the workshop. Thanks!


[1.0.0] Auth library integration

Going to pick an authentication library into CI Bootstrap 3.

Community Auth
Ion Auth
Sentinel - since Sentry is depreciated

Quite likely I will prefer Community Auth first, since I have tried Ion Auth before but its workflow is a little bit different from my projects (and some reasons that I forgot).
Sentinel / Sentry integration will include lots of composer packages due to its dependencies, which is less preferable because I want to keep the project as lightweight as it can. Another reason is for some hosted servers, the developers may not have root access so cannot use composer via SSH.

At last I chose Ion Auth which is easiest to integrate with CI Bootstrap, and with comprehensive functions for complete workflow.


Godot 4 breaks animated 3d models

Godot version
4.0.2
System information
Linux Manjaro, Intel Kaby Lake
Issue description
Just open the attached project. It's a free CC-licensed minimal project that was advertised as, and indeed, working in 3.x.
For comparison's sake, a glb reexport of the character is also included. This one at least animates properly, but I haven't been able to get bone attachments and physical bones to work.
Steps to reproduce
See above
Minimal reproduction project
modeltest.zip

Tried nuking all the changes in Git (which brings the project in discussion back to 3.x), and re-upgrading. Same effect, the model is broken in exactly the same way.

See detailed discussion on glb and lods on animated meshes. https://github.com/godotengine/godot/issues/84479

Note that GLB works (more or less, requires redoing all the attachments), it's the ESCN that doesn't.

This is due to Godot 4.x not having a compatibility layer for loading the old 3.x Skeleton and Animation resources (see #53689 for details):

Skeletons had a Transform pose property in 3.x, which was broken out to Vector3 pose_position; Quaternion pose_rotation; Vector3 pose_scalein 4.x
Animations used to have a transform track type, which was similarly broken out into position_3d, rotation_3d, and scale types

It wouldn't be too much effort to implement a compatibility layer here, and we already have a compatibility layer for the old 3.x Mesh format.

Skeleton pose conversion is easy enough to handle in _set():

Animations are going to be tricky, though; Animation tracks are stored ini style:

This means that, upon load, each of those indexed properties gets set, one at a time, which complicates things. We need to split the transformation track up into position, rotation, and scale tracks, and we can't arbitrarily add tracks in the middle of a load, since the index of the tracks will change. I'm not really sure how to handle this.

I have a WIP Solution up here: https://github.com/nikitalita/godot/tree/convert-escn
This converts all the animations, skeletons, and shaders into the new format.
Unfortunately, while all the resources in the escn load without errors now, the result comes out looking like this:

Trying to play any of the animations makes it look like this:

Banged my head against the wall for several hours trying to figure out why; no dice.
@fire , could you kindly take a look at this on my branch? I'm testing this with the repro project in the OP.

Here's some notes from https://chat.godotengine.org about godot 3 to godot 4.
October 12, 2023
[aaronfranke]
aaronfranke7:17 PM

In Godot's Skeleton3D node, the value passed into set_bone_pose_rotation that results in an unposed bone is the bone's rest rotation. This goes contrary to my expectations, because I would expect to be able to pass a value of no rotation into set_bone_pose_rotation in order to have the bone be in the rest position, such that the bone's actual rotation is rest * pose. This is how it works in Blender. Same with set_bone_pose_position and set_bone_pose_scale. Is this a known issue? Is there a plan to change this behavior in the next compatibility breakage?

[Lyuma]
Lyuma11:06 PM
aaronfranke you have pointed out the one key difference between Godot 3 and Godot 4 😉

[Lyuma]
Lyuma11:14 PM
I can give a lot of reasons why the new Godot 4 behavior is more desirable:

First, while the user experience of being able to pass Quaternion(0,0,0,1) to reset the rotation to rest was really pleasant., it created a lot of extra math internally to the skeleton: every time a pose was evaluated, it was required to also multiply the rest pose matrices at each step, so this added more code and more CPU overhead.

Not all meshes have a rest pose. In particular, animation skeletons imported from Maya for example might not have a defined rest pose, or the rest poses of each bone might be identity. This disparity might be confusing to users. This point is less of an issue due to point (3) but I still agree with the principle that the rest pose should be merely advisory, not required for the math to work.

The import retargeter has created a standard skeleton with a frame of reference for all human bones which can be relied on. If I set %GeneralSkeleton:LeftUpperArm rotation to Quaternion(0.707, 0, 0.707, 0), it will behave the same on every mesh imported with the retargeter. Multiplying in the rest rotation would not assist at all in the understanding of the meaning of a particular pose.

Godot 4 separated the bone pose into separate position, rotation and scale components. While position (and possibly scale) of individual bones may differ between humanoid armatures, the rotations are standardized, and the hips position values are actually also standardized when the skeleton scale is applied. So there is not the same danger that existed in Godot 3 of accidentally overwriting the rest position when assigning the bone pose.

Anyway that's my mini litany. I could go on, but I think the decision in Godot 4 to de-incorporate rest from bone pose was very sound and has made skeletons far easier to work with.```

@Zireael07 I now have it working; Your escn model imports fine and the animations play correctly now. Can you please test this to make sure that it works? https://github.com/nikitalita/godot/tree/convert-escn-2 (artifacts will show up here: https://github.com/nikitalita/godot/actions/runs/7304153146)

@nikitalita did you make a pr for this?

I haven't made a PR yet because this involved changes to resource loading that probably won't be upstreamed in its current state. I had to add the ability to add special handlers for specific resource types to the loader, such that it forces the resource_format_text loader to load that resource as a MissingResource and then call the handler to instantiate the resource and set the properties.

probably not, it doesn't fix the animations; I have to get #87106 into shape for merging for closing this

@nikitalita I somehow missed that comment that @ - me, are the artifacts still available?

https://github.com/nikitalita/godot/actions/runs/7501520724


Create documentation guides.

Create guides for various Flask patterns, including the following.

Creating a simple application with various folder structures.
Managing and applying database migrations with alembic.
Creating commands with flask and click.

Divide the documentation into autogenerated API documentation and the development guides (for both FSW and Flask generally).


cannot find package "golang.org/x/sys/unix"

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.8.3 darwin/amd64
Does this issue reproduce with the latest release?
I don't know
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/user.name/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/xr/3w328r551jx4qbl761v5w3bsq0ghc9/T/go-build950446758=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

What did you do?
I'm trying to use go to prompt password input
What did you expect to see?
get prompt password input
What did you see instead?
../golang.org/x/crypto/ssh/terminal/util.go:23:2: cannot find package "golang.org/x/sys/unix" in any of:
        /usr/local/go/src/golang.org/x/sys/unix (from $GOROOT)
        /Users/wei.huang/go/src/golang.org/x/sys/unix (from $GOPATH)

When I run
go get -u golang.org/x/sys/unix
I get this error:
go get -u golang.org/x/sys/unix
# cd /Users/wei.huang/go/src/golang.org/x/sys; git pull --ff-only
error: Your local changes to the following files would be overwritten by merge:
        windows/syscall_windows.go
        windows/zsyscall_windows.go
Please commit your changes or stash them before you merge.

#WAI

@cznic Thank you fix! :)

The same error happened


CDK Extensibility Improvments

Description
This change makes the existing CDK more extensible into other CDK projects by streamlining package imports, moving cdk dependencies to peerDependencies. This change also makes it so build artifacts to be published in library are exported in dist directory.
This is a requirement to expose the cdk code as a library to other cdk apps.

Category: Enhancement
Why these changes are required? Extensibility of the deployment artifacts.
What is the old behavior before changes and new behavior after changes? CDK would be difficult to integrate into other packages requiring overrides or changes in cdk version.

Issues Resolved
MIGRATIONS-1520
Is this a backport? If so, please add backport PR # and/or commits #
No
Testing
[Please provide details of testing done: unit testing, integration testing and manual testing]
Check List

[x] New functionality includes testing

[x] All tests pass, including unit test, integration test and doctest

[x] New functionality has been documented
[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Apologies was hoping my previous merge wouldn't cause conflicts


pattern programs

1.Right Triangle Star Pattern
2.Hollow Right Triangle Star Pattern
3.Inverted Mirrored Right Triangle Star Pattern
4.Hollow Inverted Mirrored Right Triangle Star Pattern

star the repo if u think i helped u somehow for hacktoberfest :) thanks
@abhishekb13402

Thank you sir
On Wed, Oct 19, 2022 at 10:39 PM Dixit Tilaji @.***>
wrote:

Merged #133 https://github.com/dixitt5/CP-Solutions/pull/133 into main.
—
Reply to this email directly, view it on GitHub
https://github.com/dixitt5/CP-Solutions/pull/133#event-7623772052, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ARGQDU2TSH5IX6UIPB3C4R3WEATNBANCNFSM6AAAAAARIZELWA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Cargo design rework

Description

Problems:

Cargo can pretty much indefinitely supply itself as long as it has a way to break open crates
Cargo has zero incentive to ever interact with the rest of the crew
Cargo has essentially zero gameplay

Mirror brand short term plan:

[ ] Make cargo unable to order department-specific crates without access, and remove access locks from ordered crates (probably unnecessary). If cargo wants to order engi equipment/guns/whatever they need help from someone with access, or someone with access needs to request it at the console in the cargo lobby
[ ] Implement cargo selling using the new pricing system. Make goodies from other departments (high-end and potent produce, rare gases, medicine) worth a lot, so that cargo is incentivized to seek out and form mutual relationships with other departments
[ ] Vastly increase the cost of most recquisitions orders to incentivize construction or salvaging over direct purchases, and to make  cargo points valuable

Mirror brand Five Year Plan:

[ ] Move salvager duty from cargo to RND: better facilitates interaction with xenoarch, gives RND more of a purpose, forces salvagers (big potential money influx) away from the convenience of cargo
[ ] Implement 'Station as a logistics hub' from Peptide's doc https://hackmd.io/@Peptide90/Cargo. Little neat gameplay for them to do and earn money passively
[ ] Port mail delivery from Nyanotrasen and originally from /tg/. Forces player interaction in a fun way
[ ] Remove the notion of 'cargo points' and just integrate it directly with credits/money
[ ] Implement a galactic market system alongside the normal NT recquisitions, for random items that can be ordered. This is to serve as an influx for various departmental goodies that would otherwise be limited to only one source (like salvage) including xenoarch artifacts, materials like diamond or uranium, and rare circuit boards.

Short term solution: Trying to break a secure crate will destroy the contents. Or explode. Exploding is funnier.

with the secfab being a thing, why not just keep it as it is but all gun crates come with no ammo, only empty mags and the guns. Secfab just never gets used at all i feel like

Okay, I need to comment here, because I think this is an idea that is thoroughly in the wrong direction.
If cargo is a non-job right now, how is a system where they effectively need direct approval from a head to do anything going to make it more of a job? At that point, you might as well replace cargo with a fully automated system that doesn't have anyone working in it, because if cargo can't do anything by themselves no one is going to have a reason to play cargo.
I also don't understand where the incentive is for cargo to sell anything if they can't do anything by themselves. No one is going to want to play a job that consists of sitting outside science and begging them for things to sell so that the heads can continue to order things.
Another thing I don't quite understand is what moving salvage to R&D would accomplish. Salvage already spends their entire round building shuttles instead of doing anything useful, and you want to put them with a department that would further enable them to do that?
Honestly, if anything, this feels like the old /tg/ system where R&D was completely dependent on mining to do anything - you know, that system absolutely no one liked - except inverted so that Cargo is now in that position.

It won't be heads only, it'll be restricted across the different access levels.
Cargo won't need to beg anyone. Other departments are going to have things they want from cargo. I think the intent of moving salvage is to prevent cargo from being able to generate their own income. Im not sure if thats a good solution either, but it might be easier to balance salvage if it's attached to R&D.

Mfw non of the comments are actually about the issue that was posted.
This isn't a thread about nerfing cargo it's about giving them stuff to do. Go make your own discussions on balance.

Make cargo unable to order department-specific crates without access, and remove access locks from ordered crates.

Not a fan of this one, dept crates should always be locked IMO.
The other bits are good ideas though.

yeah I guess they can stay locked anyway it doesn't make much of a difference

Does porting mail from Nyano also include porting the actual Mailman role? Or is that just under the purview of cargo techs?

i think I'd keep it as a cargo techie thing. they don't have much to do on their own

Bumping this if someone wanna add a comment about cargo stuff. I know bounties are in.

convert this to a doc


Makes Submission Checks Less Manual

This issue covers designing a method to automatically notify COVID-Hub administrators when teams have produced a submission.

Forecast submission PRs do not need much manual intervention if things are working as expected. The notification can be restricted to first time contributors (not sure if that's possible) or for PRs labeled model-metadata (probably easy to implement)

Re: https://github.com/CDCgov/covid19-forecast-hub/issues/185#issuecomment-2552113399
Thank you for this clarification.


Analog for RxJS do?

Is there a Kefir analog to RxJS do? I'm trying to invoke an arbitrary action after returning from .map
Edit: Here is the docs for do
https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/do.md
Thanks

Hey! obs.map((x) => {action(); return x}) should do the trick.

Thanks @rpominov. This might be a dumb question, but is there a way to do an arbitrary action after a value is returned from a stream if you don't have API access to the observer?
For example, I'm using a third-party library with a method like this
row.addButton(someStream)
The row is the observer of the stream, but it doesn't have any events such as afterButtonAdded

Sorry, I don't understand. Could you perhaps show how you would it using Rx, or elaborate more?

This code:
const source = Rx.Observable.of(1,2,3,4,5);
//transparently log values from source with 'do'
const example = source
  .do(val => console.log(`BEFORE MAP: ${val}`))
  .map(val => val + 10)
  .do(val => console.log(`AFTER MAP: ${val}`));
//'do' does not transform values
//output: 11...12...13...14...15
const subscribe = example.subscribe(val => console.log(val));

taken from this page: https://www.learnrxjs.io/operators/utility/do.html
Is it possible to accomplish the last do in the chain that prints AFTER MAP...?

Sure, instead the first do you could write map(val => {console.log(...); return val}) and so on. The key is that we return the same value from the
fuction after we perform a side effect, so it works like do.
вт, 2 мая 2017 г. в 19:41, John Wheeler<EMAIL_ADDRESS>
This code:
const source = Rx.Observable.of(1,2,3,4,5);
//transparently log values from source with 'do'
const example = source
.do(val => console.log(BEFORE MAP: ${val}))
.map(val => val + 10)
.do(val => console.log(AFTER MAP: ${val}));
//'do' does not transform values
//output: 11...12...13...14...15
const subscribe = example.subscribe(val => console.log(val));
taken from this page: https://www.learnrxjs.io/operators/utility/do.html
Is it possible to accomplish the last do in the chain that prints AFTER
MAP...?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rpominov/kefir/issues/241#issuecomment-298691105, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAyZZqqlPRERW_1AJEGekwyx8XMlwvVJks5r11zVgaJpZM4NNka_
.

Sorry, I don't mean to be a PITA, but I'm interested in the last do in the example, not the first. Once .map returns a value, nothing can be done afterwards of course (e.g. can't do this...)
map(val => { return val; console.log(...) })

Yet the RxJS example effectively does that. I'm wondering if there is a way to accomplish the same with Kefir.

@johnwheeler I've done similar things using flatMap and creating a stream to do this:
someObservable$.flatMap(val => Kefir.stream(emitter => {
  emitter.value(val);
  performSideEffect();
  emitter.end();
});

I like it because the flatMap & use of the stream also makes it clearer that a side effect is happening here.

Are you looking for onValue?

I still don't understand what the issue is. Here is the full example:
const source = Kefir.sequentially(0, [1, 2, 3]);;
//transparently log values from source with 'do'
const example = source
  .map(val => {console.log(`BEFORE MAP: ${val}`); return val})
  .map(val => val + 10)
  .map(val => {console.log(`AFTER MAP: ${val}`); return val});
//'do' does not transform values
//output: 11...12...13...14...15
const subscribe = example.observe(val => console.log(val));


[stable/postgresql] Revert #21236

Revert https://github.com/helm/charts/pull/21236 because it produces the following error in Helm 2:
Error: parse error in "kubeapps/charts/postgresql/templates/_helpers.tpl": template: kubeapps/charts/postgresql/templates/_helpers.tpl:43: illegal number syntax: "-"

We will test it more carefully after the weekend.

/ok-to-test
/lgtm


predict(python) function use too much cpu

When I load my model to do predict work, it seems the predict function default use too much resources of the server. Is there a way to set the usage of cpu?

You can set it with num_threads param in predict method.
Refer to #1534, #1340.


Fixes #2043. bintrayRelease is repeated 20x?

Fixes #2043
Currently nightlies are published but the Jenkins job is failing.
This is likely because the release command is running at the root project, and then aggregated to all subprojects! I think it's relatively safe to merge this, and then see if it works on tonight's nightly build.
/review @dwijnand, @jsuereth
https://ci.typesafe.com/job/sbt-nightly/label=sbt-Linux-JDK6/633/console (sorry this CI box is probably not public)
[warn] You must run bintrayRelease once all artifacts are staged.
[success] Total time: 149 s, completed Jun 21, 2015 6:37:11 AM
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
[info]<EMAIL_ADDRESS>was released
java.lang.RuntimeException: failed to release<EMAIL_ADDRESS>
<title>405 Not Allowed</title>

405 Not Allowed

nginx

	at scala.sys.package$.error(package.scala:27)
	at bintray.BintrayRepo.release(BintrayRepo.scala:74)
	at bintray.BintrayPlugin$$anonfun$bintrayPublishSettings$16.apply(BintrayPlugin.scala:117)
	at bintray.BintrayPlugin$$anonfun$bintrayPublishSettings$16.apply(BintrayPlugin.scala:114)
	at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
	at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
	at sbt.std.Transform$$anon$4.work(System.scala:63)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
	at sbt.Execute.work(Execute.scala:235)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
	at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:701)
java.lang.RuntimeException: failed to release<EMAIL_ADDRESS>
<title>405 Not Allowed</title>

405 Not Allowed

nginx

	at scala.sys.package$.error(package.scala:27)
	at bintray.BintrayRepo.release(BintrayRepo.scala:74)
	at bintray.BintrayPlugin$$anonfun$bintrayPublishSettings$16.apply(BintrayPlugin.scala:117)
	at bintray.BintrayPlugin$$anonfun$bintrayPublishSettings$16.apply(BintrayPlugin.scala:114)
	at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
	at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
	at sbt.std.Transform$$anon$4.work(System.scala:63)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
	at sbt.Execute.work(Execute.scala:235)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
	at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:701)
java.lang.RuntimeException: failed to release<EMAIL_ADDRESS>
<title>405 Not Allowed</title>

405 Not Allowed

nginx

	at scala.sys.package$.error(package.scala:27)
	at bintray.BintrayRepo.release(BintrayRepo.scala:74)
	at bintray.BintrayPlugin$$anonfun$bintrayPublishSettings$16.apply(BintrayPlugin.scala:117)
	at bintray.BintrayPlugin$$anonfun$bintrayPublishSettings$16.apply(BintrayPlugin.scala:114)
	at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
	at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
	at sbt.std.Transform$$anon$4.work(System.scala:63)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
	at sbt.Execute.work(Execute.scala:235)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
	at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:701)
java.lang.RuntimeException: failed to release<EMAIL_ADDRESS>
<title>405 Not Allowed</title>

405 Not Allowed

nginx

	at scala.sys.package$.error(package.scala:27)
	at bintray.BintrayRepo.release(BintrayRepo.scala:74)
	at bintray.BintrayPlugin$$anonfun$bintrayPublishSettings$16.apply(BintrayPlugin.scala:117)
	at bintray.BintrayPlugin$$anonfun$bintrayPublishSettings$16.apply(BintrayPlugin.scala:114)
	at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
	at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
	at sbt.std.Transform$$anon$4.work(System.scala:63)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
	at sbt.Execute.work(Execute.scala:235)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
	at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:701)
[error] (mainSettingsProj/*:bintrayRelease) failed to release<EMAIL_ADDRESS>
[error] <title>405 Not Allowed</title>
[error]
[error]
405 Not Allowed

[error]
nginx
[error]
[error]
[error] (actionsProj/*:bintrayRelease) failed to release<EMAIL_ADDRESS>
[error] <title>405 Not Allowed</title>
[error]
[error]
405 Not Allowed

[error]
nginx
[error]
[error]
[error] (stdTaskProj/*:bintrayRelease) failed to release<EMAIL_ADDRESS>
[error] <title>405 Not Allowed</title>
[error]
[error]
405 Not Allowed

[error]
nginx
[error]
[error]
[error] (relationProj/*:bintrayRelease) failed to release<EMAIL_ADDRESS>
[error] <title>405 Not Allowed</title>
[error]
[error]
405 Not Allowed

[error]
nginx
[error]
[error]
[error] Total time: 24 s, completed Jun 21, 2015 6:37:35 AM
Build step 'Build using sbt' changed build result to FAILURE
Build step 'Build using sbt' marked build as failure
Notifying upstream projects of job completion

LGTM (and seems ci.typesafe.com is public)


shall be renamed DFTN

https://github.com/vrancurel/ntl/blob/bcb0388f3f3389373bbbb408c3e37d08322127df/src/fftn.h#L9

The name should be NTTN

I think DFTN is correct, as NTTN is only for operations on GFP


Replace shortid to nanoid

What do you think of replacing shortid to nanoid (without big changes for users). Benefits:

shortid is not maintained anymore (and issue tracker has many important issues). I tried to took maintenance, but found that I can’t fix shortid with keeping API.
shortid has problem with random generator (issue) and ID uniformity (issue). nanoid use hardware random generator and has special uniformity tests (docs).
nanoid is just 179 bytes. shortid is 2 times bigger (about 0.5 KB).
nanoid is 10x times faster than shortid.

@zalmoxisus what do you think?

@jhen0409 thanks, it was fast :). Should we release it in new patch version? :)

@ai sorry about the long delay! I have just published 0.1.5. Thanks for contribution!
We're moving this repository into redux-devtools monorepo and it will be renamed to redux-devtools-core.


Issue When Archiving Build for Apple App Store Release

Description
I'm pretty sure this has to do with the Sentry KMM addition. I've been successfully archiving my app until today. I recently included the KMM Sentry module into my shared code. Wondering what could be causing this and if there's maybe a workaround?
What's interesting is it builds just fine for the simulator.
Here's the error I'm getting:
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/alexblack/Library/Developer/Xcode/DerivedData/DownpourSwiftUI-ekhhapuimgkiynculezcbgexbcpq/Build/Intermediates.noindex/ArchiveIntermediates/Blackstone\ Unlimited/IntermediateBuildFilesPath/DownpourSwiftUI.build/Release-iphoneos/BlackstoneUnlimited.build/Script-797174D0E3936128D44473F8.sh (in target 'BlackstoneUnlimited' from project 'DownpourSwiftUI')
    cd /Users/alexblack/Projects/Work/AndroidProjects/Downpour-MonoRepo/ios
    /bin/sh -c /Users/alexblack/Library/Developer/Xcode/DerivedData/DownpourSwiftUI-ekhhapuimgkiynculezcbgexbcpq/Build/Intermediates.noindex/ArchiveIntermediates/Blackstone\\\ Unlimited/IntermediateBuildFilesPath/DownpourSwiftUI.build/Release-iphoneos/BlackstoneUnlimited.build/Script-797174D0E3936128D44473F8.sh

mkdir -p /Users/alexblack/Library/Developer/Xcode/DerivedData/DownpourSwiftUI-ekhhapuimgkiynculezcbgexbcpq/Build/Intermediates.noindex/ArchiveIntermediates/Blackstone Unlimited/BuildProductsPath/Release-iphoneos/BlackstoneUnlimited.app/Frameworks
Symlinked...
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Sentry.framework" "/Users/alexblack/Library/Developer/Xcode/DerivedData/DownpourSwiftUI-ekhhapuimgkiynculezcbgexbcpq/Build/Intermediates.noindex/ArchiveIntermediates/Blackstone Unlimited/InstallationBuildProductsLocation/Applications/BlackstoneUnlimited.app/Frameworks"
building file list ... rsync: link_stat "/Users/alexblack/Projects/Work/AndroidProjects/Downpour-MonoRepo/ios/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Sentry.framework" failed: No such file or directory (2)
done

sent 29 bytes  received 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/c2cb9645-dafc-11ed-aa26-6ec1e3b3f7b3/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code

Resolved 🙌🙌 disregard. This is a good reference for anyone else facing the same issue. I did not have the latest cocoapods and I just had to update. Apparently there was a known issue with cocoapods and Xcode 14.3.


Updated Blog Header For Dark Mode Compatibility

Converted previous SVG image into a responsive segment of HTML that is better suited for the website and dark mode compatibility.

Mode
Desktop (Light)
Desktop (Dark)
Phone (Light)
Phone (Dark)

Before

After

Fixed #430

umm?
https://user-images.githubusercontent.com/8981287/168467920-47b52104-080b-4f30-83e6-1bf9e592910a.mp4

I'm not sure what happened to the blog but it's not working at all until you refresh it

it became a 404 after i refreshed it

it became a 404 after i refreshed it

I suspect our serverless function throws an error when it attempts to read from a JSON file since Vercel.com currently says, "At present, it is not possible to import files in a Next.js SSR page or function given https://github.com/vercel/next.js/issues/8251." This lead me to create issue #471.
By eliminating the following line of code, the blog just might [hopefully] start to work again in preview environments!
https://github.com/EthanThatOneKid/acmcsuf.com/blob/486a2ec5251ee9c52807a798eff5899b8b291aeb/src/routes/blog/index.json.ts#L6
^ I suspect this line of code may be our problem, so I made #472 in an attempt to resolve #471.

Closing because I merged these changes into https://github.com/EthanThatOneKid/acmcsuf.com/pull/481


[tags] Add node, remove build_number, and change job_name to job

Having build_number added as a tag for every metric and event is causing too many contexts to be generated. Additionally, it's not even of much use.

Tested, and works well. Node does not show up in tags for started build events, which I suspect is because the function is called before a node is provisioned.


Add and delete multiple testers API at a time

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context

Description

Testing Steps

Please provide exact steps to test this. So far I can only see how to delete testers. Also we cannot add PRs that are not matching our code style.
@max-ott I changed to the same style as you. I provide an API for deleting multiple testers at one time. You should know that you need an account to have a case.

@joshdholtz  Can you have a look? I need this API please

I have some family things I need to do this weekend but I will look on Monday!

ok, Thank you for your reply.

@googlebot I consent.


TK - database update to add refers

This adds in all the referential info we've been talking about, needed it to setup for the neon imports

[Fri Mar 02 09:46:56.071856 2018] [php7:error] [pid 314] [client ::1:53278] PHP Fatal error:  Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (con_concomsi.#sql-480_10, CONSTRAINT #sql-480_10_ibfk_1 FOREIGN KEY (RewardGroupID) REFERENCES RewardGroup (RewardGroupID) ON UPDATE CASCADE) in /Users/aric/Personal/CON/CIAB-Signin/functions/database.inc:88\nStack trace:\n#0 /Users/aric/Personal/CON/CIAB-Signin/functions/database.inc(88): PDO->query('ALTER TABLE Vol...')\n#1 /Users/aric/Personal/CON/CIAB-Signin/functions/update/from_152_to_153.inc(67): DB::run('ALTER TABLE Vol...')\n#2 /Users/aric/Personal/CON/CIAB-Signin/functions/update/from_152_to_153.inc(75): _updatetables153_DBSchema()\n#3 /Users/aric/Personal/CON/CIAB-Signin/functions/update.inc(34): from_152_to_153()\n#4 /Users/aric/Personal/CON/CIAB-Signin/pages/body/update.inc(18): db_do_update('2018011700')\n#5 /Users/aric/Personal/CON/CIAB-Signin/index.php(72): require('/Users/aric/Per...')\n#6 {main}\n  thrown in /Users/aric/Personal/CON/CIAB-Signin/functions/database.inc on line 88

The error is weird.  Adding in the refers constraints are breaking BEFORE we even try code?  hmmm  Canceling the pull until I can resolve  (and trying to find why it didn't happen for me)

I found my error!
I had a reward group id that was not in the reward group table!
Fixing that, now it updated cleanly! ALL MY ERROR!

Oh, well, then, Thank goodness! :)  I don't have to shread my code! :)


Documentation for setting up body filter with Spring Boot Auto-configuration

The information of #298 should be part of the README, including necessary imports. It's possible to find it in closed issues, but that's not ideal.
A link to LogbookAutoConfiguration is also helpful to see what's possible outside application.yml.

https://github.com/zalando/logbook#spring-boot-starter already contains most pieces but should be extended.


Can you expand this plugin to be used as a single Phone/OTP login too?

Based on @svenseeberg comment I created this issue.
The main requirement for this plugin to be useful for the community is to abstract sending an SMS from the rest of the plugin. This can be done by a middle API provided by teams that use your plugin. This API would act as a proxy. Receives data from you by your contract, then sends it to a phone carrier.
We install your plugin. Then activate it and replace the current email/password form flow.
Then we somehow give you our API endpoint.
When the end user enters his phone number, you call our API with every parameter that's needed, including the realm, the phone number, the user id of the Keycloak, the OTP (or TOTP or any other code) that we should send to the end user.
This way you don't need to support myriads of phone carriers. You just create a contract. We create the API and connect it to our carriers.
Thank you

I'm not 100% sure if I understand the problem correctly. We already have the following settings that basically allows you the send the SMS with an API call to your custom SMS proxy:

That means you can already configure a URL, authentication & attribute names for the message, the receiving and sending phone number.
Mostly missing is currently a HTTP GET option, which would be relatively easy to implement. See #67 for reference.

@svenseeberg thank you for the explanation. The first point prior to this configuration is that your plugin is for 2FA or MFA.
Can you extend it to be used as one-factor authentication? I want to use your plugin, and this is the login scenario:

The user comes to the sign-in page
He enters his phone number
You call my API
I send the OTP to the user
The user enters the OTP
He gets signed in

This means that we don't have a sign-up. Sign-up and sign-in are both the same thing. If the user requests the OTP for the first time, that means registration (phone number would become the user name, password can be empty).

AFAICT currently it is not possible to use this SMS plugin as a standalone authentication step. This is a generic problem that also affects Webauthn, see https://github.com/keycloak/keycloak/issues/12102.
However, you can create a authentication flow that first asks the user for a username (without password) and then only for the SMS. IMHO that should work.

@svenseeberg, thank you for your time. The point is when we ask users for their usernames, it defies our main purpose in the first place: the simplicity of login. Phone/OTP login is simple though it's less secure.


Bootstraps Typescript into the cli package

Solves #482

Not sure why the integration tests are failing at "Local geth node":
module.js:550
    throw err;
    ^
Error: Cannot find module 'ethereumjs-abi'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/travis/build/zeppelinos/zos/tests/cli-app/node_modules/eth-sig-util/index.js:2:16)

I'm blocking this PR until we fix and merge https://github.com/zeppelinos/zos/pull/491 https://github.com/zeppelinos/zos/pull/493, https://github.com/zeppelinos/zos/pull/492, https://github.com/zeppelinos/zos/pull/500 and review what we have done so far.

CI Integrations tests failing, not sure why :(
https://travis-ci.org/zeppelinos/zos/builds/469003179?utm_source=github_status&utm_medium=notification

@jcarpanelli Thx for the review! Great catch there on seeing that we could type a lot of interfaces in ZosNetworkFile.ts. Notice that I created interfaces for ContractInterface, SolidityLibInterface, ProxyInterface, etc, but I didn't create interfaces for their mappings. Instead, the code directly exposes mappings, like this:
  get contracts(): { [contractAlias: string]: ContractInterface } {
    return this.data.contracts || {};
  }

I think that's super readable, and better than using an interface that just wraps the mapping. You like?

@facuspagnuolo we are still struggling with the integration tests here, and I don't have sudo privileges to merge this PR. Could you please give us a :hand: ?


Image is updated, but volume is not cleared

Image is updated, but volume is not cleared. Manual cleaning is required.

Ouroboros isn't designed to delete volumes or user data.


Error: The WKWebView was invalidated

Getting the following error any time I create an event: Error: The WKWebView was invalidated
Env:
"dependencies": {
"expo": "^33.0.0",
"expo-web-browser": "^5.0.3",
"react": "16.8.3",
"react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
},

For anyone else who might be experiencing this, I fixed it by creating only 1 Analytics instance and passing it to the rest of my components using Context:
const RootContainerWithSocket = props => (
<SocketContext.Consumer>
{context => (
<ConnectedRootContainer {...props} analytics={context.analytics} />
)}
</SocketContext.Consumer>
);


do not pass files if the update type is metadata only

@orangewolf this is tested and confirmed working


C cpp

Description 📜
I have added a file on constructors and destructors in cpp in which i have described in brief about different types of constructors and destructor in cpp along with the cpp code.
Fixes #2371

Type of change 📝

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] C/CPP

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Duplicate of issue #858


[Bug]: audio pipeline test:"Dependency package error"

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
python version：3.8
towhee version：0.3.18
pipeline scripts:
>>> from towhee import pipeline
>>> embedding_pipeline = pipeline('towhee/audio-embedding-vggish')
>>> embedding = embedding_pipeline('path/to/your/audio')

error log:
Successfully installed absl-py-1.0.0 astunparse-1.6.3 cachetools-4.2.4 flatbuffers-2.0 gast-0.4.0 google-auth-2.3.3 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 grpcio-1.43.0 h5py-3.6.0 importlib-metadata-4.10.0 keras-2.7.0 keras-preprocessing-1.1.2 libclang-12.0.0 llvmlite-0.37.0 markdown-3.3.6 numba-0.54.1 numpy-1.20.3 oauthlib-3.1.1 opt-einsum-3.3.0 protobuf-3.19.1 pyasn1-0.4.8 pyasn1-modules-0.2.8 requests-oauthlib-1.3.0 resampy-0.2.2 rsa-4.8 tensorboard-2.7.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.0 tensorflow-2.7.0 tensorflow-estimator-2.7.0 tensorflow-hub-0.12.0 tensorflow-io-gcs-filesystem-0.23.1 termcolor-1.1.0 werkzeug-2.0.2 wrapt-1.13.3 zipp-3.6.0
2021-12-24 16:16:50,946 -<PHONE_NUMBER>44832 - thread_pool_task_executor.py-thread_pool_task_executor:77 - ERROR: Traceback (most recent call last):
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/towhee/engine/thread_pool_task_executor.py", line 69, in execute
    op = self._op_pool.acquire_op(runner.hub_op_id,
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/towhee/engine/operator_pool.py", line 95, in acquire_op
    op = self._op_loader.load_operator(hub_op_id, op_args)
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/towhee/engine/operator_loader.py", line 71, in load_operator
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/jingjing/.towhee/operators/tf_vggish_audioset&towhee$main/tf_vggish_audioset.py", line 17, in <module>
    import resampy
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/resampy/__init__.py", line 7, in <module>
    from .core import *
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/resampy/core.py", line 9, in <module>
    from .interpn import resample_f
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/resampy/interpn.py", line 4, in <module>
    import numba
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/numba/__init__.py", line 198, in <module>
    _ensure_critical_deps()
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/numba/__init__.py", line 138, in _ensure_critical_deps
    raise ImportError("Numba needs NumPy 1.20 or less")
ImportError: Numba needs NumPy 1.20 or less

2021-12-24 16:16:50,946 -<PHONE_NUMBER>44832 - thread_pool_task_executor.py-thread_pool_task_executor:78 - ERROR: Numba needs NumPy 1.20 or less
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/towhee/__init__.py", line 66, in __call__
    out_df = self._pipeline(in_df)
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/towhee/engine/pipeline.py", line 93, in __call__
    graph_ctx.join()
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/towhee/engine/graph_context.py", line 95, in join
    op.join()
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/towhee/engine/operator_context.py", line 137, in join
    runner.join()
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/site-packages/towhee/engine/operator_runner/runner_base.py", line 190, in join
    self._end_event.wait()
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/threading.py", line 558, in wait
    signaled = self._cond.wait(timeout)
  File "/Users/jingjing/miniconda3/envs/towhee/lib/python3.8/threading.py", line 302, in wait
    waiter.acquire()
KeyboardInterrupt

Expected Behavior
No response
Steps To Reproduce
No response
Environment
- Towhee version(e.g. v0.1.3 or 8b23a93):
- OS(Ubuntu or CentOS):
- CPU/Memory:
- GPU:
- Others:

Anything else?
No response

/assign @shiyu22

The input should be a wav audio path instead of folder. Will update pipeline README in hub.

/close README is updated to declare input format.


FIX handle non breakable spaces

Fixes issue https://github.com/silverstripe/silverstripe-framework/issues/11162
and very likely will also deal with https://github.com/silverstripe/silverstripe-framework/issues/10626
I've targeted this to 5.1 but it probably also apply to 4.x but i don't know if it's worth it to apply the patch there as well
Description
See relevant issue
Manual testing steps
See relevant issue
Issues
https://github.com/silverstripe/silverstripe-framework/issues/11162
https://github.com/silverstripe/silverstripe-framework/issues/10626
Related
also see https://www.php.net/manual/en/class.numberformatter.php#129192
Pull request checklist

[x] The target branch is correct

See picking the right version

[x] All commits are relevant to the purpose of the PR (e.g. no debug statements, unrelated refactoring, or arbitrary linting)

Small amounts of additional linting are usually okay, but if it makes it hard to concentrate on the relevant changes, ask for the unrelated changes to be reverted, and submitted as a separate PR.

[x] The commit messages follow our commit message guidelines
[x] The PR follows our contribution guidelines
[x] Code changes follow our coding conventions
[x] This change is covered with tests (or tests aren't necessary for this change)
[x] Any relevant User Help/Developer documentation is updated; for impactful changes, information is added to the changelog for the intended release
[x] CI is green

Looks like it might be a sensible solution, can you please add a test so we don't get a regression of this in the future?

We were dealing with something similar recently in Matomo core and we are replacing U+202F and U+2009, so perhaps worth adding that one in here as well, some numeric formats may use that as well.

diving into the unit tests, the issue was already known but somehow added back by this commit
https://github.com/silverstripe/silverstripe-framework/commit/029a8b9586888cff44f621b7e4299eddd0f6528d
it also seems that the test was never updated and was doing it's own little cleaning up, which was hiding the issue. I've refactored the cleaning method into a function (and added U+2009 as @michalkleiner suggested) and updated the tests so that they test properly formatted values (meaning, including the narrow non breaking space... i added a comment next to each line, this is really easy to miss if the editor doesn't outline somehow the utf8 character)

Nice work @lekoala! Also good you tracked it's a regression. Can you rebase and retarget at 4.13, please?

@michalkleiner if you have an easy way to do that i'm happy to, but changing the target branch always ends up adding tons of commits and most of the time, it's actually faster to create a new PR rather than updating this one.
:-) so either I need to find a decent workflow to rebase and retarget a PR, or I'm happy to create a new one to replace this

@michalkleiner if you have an easy way to do that i'm happy to, but changing the target branch always ends up adding tons of commits and most of the time, it's actually faster to create a new PR rather than updating this one. :-) so either I need to find a decent workflow to rebase and retarget a PR, or I'm happy to create a new one to replace this

I can rebase it for you if you've enabled the option for maintainers to update the code.
Usually the easiest way is to squash the commits locally into a single good one, create a temp branch with it, reset the PR branch to the top of 4.13 and then cherry pick the commit. Should be no conflicts or easy to resolve. Then force push the updated branch and change PR target.

@michalkleiner ok, if you are up to do it, i'll let you do that :-) you should be able to edit the PR

@michalkleiner were you going to take a look at retargetting this PR?

Ah, missed Thomas's comment last week, will do it today.

CI might try to install from the 5.1 branches since you changed the base branch after pushing changes - if it does, you may need to force push to get it running correctly.

@GuySartorelli re-pushed after the target change and CI still ✅


Merak Network: Check network info from scenario manager got error

Scenario action on network to check network info, the following error return from network:
{"Service":"scenario-manager","level":"info","msg":"constructNetConfMessage: config:{format_version:1  revision_number:1  request_id:\"5f85f79d5b0a4d33a47c63442d91cf0a\"  netconfig_id:\"e6b7e72ac496490e8e4d9127798ec802\"  network:{id:\"e6b7e72ac496490e8e4d9127798ec802\"  name:\"network-config-1\"  number_of_vpcs:1  number_of_subnet_per_vpc:1  vpcs:{tenant_id:\"123456789\"  project_id:\"123456789\"  subnets:{subnet_cidr:\"<IP_ADDRESS>/20\"  subnet_gw:\"<IP_ADDRESS>\"  number_vms:100}}  number_of_security_groups:1  routers:{name:\"string\"  subnets:\"string\"}  gateways:{name:\"string\"  ips:\"string\"}  security_groups:{name:\"sg-1\"  rules:{name:\"string\"  description:\"string\"  ethertype:\"string\"  protocol:\"string\"  port_range:\"string\"  remote_group_id:\"string\"  remote_ip_prefix:\"string\"}  apply_to:\"string\"}}}","time":"2022-08-22T17:48:01Z"}
{"Service":"scenario-manager","level":"error","msg":"Error when calling Merak-Network: rpc error: code = Unknown desc = redis: nil","time":"2022-08-22T17:48:01Z"}
{"Service":"scenario-manager","level":"error","msg":"error return from grpc server: error when calling merak-network grpc server: rpc error: code = Unknown desc = redis: nil","time":"2022-08-22T17:48:01Z"}
{"Service":"scenario-manager","level":"error","msg":"'CHECK' network failed: deploy network failed, Error = 'error return from grpc server: error when calling merak-network grpc server: rpc error: code = Unknown desc = redis: nil'","time":"2022-08-22T17:48:01Z"}

I think it is a k8s config issue.
The service will point to the compute db sometimes.
Just update the k8s yaml on 77. After test will push a PR.

This is fixed in PR #79 .
Issue been the redis/selector/app is the same name as the Merak Compute.
Closing this issue now.


Extra letter spacing in terminal using Operator SSm font

Does this issue occur when all extensions are disabled?: Yes, this occur when I don't even have a single extension installed.

VS Code Version: 1.60.0 (user setup)
OS Version: Windows 10 21H1

Steps to Reproduce:

Installed Operator SSm 2 variants Opeator SSm Book with italic and Opeator SSm Bold with italic
Added in settings.json
Started Terminal saw this weird extra letter spacing and some less extra spacing between characters

Opeator SSm

I don't know why windows displays book as a light variant.

I guess this is because Operator SSm is not considered as a monospace font in windows or in vscode. I think I need to use Operator Mono SSm.


Project Status?

Hello,
Is this project still actively developed? The last release was one year ago.
Thanks!

#529 No it's not actively developed anymore.
There is a fork where some of the open pull requests are merged: github.com/bacongobbler/confd

Thanks @HeavyHorst!

If the project is not actively developed, would it be an idea to write so in the README, alternatively link to the active fork? I am having some thoughts about using it - the parts I need are all in place but with the status of the project it becomes a gamble at the end of the day..


Final Checklist

from the DataMade Site Launch Checklist
Framing / Call to Action

[ ] Make sure that the site has a clear call to action. This should not be 'hey look at this cool tool'. Rather, it should be a way for someone to engage in a meaningful way on the issue being presented.

Some examples:

Join a mailing list (which means you need to create one)
Attend an event
Share on Facebook/Twitter
Donate to a particular organization
Create a Tumblr for people to share interesting findings (if it's a data access site)

Web Search Indexing

[ ] If you have a staging site, tell the search engine robots not to index you with a robots.txt
[ ] Make sure you allow indexing when you are ready to launch.

Google Analytics

[ ] Create Google Analytics account
[ ] Hook up the GA Tracking Code (typically in our analytics_lib.js file)
[ ] Set up relevant Goals and Funnels
[ ] Set up Google Webmaster Tools
[ ] Verify site in Webmaster Tools with DNS TXT record
[ ] Link Webmaster Tools to Google Analytics

Sharing & Rich Snippets

[ ] Set up general meta tags

<meta name=“description”>
<meta name=“author”>

[ ] Set up Facebook meta tags & validate here

<meta property=“og:site_name”>
<meta property=“og:title”>
<meta property=“og:type”>
<meta property=“og:description”>
<meta property=“og:url”>
<meta property=“og:image”>

[ ] Set up Twitter meta tags & validate here

<meta name=“twitter:card”>
<meta name=“twitter:site”>
<meta name=“twitter:creator”>
<meta name=“twitter:description”> (note that this needs to be under 200 characters)
<meta name=“twitter:title”>
<meta name=“twitter:url”>
<meta name=“twitter:image:src”>

[ ] Create 2-5 meme images using Canva or a similar tool

Mobile Friendliness
Test on various mobile devices:

[ ] scrolling is easy
[ ] nav bar works
[ ] hoverable things are tappable
[ ] charts/maps look ok

Page Speed

[ ] run the site through https://developers.google.com/speed/pagespeed/insights/

Miscellaneous Polish

[ ] add favicons, apple touch icons (http://www.favicomatic.com/)
[ ] add 404 & 500 error pages

Load Testing
If your site relies on a database or server-side code, it should use caching and be load tested. If it's a static HTML or Jekyll site, you can skip this section.

[ ] set up page caching
[ ] write a script to load test all your pages. Here's a good example from Illinois Sunshine

Testing

[ ] Plan for a day of bugfixing. This day should happen after you have added the last features you plan on adding.

GitHub Readme
If the site is open source, make sure the Readme.md is complete and accurate.
Here's a few good examples:

Geomancer
Illinois Sunshine

The Readme should have the following sections:

[ ] Overview
[ ] Setup
[ ] Running locally
[ ] Team
[ ] Errors / Bugs
[ ] Pull Requests
[ ] Copyright and License

Outreach

[ ] Write up press release
[ ] Identify who will be the primary person of contact and make their info prominent on the website and all PR
[ ] Identify relevant media contacts to email
[ ] Identify relevant social news sites (reddit, listservs, slack channels)
[ ] Divide & conquer - send out the media blitz!

@ErnieAtLYD @yamilethmedina is this our goal for this project?

@cyberstrike i'm not sure this is relevant for this project? your thoughts @ErnieAtLYD?

lol nah we totally don't need the checklist; looks like it's more harm than good after all.


Medium Trust System.Security.SecurityException

Below code works fine in local environment, once uploaded to shared medium trust windows server (Host gator) it fails with error. Contacted hosting they said they do not have AWS DLL's in GAC. Anyway to get this running in medium trust environment? Thank You!
DLLs:
AWSSDK.S3 - <IP_ADDRESS>
AWSSDK.Core - <IP_ADDRESS>
Code:
AWSCredentials credentials = new BasicAWSCredentials("xx", "xx");
var s3Client = new AmazonS3Client(credentials, Amazon.RegionEndpoint.USEast1);
var bucketName = "bucketName";
PutObjectRequest putRequest = new PutObjectRequest
{
    BucketName = bucketName,
    Key = imageName,
    InputStream = post.image
};

PutObjectResponse response1 = s3Client.PutObject(putRequest);

Error:
System.TypeInitializationException: The type initializer for 'Amazon.S3.AmazonS3Config' threw an exception. --->
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at
System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) at
System.Security.CodeAccessPermission.Demand() at
System.Environment.GetEnvironmentVariable(String variable) at
Amazon.Util.Internal.InternalSDKUtils.GetExecutionEnvironmentUserAgentString() at
Amazon.Util.Internal.InternalSDKUtils.BuildUserAgentString(String serviceSdkVersion) at
Amazon.S3.AmazonS3Config..cctor() --- End of inner exception stack trace --- at
Amazon.S3.AmazonS3Config..ctor() at

Do you have a way to reproduce this same error locally?

I was not able to reproduce it locally, even with Medium trust forced. My hosting must have some special settings that I am not aware of. We ended up performing the upload using native iOS and Android AWS SKD. Thank You.

This exception is being thrown because methods in System.Environment (for example GetEnvironmentVariable) are marked with the "SecuritySafeCritical" attribute which prevents them from executing when environment permission has not been included for an AppDomain.
Is there any way to avoid having the SDK attempt to access env variables? This would solve the problem.

We ended up moving the upload process to the client side instead of server side. Thanks for the tips tho!


Navbar must be sticky while scrolling

It must not scroll with window

Navbar doesnt have any specifics that is needed to be accessible all the time hence not required to be sticky


Metadata to identify if a 3D grid has varying geometry between realizations

3D grids either have the same geometry or different geometry for each realization.
This information should be stored in the metadata.

Sumo does not have to store duplicate data (only upload one grid geometry file if the geometry is the same)
Consumers only has to download one grid geometry file if the geometry is the same
Algorithms working on the grid geometry, such as slicing, could be done on a single grid instead of per realization.
For shared grid geometries parameters could be simplified to a set of 1D arrays and statistics easily calculated.

Ref offline discussions.

Sumo does not have to store duplicate data (only upload one grid geometry file if the geometry is the same)

The uploader would have to know, during a realization, if an identical grid geometry is already stored or not. Quite fundamental changes required. I think this is one of those things that just isn't possible to do unless we have much better data foundations for grids inside FMU, e.g. a master data concept for grids. There is also a race-condition problem here. If realization-30 has already uploaded the grid, and it is identical to realization-10, then realization-10 should not upload. I don't see an immediate way of obtaining this. In some cases, it might be clear before the ensemble is launched if the grid will change or not, but this is extremely error prone. Also, there are situations where realizations 0-10 has one geometry, while realizations 11-20 may have another.

Consumers only has to download one grid geometry file if the geometry is the same
Algorithms working on the grid geometry, such as slicing, could be done on a single grid instead of per realization.

This could perhaps be obtained through a hash, with a little more query overhead. Can the existing hash (file.checksum_md5) be used for this? Alternatively, we create another more specific hash in the metadata. It is also a question about active cells, which may vary even if the geometry stay the same.

For shared grid geometries parameters could be simplified to a set of 1D arrays and statistics easily calculated.

I think this also comes back to the need for a single realization to understand the context of all the other realizations. Or it requires some post-processing. Perhaps this can be materialized in individual consumers, but I don't really see any good solutions for doing this during production of data nor as a post-process related to storage and Sumo...


fixed : nav option onclick reload page #10

what ?
I fixed the bug - nav option onclick reload the page.
why ?
previously when we clicked the nav option, every time it send request to server. So,  I used react router to routing through the pages without send a request to the server.
How ?
Used react router  tag instead of  tag
Fixes # (#10)
Type of change
Please delete options that are not relevant.

[ x] Bug fix (non-breaking change which fixes an issue)

Checklist:

[x ] My contribution follows the style guidelines of this project
[ x] I have performed a self-review of my own contribution
[x ] I have made corresponding changes to the documentation
[ x] My changes generate no new warnings
[x ] I have checked my code and corrected any misspellings

Please fetch the updated code and then make a PR .There are changes in header file

The conflicts are still not resolved please again look over it


remove "default" view requirement.

Maybe remove the ability to support both fields and view in the same API request?

default fieldset is the new kid on the block


 One such thing could be remove pub keyword and use Uppercase for that.
Related to #692

existing situation is itslef ok and probably won't cause confusion by Go programmers, many of them know different languages


NTR for UBERON

For microbiomeDB, we need 4 ontology terms:
left back, EUPATH_0009017
right back, EUPATH_0009018
left chest, EUPATH_0009019
right chest, EUPATH_0009020
Now we assigned temporary EUPATH ontology IDs.
Propose to submit the terms to UBERON as:
Left part of back
Right part of back
Left part of chest
Right part of chest
(see UBERON example, left part of face, (http://purl.obolibrary.org/obo/UBERON_1000008)

Following terms are not in microbiome.owl.
left back, EUPATH_0009017
right back, EUPATH_0009018
left chest, EUPATH_0009019
right chest, EUPATH_0009020
The IDs have been assigned for other microbiome terms.
For microbiome dataset annotation, two terms needed have been added in UBERON:

UBERON_8000006 left side of back
UBERON_8000007 right side of back


Add tests to cover Node analyse expressions

Including a .srctree file with modules A and B to validate the overriding behaviour of analyse_expressions method.
Fix to #4163
4644    def analyse_expressions(self, env):
4645        self.args = env.arg_entries
4646        if self.py_func.is_module_scope:  # 4646 ↛ 4647
4647            first_arg = 0

Thanks.


IsoDateTimeConverter doesn't support deserialization of nanos out to .999999999Z

"2023-09-13T16:59:59.999999999Z"

The DateTime type only support a precision out 7 digits in the micro/milli/nanos component of a DateTime string. So, by default the behavior of .net is to take a string like above and convert/round it to the next hour. It would turn into "2023-09-13T17:00:00" which is problematic. This can be resolved from the service side of course, and have the service return less precision, but in some cases that may not be possible if you don't own the service.
Given this is an ISO converter, I would suggest that it handle this scenario, and trim the micro/milli/nanos component down to 7, and convert it to a DateTime object to the max precision .net allows.

For now, I'm working around this with the following:
public class CustomIsoDateTimeConverter : IsoDateTimeConverter
{
    public override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)
    {
        string? value = reader.Value?.ToString();
        if (reader.TokenType == JsonToken.String)
        {
            string? formattedString = null;
            if (value != null && EnsureSevenNanos(value, out formattedString))
            {
                Console.WriteLine($"Date string was reformatted: {formattedString}");
                DateTime date = DateTime.ParseExact(formattedString, "yyyy-MM-ddTHH:mm:ss.fffffffZ",
                    CultureInfo.InvariantCulture);
                return date;
            }
        }
        Console.WriteLine($"Using IsoDateTimeConverter default read behavior: {value}");
        return base.ReadJson(reader, objectType, existingValue, serializer);
    }

    private static bool EnsureSevenNanos(string input, out string? formattedString)
    {
        // Define a regular expression pattern to match the nanoseconds part with exactly 7 digits.
        string pattern = @"(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{7})\d+Z";

        // Check if the input matches the pattern.
        if (!Regex.IsMatch(input, pattern))
        {
            formattedString = null;
            return false;
        }

        // Input doesn't have 7 nanoseconds, so we truncate or pad it to have exactly 7 nanoseconds.
        Match match = Regex.Match(input, pattern);
        if (match.Success)
        {
            string nanosecondsPart = match.Groups[1].Value;
            formattedString = $"{nanosecondsPart}Z";
            return true;
        }
        else
        {
            // Invalid input, handle accordingly (throw an exception or return a default value).
            throw new ArgumentException("Invalid DateTime format");
        }
    }
}

Given this is an ISO converter, I would suggest that it handle this scenario, and trim the micro/milli/nanos component down to 7, and convert it to a DateTime object to the max precision .net allows.

Why is trimming / cutting off supposed to be better than rounding, and why is the current behavior supposedly problematic?
Considering that the time in "2023-09-13T16:59:59.999999999Z" is much nearer to the time in "2023-09-13T17:00:00" (difference only 1 ns) than "2023-09-13T16:59:59.9999999" (difference 99 ns), the suggested library behavior is basically asking for less accurate rounding and therefore would actually and arguably be more problematic than the current behavior.

@elgonzo Yes, very good point on the precision. This behavior is built into .net currently too. In my use case the day component is extremely important and shouldn't be changed. The loss of precision out that far isn’t as big a deal.
What comes to mind for me is why is the day rounded in .net? Why would .net not take the extra precision to perform the rounding on the last digit of the nano? To your point you're losing precision that way and less accuracy hence why it probably is the way it is and best to be that way.
The midnight use-case and the day switch in my case would be very problematic. This may be an extreme edge case and wouldn't justify an optionality to the existing ISO converter. However, if there is any openness to an optionality, in my case it’s better to round the nanos than flip the day and lose the precision rather than the day.


Error about stable_hopenetlite.shufflenet_v2_x1_0()

@OverEuro
Thank you for your great work.
I am a freshman and when I use your lastest hopenet-lite model  with model shuff_epoch_120.pkl, just follow the sample as
stable_hopenetlite.shufflenet_v2_x1_0(), I got the error blow:
result = self.forward(*input, **kwargs)
File "/Users/liutianyuan/git/deep-head-pose-lite/stable_hopenetlite.py", line 131, in forward
x = x.mean([2, 3])  # globalpool
TypeError: mean() received an invalid combination of arguments - got (list), but expected one of:

()
didn't match because some of the arguments have invalid types: (!list!)
(torch.dtype dtype)
didn't match because some of the arguments have invalid types: (!list!)
(int dim, torch.dtype dtype)
(int dim, bool keepdim, torch.dtype dtype)
(int dim, bool keepdim)

Hope to see your help. Thank you !

@OverEuro
Thank you for your great work.
I am a freshman and when I use your lastest hopenet-lite model with model shuff_epoch_120.pkl, just follow the sample as
stable_hopenetlite.shufflenet_v2_x1_0(), I got the error blow:
result = self.forward(*input, **kwargs)
File "/Users/liutianyuan/git/deep-head-pose-lite/stable_hopenetlite.py", line 131, in forward
x = x.mean([2, 3]) # globalpool
TypeError: mean() received an invalid combination of arguments - got (list), but expected one of:

()
didn't match because some of the arguments have invalid types: (!list!)
(torch.dtype dtype)
didn't match because some of the arguments have invalid types: (!list!)
(int dim, torch.dtype dtype)
(int dim, bool keepdim, torch.dtype dtype)
(int dim, bool keepdim)

Hope to see your help. Thank you !

try to upgrade your PyTorch version

@OverEuro I've the same problem. I'm using python 3.6 and torch version is 0.4.1.

@OverEuro
Thank you for your great work.
I am a freshman and when I use your lastest hopenet-lite model with model shuff_epoch_120.pkl, just follow the sample as
stable_hopenetlite.shufflenet_v2_x1_0(), I got the error blow:
result = self.forward(*input, **kwargs)
File "/Users/liutianyuan/git/deep-head-pose-lite/stable_hopenetlite.py", line 131, in forward
x = x.mean([2, 3]) # globalpool
TypeError: mean() received an invalid combination of arguments - got (list), but expected one of:

()
didn't match because some of the arguments have invalid types: (!list!)
(torch.dtype dtype)
didn't match because some of the arguments have invalid types: (!list!)
(int dim, torch.dtype dtype)
(int dim, bool keepdim, torch.dtype dtype)
(int dim, bool keepdim)

Hope to see your help. Thank you !

try to upgrade your PyTorch version

Sorry for a so late Thanks.  It solved my problem.Thank you.


cannot push to remote. please fix this shitty repo

@ykcai could I interest you in taking over as project maintainer?

@apeduru yes, just do it.

Create a fork, and I'll update the README to notify others of the change in project ownership.


First person plural perspective seems really weird to read

Reading this page in the point of view of someone that has been downvoted and clicked on that link, I would find it really awkward to read sentences like We have asked a question, but we have not stated what research we have done.... Does we means me, the downvoted user, or you guys, SO community?
Well, it has been discussed here https://github.com/WillSullivan/idownvotedbecause/issues/23 that we should avoid using pronouns, so should I update this page and the other similar that I may find?

If you'd like to. I've been doing it piecemeal as PRs come in on this or that page. Knock it out and that's one less. Thanks.


fix(Gamut): Removed unnecessary useEffect registers in GridForm

Removed unnecessary useEffect registers in GridForm
In our static Gatsby site's GridForm, register is getting called twice per input element... once in the React logic ref={register(field.validation)}, then a second time in the GridForm's useEffect that does register({ name: field.name }).


A better test

DeepShiba underwent a major and destructive change.
As a result, a lot of test code stopped working and was removed. (#29)
As a result, the current DeepShiba does not have adequate testing, which leads to bugs.
DeepShiba needs a better testing framework and useful functions.

For example, the current numerical differential functions can only handle one variable. Multivariate functions should be supported.


fix cpulimit type to float32

#closes https://github.com/luthermonson/go-proxmox/issues/66

great catch!


[Bug]: Full node doesn't sync after celestia-appd is offline for a few days: validator set mismatch

Celestia Node version
0.1.0
OS
Debian
Install tools
No response
Others
No response
Steps to reproduce it
Run Celestia full node with local celestia-appd validator. Shut down celestia-appd for 3 days, and start it again (with a slightly? different validator set).
Expected result
Celestia nodes syncs.
Actual result
Celestia node is throwing errors.
Relevant log output
2021-12-29T23:45:51.836Z        INFO    header-service  header/sync.go:34       syncing headers
2021-12-29T23:45:51.837Z        INFO    header-service  header/store.go:264     loaded head     {"hash": "C269D81A750BA98C25E23AAE4D7F7E5497580361DDB813636505F4C8E2CC0A5C"}
2021-12-29T23:45:51.913Z        ERROR   header-service  header/sync.go:45       requesting network head {"err": "expected validator hash of header to match validator set hash (7553AA833BE3B016AE3C028675F19CEE0EC8D19F86E9389278D26CF4437C7D8F != 5B36A2EE20D47C2CDF6EFD31BD92A630A6552723B5D12A5C67E1B508B5AFAA0E)"}
2021-12-29T23:45:53.974Z        INFO    block-service   block/event.go:27       received new block      {"block height": 198702, "block hash": "CF98FC95A2E2981A2EC8AB7D51926FE47EB316D1F359251304F77E4AECF16839"}
2021-12-29T23:45:53.979Z        ERROR   block-service   block/event.go:82       broadcasting new ExtendedHeader to network      {"err": "validation ignored"}
2021-12-29T23:45:53.980Z        ERROR   block-service   block/event.go:31       handling raw block      {"err msg": "validation ignored", "block height": 198702, "block hash": "CF98FC95A2E2981A2EC8AB7D51926FE47EB316D1F359251304F77E4AECF16839"}```

Notes
No response

From my understanding, this may only happen when you start celestia-node against yet not fully synced celestia-appd.

Actually the above is false and I was able to reproduce the bug reliably.

The error happens from a mismatch between hashes returned from Core which is very weird.

this part right
2022-01-06T00:52:26.301+0100    INFO    header-service  header/sync.go:34       syncing headers
2022-01-06T00:52:26.332+0100    INFO    header-service  header/store.go:179     new head        {"height": 1, "hash": "4632277C441CA6155C4374AC56048CF4CFE3CBB2476E07A548644435980D5E17"}
2022-01-06T00:52:26.351+0100    ERROR   header-service  header/sync.go:45       requesting network head {"err": "expected validator hash of header to match validator set hash (87780D1DCDB2D98D0CD0CC15EAB1491144C6BD391FC342C68BD31B8F43B76338 != 7578FC93F5A742D4D3FE89A65E4D381DD5031220FECA7B58DD664FC2E90FC47F)"}

i also noticed the hash (4632277C441CA6155C4374AC56048CF4CFE3CBB2476E07A548644435980D5E17) isnt matching any of those two hashes below which i found odd when i started it

@mindstyle85, thank you for reporting this. The fix is already done and going through the review process in #328.
The problem happens with the validator amount being higher than 30 and the fix above eliminates the problem entirely.


Physical mouse Right click in android

Tested versions
4.3
System information
Android 10
Issue description
I'm currently using 4.3 and physical mouse right click doesn't work and even long press by mouse left button doesn't opens the context menu
Steps to reproduce
Press right mouse button and nothing will happen
Minimal reproduction project (MRP)
Just open any project in android editor
### Tasks

I couldn't reproduce it, where exactly did you try it? Please take a screenshot.

I couldn't reproduce it, where exactly did you try it? Please take a screenshot.

Is your physical mouse right click working in android editor , if so I'd like to see it

Is your physical mouse right click working in android editor , if so I'd like to see it

INPHIC Wireless Mouse Bluetooth on Samsung Tab S7 - Android 13
https://github.com/user-attachments/assets/1a8957b9-720f-4bf4-8aab-9ab9a0a1e394

Sorry but I forgot to mention that, somehow OneUI have by which we can even configure the behaviour of different buttons but most of the android phones don't have it

Can you debug this and check which events are arriving?
extends Control

func _gui_input(event: InputEvent) -> void:
	if event is InputEventMouseMotion:
		return

	print(event)

adb logcat -s godot
Logcat

Left Button
InputEventMouseButton: button_index=1, mods=none, pressed=true, canceled=false, position=((115, 179)), button_mask=1, double_click=false
InputEventMouseButton: button_index=1, mods=none, pressed=false, canceled=false, position=((115, 179)), button_mask=0, double_click=false

Right Button
InputEventMouseButton: button_index=2, mods=none, pressed=true, canceled=false, position=((150, 218)), button_mask=2, double_click=false
InputEventMouseButton: button_index=2, mods=none, pressed=false, canceled=false, position=((150, 218)), button_mask=0, double_click=false

Ok I've tested it ina android 14 (realme ui , realme narzo 70x 5g) it works fine , but my device is oppo device running Android 10 and it doesn't works as mentioned before.


Are Service Account Email and Private Key File necessary?

I'm using the identity toolkit to verify tokens, but I've removed the serviceAccountEmail and serviceAccountPrivateKeyFile fields in my gitkit.server.config.js file and the identity toolkit sign in still works. Do I actual need to include the serviceAccountEmail and serviceAccountPrivateKeyFile fields?
This is my gitkit.server.config.js:
const widgetHost = process.env.APP_HOST || 'localhost:8000';

let config = {
  clientId: '*************',
  projectId: '***********',
  widgetUrl: `http://${widgetHost}/gitkit`,
  cookieName: 'gtoken'
};

export default config;

Hi Zack,
If you only need to verify tokens, service account email and private key are not required. These service account info are only needed when you want to do something using service account, such as downloading all your users' accounts.
Thanks.

Great to know! Thanks a ton


Dev

tweak the css in non-phone-mode to make consistency across platform

Nice. I'd publish it later tonight. Come play Three kingdoms slaying with us .We are at momotea now.


Remote hermes bytecode converted chunks not working.

Ask your Question
Hi,
I am working with remote chunks in hermes environment. Following are the steps, i am doing:

Set hermes to true app/build.gradle
Made release apk with no local chunks using command  ./gradlew assembleRelease. This command has been done after cleaning gradle.
I took my remote chunks from build/android/remote and converted them to hermes bytecode using the command: node_modules/hermes-engine/osx-bin/hermesc ${pathToFile} -emit-binary -out ${newPath}.
I uploaded the converted JS to hermes bytecode chunks to a CDN server. API:  url: https://remotechunks-hermes.herokuapp.com/files/${chunkId}. Example chunk Id: 47.
After that i am loading, these chunks from my release APK.
I get the following error message, once i load the remote hermes Chunk.

7. If the remote chunks are not manually converted to hermes chunks, then the app is loading those chunks fine.
8.  Following is my configuration for repack:
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import { ChunkManager } from '@callstack/repack/client';

ChunkManager.configure({

    forceRemoteChunkResolution: false,
    resolveRemoteChunk: async (chunkId) => {
      return {
        url: `https://remotechunks-hermes.herokuapp.com/files/${chunkId}`,
      };
    },
  });
AppRegistry.registerComponent(appName, () => App);

@zamotany, I would be grateful, if you would help me for solving this issue.
Thank You

This looks like a bug in Re.Pack, but I'm going to investigate that to be sure.

Thank you @zamotany !

@zamotany Hi, is there any resolution or findings?

any news?

While working on https://github.com/callstack/repack/pull/378 there were no issues with running remote hermes chunks on either iOS or android.
I believe this bug was fixed a while back when developing integrated tokens for CodeSigning functionality inside RemoteChunkLoader.kt:
https://github.com/callstack/repack/pull/348/files#diff-7cefd3d3476202b0dec6f15298f700114f9fd6dd2b71f5e91b527d06e403ff48
Closing this issue as it's resolved


Bug report

Before feedback
Before you feedback, please search for the issues to see if there are similar problems that can solve your problem.
Please delete the above and the contents of this line, then fill in the feedback form in the following format, Thanks.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

OS & Version: [e.g. macOS, Windows, Linux]
Version: [e.g. macOS 10.14.2, Windows 10, Ubuntu 18.04]
Motrix Version: [e.g. v1.1.3, v1.1.0]
Installation package type: [e.g. dmg, AppImage]

Additional context
Add any other context about the problem here.

@agalwood I think this is spam, I recommend this OSS use the latest Issue Template with confirmation and the required field enabled to prevent issue reports with low information or even spam. I'd like to make PR for it if you like my idea.


chore(docs): update license file and license header to Apache 2.0

PE-6762

I still see mention of AGPL in contributing:

246c873

246c873

I still see mention of AGPL in contributing:

246c873

:tada: This PR is included in version 1.18.0-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.18.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Runtime JSON style

2 scenarios

In myapp settings screen, I have a table view which lists 3 different theme names. If I select one theme, tableview dismisses and I would like to see the new theme applied (I have JSON stylesheet), is this possible using stylish ? and howto ?

I would like to download JSON stylesheet from server when app starts and see this new theme applied.

Please advise.

Hi @ypawar82,

The Stylish Example app has a similar functionality that allows you to dynamically switch between global stylesheets.  Take a look at the MainViewController.swift file; the single method in there switches the global stylesheet (theme).  All you need to do is set the global static var Stylish.GlobalStylesheet, e.g. Stylish.GlobalStylesheet = YourStylesheetClass.self

To download and use a JSON stylesheet that only styles the standard controls that Stylish has built in (StyleableUIView, StyleableUILabel, StyleableUIButton), download the file and save it with the name "stylesheet.json" to the application's cache directory.  Then set Stylish.GlobalStylesheet = JSONStylesheet.self.  That will apply the just-downloaded stylesheet to the whole app.

If you are using your own custom components that you have extended to make Styleable, you need to subclass JSONStylesheet.swift as shown in the example project to register the additional style property sets you created. You would still download the JSON from the server and save it as "stylesheet.json" in the caches directory, but then you would set Stylish.GlobalStylesheet = YourSubclassOfJSONStylesheet.self
Hope that serves your needs.  Please let me know so I can close the issue or follow up as needed!

Cool !!
Let's close this issue.
Thank you !!

Done!


Check cairo contracts formatting

Closes #1457
Introduced changes

Check cairo contracts formatting using scarb fmt --check

[ ] This PR contains breaking changes

Would it be possible to add some kind of message why compiling failed? I suppose that it can be difficult to recognize the reason for test failure without a message. Especially when you are new to a project or external contributor

I had it on my mind, but I decided to leave it with default formatting error that scarb displays (same when compilation fails due to any error, we don't handle it in script). Wdyt @kkawula ? Don't have a strong opinion though.

Would it be possible to add some kind of message why compiling failed? I suppose that it can be difficult to recognize the reason for test failure without a message. Especially when you are new to a project or external contributor

I had it on my mind, but I decided to leave it with default formatting error that scarb displays (same when compilation fails due to any error, we don't handle it in script). Wdyt @kkawula ? Don't have a strong opinion though.

Hmm, I suppose that it will be helpful to at least add info about start of format checking, because at first look I don't know why this compilation failed gh job. Some kind of Checking contracts formatting message

Sure, message that format checking has started will be helpful, will add it 👍


lazy scrollview by default

lazy scroll view
would be nice to have widgets inside a scroll view, to be lazy by default.
if outside the render view they will not  be instantiated before needing to be rendered, and their height set at the average rendered widget height in the scroll view to compute the scroll bar size.

@renanyoy
what do you this is missing from ListView.builder?

Hello @renanyoy. As @iapicca mentioned, I am not sure what is missing from ListView.builder. If you have a use case that doesn't fit it, please do give a code sample and maybe we can help :)

any application that don't use listview.builder() . should be nice have them optimized too.

a lazy scrollview not listview ;)

a lazy scrollview not listview ;)

I feel that we are splitting hairs:

firstly ListView is a ScrollView

moreover, of the available ScrollView's

ListView, which is a commonly used ScrollView that displays a scrolling, linear list of child widgets.
PageView, which is a scrolling list of child widgets that are
each the size of the viewport.
GridView, which is a ScrollView that displays a scrolling, 2D array of child widgets.
CustomScrollView

that same I mentioned about ListView applies also to PageView and GridView
and you can have CustomScrollView with SliverList to have lazy loading

lastly the only other instance of ScrollView that comes to mind is SingleChildScrollView,
but since has by definition a "single child" not sure it matters

@renanyoy
could you provide a code sample of what you are trying to achieve,
maybe the tool you are looking for already exists

@iapicca I think what OP is suggesting is that most of not all ScrollViews like SingleChildScrollView are lazy by default. @renanyoy correct me if I am wrong here.
@renanyoy This is not something we can do. There are use cases where as a developer, we don't want laziness in our scrolling. Think about a form on a small screened device. Lazy building form inputs might destroy the attached TextEditingController and reset what the user has inputted into that specific field.
Whether a scroll view is lazy or not, is a design decision that is the developer's responsibility, and not Flutter. Flutter merely provided primitives to work with. How you use them, is up to you. If the way you use them causes your app to be rendering hundreds of widgets because you should have been using a ListView.builder instead of a SingleChildScrollView, then that is an issue with optimizing the app on the developer's end, and not the responsibility of Flutter.
Ultimately, I do not see this issue as a valid one for the above reasons. Of course if I misunderstood your issue, please comment with a code sample and a use case so that I may understand it better. But for now, I am closing this issue. Thank you

I know all that, I just said that it would be nice to optimize also the default scrollview, for views with a more complex UI.

near all time I need to set a shrink wrap every where to make it working.. so it breaks all basic optimization, and would to have it at some optimization at the scroll view level too

@renanyoy
what means "default scrollview" to you?

[...]  shrink wrap every where to make it working [...]

seems like you are using a SingleChildScrollView, can you provide an "unoptimized" example?

@renanyoy Using shirkWrap is not performant anyways, see the docs:

Shrink wrapping the content of the scroll view is significantly more expensive than expanding to the maximum allowed size because the content can expand and contract during scrolling, which means the size of the scroll view needs to be recomputed whenever the scroll position changes.

To avoid this, you should put your scroll view into a container with a fixed height. For example, you can add the scroll view in an Expanded in a Column to automatically set the height to the maximum available space


Fix a tool name typo in FAQ

The OpenShift installer binary is called openshift-install, not openshift-installer.

Thanks!