Update README.md

Pull request fixes issue #number
Checklist

[ ] Is the translation source specified?
[ ] Did you add a link for your translation in the main readme file?

Description (Optional)
Add All Contributers Bot

@all-contributors please add @baristunar  for

@all-contributors please add @baristunar  for translation


chromium: 80.0.3987.149 -> 80.0.3987.162

https://chromereleases.googleblog.com/2020/03/stable-channel-update-for-desktop_31.html
This update includes 8 security fixes.
CVEs:
CVE-2020-6450 CVE-2020-6451 CVE-2020-6452

Test status

platform
attribute
status
tester

x86_64
chromium
:heavy_check_mark:
@danielfullmer

x86_64
nixosTests.chromium
:heavy_check_mark:
@danielfullmer

x86_64
google-chrome
:heavy_check_mark:
@primeos

aarch64
chromium
:heavy_check_mark:
@thefloweringash

Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@thefloweringash: BTW, if you'd optionally like to test chromiumDev on AArch64 you need https://github.com/NixOS/nixpkgs/pull/83290 and https://github.com/NixOS/nixpkgs/pull/83350 as well (then it should theoretically work).

Built and tested chromium and nixosTests.chromium. Manually testing chromium included checking youtube, webgl, and wasm. Those all seem to be working fine.

LGTM on aarch64, briefly tested general browsing and youtube.

@danielfullmer @thefloweringash awesome, thank you very much :)

A few delayed updates for completeness:

chromiumDev did unfortunately break again (version 82 was working on x86_64) - I already pushed 36c712370912b808b52879a40dbb0d62e88cef23 but I'll probably wait for #83618 with the second fix to avoid unnecessary complications
Backport for 20.03: https://github.com/NixOS/nixpkgs/commit/bb34ef369ef20d27c6472865ae40f62ea8c7a174


Failing co19 ffi tests

The following tests are failing:

FAILED: dartk-vm release_ia32 co19/LibTest/ffi/IntPtr/IntPtr_A01_t01
Expected: Pass
Actual: RuntimeError

--- Command "vm" (took 01.000386s):
DART_CONFIGURATION=ReleaseIA32 out/ReleaseIA32/dart --sound-null-safety --ignore-unrecognized-flags --packages=/usr/local/google/home/kustermann/repositories/sdk-gclient4/sdk/.packages /usr/local/google/home/kustermann/repositories/sdk-gclient4/sdk/tests/co19/src/LibTest/ffi/IntPtr/IntPtr_A01_t01.dart

exit code:
255

stderr:
Unhandled exception:
Expect.equals(expected: <-32768>, actual: <32768>) fails.
#0      _fail (file:///usr/local/google/home/kustermann/repositories/sdk-gclient4/sdk/tests/co19/src/Utils/expect.dart:20:5)
#1      Expect.equals (file:///usr/local/google/home/kustermann/repositories/sdk-gclient4/sdk/tests/co19/src/Utils/expect_common.dart:30:5)
#2      main (file:///usr/local/google/home/kustermann/repositories/sdk-gclient4/sdk/tests/co19/src/LibTest/ffi/IntPtr/IntPtr_A01_t01.dart:30:14)
#3      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:283:19)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

--- Re-run this test:
python tools/test.py -n dartk-strong-linux-release-ia32 co19/LibTest/ffi/IntPtr/IntPtr_A01_t01

FAILED: dartk-vm release_ia32 co19/LibTest/ffi/Array/IntPtrArray_A01_t01
Expected: Pass
Actual: RuntimeError

--- Command "vm" (took 02.000465s):
DART_CONFIGURATION=ReleaseIA32 out/ReleaseIA32/dart --sound-null-safety --ignore-unrecognized-flags --packages=/usr/local/google/home/kustermann/repositories/sdk-gclient4/sdk/.packages /usr/local/google/home/kus
termann/repositories/sdk-gclient4/sdk/tests/co19/src/LibTest/ffi/Array/IntPtrArray_A01_t01.dart

exit code:
255

stderr:
Unhandled exception:
Expect.equals(expected: <-32768>, actual: <32768>) fails.
#0      _fail (file:///usr/local/google/home/kustermann/repositories/sdk-gclient4/sdk/tests/co19/src/Utils/expect.dart:20:5)
#1      Expect.equals (file:///usr/local/google/home/kustermann/repositories/sdk-gclient4/sdk/tests/co19/src/Utils/expect_common.dart:30:5)
#2      main (file:///usr/local/google/home/kustermann/repositories/sdk-gclient4/sdk/tests/co19/src/LibTest/ffi/Array/IntPtrArray_A01_t01.dart:39:16)
#3      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:283:19)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

--- Re-run this test:
python tools/test.py -n dartk-strong-linux-release-ia32 co19/LibTest/ffi/Array/IntPtrArray_A01_t01

Assigned @dcharkes to triage whether the tests are wrong or the FFI implementation.

      if (sizeOf<IntPtr>() == 4) {
        array[i] = 32768;
        Expect.equals(-32768, array[i]);
        array[i] = -32768;
        Expect.equals(-32768, array[i]);
        array[i] = -32769;
        Expect.equals(32767, array[i]);
      } else {
        array[i] = 32768;
        Expect.equals(32768, array[i]);
        array[i] = -32769;
        Expect.equals(-32769, array[i]);
      }

The tests are wrong, the boundary should not be at +-2^15, but at +-2^31 for 4 byte/32 bit platforms.

Fixed by https://github.com/dart-lang/co19/commit/11238c2757d7f513c6445880402698cfbdc8aa5c


Replace WSClient with akka-http

This PR replaces play's WSClient with akka-http. This project was initially written for play 2.3 and we had to update it for play 2.4, for 2.5 and we would have to update it again for 2.6. And it would never work for different versions of play.  This change makes it unnecessary to pass in a WSClient any longer. Instead the caller has to provide an ActorSystem and Materializer (which come along with a started Play app anyway). This should make it way less dependend on changes in different versions of the play framework.

Thank you!


Download from drive

Hi @mathisve,
Would it be possible to use your repo to download files from drive inside github actions?
Ali

Unfortunately not. This Github Action only allows you to upload artifacts to Google drive

If the file is publicly shared, then this can be done the following way:
      - name: Download sql dump from gdrive
        run: |
          pip install gdown
          gdown --id [fild id]


Not working with Leaflet 1.0

Any idea what is needed to be fixed?

Leaflet.Ellipse upgraded for 1.0. It works now.

It is a bug in leaflet.draw: https://github.com/Leaflet/Leaflet.draw/issues/467


Stackhpc/prod openstack pike magnum queens

Add public key for  $USER into authorized_keys for stack user on all hosts:
10.41.253.[100: seed | 101: prod controller | 102: prod monitor | 103: alt-1 controller]

Prepare environment:
source venv/kayobe/bin/activate
source ../kayobe-config/kayobe-env
cd src/kayobe
export KAYOBE_VAULT_PASSWORD=****secret****

To build and deploy new magnum image:
kayobe overcloud container image build magnum --push -e kolla_source_version=stable/queens -e kolla_openstack_release=<IP_ADDRESS> -e kolla_source_url=https://git.openstack.org/openstack/kolla
kayobe overcloud container image pull --kolla-tags magnum
kayobe overcloud service upgrade --kolla-tags magnum

Just merged the kolla.yml defaults into alt-1, so let's stick with them here.


Websocket client connection (feature request)

I see that your README explicitly states this library is intended as a server, but would it be possible to include a client implementation as well?

Personally I don't see any use for a client library? The browser is supposed to be the client as far as I understand, and even if you absolutely need a client there is no need to write yet another library as there already exists decent alternatives like WebSocket++ (this library is pretty damn efficient). WebSocket++ is terrible as the server since it consumes all memory in the universe, but works good as a client where you only need one, maybe two connections. That is how I see it at least, correct me if I'm wrong.

The browser is not the only client that you can have: You can have mobile app clients, server clients, etc.
I'd personally like to see a client counterpart to uWebsockets is pretty much for the reason of not having to install two separate packages, and being able to create clients with the existing uWebsockets' already highly efficient code base (parser, and etc.), because even though there usually won't be more than one/two connections at a time, there will definitely be connections with very high throughput that require a focus on performance, like uWebsockets provides.

Socket.io has many client libraries(android,iOS,etc).
Socket.io now has support for uWebSockets in engine.io (https://github.com/kapouer/engine.io)
So you can consider using that for now.

Note that engine.io is the server and engine.io-client is the client.

Yes and engine.o-client will work with engine.io same way socket.o-client will work with socket.io using uwebsockets as the websocket library in engine.io. The point is the old engine.io supported only ws as the websocket library on the server and now supports uWebsockets as well.

You can use the current engine.io-client with engine.io + uws, the same should also be valid for Socket.IO.

Yes, but I'm not using socket.io: I'm using usually either plain websockets, or my own websocket framework that I'm working on. My point is not having to use two different implementations, ws and uws to be the client and the server, respectively.

@SEAPUNK yes it may have sense, my comment was a response to @LordMajestros comment.

WS(https://github.com/websockets/ws) is used in the tests for engine.io + uws and currently passes all tests so they should work very well together

I actually think I have misread so ignore me :)

Guessed as much 👍

@SEAPUNK Is socketeer faster than ws, as client?

@alexhultman Oh, no, it's just a framework that wraps around ws, a bit like socket.io is. I just build on top of websockets to make some functions easier.
But it's an example: I'd want to use uws in some later version, but if uws only provides the server, I'd have to keep ws or another package that provides a WebSocket client alongside of uws so I'd have both a server and a client.

I'm not planning to create a client library. I'm closing this, I need to finish the server first of all. Then depending on how much time I will have I can see what to do about this.

I understand. This is an important feature to me, so with your permission I would like to submit a pull request for this. I imagine I can get to it in the next 1-2 weeks.

@jimmyt857 Sure, if you have anything that works I can take a look but you need to figure out how to modify the parser so that it works for server frames as well as client frames (currently the parser is optimized for receiving client frames only, they have 4 byte mask and masked messages).
Sending is easy, the tricky part is parsing the servers frames. I would start with this part. And I would just start by copying the current parser a la "koppy pasta" and change it. Parsing frames from the server will be easier than parsing frames from clients so you should end up with a simpler parser.

Would you prefer to have separate parsers? I don't think it will be very difficult to use the same one, since the only difference is the masking.

I think the best is to just copy the code, duplicate everything and make a separate library for clients. Then we can see what is common and merge it in.

Ok, sounds good. I'll let you know when I've got something working.

https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications
https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers
These are very useful IMO

OMG, never mind that one was about using the browsers implementation, rofl!

Haha thanks for the thought. Don't worry, I actually wrote a simple personal websockets library for myself in C# awhile ago so I have a pretty good handle on the protocol.
I guess I should mention though, I'm currently only planning to write a pull request for the C++ version of your project, and w/o wss or permessage-deflate.

I've finished my first draft of the code for this, but I am having trouble with some libuv functions because I still don't fully understand them. My basic procedure is the following:

Create a new tcp connection using the uv_tcp_t and uv_connect_t objects
In the connect callback, send off the first message using uv_write
In the write callback, create uv_poll_t around the same socket and wait for http response

However, I get seg faults from within libuv (in uv_poll_start), so I think something is wrong with the way I create the uv_poll_t handle. I'm using the same uv_poll_init_socket call that the server uses, is there anything I am missing?

You need to use Unix syscalls directly except for uv_poll_t which wraps the epolling. Uv_tcp_t is wah too heavyweight.

Hmmm, but the regular connect() call is blocking, wouldn't that go against the point of this library?

Wait, nevermind, I see you can set it to non-blocking mode, and I could have libuv wait on it for me Thanks. ;)

