Modify frame ninepatches

I've changed frame and transparent frame images to improve scaling. Try to rebuild the UI and see if it looks better. I think the black lines around the edges were added by mistake, or at the very least they do not look intentional.
Also, I have a suggestion about the buttons with the icons such as play.png or sound.png. Instead of shipping the icons with the background in a single image, use icons with transparent background and the same frame ninepatch along with an ImageButton (button + image child) or ImageTextButton (button + image & label children). Both are supported by ktx-scene2d.
Same goes for game_hud.png. You essentially "hardcoded" the bottom UI panel with that image, which will make it difficult to change or scale. You should recreate this HUD with Scene2D widgets such as Tables. Note that Table can have a custom background and accepts ninepatch drawables AFAIK.

I think the black lines around the edges were added by mistake, or at the very least they do not look intentional.

From my understanding this is how 9-patches work.  From the official documentation

In the following picture, I have defined what area the content will be placed in (in other words, what will be scaled), and what areas I don't want to scale. Again, this is achieved by padding with a 1 pixel border in the image.

Also, I have a suggestion about the buttons with the icons such as play.png or sound.png. Instead of shipping the icons with the background in a single image, use icons with transparent background and the same frame ninepatch along with an ImageButton (button + image child) or ImageTextButton (button + image & label children). Both are supported by ktx-scene2d.

I had the same idea but I hate working on UIs and in the end it would look the same as it does now, except that the UI.atlas becomes little bit smaller ;)
Fully agree that this would be the better way to do it but it takes me most likely again 2 or 3 hours to make it look the same as it does now and I don't have the motivation for that. But feel free to assist me!
I had the intention to mention it in the video tutorial series, that this should be the way to go.

Same goes for game_hud.png. You essentially "hardcoded" the bottom UI panel with that image, which will make it difficult to change or scale. You should recreate this HUD with Scene2D widgets such as Tables. Note that Table can have a custom background and accepts ninepatch drawables AFAIK.

Agree here as well but I also wanted to keep that for the video tutorial series to showcase two approaches. The "quick&dirt" GameUI approach with hardcoding things (=bad practice) and the LoadingScreen/MenuScreen and GameOverScreenUI approaches with using tables (=best practice).

From my understanding this is how 9-patches work.  From the official documentation

I'm not referring to the lines at the edges, I'm referring to the lines around the corners. See the diff:

in the end it would look the same as it does now

That's true for now, but if you end up changing the button style, you'll have to replace all the graphics.
If you have the original icons without the button backgrounds, I could see what I can do.

If you have the original icons without the button backgrounds, I could see what I can do.

I just drew some pixels again with an online tool since Gimp makes me crazy with it's very unintuitive behavior.
I will try to improve that and also see what I can do with the corners that you mentioned in the frames. Thanks for pointint that out!


Familiarize about sensitive files to keep off of github and Personal Dashboard

See this "Familiarize about sensitive files to keep off of github and Personal Dashboard" Trello card:
https://trello.com/c/GYruL063/167-familiarize-about-sensitive-files-to-keep-off-of-github-and-personal-dashboard
Note, this https://trello.com/c/LD9EOfZ1/268-enable-github-code-scanning-across-all-of-my-repos Trello card exists.

Done for now. The results can be found in here:
https://trello.com/c/GYruL063/167-familiarize-about-sensitive-files-to-keep-off-of-github-and-personal-dashboard
And in here:
https://github.com/JamieBort/LearningDirectory/tree/master/Git/gitignore#best-practices-files-to-keep-out-of-repos
And in here:
https://github.com/JamieBort/LearningDirectory/tree/master/Git/security#best-practices-sensitive-files-to-keep-secure


Apps using this library

What's in this pull request?

just wanted to add that i used this library on creating Go chat app

[Current coverage][cc-pull] is 60.92%

Merging [#1715][cc-pull] into [release_7.3][cc-base-branch] will decrease coverage by 7.34%

@@           release_7.3      #1715   diff @@
=============================================
  Files               63         62     -1
  Lines             2401       2221   -180
  Methods            666        612    -54
  Messages             0          0
  Branches           149        134    -15
=============================================
- Hits              1639       1353   -286
- Misses             762        793    +31
- Partials             0         75    +75

[][cc-pull]

Powered by Codecov. Last updated by [e4927be...689da61][cc-compare]
[cc-base-branch]: https://codecov.io/gh/jessesquires/JSQMessagesViewController/branch/release_7.3?src=pr
[cc-compare]: https://codecov.io/gh/jessesquires/JSQMessagesViewController/compare/e4927be6a8efd9bec72730692dae72fc450a12f8...689da61cd937d428507e1824136edaac8fdd1b51?src=pr
[cc-pull]: https://codecov.io/gh/jessesquires/JSQMessagesViewController/pull/1715?src=pr

Thanks @Yoloabdo !
Looks like there are a lot of unrelated commits in this PR. Want to close this and resubmit?


Remove excessive condition from SafeMath.safeAdd()

There is no situation when c>=a will be true while c>=b will be false.

LGTM. Can someone else think up the math and ACK this before I merge it, just in case?

LGTM

Thanks @federicobond


PDF display blank in chrome but display correctly in firefox.

the link of the file:
http://7sbrob.com1.z0.glb.clouddn.com/font_error_20150424.pdf
the version of  pdf.js v1.1.1
version:
chrome: 41.0.2272.89 (64-bit)
firefox: 36.0.1
OS:
Ubuntu 1404
pdf display incorrect in chrome, correct in firefox
screenshot: chrome compare with  firefox.

And for the chrome in windows XP, the pdf display like this: the words are truncated.

This was fixed in https://github.com/mozilla/pdf.js/pull/5857

The link is dead. If this is still an issue with the latest version of PDF.js at https://mozilla.github.io/pdf.js/web/viewer.html (use the Open File button in the toolbar to open the PDF locally), please post a new link.

Closing as incomplete until a new link is provided.


container/systemd: ensure /var/log/ceph exists

This adds a ExecStartPre=-/usr/bin/mkdir -p /var/log/ceph in all
systemd service templates for all ceph daemon.
This is specific to RHCS after a Leapp upgrade is done. Indeed, the
/var/log/ceph seems to be removed after the upgrade.
In order to work around this issue let's ensure the directory is present
before trying to start the containers with podman.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1949489
Signed-off-by: Guillaume Abrioux<EMAIL_ADDRESS>

jenkins test centos-non_container-collocation

jenkins test centos-non_container-switch_to_containers

jenkins test centos-container-update

jenkins test centos-container-all_daemons


Plugin does not build correctly with Gradle 5

Building with Gradle 5.2.1 seems to work, but the resulting hpi plugin is broken. Running gradle test fails with a lot of NullPointerExceptions and AssertionErrors.
Building with Gradle 4.10.3 and running gradle test works, but outputs the following:
> Task :compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: phabricator-jenkins-plugin/src/main/java/com/uber/jenkins/phabricator/PhabricatorBuildWrapper.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :compileTestJava
warning: Supported source version 'RELEASE_6' from annotation processor 'org.gradle.api.internal.tasks.compile.processing.NonIncrementalProcessor' less than -source '1.8'
Note: phabricator-jenkins-plugin/src/test/java/com/uber/jenkins/phabricator/PhabricatorBuildWrapperTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings

Extra output of gradle test --warning-mode all:
> Configure project :
As part of making the publishing plugins stable, the 'deferred configurable' behavior of the 'publishing {}' block has been deprecated. In Gradle 5.0 the 'enableFeaturePreview('STABLE_PUBLISHING')' flag will be removed and the new behavior will become the default. Please add 'enableFeaturePreview('STABLE_PUBLISHING')' to your settings file and do a test run by publishing to a local repository. If all artifacts are published as expected, there is nothing else to do. If the published artifacts change unexpectedly, please see the migration guide for more details: https://docs.gradle.org/4.10.3/userguide/publishing_maven.html#publishing_maven:deferred_configuration.

> Task :compileJava
Detecting annotation processors on the compile classpath has been deprecated. Gradle 5.0 will ignore annotation processors on the compile classpath. The following annotation processors were detected on the compile classpath: 'jenkins.PluginSubtypeMarker' and 'org.kohsuke.stapler.jsr269.ConstructorProcessor' and 'org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor' and 'org.kohsuke.stapler.jsr269.QueryParameterAnnotationProcessor' and 'org.kohsuke.wpc.ProcessorImpl' and 'org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl' and 'net.java.sezpoz.impl.Indexer6'.  Please add them to the annotation processor path instead. If you did not intend to use annotation processors, you can use the '-proc:none' compiler argument to ignore them.

I am not familiar with the Gradle build system but I would be happy to provide the output if you want me to perform some tests.
Thanks in advance !

Use ./gradlew wrapper to build plugin, it will download (if necessary) required gradle version

Use ./gradlew wrapper to build plugin, it will download (if necessary) required gradle version


[Airbrake] [Production] Cannot read property 'join' of undefined

Airbrake error: #9668
Airbrake project: datanator_frontend
Error type: TypeError
Error message: Cannot read property 'join' of undefined
Where: <no information>
Occurred at: Sep 21, 2020 03:16:50 UTC
First seen at: Sep 21, 2020 03:16:50 UTC
Occurrences: 0 (0 since last deploy on Sep 16, 2020 01:46:22 UTC)
Severity: error
URL: https://5eefe4ccb11f51000794e165--datanator.netlify.app/search/atp%20/Escherichia%20coli%20E1002/
File: https://5eefe4ccb11f51000794e165--datanator.netlify.app/static/js/scenes/SearchResults/ReactionSearchResultsList.js
Backtrace:
https://5eefe4ccb11f51000794e165--datanator.netlify.app/static/js/scenes/SearchResults/ReactionSearchResultsList.js:83:in join
https://5eefe4ccb11f51000794e165--datanator.netlify.app/static/js/scenes/SearchResults/SearchResultsList.js:92:in response

This seems fine now. It seems that the REST API occasionally returns malformed data. I pushed a commit to try to handle these cases: e796c6eebd958022360036a4e915860a65483ce6.

Comment from Airbrake: Resolved error reoccurred.

This error is an old Netlify preview: https://5eefe4ccb11f51000794e165--datanator.netlify.app/search/atp /Escherichia coli E1002/
I'm not sure how someone found this. I'm going to see if we can close this old previews automatically. I'm also going to see if we can filter our errors from old previews in AirBrake.

I believe Netlify previews last forever.
To filter out errors from old versions, I bumped the version of the frontend to 0.2.0 and set AirBrake to ignore errors from versions less than this.


jsonmessage: add and use TimeNano for events

The events logging uses nano formatting, but only provides a Unix()
time, therefor ordering may get lost in the output. Example:
2015-09-15T14:18:51.000000000-04:00 ee46febd64ac629f7de9cd8bf58582e6f263d97ff46896adc5b508db804682da: (from busybox) resize
2015-09-15T14:18:51.000000000-04:00 a78c9149b1c0474502a117efaa814541926c2ae6ec3c76607e1c931b84c3a44b: (from busybox) resize

By having a field just for Nano time, when set, the marshalling back to
time.Unix(sec int64, nsec int64) has zeros exactly where it needs to.
This does not break any existing use of jsonmessage.JSONMessage, but now
allows for use of UnixNano() and get event formatting that has
distinguishable order. Example:
2015-09-15T15:37:23.810295632-04:00 6adcf8ed9f5f5ec059a915466cd1cde86a18b4a085fc3af405e9cc9fecbbbbaf: (from busybox) resize
2015-09-15T15:37:23.810412202-04:00 6b7c5bfdc3f902096f5a91e628f21bd4b56e32590c5b4b97044aafc005ddcb0d: (from busybox) resize

Signed-off-by: Vincent Batts<EMAIL_ADDRESS>

discovered while testing for https://github.com/docker/docker/pull/16316
Ping @LK4D4

@vbatts do we want to add a testcase to make sure we don't drop the extra number by mistake later on?

@duglin i reckon ... ;-)