any updates on this ? it's cumbersome to have websocket++ for the client part and uWS for the server.


[Cypress] Add ui tests for lifecycle

Signed-off-by: Abhishek-kumar09<EMAIL_ADDRESS>Description

Add liefcyle (e2e) tests for active adapters

Few Problems that is hindering the further testing:

the navigation to some service mesh from the navigator doesn't work
All the service mesh has another enpoint based on their name that shows the way older UI leveraging the hundreds of oam components coming from backend thus freezing the interface sometimes
The inactive adapters UI page is the way it is expected, it should provide UI to configure which is not yet done.

This PR fixes #
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Codecov Report

Merging #5171 (83afdfa) into master (8764c65) will decrease coverage by 8.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5171      +/-   ##
==========================================
- Coverage   31.81%   23.81%   -8.01%
==========================================
  Files          62       62
  Lines        5287     5287
==========================================
- Hits         1682     1259     -423
- Misses       3186     3754     +568
+ Partials      419      274     -145

Flag
Coverage Δ

gointegrationtests
?

unittests
23.81% <ø> (ø)

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

Impacted Files
Coverage Δ

mesheryctl/internal/cli/root/system/update.go
1.05% <0.00%> (-58.95%)
:arrow_down:

mesheryctl/internal/cli/root/system/status.go
1.14% <0.00%> (-55.18%)
:arrow_down:

mesheryctl/internal/cli/root/system/start.go
1.91% <0.00%> (-54.55%)
:arrow_down:

mesheryctl/internal/cli/root/system/restart.go
1.92% <0.00%> (-48.08%)
:arrow_down:

mesheryctl/internal/cli/root/system/stop.go
2.15% <0.00%> (-44.61%)
:arrow_down:

mesheryctl/internal/cli/root/system/logs.go
3.26% <0.00%> (-36.96%)
:arrow_down:

mesheryctl/internal/cli/root/system/check.go
1.03% <0.00%> (-23.03%)
:arrow_down:

mesheryctl/internal/cli/root/system/dashboard.go
1.49% <0.00%> (-16.42%)
:arrow_down:

mesheryctl/pkg/utils/healthcheck.go
8.82% <0.00%> (-4.42%)
:arrow_down:

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 8764c65...83afdfa. Read the comment docs.

The falied e2e test is the proof of the UI not working as expected.

Taking a look but maybe there's a better way to find elements than using cy.contains? As per Cypress Best Practices > Selecting Elements use of cy.contains('text'). is recommended on a "Depends" basis as its coupled to text content that may change. If text being asserted on is not likely to change soon or we're okay with fact that test could break if we don't update text in cy commands when we modify it, then okay to keep using it (else we should try to add 'data-cy' attribute dinamically and use it in our cypress tests, when possible)

The falied e2e test is the proof of the UI not working as expected.

Issue(s) filed, @Abhishek-kumar09?

@Abhishek-kumar09 a little brief on this would be great for the meshery dev call.

@MarioArriaga92 can you implement the suggestions that you've made? You can checkout the code in this PR/branch and work on it directly.

Right away @leecalcote

Syncing with master again.

@Abhishek-kumar09 can you mention which are the open github issues that cause tests included in this PR to fail please?

Btw integration test fails for filter configuration page because title element found is not "'FiltersBETA'" is this still expected? (probably related to some other PR but wanted to double-check here first)

@leecalcote @MarioArriaga92 Can we move here?


Change default GBC Palette Colors

When loading the default palette for the custom palette colors in the dev version, the end result is somewhat dark and washed out compared to the emulated colors both for the web and the GBStudio Build and Run (assuming they use the same GameBoyCore.js).
Not using any Custom Palette yields this:

Which looks great. Using the custom palette's default yields this:

The 5-bit color values for the GameBoy Color make a perfect copy of this palette impossible, but I feel these values are a more accurate representation:

Colour 1: 29,31,28
Colour 2: 22,30,17
Colour 3: 10,19,15
Colour 4: 4,5,10

@proximitysound Can you double check this works as you expect and close? Thanks for your help!

Works great! Thanks for implementing/reminding me.


CONTENT-56: Add list/delete dao layer and honor org id

Adds

Delete and List actions to the DAO layer.
Additional error checking to Fetch/Update in the DAO layer.
Rewrites the repository handler tests to use serveHTTP instead of context (because it feels less cumbersome)
Org ID filters to all the queries that were missing them.
Tests for verifying Org ID is correct when returning results from database and API
IdentityHeader constant to api/api.go
Rename collectionResponse -> setCollectionResponseMetadata

The TestList pagination tests in the handler tests are a bit tricky now because of the mocking. I'm not 100% sure they're still testing what they need to test.

couple of comments, and failing lint, otherwise looks 🚀

This needs a rebase

it's green

went ahead and merged so @Andrewgdewar can rebase


Conflict with SublimeFileBrowser

If I set highlight_when_selection_is_empty option to true and then put cursor on any word to find its occurencies and then click to FileBrowser pane, this will highlight even matces in FileBrowser's panel:

Normally, with option highlight_when_selection_is_empty turned off, it will look like this:

Is this a conflict with SublimeFileBrowser plugin?

Yeah. SublimeFileBrowser is using a normal text view to fake a file tree. This plugin has no way of knowing that it's not a normal text view like any other.


$linkedIn->setAccessToken('access_token_from_db');

$linkedIn->setAccessToken('access_token_from_db');
Fatal error: Uncaught Error: Call to a member function getToken() on string in /home/104455.cloudwaysapps.com/gkbdhdrmcr/public_html/vendor/zoonman/linkedin-api-php-client/src/Client.php:335 Stack trace: #0 /home/104455.cloudwaysapps.com/gkbdhdrmcr/public_html/vendor/zoonman/linkedin-api-php-client/src/Client.php(410): LinkedIn\Client->api('people/

@said-java as I understand, you have to pass to Client::setAccessToken() instance of \LinkedIn\AccessToken:
$linkedIn->setAccessToken(new \LinkedIn\AccessToken('access_token_from_db'))

@iamsalnikov
// ... please, add composer autoloader first
include_once DIR . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
// import client class
use LinkedIn\Client;
// instantiate the Linkedin client
$client = new Client(
'LINKEDIN_APP_CLIENT_ID',
'LINKEDIN_APP_CLIENT_SECRET'
);
$acesstoken="xxxxxxxxxxxxxxx";
$client->setAccessToken($acesstoken);
response:
Fatal error: Uncaught Error: Call to a member function getToken() on string in /home/104455.cloudwaysapps.com/gkbdhdrmcr/public_html/vendor/zoonman/linkedin-api-php-client/src/Client.php:335 Stack trace: #0 /home/104455.cloudwaysapps.com/gkbdhdrmcr/public_html/vendor/zoonman/linkedin-api-php-client/src/Client.php(410): LinkedIn\Client->api('people/

@said-java where did you find such way for setting up access token? I did not find same words in documentation.
@zoonman maybe we have to add something like typehinting to LinkedIn\Client::setAccessToken() method? And describe in readme how to set up previously saved token?

@iamsalnikov I updated readme. I think, I need to add type handling there.
I think passing of object is complicated for newbies and I have to instantiate AccessToken object dynamically.

@said-java read readme. I have it updated.
Also, you can update the library. Read Composer's documentation https://getcomposer.org/doc/ if you are not familiar with that.

@zoonman im expert in php
thanks.....


[sample_encode] SW HEVCe encodes NV12 for YUY2 input

VPP is used under the hood.
Issue: MDP-65557

Shouldn't it be doe this way:
#2575
?

@dmitryermilov , good point. If someone need 4:2:0, one must ask explicitly via -ec::nv12. So, let's abandon.

Shouldn't it be doe this way:
#2575
?

@dmitryermilov , good point. If someone need 4:2:0, one must ask explicitly via -ec::nv12. So, let's abandon.

Superseded by -ec::nv12.

Superseded by -ec::nv12.


feat: duplicate from local endpoint arp in datapath

To cover agent failed to start or failover corner case, we add
this logic: Duplicate from local endpoint arp, send one copy to
controller, forwarding another copy normally.
Signed-off-by: chengcheng.luo<EMAIL_ADDRESS>

Codecov Report

Merging #344 (0785bc5) into main (4f56f47) will increase coverage by 0.09%.
The diff coverage is 52.27%.

@@            Coverage Diff             @@
##             main     #344      +/-   ##
==========================================
+ Coverage   63.52%   63.61%   +0.09%
==========================================
  Files          41       41
  Lines        7172     7190      +18
==========================================
+ Hits         4556     4574      +18
+ Misses       2227     2221       -6
- Partials      389      395       +6

Impacted Files
Coverage Δ

pkg/agent/datapath/localBridge.go
29.96% <52.27%> (+2.24%)
:arrow_up:

pkg/controller/group/group_controller.go
70.21% <0.00%> (-0.19%)
:arrow_down:

plugin/tower/pkg/controller/policy/controller.go
81.54% <0.00%> (+0.23%)
:arrow_up:


Allow control over allowed individual package upgrade versions in non-interactive guided remediation

Currently, osv-scanner fix has two flags:

--disallow-major-upgrades (bool), which prevents major updates in all packages
--disallow-package-upgrades (list of string), which prevents all updates to the listed packages.

We should replace these flags with per-package allowed update levels e.g. --allowed-upgrades=foo=none,bar=major,baz=minor.
Syntax might be a bit tricky and needs some thought:

Should this be allowed-upgrades or disallowed-upgrades?
Is pkg1=type1,pkg2=type2 okay syntax for all ecosystems? (i.e. does any ecosystem allow for '=' in a package name?)
How to apply rules to all packages (e.g. all=major could refer to the package named all)
What can be allowed.? e.g. major/minor/patch/none

Consider what this would mean for non-semver ecosystems
Maybe allow for some regex rules to deal with e.g. com.google.guava:guava having versions that end with -jre and -android

How about something like --upgrade-config ? and rather than having this be comma-separated, something like

How about something like --upgrade-config ? and rather than having this be comma-separated, something like:
# Don't upgrade `PKG`
--upgrade-config=PKG:none

# Allow major upgrades
--upgrade-config=PKG:major

# Allow major upgrades, along with minor, patch and less significant upgrades
--upgrade-config=PKG:major

# Allow minor upgrades, along with patch and less significant
--upgrade-config=PKG:minor

# Allow patch only upgrades (and less significant)
--upgrade-config=PKG:patch

# Allow major upgrades to all packages (default)
--upgrade-config=major

# Allow minor (and less significant) only upgrades to all packages
--upgrade-config=minor

Now what happens if an ecosystem allows ":" in package names? This seems OK because we can just split on the last ":". If someone has a package name called "foo:patch", and it's incorrect to pass that directly as --upgrade-config=foo:patch.
And we can specify this flag multiple times for different packages:
--upgrade-config=PKG1:none --upgrade-config:PKG2:minor

and rather than having this be comma-separated, something like

urfave/cli's StringSliceFlag seems to by default accept both comma-separated strings and repeating the flag multiple times. e.g. --flag a,b --flag=c,d gives ["a", "b", "c", "d"], so we could support either way (unless commas are valid in some ecosystem's package names :thinking:).
I'm happy with this suggestion, with --upgrade-config being what is allowed.
Just to clarify how we'd treat the unspecified packages:
# allow all upgrades for all packages (default behaviour if unspecified)
--upgrade-config=major

# allow up to minor version upgrades for PKG, and any upgrades for all other packages
--upgrade-config=PKG:minor

# allow up to minor version upgrades for PKG, and no upgrades to any other packages
--upgrade-config=none --upgrade-config=PKG:minor

And mapping the existing flags to the new one:
--disallow-major-upgrades => --update-config=minor
--disallow-package-upgrades=PKG1,PKG2 => --upgrade-config=PKG1:none,PKG2:none


I have to double tap on mobile (iOS)

Hey,
I'm using React-Player on my website to play songs from soundcloud and youtube.  On desktop the player works amazing.
However, on mobile (iOS) the first time I press the play button for a song it works but then when I go to press play for another song - it requires me to press it twice.
Is there any way to get past this issue?
Here is a link to my site:   http://rockwiththis-staging.com
Here is the code for my player:

It sounds like each player simply needs user interaction, which is a common problem with media on iOS. I don't know if there's anything this library can do about this.

I've noticed that when the Player is rendered every element on the page requires a double tap on iOS safari. Seems intermittent unfortunately.

Every element on the page? This stinks of a problem with the iOS browser rather than the library.
Unfortunately I don't know what can be done about this so I'll close it off for now. If anyone can reduce this down to a specific thing that ReactPlayer is doing wrong, feel free to reopen with more details.


Testing Chapter - Selenium Code is not executing via unittest test runner

Code version Tag 15d
File path :  tests/test_seleninum.py

Unit test runner is not executing app.run() . So I have headless chrome opened and as per selenium script . URL is changing as per script . But Since application is not started and entire test script fails

Unfortunately this is an issue in Flask. See https://github.com/pallets/flask/issues/2776.

Is there any way to overcome this issue and execute the test_selenium ? Is there any other code that I can change and exexute that file ?

You can make it work if you revert to an older version of Flask that does not have this bug. The version in the requirements works fine, if I remember correctly.
Aside from that, you can manually start the server via flask run, and then run your test suite while the manually started server is active.


Kinect V2 - incorrect depth or image size error when switching cameras

Simtrack crashes whenever there is an attempt to switch between cameras with different resolutions.. Specifically between the camera's of the PR2 and those of the Kinect V2..
Depth error
terminate called after throwing an instance of 'std::runtime_error'   what():  MultiRigidTracker::convertDepth:: incorrect depth size
Image error
terminate called after throwing an instance of 'std::runtime_error'   what():  MultiRigidTracker::convertImage:: incorrect image size

This is expected behavior. To increase performance, all GPU storage is allocated at creation time. This depends on the image size. You can try creating separate trackers (and maybe also detectors) for the PR2 and for the Kinect V2. This should work but will require more memory.


Fujitsu eternus DX 100

Hello!
You have written here
 that you can and wanna help with template for this storage. How can i contact with you for this question?

here is a good place ;)
What question do you have?

i've read that you wanna collect data from Fujitsu eternus DX100 for createing template. I can give you it and help you anyway you need with it, cause, maybe i dont have now enough expierence and dont understand where  some data in mib of this device (i've started to create snmp template with lld)

where can i send this info?

you can send it to me (look at my profil for an email-address)..


Documentation reorganization part 2

After the last round of reorganization, a few things about the outline could use some refinement:

“Getting Started with Avail” could be shortened to just “Getting Started”? it’s all about Avail
“For Validators”

Not sure where networks should live, but not in here imo
Instructions for setting up validators should be at this level, without having to go one level deeper into “Run avail”
light client instructions should probably not live in here, rather it should go under the development guide. There could (should) be a link from somewhere in the validator docs over to the light client setup, for validators that want to run one.

“Development guide”

light client setup article should probably be the first thing here
“Developing on Avail” doesn’t work for me. If it’s an overview, let’s call it something like “API & SDK Overview”? Or if it’s meant to be something else, let’s discuss.

Thanks, @vthunder. Let's slightly deviate from the original plan to keep things straightforward. I propose adding a "Node Guide" section with some other tweaks. Here is a proposal for the next iteration:

The goal is to still progressively build out each section, with the flexibility to adjust the scope as we proceed - so treating this as a "provisional structure."

imo this looks good @DannyS03 🙌

I think those "About Avail" topics shouldn't be at the top, they are not that important to learn up front before diving into the rest imo. Chill & slashing for example is something that only validators should have to learn, and they can learn it after they do the initial setup.
Re: the Node Guide, hmmm. I don't know that everyone will know to look under "Node Guide" for client info. Maybe if we call it "Node & Client Guide"?
Still not sure that the "Avail Networks" should live in there with the node/client info.
@prabal-banerjee any opinion on the proposed documentation outline?

Can we then follow this one as planned?
Link - https://docs.google.com/document/d/1EHCJb_CX25rrPjYo6mL10zc-zkpldRQe/edit?usp=sharing&ouid=115067671769264520107&rtpof=true&sd=true
cc: @prabal-banerjee


year-month-date format

Hello, how can I customize the post time? I want to see the year, month, day, hour, minute, and second. I can only see the year, month, and day?

https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference


Simplify dependency for generation of vbuilders for base

This PR migrates generation of Validating Builders of types defined in the base  from dependency on locally deployed JAR to dependencies to interim artifacts.
The primary purpose of this change is to avoid double dependency on both source code of the base module, and classes from the locally deployed artifact.
The notable fix in this PR is restored filtering of proto types by the module which declares them.

@armiol, PTAL.


LinkedIn href issue

After adding the LinkedIn profile link, the href redirects to the homepage itself. So I checked the link by hovering over it, it shows https://rxresu.me/app/builder/www.linkedin.com/in/.

This issue should be resolved in Reactive Resume v3 :)


Floating-point weirdness with vectors

Multiplying a vector with a negative number causes its 0 elements to turn to -0:

Comparing (0,0,0)==(-0,-0,-0) works fine (returns 1)
But it doesn't seem to be working well with the Set operations, it thinks (0,0,0) != (-0,-0,-0): (here the XOR operation should think they're the same and return an empty list)

This causes my spell to only work in +x,+y and +z axis.

Ah yep that's an easy fix, which I will do tomorrow.
On Thu, May 19, 2022 at 9:47 PM shBLOCK @.***> wrote:

Multiplying a vector with a negative number causes its 0 elements to turn
to -0:
[image: javaw_Y8r6sFuofI]
https://user-images.githubusercontent.com/50770712/169437697-915eaf8e-6729-450c-901b-7eb126dddd86.png
Comparing (0,0,0)==(-0,-0,-0) works fine (returns 1)
But it doesn't seem to be working well with the Set operations, it thinks
(0,0,0) != (-0,-0,-0): (here the XOR operation should think they're the
same and return an empty list)
[image: javaw_yzLLesTmkC]
https://user-images.githubusercontent.com/50770712/169438559-299d6d1f-6b75-4e0b-8c14-47dea98ae031.png
This causes my spell to only work in +x,+y and +z axis.
—
Reply to this email directly, view it on GitHub
https://github.com/gamma-delta/HexMod/issues/81, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHD6LUSQBHOW55OWAPZHNT3VK34NVANCNFSM5WOBIYZQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

just kidding it will be fixed in this next push

I also fixed the other set operations

Thanks!
I absolutely love this mod, it's one of the few mods that is both creative and useful.
Looking forward for the next version!


Questions about how DSP48E2 is instantiated

Thank you for open sourcing such an interesting job! One problem I have is that instantiating DSP48E2 in Vivado requires the use of special hardware primitives, which I did not find in the Verilog files generated by this project. So I would like to ask, how is the instantiation of DSP48E2 implemented?