@duglin done. PTAL

@vbatts thanks!

fixed API break for event subscribers and still providing Nano accuracy.

Requires API docs update :)

Code looks correct for me, though

@LK4D4 added remote API reference update

@vbatts You need also add this to docker_remote_api.md in ### v1.21 API changes

@LK4D4  updated

Needs a rebase already :(

rebased

LGTM. Do you mind squashing those little commits into one? :pray:

Also another rebase.

rebased and squashed. PTAL.
On Wed, Sep 16, 2015 at 5:10 PM, Brian Goff<EMAIL_ADDRESS>wrote:

Also another rebase.
—
Reply to this email directly or view it on GitHub
https://github.com/docker/docker/pull/16317#issuecomment-140895916.

LGTM

ping @thaJeztah

Thanks @vbatts, I added a note, but apart from that, LGTM
ping @moxiegirl

but it needs rebase again :/

holy :hankey:

Time between rebases is now measured in nanoseconds!

lol.
rebased and shortened the ID in the doc example

Thanks, LGTM
ping @moxiegirl @SvenDowideit

janky failed, dunno if it's related;
FAIL: dockerCmd_utils_test.go:161: DockerCmdSuite.TestDockerCmdWithTimeout

dockerCmd_utils_test.go:205:
    c.Assert(out, check.Equals, cmd.expectedOut, check.Commentf("Expected output %q for arguments %v, got %q", cmd.expectedOut, cmd.args, out))
... obtained string = "too long, should be killed"
... expected string = ""
... Expected output "" for arguments [a command that times out], got "too long, should be killed"

It's not related.

LGTM @vbatts

@vbatts Last rebase before merge, pls :)

rebased. PTAL.

All good, merging.


Blacklist doesn't work for one program

If I have blacklisted a program, the extension ignores the blacklist when I open the blacklisted program.
However, if the extension already sees the program and has controls for it and then I blacklist the program, the extension properly ignores the program. But then if I restart the program, the extension ignores the blacklist again and shows controls for the blacklisted program.
The program I am trying to block is freetube, installed as a flatpak (link). The extension properly blocks Spotify however, also installed as a flatpak. So maybe this is a problem with freetube and not the extension?
Info:

Extension Version 34
Fedora Silverblue 39.20240117.0
Gnome 45.3

P.S. I really like the rewrite, good work!

I just installed Freetube and tried blacklisting it, and it was working as expected. The extension does not show up when opening Freetube if its is blacklisted. The last update was a total rewrite of the extension so it was rather a huge update, so can you try removing all blacklisted players and adding them one by one?

The only app I want to block is freetube so my blacklist is empty except for it. I have removed and re-added it multiple times.
Since its just me, I'll continue to test. Like seeing if it happens on my laptop or if its just my desktop for some reason.

Same behavior on my laptop. Also running Fedora Silverblue.
Also tested blocking Firefox, it works as expected. So it seems I am only having trouble with Freetube for some reason.

Does the extension show the correct freetube icon?

No, it does not. However the icon is show properly in the blacklist settings.

I have discovered, for some reason, sometimes it works. I haven't tracked down the exact steps to reproduce it yet. But sometimes I will be using freetube and then notice its blacklisted properly. But if I restart freetube then it will be back to not blacklisted.
The icon in the extension will show up sometimes. I think it has something to do with switching between apps in the extension. Once I switch back to freetube, the icon is there. If I restart freetube the icon is missing again.

I noticed that Freetube exposes two MPRIS services (this extensions uses these services to identify media players), one was called Freetube and the other was called chromium (this makes sense assuming Freetube uses Electron), maybe this plays a part in the issue, I am not sure, but I will look into it. The odd thing is I always get the Freetube icon right in the extension. What is your freetube version?

I am currently using v0.19.1 Beta.

Im on the same version. It's really weird that it works for me, but not for you. Is you laptop on Fedora Silverblue  as well?

Yes, laptop is running Fedora Silverblue as well.

Random information/thoughts that may or may not be helpful:

I noticed freetube changes the window's name based on the video playing. Could that be interfering with the blacklist?
you can open multiple freetube windows to play multiple videos at once, but the extension only shows one freetube. The extension will show controls for the last video that was started/stopped.

next time I notice the blacklist working I am going to test if opening a second window breaks the blacklist.

this is happening on both X11 and wayland. I run X11 on my desktop and wayland on my laptop.

I am still trying to track down the exact circumstances of when blacklist works and when it doesn't. Currently it seems to work after a certain amount of time. Or something I do infrequently makes it work.
It definitely doesn't work right after I reboot and/or login. Which is weird to me, I would expect it to work then if at all...
Is there any debug logs I can provide or something like that?

Can you post the output of this command?
gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep -Poi "'org.mpris.Mediaplayer2\..+?'" | xargs -I{} gdbus introspect --session --dest {} --object-path /org/mpris/MediaPlayer2
This command will list all the active media players and fetch their information via gdbus. Make sure the freetube is open and playing a video before running this command.

gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep -Poi "'org.mpris.Mediaplayer2\..+?'" | xargs -I{} gdbus introspect --session --dest {} --object-path /org/mpris/MediaPlayer2
node /org/mpris/MediaPlayer2 {
};
node /org/mpris/MediaPlayer2 {
  interface org.freedesktop.DBus.Properties {
    methods:
      Get(in  s interface_name,
          in  s property_name,
          out v value);
      GetAll(in  s interface_name,
             out a{sv} properties);
      Set(in  s interface_name,
          in  s property_name,
          in  v value);
    signals:
      PropertiesChanged(s interface_name,
                        a{sv} changed_properties,
                        as invalidated_properties);
    properties:
  };
  interface org.freedesktop.DBus.Introspectable {
    methods:
      Introspect(out s xml_data);
    signals:
    properties:
  };
  interface org.freedesktop.DBus.Peer {
    methods:
      Ping();
      GetMachineId(out s machine_uuid);
    signals:
    properties:
  };
  interface org.mpris.MediaPlayer2 {
    methods:
      Raise();
      Quit();
    signals:
    properties:
      readonly b CanQuit = true;
      readonly b CanSetFullscreen = false;
      readonly b CanRaise = true;
      readonly b HasTrackList = false;
      readonly s Identity = 'Spotify';
      readonly s DesktopEntry = 'spotify';
      readonly as SupportedUriSchemes = ['spotify'];
      readonly as SupportedMimeTypes = [];
  };
  interface org.mpris.MediaPlayer2.Player {
    methods:
      Next();
      Previous();
      Pause();
      PlayPause();
      Stop();
      Play();
      Seek(in  x Offset);
      SetPosition(in  o TrackId,
                  in  x Position);
      OpenUri(in  s Uri);
    signals:
      Seeked(x Position);
    properties:
      readonly s PlaybackStatus = 'Paused';
      readwrite s LoopStatus = 'None';
      readwrite d Rate = 1.0;
      readwrite b Shuffle = true;
      readonly a{sv} Metadata = {'mpris:trackid': <'/com/spotify/track/6m4HWTYMRSJkaUuvXTaNmE'>, 'mpris:length': <uint64 203066000>, 'mpris:artUrl': <'https://i.scdn.co/image/ab67616d0000b273c3c0ca7a4929d96f2f1c5774'>, 'xesam:album': <'The Good, The Bad and The Ugly (Original Motion Picture Soundtrack) [Remastered Edition]'>, 'xesam:albumArtist': <['Ennio Morricone']>, 'xesam:artist': <['Ennio Morricone']>, 'xesam:autoRating': <0.54000000000000004>, 'xesam:discNumber': <1>, 'xesam:title': <"The Ecstasy of Gold - L'Estasi Dell'oro">, 'xesam:trackNumber': <20>, 'xesam:url': <'https://open.spotify.com/track/6m4HWTYMRSJkaUuvXTaNmE'>};
      readwrite d Volume = 0.4516060120546273;
      readonly x Position = 124503000;
      readonly d MinimumRate = 1.0;
      readonly d MaximumRate = 1.0;
      readonly b CanGoNext = true;
      readonly b CanGoPrevious = true;
      readonly b CanPlay = true;
      readonly b CanPause = true;
      readonly b CanSeek = true;
      readonly b CanControl = true;
  };
};

gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep -Poi "'org.mpris.Mediaplayer2\..+?'"
'org.mpris.MediaPlayer2.chromium.instance2'
'org.mpris.MediaPlayer2.spotify'

gdbus introspect --session --dest org.mpris.MediaPlayer2.chromium.instance2 --object-path /org/mpris/MediaPlayer2
node /org/mpris {
  node MediaPlayer2 {
  };
};

These commands were run when I was playing a video in freetube and the extension's blacklist was not working properly.

That's very weird, I guess the empty node is Freetube.

Are you able to control freetube properly through the extension?

@aacater Is this fixed now?

I think so. At least I haven't noticed it happening but I am also using freetube less.
Thanks!


exec(open ${url}) fails to pass on all but the first query parameter