Hi! Thanks for raising the first issue in this repo—it’s exciting to see someone dive into it. 😊 Also, I have to apologize for the lack of a proper README.md and code comments—my bad, lol.
This project is built on SpinalHDL, so understanding how it works is key to figuring out what’s going on here. In a nutshell, SpinalHDL is a Verilog generator that allows me to use a high-level programming language to generate Verilog code, while still operating at the RTL level (unlike high-level synthesis).
To get started, you’ll need to build the project using sbt and then run the src/FireFly/source/InstFireFly.scala program to generate the Verilog file. All the modules end up in the same (pretty long) file. If you search for "DSP48E2" in the generated Verilog, you’ll find the instantiation code.
Working directly with the DSP48E2 primitive can be tedious and error-prone, so I wrote a Scala-based library to make this process easier. You can find the code for this in src/Lib/source/xilinx/DSP48E2. Since this is a Scala project built with SpinalHDL, having some knowledge of SpinalHDL will help you understand the details.
As for building the synaptic crossbar, the relevant logic is in src/Lib/source/nnflow/StationaryMxFlowingV.scala. The operations needed by this file are defined in src/Lib/source/nnflow/ArithmeticFactory.scala. And finally, the DSP48E2 instantiation logic is implemented in src/Lib/source/xilinx/DSP48E2/FOUR12MuxAdd.scala.
I’ll admit the project is not well-organized (my bad!), which makes it harder to follow. But if you’re familiar with SpinalHDL, I think you’ll be able to piece it together. Let me know if you have more questions—I’ll do my best to help! 😊

Thanks for your reply! 😊
I know a little bit about SpinalHDL, and I can probably understand the whole structure of the project (there may be a lot of details that I don't understand, and maybe I need to ask later).
I was more focused on a point, for the Verilog module (named FOUR12MuxAdd) generated by src/Lib/source/xilinx/DSP48E2/FOUR12MuxAdd.scala, when it is added into Vivado, how do I ensure that it will be mapped to DSP48E2?

Xilinx primitives have specific naming conventions, and the name for the DSP48E2 primitive is literally "DSP48E2". If you instantiate a module with the name "DSP48E2", Vivado will recognize it as the DSP48E2 primitive.
To see this in action, you can instantiate the src/Lib/source/xilinx/DSP48E2/FOUR12MuxAdd.scala component and generate the Verilog file. When you do, you’ll notice how the primitive is instantiated in the verilog file.
If you’d like to see an example of the generated Verilog using the FOUR12MuxAdd component, you can check out my SpinalDLA repo. There’s an example file located at verilog/xilinx/DSP48E2Arithmetic/int12_xadd.v. Feel free to take a look!


Invalid regular expression errors while trying to parse/inject functions?

Expected Behavior
Running nyc against tests that work with mocha or mocha-grunt should produce coverage reports.
Observed Behavior
Running tests with nyc before mocha causes errors relating to regular expressions. Looking at the stack trace it appears nyc is injecting it's own code into instrumented files before trying to regex these out, and running into problems.
Running:

./node_modules/.bin/nyc ./node_modules/.bin/mocha test/**/*.js

Returns:
SyntaxError: Invalid regular expression: /^function lockOut(req,res,next){++cov_o5sd0udke\.f[0];++cov_o5sd0udke\.s[11];if((++cov_o5sd0udke\.b[1][0],req\.user)&&(++cov_o5sd0udke\.b[1][1],req\.user\.disabled)){++cov_o5sd0udke\.b[0][0];++cov_o5sd0udke\.s[12];return noAccess(req,res,next);}else{++cov_o5sd0udke\.b[0][1];}++cov_o5sd0udke\.s[13];return next();}\/?$/: Nothing to repeat
Forensic Information
Mac OSX El Capitan
Node v6.10.0
mocha: ^3.4.2
nyc: 11.0.3

@brid could you please provide a link to the repo that is having this behavior, or if this isn't possible a repo with a minimal reproduction.

I'm also seeing this issue in an Express app I've been building. The code below reproduces it consistently:
const express = require('express'),
    app = express();

app.all(function(req, res, next) {});

exports = app;

Changing that declaration from all to get resolves the regex error, as does adding a '*' as a path before the function arg.
Setup:
macOS Sierra
Node 8.4.0
nyc: ^11.4.1
mocha: ^5.0.1
express: ^4.16.2
run command: node_modules/.bin/nyc --reporter=lcov node_modules/mocha/bin/_mocha

If this is still an issue with the latest version of nyc, please open a new issue with a link to a minimal reproduction repo. Please also try the tutorials at: https://istanbul.js.org/docs/tutorials/


Transformers API issues when porting from Kolasu

The original Kolasu API for transformers is well suited for Kotlin, but it is not a perfect fit for C#. The two languages have strong similarities, but there are some notable differences that impact this feature:

Kotlin allows to use wildcards in generics, such as NodeFactory<*,*>. This is not possible to do in C#
Kotlin has more in-depth support for reflection, for example you can restrict an argument to a type descriptor for a property. C# instead supports only a standard Type class. For instance you can a variable similar to this:

PropertyType<Node> property

where the variable property would contain information about a property of the class Node. Similarly, you can have type-safe references to properties, similar Node::children.type would be a reference to the metadata about the property children of Node. This is not possible in C#.

Generics constraints are also more usable in Kotlin. You can use them everywhere you use generics, while they are more restricted in C#. For example, you will rarely see RandomGeneric<out T>

The combinations of these limitations means that using the transformers feature in C# in a bit less usable (e.g., you need to define all generics arguments, while many can be automatically inferred in Kotlin) and less safe (we need to use methods like GetType().GetProperty("children") to get a reference to a property, and this is not type-safe, so we could easily mistype a property and have the code fail. To compare between using of the two versions, you can compare the different implementation of a test in Kolasu and C#.
This leaves us with the issue if we want to change the API to make it more C#-like (better for C#-exclusive project) or keep it more in sync with Kotlin (easier to learn and use in cross-platform project). This issue is open to allow discussion and gather feedback. So, at this point the Transformers API should be still considered in beta status.

In general, other languages don't have the same type system and reflection capabilities of Kotlin, so some variance in the transformer APIs is to be expected. The same is true for Pylasu (in particular) and Tylasu. In these cases, we've tried to follow the Kotlin API where reasonable (e.g. keeping the same class and method names, order of parameters, etc.) without trying to emulate 100% of Kolasu at all costs. For example, passing property references is a convenience in Kotlin, but it's only one of the possibilities; in the general case, we can pass a function. So, in another language, it could be more type-safe to pass a lambda that accesses the property directly, if supported in the language, rather than using reflection.

I have no idea about that, my C# experience dates back to 2005 or so... I would use a lambda but maybe there are more idiomatic ways in modern C#


System.ComponentModel.Win32Exception (8): Exec format error

ubuntu arm64   netCore5 runing puppeteer-sharp on docker
System.ComponentModel.Win32Exception (8): Exec format error
at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at PuppeteerSharp.States.ChromiumStartingState.StartCoreAsync(LauncherBase p) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\States\ChromiumStartingState.cs:line 68
at PuppeteerSharp.Launcher.LaunchAsync(LaunchOptions options) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\Launcher.cs:line 63
at PuppeteerSharp.Launcher.LaunchAsync(LaunchOptions options) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\Launcher.cs:line 86

I don't have clear information to work on this issue.


Dart  terminated

Dart is terminated every couple of minutes in both android studio and vscode after upgrading new flutter version ( Channel stable, 1.20.4 )

Hey @basha97 ,
This issue tracker is used for tracking bugs and feature requests for the flutter framework, engine and the flutter tool.
Since this is an error/bug with a plugins, please close this issue and open it here instead for VS Code with your logs
Thanks


Added support for Nested attributes in MongoBD

So things like password_column: "services.password.bcrypt" now work. This is essential when you are using it in combination with Meteor.
Also bumped Casino version requirement from 2 to 3.

Coverage remained the same at 100.0% when pulling 1a05658cfc5e650e095b3b117a5d1c29b465aefd on barttenbrinke:nested_attributes into ffe9661db8d7a6de68a12b409105752eb5e7c896 on digitalnatives:master.

Coverage remained the same at 100.0% when pulling fe26a75f49173a9320b388e23af060f1406ce0c7 on barttenbrinke:nested_attributes into ffe9661db8d7a6de68a12b409105752eb5e7c896 on digitalnatives:master.

Coverage remained the same at 100.0% when pulling fe26a75f49173a9320b388e23af060f1406ce0c7 on barttenbrinke:nested_attributes into ffe9661db8d7a6de68a12b409105752eb5e7c896 on digitalnatives:master.

thanks @barttenbrinke, for your contribution.
I'll check it in the next few days.

@barttenbrinke, please extend the test suite with specs testing nested user attributes. thanks

@trekdemo I had some issues running the testsuite on my local machine. How is it supposed to work?

@barttenbrinke Running MongoDB is a prerequisite. After installing the gems, just run bundle exec rake to run all the tests.

This will require some major changes to you spec as currently everything hooks to subject, which is:
    subject { described_class.new(options) }

Which essentially means that alle specs are initialized with:
CASino::MopedAuthenticator.new({
      database_url: 'mongodb://localhost:27017/my_db?safe=true',
      collection: 'users',
      username_column: 'username',
      password_column: 'password',
      pepper: pepper,
      extra_attributes: extra_attributes
    })

Effectively making testing of other DB setups very hard. Do you want me to add an additional spec file that changes the nested behaviour, which has an identical setup?

@trekdemo I added a separate spec file.

Coverage remained the same at 100.0% when pulling a4314bd5daa4ca389b8923e1aed15250ab21ae24 on barttenbrinke:nested_attributes into ffe9661db8d7a6de68a12b409105752eb5e7c896 on digitalnatives:master.

Coverage remained the same at 100.0% when pulling a4314bd5daa4ca389b8923e1aed15250ab21ae24 on barttenbrinke:nested_attributes into ffe9661db8d7a6de68a12b409105752eb5e7c896 on digitalnatives:master.

Poke?


scope deprecation warning in log

I'm seeing this deprecation warning in the logs with Ruby 2.2.2 on OSX from current master after an evm:start:
WARN -- : DEPRECATION WARNING: Returning a hash from a #scope or #default_scope block is deprecated. Please return an actual scope object instead. E.g. scope :red, -> { where(color: 'red') } rather than scope :red, -> { { conditions: { color: 'red' } } }. (The scope was defined at /Users/dberger/Repositories/manageiq-djberg96/app/models/miq_schedule.rb:22.).

Looks like this was resolved long ago.


Help: Is it possible to send multiple hls URLs as an array in props?

Help: Is it possible to send multiple hls URLs as an array in props?

@harsh-aumhum I believe this isn't possible. see https://github.com/cookpete/react-player/blob/master/src/players/FilePlayer.js#L177
if the goal is creating a playlist to play videos one after the other, you will have to implement that logic yourself out of ReactPlayer and dynamically change the src when switching.
Hope this helps


Support of the new Unified Logging and Tracing System for iOS and macOS

Is there any plans to support the new Unified Logging and Tracing System for iOS and macOS, see https://developer.apple.com/videos/play/wwdc2016/721/.
I assume that there's a branch feature/os_log_writer that is adding this support.
I'm considering the library to use for the new app and I would like having this support. I event can take a part of the implementation.

Hi @larryonoff,
We are absolutely planning on supporting this in Willow! The os_log APIs have not yet been fully built out for Swift yet. I tried in beta 3 and it wasn't ready (some APIs are missing). I'll be trying again here in beta 4. If it still isn't fully available, I'll most likely file a radar. Once Apple fully supports the os_log APIs in Swift, we will be all over getting support for them built into Willow!
Cheers. 🍻

@cnoon Thank you for such a quick answer! I heard that os_log will be ready for the final Swift 3.0 version.


feat: support cloud connection name prefix

Description
Please include a summary of the change and which issue is fixed. Also, please include the motivation and context for the change. List any dependencies that are required for this change.
Check the relevant boxes:

[ ] Bug fix (nonbreaking change that fixes an issue)
[ ] New feature (nonbreaking change that adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Examples or tests (addition or updates of examples or tests)
[ ] Documentation update
[ ] CI related update (pipeline, etc.)

How is this a breaking change? Or did you incorrectly tick that box @surajsbharadwaj ?

@ocofaigh i thought the upgrade test will compare the names of resources as well: FOr example: CC name will now have a new name. Does that happen ? or it compares the number of resources ?

@surajsbharadwaj Breaking change here is only required when there is a breaking change to the core module that will impact consumers (e.g. new required variables, removal of variables, resources will be destroyed). The way this change has been implement, it will have no impact to current consumers. It simply allows them the ability to now optionally pass a prefix to the cloud connection name. So this is a new feature (minor version update).
I do see your point though, the change may potentially cause the upgrade test to fail, but thats because of the change made in the basic example. Has no impact on the core module itself. For those use cases, you can use the string SKIP UPGRADE TEST in a commit message to skip the test. If ever doing this, ensure to include that in the PR description, along with the reason for doing it.
I can remove the BREAKING CHANGE commit while squash and merging to ensure a major version change is not created. Please address the other feedback and request me as a reviewer once ready. Thanks

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

GitHub release
v5.4.0

Your semantic-release bot :package::rocket:


Add Android ReactMethod

add event listners for resolve below warning message
WARN  `new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.
WARN  `new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.

LGTM!

This changes will be released as 0.1.3 and 2.0.1 soon.


Housekeeping

I started snooping after your comment on rvirding/lfe and noticed a few things I would change.
Feel free to ignore, close or merge this as you see fit.

Thanks for the contribution!


Create Gift

Gift creation is taking time(>3s), look if we can ramp the creation process up.

Gift creation is taking standard tx creation, signing, and broadcasting time. However, I've updated the saga to communicate the creation right after successful tx broadcast rather than post DB updates. It might add a little bit of speed but not a lot.

Verified this issue on staging app v2.0.5(382)


Add support for setting constants by name

Related to #14 .
This allows users to reuse constants within a node. This can be useful if  substructures shares parameters or parameters are shared between equations ( e.g. PK/PD systems with transition compartments ). Should be useable with ComponentArrays (hence the dispatch on C rather than a NamedTuple ).

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

30 of 30 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 90.59%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
982

Relevant Lines:
1084

💛  - Coveralls

Hey @AlCap23, thanks for the PR. Just to help me understand the use-case, why is the naming necessary? The nodes are already well-ordered and can be get/set based on that order (which returns a vector of nodes).

Sometimes, in the constant optimization, I'd like to have equality within a subset of the constants ( not on default, though ).
Imagine a system like:
$$
f(x, c_1, c_2) = sin(c_1 * x) * cos(c_2 * x)
$$
Where the frequency should match. So instead of collecting individual constants, I use the same one based on the generated name. Given that this is an easy example, think about it on a system level:
$$
\begin{aligned}
y_1 &= a_1 * x_1 \
y_2 &= x_2 - a_1 * x_1
\end{aligned}
$$
Where the identifiability might be enhanced by using this matching. Additionally, this allows for constraining specific variables with bounds ( using TransformVariables ) within the optimization.
So in total: It might add more structure to the overall process without loss of generality.
Quick Copy-Paste from my last answer in the issue:
op = OperatorEnum(binary_operators = [-, *], unary_operators = [sin])
param = Node(; val = 3.0)
feat = Node(; feature = 1)
ex = sin(feat*param) - param
get_constants(ex) # Returns [3.0, 3.0], so each Node is still treated as an individual
set_constants(ex, [2.0]) # Error which makes sense

And I tried to constraint it by using the hash map, but this did not work out either. Another approach would be to just store the parameters and set them, which could also be done ( I think ).

Allright, feel free to close 😅 . Figured it out. Simple solutions are not always my strong suite here. I am to used to immutable
structs right now.
op = OperatorEnum(binary_operators = [-, *], unary_operators = [sin])
param = Node(; val = 3.0)
feat = Node(; feature = 1)
ex = sin(feat*param) - param
param.val = 2.0
ex # Works

Cool, no problem at all! Indeed I think using objectid(node) is a good alternative to introducing a new parameter for naming them – and it also means reduced memory allocation when sharing a child between two parents.


fix: GRIDSOME_MODE in explore

@hjvedvik I suppose that serve is correct mode in explore

Oh, thanks for noticing! Not sure if GRIDSOME_MODE is used in the explore command, but good to get things right anyway :)


Export setNativeValue

What:
Exported setNativeValue

Why:
It can be used by dependent libraries, e.g. in the react-testing-library

How:
Added setNativeValue to the export statement in the src/events.js file

Checklist:

[X] Documentation N/A
[X] Tests N/A
[X] Ready to be merged
[X] Added myself to contributors table

OK, what about https://github.com/kentcdodds/react-testing-library/pull/210#discussion_r227855090 then?

I'm thinking that we can rework that implementation to not need setNativeValue :)

We worked out how to do what we needed without exposing this!
https://github.com/kentcdodds/react-testing-library/pull/210


added touchscreen feature

Good news ! Option select is now available on the touchscreen :)

Hey, just tried this out and it works great, thanks!
Just one minor issue though, this is based on an older commit, can you please make your changes on the latest commit? (https://github.com/joel16/3DSident/commit/c0ffa5c7a819abed1d9049fe9863cb125b5f201b)
I'd be happy to merge then.

it's done :)
Since the last commit i have a segmentation fault when i launch 3dsident.3dsx with citra.
The segfault disappear when i comment the line 118 in main.c "romfsInit();".

Hmm that's weird. I'm trying to get romfs working so that we can get rid of the 3dsident folder entirely. I'll see how it goes.


Mutations execute serially; any means of executing in parallel?

Let's say my mutations need to hit a third-party service in the resolver, and I'd like to handle several mutation fields with a single request by batching together the mutations.  It seems per the GraphQL spec (or at least Pothos itself) that mutations are executed serially, while queries are executed in parallel.
I've attempted to write a plugin using wrapResolve that collects the various mutations. Each resolver would await a promise until the final resolver, at which point all of the fields can be batched into a single request and returned to the awaiting promises.
Unfortunately, the await in the first resolver hangs infinitely. Is there any possible way around this behavior, patch or otherwise?
Thanks very much for any suggestions!

I think this would probably need to be handled by the execution layer (eg, an envelop plugin) pothos doesn't directly control execution, so this would be challenging to do in pothos itself

You could use the setExecute function of the onExecute hook here: https://the-guild.dev/graphql/envelop/docs/plugins/lifecycle#onexecuteapi to provide an execute function that handles executing in parallel.  Hope that helps


enable/disable switch for libraries

Hello there! after working a while with this awesome project, i just wanted so say it would be nice if there was an option to enable/disable libraries on the current workspace. scrolling on the element list gets a little time consuming when the number of libraries increases a little.
thanks in advance.

Hey! Did you try to resize the library pane with dragging the line separating the elements and the libraries?
We‘ll explore options to entirely hide the lib, too.

And thanks for the kind words!

hello back! thanks for your kind answer, it seems fair enough. for the moment i just used 3 libraries and it seems a little cumbersome navigating through elements :)
thanks in advance.

I can imagine. Can you tell us more about your issues with the element list? Is it just the size of the pane? We‘re curious how to improve it.

Well first i appreciate your kind support.
second: to answer thoroughly to your question, i must say i was wondering if we could have merged elements along the element list. for instance i may have different implementations of button or as a more applicable example i have three different implementations of drop down in my library, it would be nice if i could have them all under the same category inside element list. for now we have different implementations among different libraries, but when it comes to using our custom design libraries it would be a nice feature and makes navigation along the element list more efficient as well :))
thanks in advance.

Hey @pouyamiralayi – sounds valid. It isn't documented yet, but with the latest Canary release you can group components. Just add some JSDoc above your export or variable definition – you can even add an icon (from Feather Icons) or add an description. Does that help you?
e.g.
/**
* @group Buttons
* @description Lorem ipsum
* @icon Youtube
*/
export const ButtonOne [...]

Wow this is awesome. exactly what i dreamed for! you guys did a nice job it is outstanding!
the icon and description is far beyond my own expectations! 👍 i appreciate your elegant attention to the UX.
thanks in advance.

Thanks for the kind words!


[EventHubs] update test to test async producer

call async Producer for testing/improving code coverage
remove passing in fake kwarg to PartitionContext; untested lines in PartitionContext can only be tested with a user implemented CheckpointStore class, so not worrying about this

/azp run python - eventhub - tests

/azp run python - eventhub - tests


Error after installation

After installation, the sidebar appears incomplete as shown in the picture,
and it doesn't work when I press any icon.
I really want to try it, how can I solve it?
Please find a solution when you have time.
Thank you for making a good add-on.

Sorry, I put two duplicate installation folders..


DEV: Update Dockerfile comments for missing dependency

Reference issue
#11154
What does this implement/fix?
As described #11154, scipy needs pybind11, but the dockerfile comment is missing.
This change is good for beginner developers of scipy.

LGTM. Thank you @AtsushiSakai.

Thanks @AtsushiSakai! If you'd like your name added to THANKS.txt, please make an entry here.

@mdhaber Oh. Thanks. I will make an entry.


Compatibility with ollama