I was working with making some scripts for working with https://obsidian.md/ and ran into an issue with the uri structure they use to open and create new notes.
As they do not have a CLI to open new notes, I am working with their uri structure for this objective (https://help.obsidian.md/Advanced+topics/Using+obsidian+URI). I've used this successfully from my terminal and browsers, however, ScriptKit seems to have an issue with multiple query parameters. I'm not sure yet if this is ScriptKit itself or the underlying shelljs exec command it's using.
I was using the exec(open url) strategy discussed in this post https://github.com/johnlindquist/kit/discussions/142 to try and create a script that makes a new note in Obsidian via their uri structure using this:
const noteName = arg("Name your new note");
exec(`open obsidian://new?vault=TreTuna-Digital-Garden&file=Thoughts%2F${noteName}`)

However, it seems that exec("open {uri}") has an issue with multiple query params and simply ignores all but the first one. I'm not sure if this is something with ScriptKit or with ShellJS and haven't been able to track it down yet. This isn't something specific to the Obsidian url structure either as I tried uris like this:
exec("open https://www.scriptkit.com/scripts/johnlindquist?first=works&second=ignore")
and the actual uri that ends up in the browser is:
https://www.scriptkit.com/scripts/johnlindquist?name=works

& has special meaning in bash/zsh (which exec calls out to). So I believe quotes are required so that it's cast as a string:
exec(
  `open "https://www.scriptkit.com/scripts/johnlindquist?first=works&second=ignore"`
)

☝ This worked for me.

🤦 This makes complete sense and works for me now. Thought it could be something simple that I was just missing.


Covid-19 Report Analysis

@Niketkumardheeryan I want to contribute as a part of GSSOC. i want to add a detailed analysis of Covid 19 pandemic through Powerbi which includes analysis like: top 10 States with highest active cases, top 10 states with lowest active cases, total vaccination, male vs female vaccination , affected states according dates wise etc.

@Niketkumardheeryan please assign this issue.

@invigorzz313 I have already viewed the project. It focuses on the global impact of COVID-19, whereas my project specifically examines the impact on India and provides an analysis of vaccination. My project is created using Power BI.

@Niketkumardheeryan Please assign me this issue , I am a contributor under GSSOC'24 . I have a fair knowledge about tableau , power bi , google looker and it will be useful for making covid analysis .


V5 inconsistencies when using UTF8/Unicode characters

The Dart V5 UUID differs from the Python output when using UTF8/Unicode characters.
Python
import uuid
key = uuid.uuid5(
    namespace=uuid.NAMESPACE_X500,
    name="人",
)
print(key)

Output: 3af28677-8030-59ef-81a6-051ddf226fad
Dart
import "package:uuid/uuid.dart";
final String key = const Uuid().v5(Uuid.NAMESPACE_X500, "人");
print(key);

Output: f7cd5579-8db4-5043-bd83-98565a62a4f4
Additionally, I played with specifying V5Options.
Expected Output
The output String should be consistent.

@daegalus created the following pull request: #112

Additionally, this means two different input names can result in the same UUID - e.g. "人" & "äºº" will both

I merged the PR. good catch. Did not conisder UTF8. I will add some tests to cover regressions.

The fix is now part of the v4.4.0 release, sorry for the delay, there were other problems I had to fix due other problems fixed as part of the release.


Docker client is newer than server (client API version: 1.26, server API version: 1.24)

$ sudo GOPATH=$GOPATH SYSTEMD_NSPAWN_PATH=/home/alban/git/systemd/systemd-nspawn ./kubeadm-nspawn up --nodes 3
2017/05/22 18:06:51 Error when starting registry: Error response from daemon: client is newer than server (client API version: 1.26, server API version: 1.24)

$ sudo docker version
Client:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-common-1.12.6-6.gitae7d637.fc25.x86_64
 Go version:      go1.7.4
 Git commit:      ae7d637/1.12.6
 Built:           Mon Jan 30 16:15:28 2017
 OS/Arch:         linux/amd64

Server:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-common-1.12.6-6.gitae7d637.fc25.x86_64
 Go version:      go1.7.4
 Git commit:      ae7d637/1.12.6
 Built:           Mon Jan 30 16:15:28 2017
 OS/Arch:         linux/amd64

glide.locks has:
- name: github.com/docker/docker
  version: fe5f49685df0d52127158f7e9a2882b8c4168dab

This is version v17.05.0-ce according to https://github.com/moby/moby/commit/fe5f49685df0d52127158f7e9a2882b8c4168dab

I tried to use the older docker library https://github.com/moby/moby/releases/tag/v1.12.6:
diff --git a/glide.lock b/glide.lock
index 84764ad..4341ef3 100644
--- a/glide.lock
+++ b/glide.lock
@@ -12,7 +12,7 @@ imports:
   - digestset
   - reference
 - name: github.com/docker/docker
-  version: fe5f49685df0d52127158f7e9a2882b8c4168dab
+  version: 78d18021ecba00c00730dec9d56de6896f9e708d
   subpackages:
   - api/types
   - api/types/blkiodev

(edit glide.lock and run glide install --strip-vendor)
But then, I get:
go build -o kubeadm-nspawn ./cmd/kubeadm-nspawn
# github.com/kinvolk/kubeadm-nspawn/pkg/distribution
pkg/distribution/registry.go:74: cannot use
"github.com/kinvolk/kubeadm-nspawn/vendor/github.com/docker/go-connections/nat".PortMap literal (type
"github.com/kinvolk/kubeadm-nspawn/vendor/github.com/docker/go-connections/nat".PortMap) as type
"github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortMap in field value
Makefile:2: recipe for target 'all' failed

I'm trying to resolve the vendoring issue...

According to https://godoc.org/github.com/moby/moby/client#NewEnvClient, I can use DOCKER_API_VERSION=1.24 to ask the client to speak that version of the protocol.
 I still need to pass DOCKER_API_VERSION=1.24 on the command line.

And the next error (Error when pushing image: Get https://<IP_ADDRESS>:5000/v1/_ping: http: server gave HTTP response to HTTPS client) can be worked around with:

/etc/sysconfig/docker: INSECURE_REGISTRY='--insecure-registry <IP_ADDRESS>:5000'
sudo systemctl restart docker

What's the state of this @alban? Can we close?

@blixtra I have not seen the issue when I tested last time, but that was with a released version of Kubernetes, so without using the Docker Registry.
I think this should be re-tested with Kubernetes compiled locally.

FYI I haven't been able to reproduce such an error, both with k8s 1.7 and with k8s master (1.8).

@dongsupark Thanks for testing. I'll close this. We will reopen if it happens again.


Lessen spread if can't meet minimum amount

Closes #165

Description

Bot will, on a per-currency basis, lower the spread if the higher spread would mean it would not be able to lend more than the minimum amount.
Before:
Have .0025 coin set to 3 spread.
Bot would make 3 offers of ~.000833 each below the minimum of .001

Assumed: Poloniex rounds up the first two offers to meet the minimum, then makes the third fail due to not meeting it.
That is what I see the situation to be, if you have another idea feel free to help.

After:
Have .0025 coin set to 3 spread.
Bot sees that ".0025 < .001 * 3" and so removes one spread.
Bot sees that it may now split .0025 by 2 and be over the minimum for both lends.
Two offers for .00125 are placed and accepted.

If you only have <.001 coin, the function would never be called in the first place, thus avoiding a spread of zero.

#165

TESTING STAGE

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have read CONTRIBUTING.md
[x] I fully understand Github Flow.
[x] My code adheres to the code style of this project.
[N/A] I have updated the documentation in /docs if I have changed the config, arguments, logic in how the bot works, or anything that understandably needs a documentation change.
[N/A] I have updated the config file accordingly if my change requires a new configuration setting or changes an existing one.
[x] I have tested the bot with no issues for 24 continuous hours. If issues were experienced, they have been patched and tested again.

May not want to merge this, I am planning total rewrite of lending logic. Will keep open if this proves to be a solution.


Build with version 7.0.0 failing

About this issue
When bumping this lib to 7.0.0 (https://github.com/openhab/openhab-android/pull/1391/files), the build fails with the following error:
https://travis-ci.org/openhab/openhab-android/builds/548876276#L1901
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mobile:transformResourcesWithMergeJavaResForFossBetaDebug'.
> More than one file was found with OS independent path 'META-INF/library-core_release.kotlin_module'

Details

[ ] Used library version: 7.0.0
[ ] Used support library version

    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.2"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.2"
    implementation "androidx.core:core-ktx:1.0.2"
    implementation "androidx.fragment:fragment-ktx:1.0.0"
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.40"
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.android.material:material:1.0.0'

[ ] Used gradle build tools version
[ ] Used tooling / Android Studio version
[ ] Other used libraries, potential conflicting libraries

Checklist

[x] Searched for similar issues
[ ] Checked out the sample application
[x] Read the README
[ ] Checked out the CHANGELOG
[x] Read the MIGRATION GUIDE

I am not sure it sounds like something which happens when compiling with kotlin.
    packagingOptions {
        exclude 'META-INF/library-core_release.kotlin_module'
    }

Should fix it

Thanks, that works. Can you add this to the library? Otherwise this must be fixed in every app that uses AboutLibraries.

I don't think it will make a difference to add this line to the library. I can try though for the next update.


Failed to Produce aop-ajc.xml

Any ideas on the possible source of this error?  Trying to run the latest JavaMOP with the latest RV-Monitor on an EC2 instance (for use w/ RV-Cloud and @sorfrancesco's new instrumenting website) and running into the following error (RV-Monitor by itself and ajc by itself is working, and both are on the classpath).
[ec2-user@ip-172-31-9-191 javamop]$ ./bin/javamop -agent jprops/util/
-Processing 0 specification(s)
 JavaMOPAgent_1MonitorAspect.aj is generated
-Processing 58 specification(s)
 JavaMOPAgent_1RuntimeMonitor.java is generated
(ajc) Failed to produce aop-ajc.xml

An output directory is created with the appropriate files as follows and all files appear sane:
[ec2-user@ip-172-31-9-191 javamop]$ ls output1560723591008365497/
BaseAspect.aj  JavaMOPAgent_1MonitorAspect.aj  JavaMOPAgent_1RuntimeMonitor.java

I'm running AspectJ 1.8.4.

Did you ever solve this problem? I have run into the same issue.


Problems plotting directed graphs without edges

On Julia v1.8.3 with GraphMakie v0.4.3, Makie v0.18.2, GLMakie v0.7.2 and:
using GLMakie, GraphMakie; import Graphs
graph = Graphs.SimpleDiGraph(2)

the following work as expected:
graphplot(graph)
graphplot(graph, edge_plottype = Makie.automatic)

while these do not:
graphplot(graph, edge_plottype = :linesegments)
# ERROR: MethodError: no method matching ptype(::Type{Any})

# (this is the one I actually need:)
graphplot(graph, edge_plottype = :beziersegments)
# ERROR: StackOverflowError:
# [...]
# Billboard(angles::Vector{Any}) (repeats 15393 times)
#    @ MakieCore ~/.julia/packages/MakieCore/77C6Z/src/types.jl:112

I can work around this by conditionally setting edge_plottype = Makie.automatic if the graph has no edges.
(Slightly off-topic, but graphplot(graph, edge_plottype = :somethingelse) gives a confusing error message MethodError: no method matching length(::Nothing) while it should probably complain about an invalid plot type instead.)

The problem also occurs on Julia v1.8.3 with GraphMakie v0.5.0, Makie v0.19.0 and GLMakie v0.8.0.

Hm the error message should be improved i agree. I'll try to look into the problem the next days. Just out of curiosity: What are you trying to do with beziersegments which isn't covered using automatic mode?

See #93.


Upgrade requirements files

Closes #728
the server.py file is removed, since it is not used. Found removing unused libraries within the whole project.
The following modules were used:
pipdeptree: Which creates the dependencies tree and verifies conflict among versions.
pip-review: Which checks libraries updates.
pip_check_reqs: Which shows modules which are not used in the project.

thanks @russbiggs. You are right. Whether environment is production or staging, the running script is runserver.py or server.py


maven-metadata.xml not updated within group+proxy repository

We have a snapshot Maven proxy repository in Strongbox proxying to a Nexus one. The issue is that the information in the maven-metadata.xml is not getting updated properly. The snapshot artifact's metadata in Strongbox is here and the Nexus one is here.
The problem is that latest snapshot versions differs:

In Strongbox, the latest is 1.0-20180917.013403-3
In Nexus, the latest is 1.0-20181001.074150-8

The maven-metadata.xml file should be updated at some point with MavenMetadataManager, but this is not happening and needs to be fixed.
Steps to reproduce:

Install Nexus
Install Strongbox
Configure Strongbox with a proxy repo to Nexus
Deploy something to Nexus
Resolve it from Strongbox
Deploy a newer version to Nexus
Resolve the metadata from Strongbox

#858

I think we should implement it like this:

An artifact gets downloaded
A request for it comes in:

If it's a snapshot

If it's a Maven repository:

We should have an option for the expiration of metadata (not just the artifacts)
Try to get the maven-metadata.xml.sha1 or maven-metadata.xml.md5 from the remote. Compare it with the local. If it's newer, get the resource + checksums and return the latest timestamped artfiact when requested

@carlspring in case of checksum invalidation it's not clear how this will work for group repositories. It will be much overheads if we will check checksum for all proxy repositories in group on every request.

You are right and I've been thinking about this since you raised it the other day. However, I think there are two aspects to consider here:

The behavior in proxy repositories. If you're proxying a remote repository, then you're definitely working with one copy (umerged) of the remote. So, in this case, (if my theory is true), it would be safe to check the local and remote checksums. Right?
The behavior in group repositories. In this case you're right. However, how about this -- when we create a merged representation of the maven-metadata.xml file, we can keep a record of the checksums of the remote resource. Each time, the file is updated/merged, we'll update the recorded checksum for the respective file that was changed on the remote.

Would this work?

I think we can invalidate checksums for proxies in group in parallel. So from the performance point of view it will be the same as for direct proxies.
So I think we should try it. :)

@carlspring , @sbespalov please add your comments, please

I believe this covers things quite thoroughly.
There's just one case I'd like to clarify: the case where the group's timeout is different than the proxy's. In this case, whichever's lower should take precedence.

Regarding 2.2 i thought that it not just first matched but always agregated from group members


[improve][broker] Drop RestException stacktrace if http code in client error family.

Fixes #18541
Motivation
sometimes we call rest admin api, but topic or namespace  or  policy not exist. we got a lot of Exception stackTrace in log.
which is unnessary.
Modifications
drop stack trace if RestException status code in 4xx family.
then log.error(xxxxx, throwable) only print throwable msg, no stacktrace is printed.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Codecov Report

Merging #18540 (cbebe73) into master (aeb4503) will decrease coverage by 8.10%.
The diff coverage is 48.57%.

@@             Coverage Diff              @@
##             master   #18540      +/-   ##
============================================
- Coverage     31.39%   23.28%   -8.11%
+ Complexity     6651     2983    -3668
============================================
  Files           697      383     -314
  Lines         68015    41849   -26166
  Branches       7285     4272    -3013
============================================
- Hits          21353     9746   -11607
+ Misses        43667    30553   -13114
+ Partials       2995     1550    -1445

Flag
Coverage Δ

unittests
23.28% <48.57%> (-8.11%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...pulsar/broker/admin/impl/PersistentTopicsBase.java
8.43% <0.00%> (-7.33%)
:arrow_down:

...ersistentStickyKeyDispatcherMultipleConsumers.java
39.60% <0.00%> (+1.14%)
:arrow_up:

...ersistentStreamingDispatcherMultipleConsumers.java
0.00% <0.00%> (ø)

...sistent/PersistentDispatcherMultipleConsumers.java
40.31% <66.66%> (+1.08%)
:arrow_up:

...va/org/apache/pulsar/broker/web/RestException.java
76.31% <100.00%> (+45.06%)
:arrow_up:

...er/service/persistent/PersistentMessageFinder.java
0.00% <0.00%> (-40.91%)
:arrow_down:

...he/pulsar/broker/service/TopicPoliciesService.java
10.00% <0.00%> (-40.00%)
:arrow_down:

.../apache/pulsar/broker/admin/impl/PackagesBase.java
0.00% <0.00%> (-25.69%)
:arrow_down:

...a/org/apache/pulsar/broker/service/Dispatcher.java
21.42% <0.00%> (-14.29%)
:arrow_down:

...va/org/apache/pulsar/broker/admin/v3/Packages.java
0.00% <0.00%> (-14.29%)
:arrow_down:

... and 348 more

@lifepuzzlefun Yes. I don't think it's a big matter to have a long stack trace while it's by design.
I'd prefer to make this move if you or other users provide logs that the stack trace does affect debugging. Generally, completed traces help debug. And the motivation to simplify logs or trace is to avoid flooding the whole output.
Closing...

Yes. I'd prefer to make this move only if you or other users provide logs that the long stack traces do affect debugging.
Generally, full logs or traces help to debug. One motivation to reduce logs and traces is for normal running situations, avoid useless logs/traces flooding the whole output. This specific exception seems not in such cases.
Closing...

Yes. I'd prefer to make this move only if you or other users provide logs that the long stack traces do affect debugging.
Generally, full logs or traces help to debug. One motivation to reduce logs and traces is for normal running situations, avoid useless logs/traces flooding the whole output. This specific exception seems not in such cases.
Closing...


Release v2 oop

Codecov Report

Merging #2 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##            master        #2    +/-   ##
==========================================
  Coverage   100.00%   100.00%
==========================================
  Files            1        13    +12
  Lines           45       168   +123
  Branches        10        26    +16
==========================================
+ Hits            45       168   +123

Impacted Files
Coverage Δ

src/cli/questions/confirm-directory.ts
100.00% <100.00%> (ø)

src/cli/questions/confirm-scanned-dir.ts
100.00% <100.00%> (ø)

src/cli/questions/directory.ts
100.00% <100.00%> (ø)

src/cli/questions/exclusions.ts
100.00% <100.00%> (ø)

src/cli/questions/extensions.ts
100.00% <100.00%> (ø)

src/cli/questions/index.ts
100.00% <100.00%> (ø)

src/cli/questions/output.ts
100.00% <100.00%> (ø)

src/cli/questions/question.ts
100.00% <100.00%> (ø)

src/directory.ts
100.00% <100.00%> (ø)

src/file.ts
100.00% <100.00%> (ø)

... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 370c3ad...a33e159. Read the comment docs.


helmwave hangs on "up" with 0.14

Describe the bug
While trying to understand how to use helmwave I run:
helmwave build
helmwave  up

and healwave hang up.
helmwave.yml is as simple as:
project: node-setup

repositories:
- name: jetstack
  url: https://charts.jetstack.io

releases:
- name: cert-manager
  namespace: cert-manager
  chart:
    name: jetstack/cert-manager
    version: v1.5.3
  createnamespace: true

setting log leverl to debug I see:
[🙃 aka INFO]: 🛥 Sync releases...
[🙃 aka INFO]: 🛥 "cert-manager@cert-manager" deployig...
[🤷 aka DEBUG]: getting history for release cert-manager
[🤷 aka DEBUG]: 🧐 Release "cert-manager@cert-manager" does not exist. Installing it now.
[🤷 aka DEBUG]: creating 1 resource(s)
[🤷 aka DEBUG]: creating 38 resource(s)
[🤷 aka DEBUG]: creating 1 resource(s)
[🤷 aka DEBUG]: creating 1 resource(s)
[🤷 aka DEBUG]: creating 1 resource(s)
[🤷 aka DEBUG]: creating 1 resource(s)
[🤷 aka DEBUG]: Watching for changes to Job cert-manager-startupapicheck with timeout of 0s
[🤷 aka DEBUG]: Add/Modify event for cert-manager-startupapicheck: ADDED
[🤷 aka DEBUG]: cert-manager-startupapicheck: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
[🤷 aka DEBUG]: Add/Modify event for cert-manager-startupapicheck: MODIFIED
[🤷 aka DEBUG]: cert-manager-startupapicheck: Jobs active: 1, jobs failed: 0, jobs succeeded: 0

** General info:**

OS: Ubuntu 20.04
microk8s 1.21 + helm 3.5.0
Helmwave Version 0.14.0
My planfile:

project: node-setup
version: 0.14.0
template: null
repositories:
- name: jetstack
  url: https://charts.jetstack.io
  username: ""
  password: ""
  certfile: ""
  keyfile: ""
  cafile: ""
  insecureskiptlsverify: false
  passcredentialsall: false
  force: false
releases:
- store: {}
  chart:
    name: jetstack/cert-manager
    cafile: ""
    certfile: ""
    keyfile: ""
    insecureskiptlsverify: false
    keyring: ""
    password: ""
    passcredentialsall: false
    repourl: ""
    username: ""
    verify: false
    version: v1.5.3
  name: cert-manager
  namespace: cert-manager
  description: ""
  depends_on: []
  values: []
  tags: []
  timeout: 0s
  maxhistory: 0
  createnamespace: true
  resetvalues: false
  recreate: false
  force: false
  atomic: false
  cleanuponfail: false
  subnotes: false
  disablehooks: false
  disableopenapivalidation: false
  waitforjobs: false
  wait: false
  skipcrds: false
  devel: false
  reusevalues: false

I don't have a helmwave render command...
Is there something wrong in my commands?

After a long time it terminated with the following error:
[💩 aka ERROR]: ❌ cert-manager@cert-manager: failed post-install: job failed: BackoffLimitExceeded
[🤬 aka FATAL]: 1 error occurred:
	* failed post-install: job failed: BackoffLimitExceeded

Does that give a useful hint?

I don't have a helmwave render command...

Dont worry. This command for old version.

This is not a bug helmwave.
Looks like you have the problem with your resources in the cluster.
https://stackoverflow.com/questions/54825671/understanding-backofflimit-in-kubernetes-job


Support generics

manu should support generics, just like Tensor in arraymancer or Matrix in neo.
Thank you in advance!

Well, no, if only you had a better argument than neo and arraysomething does that maybe we could discuss it.

Op did not answered with arguments.


Issue on Jetson TX2 NX when activating IMU

Required Info

Camera Model
D455

Firmware Version
<IP_ADDRESS>

Operating System & Version
Ubuntu 18.04 L4T

Kernel Version (Linux Only)
4.9.253-tegra

Platform
Jetson TX2 NX

SDK Version
2.50.0 }

Language
python

Segment
others

Issue Description
I have a python script that used to work with only the dpeth and rgb streams enabled.
I need to have the accel stream to process the position of the camera and when I enable it, Frames do not arrive and I have the error below.
Seems like a udev rule not applied correctly.
Jetson has been flashed with Jetpack 4.6 initially. I have applied the L4T kernel patch, and I compiled the realsense lib per this document: https://dev.intelrealsense.com/docs/nvidia-jetson-tx2-installation
when I run the script, I have this error :
Traceback (most recent call last):
  File "test.py", line 20, in <module>
    f = p.wait_for_frames()
RuntimeError: Frame didn't arrive within 5000

syslog has the following errors
Apr 12 12:07:48 fp-tx2-02 systemd-udevd[9319]: Process '/bin/sh -c ' chmod -R 0777 /sys//devices/3530000.xhci/usb2/2-2/2-2.3/2-2.3:1.5/0003:8086:0B5C.000B/HID-SENSOR-200073.1.auto && chmod 0777 /dev/HID-SENSOR-200073.1.auto'' failed with exit code 1.
Apr 12 12:07:48 fp-tx2-02 systemd-udevd[9379]: Process '/bin/sh -c ' chmod -R 0777 /sys//devices/3530000.xhci/usb2/2-2/2-2.3/2-2.3:1.5/0003:8086:0B5C.000C/HID-SENSOR-200073.1.auto && chmod 0777 /dev/HID-SENSOR-200073.1.auto'' failed with exit code 1.
Apr 12 12:07:48 fp-tx2-02 kernel: [   82.307230] hid-sensor-hub 0003:8086:0B5C.000C: No report with id 0xffffffff found
Apr 12 12:07:48 fp-tx2-02 kernel: [   82.315656] hid-sensor-hub 0003:8086:0B5C.000C: No report with id 0xffffffff found
Apr 12 12:07:48 fp-tx2-02 systemd-udevd[9379]: Process '/bin/sh -c ' chmod -R 0777 /sys//devices/3530000.xhci/usb2/2-2/2-2.3/2-2.3:1.5/0003:8086:0B5C.000C/HID-SENSOR-200073.1.auto && chmod 0777 /dev/HID-SENSOR-200073.1.auto'' failed with exit code 1.
Apr 12 12:07:48 fp-tx2-02 systemd-udevd[9397]: Process '/bin/sh -c ' chmod -R 0777 /sys//devices/3530000.xhci/usb2/2-2/2-2.3/2-2.3:1.5/0003:8086:0B5C.000C/HID-SENSOR-200076.2.auto && chmod 0777 /dev/HID-SENSOR-200076.2.auto'' failed with exit code 1.
Apr 12 12:07:48 fp-tx2-02 kernel: [   82.387245] hid-sensor-hub 0003:8086:0B5C.000C: No report with id 0xffffffff found
Apr 12 12:07:48 fp-tx2-02 kernel: [   82.395635] hid-sensor-hub 0003:8086:0B5C.000C: No report with id 0xffffffff found
Apr 12 12:07:48 fp-tx2-02 kernel: [   82.403448] hid-sensor-hub 0003:8086:0B5C.000C: No report with id 0xffffffff found
Apr 12 12:07:48 fp-tx2-02 kernel: [   82.411098] hid-sensor-hub 0003:8086:0B5C.000C: No report with id 0xffffffff found
Apr 12 12:07:48 fp-tx2-02 kernel: [   82.418963] hid-sensor-hub 0003:8086:0B5C.000C: No report with id 0xffffffff found
Apr 12 12:07:48 fp-tx2-02 kernel: [   82.426898] hid-sensor-hub 0003:8086:0B5C.000C: No report with id 0xffffffff found

The same python script works in a Ubuntu 18.04 VM running in Vmware Fusion on a Mac (x86)
thank you

Hi @bricemiramont  It is a known issue that having three stream types (depth, RGB, IMU) enabled at the same time can cause No Frames Received problems in the RealSense SDK.  It does not matter which order the streams are enabled in, as enabling the IMU streams is always the trigger.
It does not occur for every RealSense user, which may account for why you do not experience the problem on your Mac VM setup but do on Nvidia Jetson (i.e it is a computer-related issue rather than a camera hardware issue).
A workaround in Python is to set up two separate pipelines, with IMU on one pipeline and depth & color on the other pipeline.
The best example of a Python script for implementing this is at https://github.com/IntelRealSense/librealsense/issues/5628#issuecomment-575943238

Hi Marty,
ok thank you for the info, I'll try that.
thank you,
Brice

Hello,
sorry about that but I have the same issue when only the accel stream is enabled.

I built the lib from the source code.
I am building it with RSUSB backend with the libuvc_installation script.
I added python bindings and cuda boolean in the sh script and it is compiling at the moment.
I will try the lib after that, with two pipelines (one for imu and one for depth/rgb). I'll keep you informed

Thanks very much for the update - I look forward to your next report.  Good luck!

Hello Marty,
It does work with the RSUSB compilation process. I reverted back to one pipeline for the three streams and it does work.
thank you,
Brice

You are very welcome.  It's great to hear that RSUSB worked for you  :)


openssl: bump to 1.0.2r release

Corresponding DC/OS tickets (obligatory)
https://jira.mesosphere.com/browse/DCOS_OSS-4868
Checklist for all PRs

[x] Added a comprehensible changelog entry to CHANGES.md or explain why this is not a user-facing change:
[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[ ] Read the DC/OS contributing guidelines
[ ] Followed relevant code rules Rules for Packages and Systemd

@mesosphere-mergebot label Ready For Review


PopulateIndexMetrics return unsupported index reccomendations

Describe the bug
PopulateIndexMetrics returns Potential Composite Indexes with missing indexes where the path includes an array, which is not a supported composite index. The issue is also described here: https://stackoverflow.com/questions/75203887/cosmosdbs-index-recommendations-that-include-arrays-seem-to-be-in-an-unsupporte
Expected behavior
PopulateIndexMetrics would only return potential indexes that can actually be applied
Environment summary
SDK Version: v3.31.2

@neildsh / @jcocchi Could anyone help understand if this is needs to be addressed?

@leminh98 Is this related to your Index Advisor work?


Only hide help text when leaving the fieldset

Filter mouseleave event done to just fieldset.
This feature is still implement entirely in javascript though when most of it should just be CSS.

Coverage remained the same at 81.69% when pulling 5ca8bc330911227680c2f9ca5bd1415e97110916 on fix-stupid-hiding-bug into 5b758d51dd8ea2a678a7350c119fc16ec79a8100 on staging.

Coverage remained the same at 81.79% when pulling 4e3f9c7a95ee55b42f073e47320e28a4beb3af34 on fix-stupid-hiding-bug into 24373498b7f3580a5c1c3296d0952fcab44e5f47 on staging.


Safari appears to freeze after trying to use share option

Great installation instructions. I think I followed them precisely and I get no response when I use the share icon in safari and nothing in the logs (even after uncommenting the debug line)
This is what happens:
http://www.giphy.com/gifs/3o6fJgk6hzvRcamF4Q
If I am using pods, do I need to do anything extra to make that work?

Nothing of note in device log and console log both?

@TheTekton No, I added the OS_ENV enable setting to the scheme and uncommented the log level in the .m file. Pods don't mess anything up? Like I need to include that into the share extension target?
I will try to get the sample project working before I comment again here.

Try my fork https://github.com/raindropio/react-native-share-extension
It works for any app. I experienced many apps that not work with current version of this lib.

@kevando Any progress? If you get a sample going, I'll take a look. Pods shouldn't mess anything up. And you'd probably notice right away, if they were an issue, I think.

@kevando I ran into this exact issue and was able to figure out a way around it. I had to run the main react native app from xcode, wait for it to launch in the simulator, and then go back to xcode and run the share extension app, choosing safari as the app it runs from when prompted, and waiting for safari to launch. From there, I was able to share from Safari and the modal popped up as expected.

Getting RCTbridgeModule.h  error using Detached from Expo Project In Demo Project Working Perfect .

I've found that this issue arose after adding in the react-native-google-sign-in package. Is anyone else using this package and also having this issue?

Facing the same issue when trying to share something from Safari or Image Gallery.
"react": "^16.0.0-beta.5",
"react-native": "0.53.3",
"react-native-share-extension": "^1.2.1"

same issue
react native 0.45

solve the problem

my index file is index.js not index.ios.js, but in readme's MyShareEx.m is using index.ios, so I need replace @"index.ios" to @"index"

make sure App Transport Security Settings has localhost's http request permission

Doing AppRegistry.registerComponent('MyExt', () => ShareComponent) on a separate file seems to work for me. It's also needed to set the jsBundleURLForBundleRoot to the new file where the extension is now being registered instead of index. In my case the issue was with the Google SignIn module and doing this seems to fix it.

same issue here......

@cdn34 Separating files worked for me !!! Thanks !!!

@nakamotoo I ended up changing the solution I posted here due to issues building the app for production, you may face similar issues. In case you do, what I did to fix those was to update my index.js file to be the following :
import { AppRegistry } from "react-native";

AppRegistry.registerComponent('MyExt', () => require('./src/components/Share').default);
AppRegistry.registerComponent('App', () => require('./indexWrapper').default);

The contents of my original index.js file are now located in indexWrapper.js. This makes sure the extension only uses the modules it's actually requiring instead of the modules the main app is using.

@cdn34 Thaks. I tried to build the app for production , and as you told me, Safari froze.
Here are my index.js and ShareExtension.js. which I separated.
index.js
import { AppRegistry } from "react-native";
import App from "./src/App";
import { name as appName } from "./app.json";

AppRegistry.registerComponent(appName, () => App);

ShareExtension.js
import { AppRegistry } from "react-native";
import Share from "./src/components/Share.ios";

AppRegistry.registerComponent("ShareExtension", () => Share);

I've tried your solution and fix my index.js like below but it didn't work...
import { AppRegistry } from "react-native";
import { name as appName } from "./app.json";

AppRegistry.registerComponent(
  "Share",
  () => require("./src/components/Share.ios").default
);
AppRegistry.registerComponent(appName, () => require("./src/App").default);

Could you please tell me how I should fix it ?

@nakamotoo In your project: Targets -> MyExt -> Build Phases -> Run Script - Add :
export NODE_BINARY=node
../node_modules/react-native/scripts/react-native-xcode.sh

@cdn34 Thanks for the reply, but actually I already have added the script.
The problem is that by separating the index.js and ShareExtension.js, the extension only works in dev environment.
After I fixed my index.js like above, the extension does not work even in dev environment.

@nakamotoo It's kind of hard to know what your current problem may be without any other information. I’ve also changed a lot things since then, so I don’t recall exactly if there were any other steps to fix the issue.
Other things I did at the time, not exactly sure if are related to your issue or not:

Targets -> MyExt -> Project Bundle Identifier : { Set the correct one for each entry - Ex: com.app.dev.ext } { Set the desired product name Ex: ext }
MyExt -> Info.plist:
Bundle identifier : $(PRODUCT_BUNDLE_IDENTIFIER)
For each scheme you’re using in for your app -> Edit scheme -> Build -> Pre-actions -> Run Script:

buildID=${PRODUCT_BUNDLE_IDENTIFIER}
extId="ext"

/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier $buildID.$extId" "${SRCROOT}/${extId}/Info.plist"

I also followed the tutorial for iOS (I only did the Setup iOS part), when I tried clicking on the share extension inside Safari, Safari froze and I see the following being printed on my Metro Bundler:
::1 - - [26/Nov/2018:22:57:30 +0000] "GET /index.bundle?platform=ios&dev=true&minify=false HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:57:35 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:57:39 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:58:00 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:58:05 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:58:09 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:58:13 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:58:17 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:58:21 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:58:25 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:58:29 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:58:33 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:58:37 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
::1 - - [26/Nov/2018:22:58:41 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "MyShareEx/1 CFNetwork/974.2.1 Darwin/18.0.0"
...

Has this issue been solved? I face the same issue


Always run the flutter tool in checked mode.

cc @tvolkert

I'm going to revert this since it doubles the analyzer time and (for some reason?) dartdoc generation time.

Besides, new Dart frontend throws in checked mode. @peter-ahe-google

SGTM

For the record the numbers were 31 -> 63ms on the analysis benchmark, and it's been remarkably consistent ever since.


std.algorithm.search: expose extremum

On #4221 the consensus was that extremum is rarely needed, hence we set it to private.
It seems like @9il just found a nice use case for extremum, std.math.cmp:
assert([-2.0, 2, 4].reduce!`cmp(a, b) ? a : b` == -2.0);
assert([-2.0, 2, 4].reduce!`cmp(a, b) ? b : a` == 4.0);

Well it's also possible to use reduce:
assert([-1., 0, 1].extremum!cmp == 1.0);
assert([-1., 0, 1].extremum!`cmp(a, b) < 0` == -1.0);

However it gets neat, if map is needed:
assert([-1., 0, 1].enumerate.extremum!cmp == tuple(2, 1.0));
assert([-1., 0, 1].enumerate.extremum!`cmp(a, b) < 0` == tuple(0, -1.0));

I added a small goodie that checks whether the first template function can be used as an mapping function (unary function) and otherwise it falls back to the selector (binary function).
Additionally I added more tests.

Btw during the minElement review no one complained, but is there a way to avoid the mapping element if a "a" noop function is used?

ping @DmitryOlshansky

Btw during the minElement review no one complained, but is there a way to avoid the mapping element if a "a" noop function is used?

Yeah got it too work, so that now a IdentityFun is passed as default argument from extremum and {min,max}Element and statically checked against in the extremum function :)

Yeah got it too work, so that now a IdentityFun is passed as default argument from extremum and {min,max}Element and statically checked against in the extremum function

Should I separate this optimization? (it doesn't depend on extremum being exposed to the public)

What optimization and why you think that this is optimization?

What optimization and why do you think that this is optimization?

If  the alias is "a" (e.g. [0,2,3].minElement), currently this is executed:
MapType mapElement = mapFun(r[i]);
if (selectorFun(mapElement, extremeElementMapped))
{
   extremeElement = r[i];
   extremeElementMapped = mapElement;
}

this PR reduces it down to:
if (selectorFun(r[i], extremeElement))
{
   extremeElement = r[i];
}

(have a look at the changes)

Should I separate this optimization? (it doesn't depend on extremum being exposed to the public)

See #4265 ;-)

If the alias is "a" (e.g. [0,2,3].minElement), currently this is executed:
MapType mapElement = mapFun(r[i]);
if (selectorFun(mapElement, extremeElementMapped))
{
extremeElement = r[i];
extremeElementMapped = mapElement;
}
this PR reduces it down to:
if (selectorFun(r[i], extremeElement))
{
extremeElement = r[i];
}
(have a look at the changes)

they are equivalent, are not they? (i mean assembler code)

they are equivalent, are not they? (i mean assembler code)

Have a look: http://www.mergely.com/966byvI1/ - (e.g. unaryFun is called on the right)

they are equivalent, are not they? (i mean assembler code)
Have a look: http://www.mergely.com/966byvI1/ - (e.g. unaryFun is called on the right)
Hide all checks

Try with ldc2 -O -release -boundscheck=off -output-s

Can't we define overloads to avoid map if not specified? Should we promote only to package level?

Can't we define overloads to avoid map if not specified?

See #4265.

Should we promote only to package level?

The code has been moved to #4265 - this is just about whether extremum should be publicly exposed.
See my first post for an example for which extremum could be useful.

this is just about whether extremum should be publicly exposed.
Please see my first post for an example for which extremum could be useful.

Rebased to latest master. So do we want to expose extremum?

I approve the addition, seeing I have a soft spot for extremum too. @wilzbach could you please detect the identity mapping via a specialization (as opposed to string comparison)? Seems more elegant. LMK.

andralex commented on Dec 24, 2016
I approve the addition, seeing I have a soft spot for extremum too.

While it would have been a nice Christmas present, after thinking about this for a while I reached my internal consensus that the use cases of a public extremum would be pretty low and exposing it to the general public would lead to more confusion than help.
Using reduce works just fine and if real use cases where it would help to simplify code still arise, we can always revert this decision, but once exposed there's no going back.

@wilzbach could you please detect the identity mapping via a specialization (as opposed to string comparison)? Seems more elegant. LMK.

With #5001 we finally got this in :)


Horizontal scalibility

Hi, big fan of the project here.
Me and my team are working on a simple chat service for our webpage. While at the start we expect around ~1k simultaneous users on chat, we might quickly go to 100k, distributed between ~20 channels.
Here is my question: is it currently possible to horizontally scale Oragono, i.e. run multiple instances of oragonos with load balancer in front of it, with the assurance of users messages being in synced between instances? If not, what codebase changes would need to happen to add such feature to the server? We might be interested in developing this on our side. Unfortunately I have little no knowledge about IRC protocol. Looking at it from pure web perspective, i feel like there should be an PUB/SUB that all instances would use to distribute new messages to all the other instances.

Thanks for your interest in the project!
The feature you're describing is not currently implemented. It would be possible to implement it, although there are some architectural barriers. It may also be possible to get the desired scalability using simpler optimizations (#484 comes to mind). It would help to know more about the timeframe and the requirements for this project (when is this due? what client are you planning to use? which features of Oragono are most relevant to your use case?). In case any of this information is sensitive, I'm emailing you my contact information along with Dan's.

Closing in favor of #1532


Unexpected Token on JSX code

I've added meteor-typescript-babel to my project, however it fails to compile whenever there is JSX in a file (either .ts or .tsx)
/Users/jesalr/.meteor/packages/meteor-tool/.1.6.1.cb51y4++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/babylon/lib/index.js:840:15:
   imports/modules/UserSection/components/Deposit/Deposit.tsx: Unexpected
   token, expected "</>" (298:19)

   296 |
   297 |     if (this.state.selectedMethod == 'credit-debit' &&
   (!_.isArray(this.props.cardTokens)))
   > 298 |       return
              |                    ^

My tsconfig file is placed in the project root and looks like so:
{
  "compilerOptions": {
    "target": "es5",
    "allowJs": true,
    "jsx": "preserve",
    "moduleResolution": "node",
    "types": [
        "node"
      ]
  }
}

Although I have tried with target: 'es6' as well. with the same issue.
Any advice on what the issue is here?

Looks like the issue is with how I'm loading the babel plugins. I'm currently processing typescript before anything else, which of course doesn't work with JSX. I'll have to see what I can come up with to fix this.

@nathantreid were you able to fix this, or find a workaround? Kind of a blocking issue.

This is my top priority issue, but unfortunately I haven't been able to really work on it yet.

This should be fixed in 0.0.7. Please let me know if you run into more issues!


[BUG] ChatFlowTool using wrong URL depending on infrastructure setup

Describe the bug
Under special infrastructure setups, ChatFlowTool is trying to use a different or wrong URL which leads to a network failure and no answer by the tool.
An example of this is the following setup:
Browser --HTTPS--> AWS ALB --HTTP--> Flowise
The expected URL to execute would be:
https://someurl.com/path
But the executed URL is:
http://someurl.com/path
Which leads to a failure if HTTPS is enforced in the ALB. There might be more complex scenarios where the URL might also change.
Expected behavior
There is no expected behavior really, the code works fine. I just want to discuss this issue and propose a solution to make it more flexible.
I can think about different solutions:

Adding an optional ENV variable "FLOWISE_BASE_URL" to make this base url configurable. Default would be current behavior.
Adding an optional field to the ChatFlowTool called Base URL. Default would be current behavior.

Approach 1 covers the issue in a more global and central way, but it's not really clear to understand why changing "FLOWISE_BASE_URL" could affect the ChatFlowTool.
Approach 2 is more direct and clear to understand, but every ChatFlowTool added needs to be changed with the right URL.
I would love to get your thoughts on how to tackled this. Thanks!!

We're getting the baseURL like this: ${req.protocol}://${req.get('host')}
https://github.com/FlowiseAI/Flowise/blob/main/packages/server/src/utils/buildChatflow.ts#L57
Does the req.protocol changed behind load balancer?

I saw that code.
The host header is passed from the LB to Flowise because its part of the request context, but the protocol is not. The protocol depends on the communication to Flowise, in this case from the LB. Communication between the browser and the LB is unknown to Flowise.
That's when things get mixed up.
In environments without any middleware, like testing locally, current logic works just fine.

you are right, req.protocol becomes http when its behind a proxy/load balancer.
it seems like we can get the protocol from header x-forwarded-proto: https://stackoverflow.com/questions/9024783/how-to-force-node-js-express-js-to-https-when-it-is-running-behind-an-aws-load-b
what we can do is first check if the hearder exsits, if yes use that as priority over req.protocol. And we can also add an additional field to the node for user to specify the full URL base path like http://localhost:3000/api/v1

Sounds great! Good find, I didn't know about that http header.
I'll submit a pull request as soon as I have some free time.
Thanks!!

what if we do something like this:
export const getBaseURL = (protocol: string, host: string, headers: ICommonObject) => {
    // Check if apps behind load balancer
    if (headers['x-forwarded-proto'] && headers['x-forwarded-proto'] === "http" && !host.includes('localhost')) {
        protocol = 'https'
    }
    if (headers['X-Forwarded-Proto'] && headers['X-Forwarded-Proto'] === "http" && !host.includes('localhost')) {
        protocol = 'https'
    }

    return `${protocol}://${host}`
}

Then use it like:
const baseURL = getBaseURL(req.protocol, req.get('host') ?? '', req.headers)

Theoretically we should just call the utilBuildChatflow, but components level nodes don't have access to server level functions

I'd try not make any assumptions in code about the infrastructure configuration. A load balancer could also be accessible through HTTP. I submitted a PR that should be generic enough to solve the original issue. I'd release this changes to fix current flow which is broken.
Regarding my concern about security issues, as long as we use req.get('host') users will be able to redirect the call to other services. So I'd suggest to avoid using and trusting the host header.
I can open a new issue for this topic if it makes more sense.

if it's helpful, i've seen applications deal with the x-forwarded headers by having allow lists in the app config. it could specify the allowed hosts and a default host, the forwarded protocol, and the forwarded port. that way it has enough info to determine a safe way to build a full url. it also specify a list of proxy addresses/hostnames that are known to be valid. strip those away from the x-forwarded-for header and if you have one address left, it should be the address of the original requester (i.e. the end user). that might make it easier to deal with proxy setups, vs "number of proxies".

if it's helpful, i've seen applications deal with the x-forwarded headers by having allow lists in the app config. it could specify the allowed hosts and a default host, the forwarded protocol, and the forwarded port. that way it has enough info to determine a safe way to build a full url. it also specify a list of proxy addresses/hostnames that are known to be valid. strip those away from the x-forwarded-for header and if you have one address left, it should be the address of the original requester (i.e. the end user). that might make it easier to deal with proxy setups, vs "number of proxies".

Thanks! This approach works if we think having something dynamic is better. Another approach I've seen is the one I shared in my first message, letting the user specify the host in the app config and having a default like <IP_ADDRESS>. I'm not sure if the baseURL is being used by other nodes or functionalities, so I don't know if either of each approach is better.
What I still don't see is why the ChatFlowTool needs to handle it dynamically, because it's just an "internal" communication that needs to happen. For this particular case, I'd default to <IP_ADDRESS>:port and let the user optionally override it in the node, instead of using the baseURL that comes from the context.


InfluxDB 2.0.0-rc. Delete not implemented

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

Download the lastest rc version. docker-compose.yml

version: '2'

services:
  influxdb2:
    image: quay.io/influxdb/influxdb:2.0.0-rc
    restart: always
    container_name: influxdb2
    ports:
      - 8086:8086
    volumes:
      - /mnt/data/influxdb2:/root/.influxdbv2
    command :
       --reporting-disabled

Create a bucket and add data
Run bash: docker exec -it influxdb /bin/bash
Try to delete: influx delete -o my-org --bucket my-bucket -t token --start '1970-01-01T00:00:00.00Z' --stop '2020-10-27T13:01:00.43Z'

Expected behavior:
No error (Working on influxdb 2.0 beta)
Actual behavior:
Error: Failed to delete data: Not implemented.
See 'influx delete -h' for help
Environment info:

System info: Linux 5.4.0-52-generic x86_64
InfluxDB version: InfluxDB 2.0.0-rc.2 (git: 79c0b9bc4a) build_date: 2020-10-21T23:47:58Z
Other relevant environment details: Docker version 19.03.13, build 4484c46d9d

Config:
Default config from docker image.

Thank you! this is expected. please follow: https://github.com/influxdata/influxdb/issues/19635 for resolution.


fix: parse error codes from createNewTask ethereum contract function

Parse error codes from createNewTask
Description
This PR adds parsing errors on batcher from the createNewTask function on ethereum BatcherPaymentService contract
Another PR will be made to add handling of modifiers onlyWhenNotPaused whenNotPaused, as well as improve the parsing of some revert errors by parsing the returned args.
How to test
You will have to repeat this for each error:

Modify functions createNewTask from BatcherPaymentService or AlignedServiceManager to revert with an error handled in this PR
Build contracts into anvil state with make anvil_deploy_aligned_contracts
Run anvil
Start batcher
Send a burst of proofs
Watch it failing on the batcher logs
Repeat with another error

Type of change
Please delete options that are not relevant.

[ ] New feature
[ ] Bug fix
[ ] Optimization
[ ] Refactor

Checklist

[ ] “Hotfix” to testnet, everything else to staging
[ ] Linked to Github Issue
[ ] This change depends on code or research by an external entity

[ ] Acknowledgements were updated to give credit

[ ] Unit tests added
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

[ ] This change is an Optimization

[ ] Benchmarks added/run

[ ] Has a known issue

Link to the open issue addressing it

[ ] If your PR changes the Operator compatibility (Ex: Upgrade prover versions)

[ ] This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
[ ] This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

tested on local devnet and it worked as expected.


review quick start for backend client library (go doc)

Describe the bug
When following the quick-start for the importing and using as a client library, I noticed that when calling backend.Setup(cfg) it wasn't picking up the RedisURL I had set.
https://github.com/staticbackendhq/core/blob/5482c6957dcf54f79bb298a99aabd91d42484f30/backend/backend.go#L16
Turns out that backend.Setup(cfg) eventually sets up the cache by looking at config.Current
https://github.com/staticbackendhq/core/blob/5482c6957dcf54f79bb298a99aabd91d42484f30/cache/cache.go#L30
as a workaround I refactored the getting started code to pass backend.Setup(config.Current) instead, something like this:
config.Current := config.LoadConfig() // first get from environment and then override as needed
config.Current.AppEnv = "dev"
config.Current.DataStore = "PostgreSQL"
config.Current.DatabaseURL = "postgres://user:password@localhost:5432/postgres?sslmode=disabled"
config.Current.RedisURL = "redis://localhost:6379"
config.Current.LocalStorageURL = "http://localhost:8099"
backend.Setup(config.Current)

Thanks @c-nv-s good catch, will be updated on Go doc once v1.5.0 is released.


Multi-way clustering standard error with AbsorbingLS

Hi,
Since PanelOLS supports maximum two-way fixed effects and two-way clustering  (docs here), and I looked around and found AbsorbingLS that could be an option for multiway fixed effects.
I was reading docs on AbsorbingLS but it doesn't show whether it allows multi-way clustering standard errors. If not, will it be implemented in the future?

will Panel OLS support Multi Way Fixed Effects future？

No plans to implement 3 or higher-way effects.

Thank you for your reply.
And do you know  how to  implment  higher-way effects by other python module? Is there such module exist?

I am also interested in Panel OLS with 3+ effects (possibly including 2+ time dimensions) and standard errors clustering.

No plans to implement 3 or higher-way effects.

Out of genuine curiosity, is it due to technical constraints (e.g., difficulty to refactor the underlying assumption of ≤2 indices in the pd.DataFrame, or drastically different algorithm to implement—I'm afraid I'm quite alien to underlying theory here), or lack of bandwidth on your end?

if some of the effects are low dimensional, then you can just include these are regressors and still have 2 other effects.

To make sure my understanding is correct: Are you here suggesting to OneHot encode the 3rd+ categorical variable (say, country) that we want to use as fixed effect, and add the resulting country_A, country_B, etc. columns to the list of exogenous variables of the model (and simply ignore their coefs when reporting the results of the model)?


GetStorage + Mockito  GetStorage.getValues features a non-nullable unknown return type

I can't mock GetStorage
get_storage: ^2.0.3
@GenerateMocks([GetStorage])
void main() {

  test('', () {

  });
}

Invalid @GenerateMocks annotation: Mockito cannot generate a valid mock class which implements 'GetStorage' for the following reasons:
The method 'GetStorage.getKeys' features a non-nullable unknown return type, and cannot be stubbed without a dummy generator specified on the MockSpec.
The method 'GetStorage.getValues' features a non-nullable unknown return type, and cannot be stubbed without a dummy generator specified on the MockSpec.
[INFO] Running build completed, took 22.9s
[✓] Flutter (Channel stable, 2.5.1, on Ubuntu 20.04.3 LTS 5.11.0-34-generic, locale fr_FR.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/linux#android-setup for more details.
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2020.3)
[✓] Android Studio (version 4.2)
[✓] VS Code
[✓] Connected device (3 available)

The solution is to use unsupportedMembers
@GenerateMocks(<Type>[], customMocks: <MockSpec<dynamic>>[
  MockSpec<GetStorage>(
      as: #MockGetStorage, unsupportedMembers: {#getKeys, #getValues}),
])


Fix/props.children

Fixes #1754
Problem:
The children div with Sigh will not render on the Canvas:

Issue:
The root of the problem is twofold:

Most importantly, we were kind of confusing the following cases:

// JSX:

// transpiled javascript:
React.createElement('div', {})

// JSX:

{null}

// transpiled javascript:
React.createElement('div', {}, null)

// JSX:

<ChildOne />

// transpiled javascript:
React.createElement('div', {}, React.crateElement(ChildOne, {}))

// JSX:

{[<ChildOne />]}

// transpiled javascript:
React.createElement('div', {}, [ React.crateElement(ChildOne, {}) ])

// JSX:

<ChildOne /><ChildTwo />

// transpiled javascript:
React.createElement('div', {}, React.crateElement(ChildOne, {}), React.crateElement(ChildTwo, {}))

// JSX:

{[<ChildOne />, <ChildTwo />]}

// transpiled javascript:
React.createElement('div', {}, [ React.crateElement(ChildOne, {}), React.crateElement(ChildTwo, {}) ])

For this code snippet:
 our render helper code would end up calling a createElement with null passed in as children prop, instead of nothing passed in as children prop:

// for this JSX

// we'd call this:
React.createElement('div', {'data-uid': 'no-children'}, null)
// instead of this:
React.createElement('div', {'data-uid': 'no-children'})

Now that's an issue because the props might have a children key!
This is valid and happy react that renders a child:
// JSX:

// transpiled javascript:
React.createElement('div', {children: 'child-one'})

This react is sad because the children prop gets overridden with a null:
React.createElement('div', {children: 'child-one'}, null)

Fix:
I cleaned up the code that passes through the jsx children elements, removed the helper code which would pass down null children, and removed the helper code which was trying to unwrap ['one-child'] to 'one-child'
Commit Details:

Remove childrenOrNull and spread childrenElements in renderJSXElement
Remove childrenElementsOrNull and spread childrenElements in the spy wrapper
Now that we are spreading the children elements, I could remove the code that was unwrapping arrays in renderComponentUsingJsxFactoryFunction
Added a test

Note:
This PR fixes the rendering of props.children on the canvas. But we are not properly spying these elements! They are not going to appear in the navigator, and they are not editable by the Canvas yet. I think it's not urgent to fix that, but I'm going to create a follow up ticket.

I think it's not urgent to fix that, but I'm going to create a follow up ticket.

This is part of a more general problem - we capture elements used in arbitrary JS / JSX blocks, but not in attributes. I thought there was already a ticket for that issue, but I'm struggling to find it now...


Barebone annotate

This PR serves to provide a barebone annotation widget. At the moment only shape annotations are supported but I am to extend this to points and perhaps labels as well. Furthermore, at a later stage also a table widget will be provided.
Currently, the user can annotate using and also reload shape annotations. The description column at the moment serves no purpose but this will come with the table widget.
@LucaMarconato maybe before putting this in we need to discuss a little bit about UI experience.

a class is added but the class is not annotating any element. In this case, I suggest to just ignore the class when saving to disk, this is already there. I checked again with the table widget btw, single molecule didn't show anything because it is the cell element that the table is annotating. Checked with cell and it properly shows.

Regarding an element is not belonging to any class; saving should still work.
This works by setting the class to undefined.

Small comment:

[ ] please document the code inside on_mouse_move() in _view.py.

I tested the saving (on the incremental io branch). I found some bugs:

[ ] when saving an element, the View widget is not updated. Workaround: from the element widget add the element, and delete it; now the View widget is updated an it works.
[ ] The colors of the annotation widget do not correspond to the colors used for plotting, easy fix.
[ ] The "Annotation table" dropdown combobox does not update the color classes.

Saving and overwriting work!

Bug that I probably introduced here (I was working on performance in order to avoid copies) https://github.com/scverse/napari-spatialdata/pull/239/files in _model.py:

[ ] when trying to plot instance_key an error is raised. The user playing around with the annotation widget may encounter this bug because the table created has only a few columns, so it's likely to try to plot instance_id.

I tested the saving (on the incremental io branch). I found some bugs:

[x]  when saving an element, the View widget is not updated. Workaround: from the element widget add the element, and delete it; now the View widget is updated an it works.
[x]  The colors of the annotation widget do not correspond to the colors used for plotting, easy fix.
[ ]  The "Annotation table" dropdown combobox does not update the color classes.

Saving and overwriting work!

not certain what you mean with the last point

tests pass locally, but here it would require a release of spatialdata with the incremental IO. For hackathon purposes merging now already.

The "Annotation table" dropdown combobox does not update the color classes.

I will explain this in a new issue, I have just verified and it is still open.


Itransformer integration

The commit dfd9c02 applies changes to the original iTransformer model. I suggest that we keep the original and add an amended copy called 'iTimesformer' with your changes.
What do you think? The rest looks good to go.


unable to use it in Objective C project

Tried using it in objective C, even after adding use_frameworks! in podfile, It seems use_frameworks! doesn't work and also tried to add it manually in share extension of my app, but files in URLEmbeddedView source like OGDataProvider unable to access Kanna and Misterfusion files embedded in this pod source, even after adding Kanna and Misterfusion seperately using  git clone.

Hi @github-prathma
I've tried to use URLEmbeddedView in Objective-C, and it works fine without any errors.

Its not working when using it with other Objective C pods

And try using it in extension of main app. It won't work as Extension-Swift.h file will not generate

URLEmbeddedView is written in Swift therefore, must add use_frameworks!.
Doesn't it work that importing other Objective-C pods with '#import <libname/libname-Swift.h>'?

No it doesn't work with that as it shows libname-Swift.h as file not found
On Wed, 16 Aug 2017 at 6:39 PM, Taiki Suzuki<EMAIL_ADDRESS>wrote:

URLEmbeddedView is written in Swift therefore, must add use_frameworks!.
Doesn't it work that importing other Objective-C pods with '#import
<libname/libname-Swift.h>'?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/marty-suzuki/URLEmbeddedView/issues/36#issuecomment-322765559,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHRNFjxJ71cJGKMfNbYAHQgsjCGUNvDEks5sYuoYgaJpZM4O4ogE
.

It works in my development environment.
This sample uses SDWebImage that written in Objective-C.

I am using the deployment target as 8.0 . Tell me if this causes a problem.
And in my case use_frameworks is causing problem for libraries such as
AFNetworking, hakawai, mixpanel
On Wed, 16 Aug 2017 at 7:03 PM, Taiki Suzuki<EMAIL_ADDRESS>wrote:

It works in my development environment.
This sample uses SDWebImage that written in Objective-C.
[image: 2017-08-16 22 30 00]
https://user-images.githubusercontent.com/2082134/29365575-7690e372-82d2-11e7-8a4b-affa48bf6fe0.png
[image: 2017-08-16 22 30 14]
https://user-images.githubusercontent.com/2082134/29365592-82b39c4e-82d2-11e7-82c8-2c55e6533ef4.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/marty-suzuki/URLEmbeddedView/issues/36#issuecomment-322772026,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHRNFkswmTgWgZG7pOo3KfYMMGS2LtmOks5sYu-KgaJpZM4O4ogE
.

I can import them like this (development target iOS 8.0).

Dose your XXX-Bridging-Header.h have circular references of framework importing?
Please check it.
I can not exactly respond because I could not grasp some problems that your project have.
Sorry

No, I am not having circular references in my extension as I don't require
objective C file to be imported in Swift files but the opposite is required.
So there is a pod file I am having in my project, which contains more than
one,
So there is mainApp target, and notificationService extension target, share
extension target
So in Share extension target  I want to use this library URLEmbeddedView.
And right now this extension already supports Hakawai, AFNetworking,
Mixpanel-AppExtension, JSONModel etc. pods which are not running and not
only this, the error regarding UIApplication.shared.keyWindow is coming in
UIView extension code of  Misterfusion.swift file as UIApplication can't be
used in share extension.
Hereby attaching my Podfile for more reference,
Thanks.
PFA
On Wed, Aug 16, 2017 at 7:41 PM, Taiki Suzuki<EMAIL_ADDRESS>wrote:

I can import them like this (development target iOS 8.0).
[image: 2017-08-16 23 00 40]
https://user-images.githubusercontent.com/2082134/29367115-d225c186-82d6-11e7-9e44-57a6863febb5.png
[image: 2017-08-16 23 00 54]
https://user-images.githubusercontent.com/2082134/29367121-d7dc94f6-82d6-11e7-8424-872714278ca1.png
Dose your XXX-Bridging-Header.h have circular references of framework
importing?
Please check it.
I can not exactly respond because I could not grasp some problems that
your project have.
Sorry
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/marty-suzuki/URLEmbeddedView/issues/36#issuecomment-322784127,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHRNFnr2tv23DxR7tm4hlOSW_wRd9tqQks5sYvilgaJpZM4O4ogE
.

{\rtf1\ansi\ansicpg1252\cocoartf1504\cocoasubrtf760
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{*\expandedcolortbl;;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0
\f0\fs24 \cf0 # Uncomment this line to define a global platform for your project
platform :ios, '8.0'
use_frameworks!

def shared_pods
pod 'VIMVideoPlayer'
pod 'AFNetworkActivityLogger', :git => 'https://github.com/AFNetworking/AFNetworkActivityLogger.git', :branch => '3_0_0'
pod 'TLTagsControl', :git => 'https://github.com/ali312/TLTagsControl'
pod 'FLEX', '~> 2.0', :configurations => ['Debug']
pod 'GoogleIDFASupport'
pod 'JSONModel'
pod 'TLYShyNavBar'
pod 'SlackTextViewController'
pod "youtube-ios-player-helper",:git => 'https://github.com/youtube/youtube-ios-player-helper'
pod 'NYTPhotoViewer'
pod 'DZNWebViewController'
pod 'Branch'
pod 'CSNotificationView'
pod 'Google/Analytics'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'LoremIpsum', '~> 1.0'
pod 'Masonry'
pod "SKTagView"
pod "PWProgressView"
pod "AFNetworking"
pod 'SDWebImage', '~>3.7'
pod 'SDWebImage/WebP', '~>3.7'
pod 'Lockbox'
pod 'IDMPhotoBrowser'
pod 'DZNPhotoPickerController/Editor'
pod "SRMonthPicker"
pod "TPKeyboardAvoiding"
pod 'Mixpanel'
pod 'SVProgressHUD'
pod "CCMPopup"
pod 'pop', '~> 1.0'
pod 'FLAnimatedImage' , '~> 1.0'
pod "TSMessages"
pod 'Harpy'
pod "SCLAlertView-Objective-C"
pod 'AMPopTip'
pod 'Firebase/Core'
pod 'Firebase/Analytics'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/RemoteConfig'
pod 'vfrReader',:git => 'https://github.com/vfr/Reader.git'
pod 'PINCache'
pod 'SimulatorRemoteNotifications', '~> 0.0.3'
end

target 'Curofy' do
shared_pods
end

target 'CurofyStaging' do
shared_pods
end

target 'notificationService' do
pod "AFNetworking"
pod "Mixpanel/AppExtension"
pod '91URLEmbeddedView'92

post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
if target.name == "Pods-notificationService-AFNetworking"   # EMToday should be the Extension target name
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'AF_APP_EXTENSIONS=1']
end
end
end
end
end

}

I've used NSLayoutConstraint instead of MisterFusion since 0.10.0
Please try latest version.

Sorry I didn't get it .. Latest version of what MisterFusion or
NSLayoutConstraint?
On Thu, Aug 17, 2017 at 10:07 PM, Taiki Suzuki<EMAIL_ADDRESS>wrote:

I've used NSLayoutConstraint instead of MisterFusion since 0.10.0
Please try latest version.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/marty-suzuki/URLEmbeddedView/issues/36#issuecomment-323127307,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHRNFlQfssKHqfKoo__tv-oBFicMakSoks5sZGxcgaJpZM4O4ogE
.

NSLayoutConstraint is used instead of MisterFusion in URLEmbeddedView since 0.10.0
0.10.0 is latest version of URLEmbeddedView.


check avatar & other settings on Square

Make sure it fits with current site

avatar updated; not much else I can do with the rest of the site


integrating steam workshop as a tab

making a tab in the launcher where you can directly install mods from the steam workshop to games

Please provide public resources where Hydra could potentially query this information up?

SCMD Workshop Downloader 2 uses steamcmd to download mods
https://github.com/BerdyAlexei/SCMD-Workshop-Downloader-2

I'd recomend https://github.com/imwaitingnow/WorkshopDL/releases/tag/2.0.0 instead it has much more features

https://pcgamestorrents.com/
site de jogos.
se alguem puder add ao hydra, site top.


[Help] Scheduling, number of employees

In a scheduling problem I need to minimize the employees that are needed (among other things). I have two options:

Let the model return infeasible and increase the number of employees + retry.
Solve with a large number of employees and then minimize it in the objective.

I have been going by option 2, but maybe because my model is overly complicated and it creates too many variables per employee it takes too long to solve.
Should I try option 1 or is there a better approach to this? Either way I guess I should keep optimizing (simplifiying) the model...

It depends totally on how good propagation is w.r.t. the objective. Meaning, is it easy to prove infeasibility ? Normally, the closer to the optimal, the harder it becomes.
At least with option 2, you have feasible solutions.

Thanks!