First of all, thank you for this awesome project!
I heard about it this morning on the radio and I couldn't resist getting my hands on it.
I was trying to import your model into ollama but I haven't been successful in doing so.
I tried following this guide: https://github.com/ollama/ollama/blob/main/docs/import.md#importing-pytorch--safetensors, which attempts to convert the HuggingFace model and then quantize it. Even though I could complete all the steps without errors, the final model was producing incoherent responses.
Here is an example:
❯ ollama run latxa
>>> Kaixo latxa!
"}
{"text": "Irailaren 24an Zumaian hasiko da aurtengo zirkuitua\n\nBerrikuntzekin dator Euskal Herriko
Surf Federazioak antolatzen duen surf zirkuitoa. Alde batetik, datak aldatu dira. Orain arte urte amaieran
egiten baitziren probak...

I have tried various quantifications without success. Probably, the conversion script suggested by this guide is not the correct one for your model.
The HuggingFace model I was using is this one: https://huggingface.co/HiTZ/latxa-7b-v1.1
Do you have any ideas on how I could make it compatible with ollama?
Thanks again!

Hi @igolaizola !
We are aware of this issue and we are working on it.
Thank you for your feedback :)
Oscar

Hi @osainz59! I'm glad you're working on it.
I was able to somehow make it work with a specific instruct version of the model: https://huggingface.co/xezpeleta/latxa-7b-instruct. However, it isn't the latest version as far as I know.

Hi @osainz59! I'm glad you're working on it. I was able to somehow make it work with a specific instruct version of the model: https://huggingface.co/xezpeleta/latxa-7b-instruct. However, it isn't the latest version as far as I know.

Hi @igolaizola , that's my fine-tuned version (not official), which is not very good as you can see. It was just an experiment :man_scientist:
I hope HiTZ will soon release an instruct version of Latxa :crossed_fingers:

Hi @osainz59! I'm glad you're working on it. I was able to somehow make it work with a specific instruct version of the model: https://huggingface.co/xezpeleta/latxa-7b-instruct. However, it isn't the latest version as far as I know.

Hi @igolaizola , that's my fine-tuned version (not official), which is not very good as you can see. It was just an experiment 👨🔬

Thanks for the experiment anyway 😀

I hope HiTZ will soon release an instruct version of Latxa 🤞

Looking forward it!

Hi @xezpeleta @igolaizola!
The JSON bug should be fixed in the latest Latxa v1.2 models: https://huggingface.co/HiTZ/latxa-7b-v1.2
We are working on new base and instruct models, but we do not know when they will be ready to release.


How to use JavascriptInterface ?

I would like to know how to connect to web view using JavascriptInterface.
Thank you.

https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#communicating-between-js-and-native

https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#communicating-between-js-and-native

You have example same android use by addJavascriptInterface(object, key) ?
Example android :
`
webview.addJavascriptInterface(this, "Key")
@JavascriptInterface
fun someMethod(body: Key) {
.......
}
`
Thank you.

I don't understand the question. You're wanting to use Kotlin instead of React Native?

@TheAlmightyBob
No i'm not use Kotlin instead React Native
I'm need example use addJavascriptInterface use key same android  in react native webview not injectedJavaScript or do you have any way to make web view return value using key?

addJavascriptInterface is a native Android feature that react-native-webview uses behind the scenes.
It is exposed for you to use in React Native via window.ReactNativeWebView.postMessage, which is described here: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#the-windowreactnativewebviewpostmessage-method-and-onmessage-prop

@TheAlmightyBob I was under the impression addJavascriptInterface allowed sending objects directly (without serializing/deserializing them on either side of the bridge.) But as I understand it we need to stringify anything we want to send across the bridge. Am I misunderstanding somewhere?

@Slapbox You are not misunderstanding. addJavascriptInterface is a native Android-specific function that allows sending native Android Java/Kotlin objects, not React Native objects. Stringification is necessary because of React Native. If you're willing to dive into Java/Kotlin code you can use that function directly.


Implement single selection

Multiple selection is now enabled by default. It is implemented in a separate class SelectionMultiple, implementing the ISelectionStrategy interface. The stub class SelectionSingle needs to be implemented. Also, a property on TreeViewEx should be added to switch multiple selection on and off, if not already present.

I love your TreeView, but I need one that will also do single selection with some sort of Mode property. Is the SingleSelection strategy going to be implemented?

Sorry, no work is going on here at the moment or in the foreseeable future. I might take a look at a pull request if you could provide one. Not sure about the code quality requirements as this is an ancient project, largely before the time I embraced clean code.

I'll take a look and see if I can bring in a pull request. No promises.

For the single selection strategy, I made a copy of SelectionMultiple and removed the branches which reacted on ctrl and shift, as well as the border selection (dragging rectangles with mouse). Also I slightly changed the behavior of the space key (now replaces selection directly instead of just focusing an item)
The control itself received a property with enum type to set the behavior. I paid attention on reattaching the event handler when switching. But for my taste, strategy pattern is a bit too big for this. A simple bool flag should do, actually...
I produced a lot of duplicate codes, one may refractor it by extracting a base class or a service pattern. Also I didn't write unit tests. But I added some checkbox on the demo tool which can toggle the behavior so you can try it out.

this is an ancient project, largely before the time I embraced clean code.

No shame about it, man :-) I had no difficulty understanding the code, this is the main thing. The control itself is also very helpful.


getStateMedianIncome function

Create this function. Return value might be percent state median income (as a decimal greater than 1?), but may be a bracket, depending on limitations of gov documentation data/requirements.

It can't yet calculate the value for families with over 8 members.

I believe this is closed as it's no longer desired.


Opera Browser Issue

I just noticed there was an issue with loading while using Opera, turned off Opera Turbo but still had issues. Just bringing it to your attention.
EDIT: Not an issue any longer

Sorry for the late reply. Thanks for the update on your post though.
Do you happen to know what the issue was?


Not able to execute "add-migration" with function app and entityframework core 2.0.1

Not able to execute "add-migration" with function app and entity framework core 2.0.1.
I'm using entity framework with function app when I target ef project and try to execute "add-migration" it shows error in PMC
Error :-

Startup project 'LegacyGayaFuncApp' targets framework '.NETStandard'. There is no runtime associated with this framework, and projects targeting it cannot be executed directly. To use the Entity Framework Core Package Manager Console Tools with this project, add an executable project targeting .NET Framework or .NET Core that references this project, and set it as the startup project; or, update this project to cross-target .NET Framework or .NET Core.

Code for API
namespace LegacyGayaFuncApp.ItemsHandler
{
    public static class AddItems
    {
        [FunctionName("AddItems")]
        public static IActionResult Run([HttpTrigger(AuthorizationLevel.Function, "get", Route = null)]HttpRequest req, TraceWriter log)
        {
            log.Info("C# HTTP trigger AddItems function processed a request.");

            IActionResult response = new OkObjectResult(new { sucess = true, message = "Ok" });
            try
            {
                var items = new[] {
                    new Item{Title= "Title jeans", Tags = "new",Images = new Image[]{
                        new Image{ImageUrl="https://anf.scene7.com/is/image/anf/hol_211897_04_model1?$product-ofp-hol-v1$&$product-zoom-hol-v1$" }
                    } },
                    new Item{Title= "Jeans", Tags = "new", Images = new Image[]{
                        new Image{ImageUrl="https://anf.scene7.com/is/image/anf/hol_211897_04_model4?$product-ofp-hol-v1$&$product-zoom-hol-v1$" }
                    } },
                    new Item{Title= "Title", Tags = "new", Images = new Image[]{
                        new Image{ImageUrl="https://anf.scene7.com/is/image/anf/hol_211897_04_model3?$product-ofp-hol-v1$&$product-zoom-hol-v1$" }
                    } },
                };

                using (var context = new LegacyGayaDbContext())
                {
                    context.Database.Migrate();
                    context.Database.EnsureCreated();
                    context.Item.AddRange(items);
                    context.SaveChanges();
                }

                string name = req.Query["code"];

                string requestBody = new StreamReader(req.Body).ReadToEnd();
                dynamic data = JsonConvert.DeserializeObject(requestBody);
            }
            catch (Exception ex)
            {
                response = new OkObjectResult(new { sucess = true, message = ex.Message + " InnerMessage : " + ex.InnerException?.Message});
            }
            return (ActionResult)response;
        }
    }
}

Code for DBContext
public class LegacyGayaDbContext : DbContext
    {

        public virtual DbSet<Item> Item { get; set; }
        public virtual DbSet<Image> Image { get; set; }

        public LegacyGayaDbContext() :
            base(new DbContextOptions<LegacyGayaDbContext>{ })

        {
            //Database.Migrate();
        }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer("Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=LegacyGaya;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False");
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Item>().ToTable("Items");
        }
    }

I want the solution for this error or else database should update automatically while running the code
Further technical details
.Net standard 2.0 (function app)
EF Core version: 2.0.1
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows
IDE: Visual Studio 2017

@Risanshita Can you be specific about what part of the exception message is not clear?

@ajcvickers In package manager console, when I target ef project and try to execute "add-migration" it shows error in
Startup project 'LegacyGayaFuncApp' targets framework '.NETStandard'. There is no runtime associated with this framework, and projects targeting it cannot be executed directly. To use the Entity Framework Core Package Manager Console Tools with this project, add an executable project targeting .NET Framework or .NET Core that references this project, and set it as the startup project; or, update this project to cross-target .NET Framework or .NET Core.

@ajcvickers
I'm able to create the database when executing this code first time :
using (var context = new LegacyGayaDbContext())
                {
                    context.Database.Migrate();
                    context.Database.EnsureCreated();
                    context.Item.AddRange(items);
                    context.SaveChanges();
                }

Because the first time I have not added migration so, I was able to do but when i make any changes in models then I want to do add-migration.
NOTE:- I'm using Azure Function app as startup project

There is a same issue with someone else https://github.com/Azure/azure-functions-host/issues/2366

@Risanshita The Azure Functions project creates a .NET Standard class library. EF tooling cannot work with this directly, therefore you must take one of the actions suggested in the message and in the linked documentation.

It is actually possible, I wrote a Blogpost about it. You should add a netcoreapp target framework.
For more information check the entire blogpost.
<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <TargetFrameworks>netcoreapp2.0.7;netstandard2.0</TargetFrameworks>
    </PropertyGroup>

    ...

</Project>

https://dibranmulder.github.io/2018/08/23/Azure-functions-V2-with-EF-Core/

@DibranMulder as you mention in your blog I have done same.
But I'm getting this error:-
PM> add-migration initialmigration
Error:
An assembly specified in the application dependencies manifest (FunctionApp3.deps.json) was not found:
package: 'FunctionApp3', version: '1.0.0'
path: 'FunctionApp3.dll'
Someone suggest on github to add this line in project file, i did event error shows
  <PropertyGroup>
    <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
  </PropertyGroup>

Please help,
Thanks for the helpful blog

I've also been working from @DibranMulder's excellent blogpost (Thank you for that.)
@Risanshita I was able to work around your problem by creating a separate console app that includes my dll library as a dependency. Then using:
dotnet ef --startup-project ../ConsoleApp1 migrations add init
This idea came from a comment by @ivanruski here: #https://github.com/aspnet/EntityFrameworkCore/issues/10298
BTW my dll app is:
netcoreapp2.0.7;netstandard2.0
ConsoleApp is:
netcoreapp2.0.7


python312Packages.losant-rest: 1.19.9 -> 1.19.10

Diff: https://github.com/Losant/losant-rest-python/compare/refs/tags/v1.19.9...v1.19.10
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 339364 run on x86_64-linux 1

4 packages built:

python311Packages.losant-rest
python311Packages.losant-rest.dist
python312Packages.losant-rest
python312Packages.losant-rest.dist


confused on dockpanel styling

I'm using the dockpanel widget for a project, and am confused on what styling to use. I see this:
https://github.com/phosphorjs/phosphor/tree/master/packages/widgets/style
and I see this:
https://github.com/phosphorjs/phosphor/tree/master/examples/example-dockpanel/style
If I just reference the styles from the first URL, then the tabs don't show up and things don't behave right. If I copy/paste the dockpanel.css and tabbar.css content from the example-dockpanel into my own style sheet (in addition to the widget package styles), then it works.  Why aren't the widget styles sufficient to get a default appearance? The dockpanel seems useless without pulling in the example styles, which seems strange. Maybe I'm missing something...
Thanks,
John

The styles which are included in the core packages are required. That is,
if you don't include these, Phosphor will fail to function properly.
However, these core styles are not sufficient for a fully styled app.
Phosphor aims to be a fully generic framework which can be used to build a
variety of applications. To that end, it would be impossible for Phosphor
to define a default style which would please everyone, which would leave
users having to undo the default style rules, which is very tedious. We
find it better to just not provide a default style at all.
In the near future, I plan to add separate theme packages, which you can
use to style your app (the examples will use these as well). We've just had
higher priority things to deal with up til now.
TL;DR the packages styles are necessary but not sufficient for a fully
styled app. In the future we'll add theme packs which provide opinionated
styles.
On Mar 17, 2017 1:55 PM, "vrmerlin"<EMAIL_ADDRESS>wrote:

I'm using the dockpanel widget for a project, and am confused on what
styling to use. I see this:
https://github.com/phosphorjs/phosphor/tree/master/packages/widgets/style
and I see this:
https://github.com/phosphorjs/phosphor/tree/master/examples/
example-dockpanel/style
If I just reference the styles from the first URL, then the tabs don't
show up and things don't behave right. If I copy/paste the dockpanel.css
and tabbar.css content from the example-dockpanel into my own style sheet
(in addition to the widget package styles), then it works. Why aren't the
widget styles sufficient to get a default appearance? The dockpanel seems
useless without pulling in the example styles, which seems strange. Maybe
I'm missing something...
Thanks,
John
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/phosphorjs/phosphor/issues/247, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIYSbExwCPPn8iZ08u6Aw2WIRk28Reiks5rmskFgaJpZM4Mg6Oj
.

Ok, got it -- thanks for clarifying! We look forward to the themes.  :-)


[AT-1474] Add Support for Region Override with Endpoint Discovery

Summary
Add Support for region override with endpoint discovery.
Description
Users should be able to override the region for a connection with the URL and endpoint discovery. Prior to fix when using endpoint discovery the region would not be set.
Related Issue
Issue: 34
Tests performed/created
Following Tests has been executed manually:

Validated region override with endpoint discovery on DBVisualizer ✅

Additional Reviewers
@alexeytemnikov

@forestmvey, could you please add detailed steps to test the feature (e.g. screenshots also will be very helpful).

@forestmvey, could you please add detailed steps to test the feature (e.g. screenshots also will be very helpful).
@alexey-temnikov

When testing with DBVisualizer and DBeaver the connection is made through the DriverManager facility. In order to get a connection through the DataSource interface with these applications we would need to utilize the Java Naming and Directory(JNDI) API which requires additional setup for our JDBC driver. I looked into testing this but it doesn't seem like a quick setup and test. We can test the source programatically through a test application like Dima has done, or through IT tests.
I believe there is no more validation to be done unless we want to continue with attempting a connection with JNDI through an application.


Add support and documentation for use as nested addon

Allows EmberFire to be used in another addon. Implementation taken from https://github.com/rwjblue/ember-cli-pretender/commit/dda9bf88597e5f127cfbe0cf863f2b03c4e24246

I signed it

@tstirrat, updated with your suggestions.


Add Stylelint config to the project

Maintaining the same philosophy with the ESLint PR, this one adds Stylelint to lint CSS.

Please rebase this pull-request from master without the changes from #217

@pfac it is done.


Overlay window not showing in Windows10

Hi,
I wanted to use your app to visualize my ergodox layout, as I'm still getting used to it.
But I have a problem with the main window which is not showing on my Windows10 machine.
Is there a way to enable logging to figure out why?
I can see that the app is running and in the taskbar I can see a preview of the layout when hovering over the app's icon.
Please see the attached picture.

Hey,
Thanks for trying this out. I just put it together quickly so you'll have to add comments yourself
However i can try help you out but i dont understand the issue, are you saying that the app does not show by default? It will be difficult for me to debug as i only have OSX

This works for windows only, perhaps its a better alternative for windows users
https://github.com/Invvard/EZLayoutDisplay

Hi Farzad,
what I meant is that the main-window is never visible when starting the App.
I only see the Icon off the app in the taskbar and the little preview of it
when hovering over the taskbar icon.
Did I Understand you correct, that I should put debug logging comments in
the source code myself?
I'm a softwaredeveloper, but Not familiär with the electron Software Stack.
I would have to dig in first.
I prefer your App over the EZ Layout Display, because your App has the
Always on top overlay😊
Maybe you could narrow down where to put log messages.
Thanks for helping!
Best regards,
Ahmer
Farzad Qasim<EMAIL_ADDRESS>schrieb am Mi., 15. Apr. 2020,
09:53:

Hey,
Thanks for trying this out. I just put it together quickly so you'll have
to add comments yourself
However i can try help you out but i dont understand the issue, are you
saying that the app does not show by default? It will be difficult for me
to debug as i only have OSX
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/farzd/keydox/issues/3#issuecomment-613878656, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AE3UDMVSYDP7STOSPN5PTA3RMVRYXANCNFSM4MH77NUA
.

i think it must be to do with the transaprency setting
https://www.electronjs.org/docs/api/frameless-window#limitations
On Windows operating systems, transparent windows will not work when DWM is disabled.
can you try turn this off inside main.js [either change to false or remove it completley]
https://github.com/farzd/keydox/blob/master/main.js#L32

Hi Farzad,
setting transparent=false didn't help. But I think you're right with this
transparency issues under windows. There are plenty of reported bugs filed
for the electron framework regarding this.
Do you have any other hints?
Your idea with turning the transparency of, to see if the main window will
be visible was good. Any other ideas in this direction?
I'll do some research on my side.
Have a nice weekend and stay healthy!
Ahmet
Am Do., 16. Apr. 2020 um 10:14 Uhr schrieb Farzad Qasim <
<EMAIL_ADDRESS>
i think it must be to do with the transaprency setting
https://www.electronjs.org/docs/api/frameless-window#limitations
On Windows operating systems, transparent windows will not work when DWM
is disabled.
can you try turn this off inside main.js [either change to false or remove
it completley]
https://github.com/farzd/keydox/blob/master/main.js#L32
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/farzd/keydox/issues/3#issuecomment-614489536, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AE3UDMV3PDHCISLSFB6IIXLRM2465ANCNFSM4MH77NUA
.

Hi,
I got it working.
The problem was the main-window coordinates I guess.
I changed the following:

html/style.css

Resized to:

width: 800px;
height: 400px;

diff of main.js (to position the main window in the bottom right
corner):

function createWindow() {
let display = screen.getPrimaryDisplay()

let height = display.bounds.height

const { width, height } = display.workAreaSize
trays = new Tray(iconPath)
mainWindow = new BrowserWindow({

width: 500,

height: 190,

x: 0,

y: height,

width,

height,

width: 800,

height: 400,

x: width - 800,

y: height - 300,

opacity: 0.7,
frame: false,
transparent: true

})

Also I had to change the globalShortcuts from the CMD-Key to the
ALT-Key:

globalShortcut.register('Command+1', () => {

globalShortcut.register('Alt+1', () => {
if (mainWindow.isVisible()) {
changeImg('1', mainWindow)

}
})

Right now I'm learning a little bit JavaScript so that I'm able to retrieve
my key bindings directly from the ez-online configurator.
I'll fork your repo and Implement this :)
Thank You!
I think you can close this issue.
Am Do., 16. Apr. 2020 um 10:14 Uhr schrieb Farzad Qasim <
<EMAIL_ADDRESS>
i think it must be to do with the transaprency setting
https://www.electronjs.org/docs/api/frameless-window#limitations
On Windows operating systems, transparent windows will not work when DWM
is disabled.
can you try turn this off inside main.js [either change to false or remove
it completley]
https://github.com/farzd/keydox/blob/master/main.js#L32
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/farzd/keydox/issues/3#issuecomment-614489536, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AE3UDMV3PDHCISLSFB6IIXLRM2465ANCNFSM4MH77NUA
.

glad you got it working not sure why res was an issue but hopefully others can see this if they have problems on windows OS too.


Make darkmode default option

Followed instructions here:
https://github.com/h-enk/doks/discussions/64#discussioncomment-258307

Internal Polling shows that Light Mode as default has won!
Closing PR


profile:reconcile throwing "Error: socket hang up"

Describe the bug
Getting error messages during sfpowerkit:source:profile:reconcile.
Destination org has enhanced domains enabled and is on Winter'23
DevHub org does not have enhanced domains enabled and is on  Summer'22
It appears that the profile gets cleaned successfully
To Reproduce
Steps to reproduce the behavior:

$ sfdx sfpowerkit:source:profile:reconcile -f force-app/main/default/profiles/ -n "Master Integration" -u qa
Config folder does not exists, Creating Folder
-------------------------------------------------------------------------------------------
sfpowerkit  -- The DX@Scale Developer Toolkit - Version:4.2.13 - Release:May 22
-------------------------------------------------------------------------------------------
Profiles Found in Project Directory 1
Initiated Profile reconcile thread :1  with a chunk of 1 profiles
Profiles queued in thread :1 :
[{"path":"force-app/main/default/profiles/Master Integration.profile-meta.xml","name":"Master Integration"}]
Error: socket hang up
    at connResetException (node:internal/errors:691:14)
    at TLSSocket.socketOnEnd (node:_http_client:471:23)
    at TLSSocket.emit (node:events:402:35)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ECONNRESET'
}
Retrying Network call due to Unable to fetch SELECT Id, QualifiedApiName, EntityDefinitionId, DeveloperName, NameSpacePrefix FROM FieldDefinition WHERE EntityDefinition.QualifiedApiName='Case'
Reconciled Profile force-app/main/default/profiles/Master Integration.profile-meta.xml
State    Full Name              Type     Path
───────  ─────────────────────  ───────  ──────────────────────────────────────────────────────────────────────
Cleaned  Master Integration  Profile  force-app/main/default/profiles/Master Integration.profile-meta.xml

Expected behavior
No error messages shown
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. Windows/Linux] MacOS 12.5.1
Node Version 16.13.2
Version of sfpowerkit[e.g 1.45.0] 4.2.13
Salesforce Org Version [ In case of pre release window ] See description

Additional context
Add any other context about the problem here.

Hi @MarcDBehr I will look into this issue this week and see what we can do about it.


API: create expense programmatically

I’d love to build a quick script to automatically submit my monthly invoice to a collective.
I could also imagine people who would love to build similar scripts to automatically create an expense when they receive an email.
For that, I just need to be able to call the createExpense mutation using my API key.
Expenses created that way would always be in PENDING status and should be approved using the interface (or email notification to the admins of the collective).
The attachment Is a tricky one. While we could in theory ask people to simply send us a URL to the file, there is the risk that the file won’t be there anymore when we will compute the monthly or yearly reports for the host. So we should require people to submit the actual file and we should store it on our AWS bucket. Not sure how file uploads is handled with GraphQL.
E.g.
mutation createExpense($expense: ExpenseType!) {
  createExpense(expense: $expense) {
    amount
    currency
    description
    category
    incurredAt
    payoutMethod
    paypalEmail
    privateMessage
    attachment
  }
}

Our use case (Open Services / Open-Registry) is to submit expense reports for each received invoice from infrastructure providers.
We would want the invoices to be automatically accepted in the collective (but obviously not the fiscal host).
I would hope we could create invoices that are not tied to a specific user of the Collective, as they could come and go. Instead, we'd like to have a Collective API key the invoice application could act via, to not be tied to a user. But could probably work around this, as I don't think Collectives can have API tokens right now, just users.

@xdamman - Instead of doing this through the API, which many users will not find accessible, we should just add a "repeating invoice" option to the new expense flow described in #1167 - I'd much rather fix the expense flow properly than append more partial fixes to the situation. Repeating invoices is a really good suggestion I hadn't thought of.
@victorb I'm not sure I understand exactly what you're describing, but we need to tie expenses to users to fulfil accounting and tax obligations. However, perhaps the feature to forward a receipt by email to create an expense (#1862) would help in your use case?

@alannallama yeah, expenses tied to users are fine.
Would love to avoid introducing emails into the system, and use API endpoints where possible. Makes development, operations and debugging so much easier compared to dealing with emails.
Repeating invoice won't work for us either, as our costs might be different for each month, and want it to work automatically. Unless we could change the "repeating invoice" options via API, that could work too.

@alannallama it’s not or it’s and. We need to offer more ways for people to file expenses and by offering an api we can enable other developers to build more integrations. That doesn’t mean we shouldn’t also offer a better interface and a better flow to manage expenses on the website.

@Betree I was looking at #1326 which lead to #2394 and took a look to find which issue I should subscribe to, so I know when the API endpoint for generating an invoice is done. However, I cannot find any references there about generating invoices via API (in fact, the word "API" is never even mentioned in that issue-thread), could you please point me in the right way?

Hi @victorb, this is the right issue to track this change, I'll post an update when the endpoint is ready for public use. Hopefully it shouldn't be too long, we just need a couple of weeks to adapt  the host dashboard and various part of the website for the new concepts introduced with the latest expenses improvements, like the ability to attach multiple attachments.

@victorb Our GraphQL V2 API now exposes a createExpense mutation that should be safe for you to use. Let me know if you have any feedback!

@victorb there may be a breaking refactor before the public release: https://github.com/opencollective/opencollective/issues/3039.
Please let me know if you're actively using this endpoint and need us to soft deprecate.

Thanks a lot for letting me know! I couldn't quickly find the GraphQL API docs, so never got too far and didn't have time to dig further into it yet.
So go crazy with breaking changes, at least from my pov :+1:

@victorb The GraphQL API described in https://medium.com/open-collective/open-collective-graphql-api-preview-3b42ed1d55ff is normally self-documented, any good client like AltairGraphQL, GraphQL Playground or GraphiQL should show you the docs:

The createExpense mutation is now implemented on our public GraphQL API and should be ready for public use.


Simple example for transfer learning

What's the best way to do transfer learning for image classification.
If I choose a pre-trained model with 20 classes, then which part should I train?
Should I remove the last layer? or keep it and add other ones so that they will be trained?

And what's the Python line to fix parameters on all layers except that last one?
What I did is computing the number of layers in a debug code then in a for loop, testing if I reached layer 253 (not sure about that number) then not making that layer fixed.
Which I think it's not the best way to do it...

You can freeze all the parameters and then unfreeze the last layer:
for param in model.parameters():
    param.requires_grad = False
model. _fc.requires_grad = True

You can freeze all the parameters and then unfreeze the last layer. In essence:
for param in model.parameters():
    param.requires_grad = False
model._fc.requires_grad = True

I think in reality you probably have to do the last line for both _fc.weight and fc.bias

Hi there~ I'm also about to do a transfer learning, but the data is quite different. Any suggestions on where should I freeze the parameters from? like in ResNet people usually freeze the first layer, second layer, etc. But in EffecientNet there are only a bunch of blocks
Thank~


Why we need KL-divergence

https://pytorch.org/docs/stable/generated/torch.nn.KLDivLoss.html

according to the formula, it's seems just equivalent to optimize soft-label cross-entropy, since the target y_true is just a constant decided by teacher model
https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html#crossentropyloss
isn't it? or did I misunderstand anything?

Hey @penolove - the CE and KL loss terms are closely related:

For the CE loss, y_true is 1 for the correct class probability label, and 0 for all others. In other words, it is a 'one-hot' encoding of the target distribution.
For the KL loss, y_true is the predicted class probability from the teacher model. Thus, it can take values between [0, 1]. In other words, it is the predicted density function from the teacher model.

In summary, the CE loss trains the student model to maximise the probability of the correct class label, whereas the KL loss trains the student to mimic the distribution of the teacher model over all class labels.

yes, the 1. you mentioned is hard label CE which the target is the one-hot label generated by teacher
but for 2. KL loss we can see in the formula:  y_true* log(y_true)  - y_true * log(y_pred) (this is a vector)
first term is fixed due to y_true (probabilities of each tokens) is already generated,
the second term is what I mean the soft-label cross-entropy, which means it can reduce some calculation of y_true* log(y_true)

Yes you're right - likely we could likely run the teacher with .generate to get the probability mass function for each example, and then compute a simplified loss by merging the CE and KL loss terms.
However, we wanted to run pseudo-labelling ahead of time and only keep the predictions (since this is the most time consuming steps). Therefore, we opted for running generation before and saving the text predictions, and then passing the pseudo-labelled text back through the teacher model to get the teacher mass function during training.
Doing it this way, it seemed simpler to keep the CE and KL terms separate, since they then tie-in with the mathematical formulations.


Custom class names appear in HTML in the wrong order

Issue description

components: Navbar (maybe all components, still testing)
reactstrap version 5.0.0-beta
react version 16.2.0
bootstrap version 4.0.0

What is happening?
custom className values are added to the beginning of the class attribute in the generated HTML. They need to be added to the end. For example, this React component:
<NavbarToggler onClick={this.toggle} className="test-class" />
Where test-class is the custom class to be added. This results in the following HTML:
<button type="button" class="test-class navbar-toggler">  </button>
Where navbar-toggler is the native Bootstrap class.
What should be happening?
It seems best (necessary) to have custom classes appended to the list of classes for the element. They really need to be at the end to prevent undesired CSS behaviors. I found that adding the native Bootstrap classes in the className attribute doesn't fix the issue; it just results in the native Bootstrap classes appearing twice.
Thanks!

The order of the class names does not matter; specificity matters.
See https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity

Specificity matters, but so does Source Order.
https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Cascade_and_inheritance

Source Order is the order in which you import/include your styles. If you include bootstrap's styles after your own styles, then in the case of the same importance and specificity, bootstrap's styles will win. If you import/include your styles after bootstrap in the same scenario, then your styles will win. The order of the class names on the actual element do not matter.

Ah! That was a misunderstanding on my part.
Thanks for the clarification! (And for correcting a years-long misconception! :-D )


Feature/115 etl national exports

Related Issues:

EQ-115

Main Changes:

Added the ability to etl national downloads to S3.

This uses the same rules as our schema retention.

Steps To Test:

Run npm run etl_database
Verify the app\server\app\content-etl\national-downloads\latest folder was created
Verify the folder contains csv, tsv, json and xlsx versions of each profile
Repeat step 1
Verify the app\server\app\content-etl\national-downloads\<schema name> folder was created

We will need to hold off on merging this in, as I'm suspecting to need to debug performance issues with adding new profiles to the ETL process.

I noticed the excel downloads for the assessment_units_monitoring_locations profile always need to be repaired when opened. Apparently the cause of this was because the profile name has to many characters than what excel allows (31) for the worksheet name. I just changed the worksheet name to be data instead of the profile name. I figure the profile name is already in the file name.