Please republish it on npmjs

I cannot (

you do not have permission to publish "redux-swagger-client". Are you logged in as the correct user? : redux-swagger-client

I can't do it either as some random guy published it on npmjs: https://www.npmjs.com/package/redux-swagger-client
I can email him and ask him to give me permission.

I think it's good idea ,)

@noh4ck Haven't @casesandberg answered yet? I really like your package and would like to see it on npm updated.

The newest version 2.1.1 is now published to npmjs.com


rbfeeder: init at 1.0.8

Description of changes
rbfeeder is a client for providing ADS-B data to radarbox.com (operated by AirNav). https://github.com/airnavsystems/rbfeeder
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

So this is supposed to work on darwin as well, but doesn't compile at the moment. I don't have time for full debugging right now, but I wonder if it's worth adding the required bits:
diff --git pkgs/applications/radio/rbfeeder/default.nix pkgs/applications/radio/rbfeeder/default.nix
index e5baa192065..3cada25225f 100644
--- pkgs/applications/radio/rbfeeder/default.nix
+++ pkgs/applications/radio/rbfeeder/default.nix
@@ -12,6 +12,7 @@
 , libusb1
 , rtl-sdr
 , limesuite
+, DarwinTools
 }:

 stdenv.mkDerivation rec {
@@ -25,7 +26,7 @@ stdenv.mkDerivation rec {
     sha256 = "sha256:16s1ybz2r0fn92rdpwhlkcys0sgwjsfbqmkdccp7n2k7vzsi5y4j";
   };

-  nativeBuildInputs = [ pkg-config protobufc ];
+  nativeBuildInputs = [ pkg-config protobufc ] ++ lib.optionals stdenv.isDarwin [ DarwinTools ];

   buildInputs = [
     curl
diff --git pkgs/top-level/all-packages.nix pkgs/top-level/all-packages.nix
index 4041c784a1e..ee65980c655 100644
--- pkgs/top-level/all-packages.nix
+++ pkgs/top-level/all-packages.nix
@@ -10015,7 +10015,9 @@ with pkgs;

   ratt = callPackage ../applications/misc/ratt { };

-  rbfeeder = callPackage ../applications/radio/rbfeeder { };
+  rbfeeder = callPackage ../applications/radio/rbfeeder {
+    inherit (darwin) DarwinTools;
+  };

   rc = callPackage ../shells/rc { };

and marking it as broken on isDarwin instead of reducing platform to just linux. It would be a more honest description.

@viraptor I don't know much about Darwin, what I can do is just apply your patch and mark it as broken as you are saying..

nit: When building the project, not all targets are useful. You could skip the benchmarks and build just the dump1090-rb rbfeeder. Not a blocker though.

nit: When building the project, not all targets are useful. You could skip the benchmarks and build just the rbfeeder, since that's what's installed.

Ah, thanks. Making such change.


Add feature to save train loss in summary + minor bug fix

I would like to add the feature that would allow to save the average train loss after every epoch into sгmmary in order to visualise results after the training is done

I've also noticed that when results do not improve, the program shows you previous result instead of best one. quite an easy bug to fix, but important

Also I would like to write "No improvments for" instead of "No improvments since", because it is more appropriate way to define the distance in English

Hi, Harald, it's me, Alexander, I wrote you an email earlier. Could you assgin this issue to me?

merged.


add OData cast to OData query.

Would it be possible (or is there already a way to do it?) to add casting as part of constructing the OData query, as per example 3 and 4 from the official docs?  https://docs.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0&tabs=http
Because if I now for instance want to list all users that are members of a group I have to list all members, iterate through them and calling get on the user client and then I will of course get a bunch of 404 errs which I have to handle. Whereas if I could cast ListMembers to users then I would be set with that one call. Think this would also solve this issue. https://github.com/manicminer/hamilton/issues/20
Thanks for the SDK btw, replaced graphrbac with the official sdk only to discover build time went up an absurd amount.

@mathiaac Thanks for the compliment, and the suggestion. We'll definitely look into supporting this.

@manicminer Thanks! Do you have a rough estimation of when that feature potentially will be in place?

We're working on a pretty big refactor at the moment that will make this sort of change much easier, so I hesitate to give an estimate however it's not something I have time for right now. PRs always welcome in the meantime however, even if for an reference/interim implementation :)

FYI, this would enable something I was considering downstream, which was for terraform's AD provider to allow listing all members of a group who are of a given type.
Without this, when getting the group members, we just get the list of object_ids and then one has to use azuread_directory_object for every one of those (sending an extra call to the graph API) to get its type and finally filter to the ones that you are interested.


November 18th's Shownotes

TO DO:

[x] Date
[x] Title
[x] Speakers
[ ] Topics
[ ] Timestamps
[ ] Special: list of cool blogs

More links I know were part of the convo:

https://bcantrill.dtrace.org/2013/11/30/the-power-of-a-pronoun/
https://ahl.dtrace.org/2007/07/05/dtrace-scobleized/

@scynthiadunlop in https://github.com/scynthiadunlop/WritingForDevelopersBook/tree/main/links, do you have a list of blogs you consider to be, in general, great recommendations overall?
I ask because the list is so long that it might be slightly overwhelming (unless the reader is like me. I will probably open every link because I'm too easily nerd-sniped)

The 5 covered in Chapter 3 are from ones that trended on HN in the past year... maybe start with those? A handful other cherry picked ones with an eye towards variety...
https://tigerbeetle.com/blog/2023-07-11-we-put-a-distributed-database-in-the-browser
https://engineering.fb.com/2022/10/24/android/android-java-kotlin-migration/
https://www.canva.dev/blog/engineering/ship-shape/
https://fasterthanli.me/articles/i-want-off-mr-golangs-wild-ride
https://bcantrill.dtrace.org/2020/10/11/rust-after-the-honeymoon/
https://redpanda.com/blog/redpanda-vs-kafka-performance-benchmark
https://discord.com/blog/authentication-outage
https://saagarjha.com/blog/2020/05/10/why-we-at-famous-company-switched-to-hyped-technology
https://fasterthanli.me/articles/why-is-my-rust-build-so-slow

@scynthiadunlop would you recommend me to link to the individual posts directly, or should I link to their general blog page?
(also, damn, Amos' I want off of mr. golang's wild ride, such a classic)

I'd say the specific posts-- though all of those blogs have multiple gems. Whatever is in line with what you're doing for the list as a whole. And yes, Amos is great!

Progress report
I've yet to get a response from Will Snow regarding their socials.
The topical links are in there, but I haven't added their titles yet - only their URLs. I'm going to do those tomorrow.
I'm also missing the timestamps. I'm guessing that work is left for after the episode is released?
The list of cool blogs is also left for tomorrow. I expect to have that, and the topic link titles' done by then.

This is wonderful. Thanks so much for getting this started. I'm planning on posting the video tomorrow so will likely take what you have a run with it.

If anyone wants 50% off the book -- Bryan foreword and all -- they can use the code OXIDE50 on the Manning site.

Perfect timing. Hoping to post it in about an hour. Thanks again!! (I don't have Will's info)

Excellent :grin:
I found Will's BlueSky! So we have that at least :tada:
And, regarding this:

Thanks again!!

It's a pleasure! I've been enjoying and learning a lot from yall's podcast, and since this topic in particular is something I'm really passionate about, I thought I'd give back some love :)
Thanks for letting me add my two cents :heart:

Alrighty, I think it's done! I can't really add timestamps since... well, the material isn't available just yet XD
Everything else is, as far as I can check, ready for review ^^
@ahl lemme know if anything needs changing; I'll be available during the afternoon.
@scynthiadunlop how does the appendix look? I sorta like it :>


Using Scrcpy wirelessly on another network

The instructions are always mentioned as the same network. Is there another way? Because I want to connect to my distant friend and help like T..mviewer.
This may be possible with forwarding port but our ISPs are using Carrier-grade NAT so we can't open port, plus, why do the users need to do?
P.S. Our devices are rooted so we can enable ADB over Wi-Fi without plugging.
Thank you

scrcpy just relies on adb connection, it does not use any "external service" to connect a client and a server behind NATs. The only way is to use tunnels:
https://github.com/Genymobile/scrcpy/issues/144
https://github.com/Genymobile/scrcpy/issues/242

If the "SSH for Magisk" (whatever it is) supports local and remote port redirection, yes, it should be possible to replace adb calls by ssh.

wow, so fast, thank you for your reply. :)
It's openssh compiled for arm/arm64 architectures (with some start-up scripts), so it should support port forwarding. Could you please share some more details? Since I completely have no idea how it works in adb mode.

Anyone successful in running scrcpy wirelessly on another network?


Add some changelog info in release

Some info about release

So true, I will add it. Thanks.

Two months after, but done. Sorry for the delay. :cold_sweat:


Add hostname rpm to build

Needed by ovnkube.sh
Signed-off-by: Phil Cameron<EMAIL_ADDRESS>

@rajatchopra @dcbw PTAL


drivers: nxp_s32_netc: fix init priorities

So far the init priorities were enetc_psi0=60 < enetc_vsin=61 < emdio=70 < ethernet-phy=80 because the Ethernet PSI driver was doing global initialization for the whole NETC complex, including enabling MDIO function (due to the way the HAL works).
Change to use the default init priorities mdio=60 < phy=70 < eth=enetc_psi0=80 < enetc_vsin=81 by executing at an early stage the NETC global initialization. This allows to match the DT hierarchy representation of NETC with the effective priorities assigned and keeping the priorities in check with CHECK_INIT_PRIORITIES.
Relates to #58388

@manuargue can you rebase? There's a merge conflict.

@manuargue can you rebase? There's a merge conflict.

@fabiobaltieri done, thanks


Docs job example

#443 - Added examples to the CLI Reference docs.

Coverage remained the same at 90.643% when pulling d836767cb7a1929c4ebc6d00ffa2c84854d6396b on rooftopcellist:docs_job_example into 082d9c841f64c2f5e9333ccca41db809cba7514a on ansible:master.

Coverage remained the same at 90.643% when pulling da9693731f969803a75723457c4d71ee6fe33756 on rooftopcellist:docs_job_example into 082d9c841f64c2f5e9333ccca41db809cba7514a on ansible:master.

Coverage remained the same at 90.643% when pulling c120fdc3d7f1a20bba1f3f412decfdde4271d79d on rooftopcellist:docs_job_example into 082d9c841f64c2f5e9333ccca41db809cba7514a on ansible:master.


[FEA] Follow up issue of #10850

In #10850 ,  we proposed a simple and quick solution to to meet code freeze deadline.
The solution still has room for improvement as stated in https://github.com/NVIDIA/spark-rapids/pull/10851/files/aa23967c3f1b04124f464489c0998ae60c377c50#diff-05efb25cde1790862698b49252ef40c62afb031d869bbb85e51e280192b2fc1fR225

Please add a description of what this feature actually is then in description say its a followup from something.

close this issue as it is solved by #10861


Feat/laugh out loud , added a complete new page of comedy books under laugh out loud section .

Fixes:  #2089
Description
I have created a complete new page of laugh out loud comedy as you can see in the below video .
Type of PR

[X] Feature enhancement

Screenshots / videos (if applicable)
https://github.com/anuragverma108/SwapReads/assets/159682348/90845045-29d8-40ea-bfc5-d9f3ef7a4f7e
Checklist:

[X] I have made this change from my own.
[X] My code follows the style guidelines of this project.
[X] I have performed a self-review of my own code.
[X] I have commented my code, particularly in hard-to-understand areas.
[X] I have made corresponding changes to the documentation.
[X] My changes generate no new warnings.
[X] I have tested the changes thoroughly before submitting this pull request.
[X] I have provided relevant issue numbers and screenshots after making the changes.

@huamanraj sir please give gssoc label to it

@huamanraj sir please give gssoc label to it

@huamanraj sir please give gssoc label to this pr please .

@huamanraj sir you have given level 2 tag but please also give gssoc label to it .

@huamanraj sir you have given level 2 label but please give me gssoc label

@huamanraj @anuragverma108 sir please don't be angry on me but please  assign it gssoc label you have given it label 2 and thanks for that but please assign gssoc label other wiase my points will not be added .
I am really learning lot from your project thank you .

@RishabhDhawad @RitiChandak please give it gssoc label

@huamanraj @anuragverma108 @RitiChandak @RishabhDhawad sir please give gssoc label to this pr you have given level 2 but not gssoc please sir

@huamanraj @anuragverma108 @RitiChandak @RishabhDhawad sir please give gssoc label to this pr you have given level 2 but not gssoc please sir

thank you @huamanraj


Completely broken after update

Describe The Bug
After I updated L510 and L530 to firmware version to 1.3.0, all links were broken on Homebridge.
Tapo devices are no longer reachable on HomeKit anymore.
Expected behavior
N/A
Logs
[9/12/2023, 11:07:00 PM] [IoT] Failed to get info about: <IP_ADDRESS>
[9/12/2023, 11:07:00 PM] [IoT] Retry to connect in 10s : <IP_ADDRESS>
[9/12/2023, 11:07:00 PM] [IoT] Error sending command: deviceInfo TypeError: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at new NodeError (node:internal/errors:405:5)
at Function.from (node:buffer:333:9)
at LegacyAPI.decodeHandshakeKey (/var/lib/homebridge/node_modules/homebridge-tp-link-tapo/src/api/LegacyAPI.ts:161:31)
at LegacyAPI.handshake (/var/lib/homebridge/node_modules/homebridge-tp-link-tapo/src/api/LegacyAPI.ts:153:30)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at LegacyAPI.sendSecureRequest (/var/lib/homebridge/node_modules/homebridge-tp-link-tapo/src/api/LegacyAPI.ts:75:7)
at LegacyAPI.login (/var/lib/homebridge/node_modules/homebridge-tp-link-tapo/src/api/LegacyAPI.ts:19:22)
at TPLink.sendCommandWithNoLock (/var/lib/homebridge/node_modules/homebridge-tp-link-tapo/src/api/TPLink.ts:195:9) {
code: 'ERR_INVALID_ARG_TYPE'
}
Plugin Config
N/A
Plugin Version
v3.4.0
Homebridge Version
v1.6.1
Node.js Version
v18.17.1
NPM Version
N/A
Operating System
Debian

Happened to me also with L510, same error message.

Hey, the fix for this is under development, there is another ticket for this issue, if you want real time updates you can join discord 😄


P5.js vs Processing.js

Hello,
I would like to know what are the differences between P5.js and Processing.js
Thank you...

Processing applications are created using a coding syntax.and format based on the programming language Java. If you have experience with Java that would be the recommended option.
p5.js is an adaptation of Processing for JavaScript, a used in the browser.
There are other languages you can use to make Processing like applications such as Python, and more, along with unnoficial adaptions such as propane for Ruby.
For learning I would reccomend p5.js, but it does t matter much as both are available in the processing program.


Jampack messes up  elements used for "Art direction"

By art direction, I mean when you want to show a certain image on mobile, but a different image on desktop views.
👋🏽  Thanks for the wonderful tool!
I have come across this problem enough times that I thought i should create an issue:
Here is a reproduction.
It is a single html page that shows a tall picture when the screen is narrower than 800px, and shows a long picture otherwise.
Steps:

Run  npx @divriots/jampack . in the directory containing the repro.
Open index.html in the browser

Expected:
The image displayed should switch between being long/tall depending on the viewport size
Actual:
The image no longer switches between the two options :/

Thanks for reporting. Indeed jampack needs to support this use case.
Maybe a short-term solution would be to backoff when source and media are in the source file already.
Longer-term would be to improve image size on top of it.

Wow, thanks for the quick response.

Maybe a short-term solution would be to backoff when source and media are in the source file already.

This would solve my immediate problem!

Not sure if this helps, but one thing I have found is that manually re-ordering the source elements in the browser console seems to temporarily fix the issue (until the page is reloaded). I think it's because the browser picks the first source that matches.

Fixed - art direction is kept in higher priority
Visible here: https://jampack.divriots.com/features/optimize-images/
I also need to fix the behavior above the fold.


'Teamviewer' terminated by Segmentation fault (core dumped)

Describe the bug
Teamviewer exits with "Segmentation fault (core dumped)" about 20 seconds after connecting remotely from a device (server is NixOS, client is macOS)
Steps To Reproduce
Steps to reproduce the behavior:

Launch teamviewer
Connect to NixOS using a remote computer
Teamviewer exits on NixOS machine with Segmentation fault (core dumped)

Expected behavior
Teamviewer doesn't quit after 20 seconds of remote access
Screenshots

Additional context
Possibly fixed in next minor version 15.25.5 (unstable is on 15.24.5)
Notify maintainers
@jagajaga
@jraygauthier
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
- system: `"x86_64-linux"`
 - host os: `Linux 5.10.84, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5.0pre20211206_d1aaa7e`
 - channels(root): `"nixos-21.05.4481.c5f1ee98224"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: teamviewer
# a list of nixos modules affected by the problem
module: teamviewer

@khrj Can you provide the version of both the client and server $ teamviewer --version? Are you able to reproduce using a nixos client of the same version (e.g.: from a vm) to the nixos server?
I am running on 21.05 myself and had no issue whatsoever connecting to a windows server from nixos and the reverse last time I checked.

When the problem occurs, the daemon remains up bot prints some session error message:
$ sudo teamviewerd -f
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key

the crash actually occurs with the teamviewer client that is run server side:
$ teamviewer

Init...
CheckCPU: SSE2 support: yes
Checking setup...
Launching TeamViewer ...
Launching TeamViewer GUI ...
Segmentation fault (core dumped)

Most likely we should be able to debug what is the actual problem by loading the core dump from gdb.
I tried to reset the content under /var/lib/teamviewer but it did not fix the issue.
There does not seem to be much helping information in the daemon log other then that the client disconnected:
# ..
2021/12/22 15:37:39.463<PHONE_NUMBER>38388338240 S!! EmergingUdpConnection::AsyncSendTo::Handler Send error system:101 to 2605:380:58:351:188:172:251:37:5938
2021/12/22 15:37:39.463<PHONE_NUMBER>38388338240 S!! EmergingUdpConnection::AsyncSendTo::Handler Send error system:101 to 2605:380:57:351:162:250:7:75:5938
2021/12/22 15:37:39.463<PHONE_NUMBER>38388338240 S!! EmergingUdpConnection::AsyncSendTo::Handler Send error system:101 to 2a00:11c0:2d:351:162:250:3:72:5938
2021/12/22 15:37:39.463<PHONE_NUMBER>38388338240 S!! EmergingUdpConnection::AsyncSendTo::Handler Send error system:101 to 2607:f0d0:2702:df::3:5938
2021/12/22 15:37:39.463<PHONE_NUMBER>38388338240 S!! EmergingUdpConnection::AsyncSendTo::Handler Send error system:101 to 2605:380:32:351:162:250:5:69:5938
# ..
2021/12/22 15:37:53.242<PHONE_NUMBER>38237367872 S!! TcpProcessConnector::HandleRead error 104 reading from process 608376: Connection reset by peer, Errorcode=104
2021/12/22 15:37:53.243<PHONE_NUMBER>38237367872 S   TcpProcessConnector::CloseConnection(): PID=608376
2021/12/22 15:37:53.243<PHONE_NUMBER>38237367872 S!! InterProcessNetwork::ProcessDisconnected(): ReadFailed session=450215437 ptype=2, Errorcode=104
2021/12/22 15:37:53.243<PHONE_NUMBER>38237367872 S   ProcessControlBase[2]::ProcessDisconnected: Process pid 608376 in session 450215437 disconnected
2021/12/22 15:37:53.243<PHONE_NUMBER>38237367872 S   OSSessionControl[2]::TerminateWindowsSession(): terminating TVSession<PHONE_NUMBER> in WindowsSession 450215437 isOutgoing: 0
2021/12/22 15:37:53.243<PHONE_NUMBER>38237367872 S   SessionControl::TerminateSession: Session termination reason IPC_Error
2021/12/22 15:37:53.243<PHONE_NUMBER>38237367872 S   TcpProcessConnector::CloseConnection(): Shutdown socket returned error 107: Transport endpoint is not connected
2021/12/22 15:37:53.243<PHONE_NUMBER>38237367872 S   NetworkControl::UpdateOnlineState alwaysOnline=0 delayOffline=0 otherProcess=0 restart=0 termsOfUseAccepted=1
2021/12/22 15:37:53.243<PHONE_NUMBER>38237367872 S   TeamViewer is going offline!
# ..

I have the same issue on Pop!_OS 21.10. Following is my metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.8-76051508-generic, Pop!_OS, 21.10`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5.1`
 - channels(kira): `"nixgl, nixpkgs-22.05pre340506.5c37ad87222"`
 - nixpkgs: `/home/kira/.nix-defexpr/channels/nixpkgs`

I was able to solve this issue by using nixGL. So instead I run the command
nixGL teamviewer

Though I have been able to figure out how to start the daemon. I have the following line in my ~/.config/nixpkgs/config.nix
{
  services.teamviewer.enable = true;
}

I am not sure what else I need.

@isFakeAccount: Thanks, but this is clearly not the same issue.

Loading core dump with gdb gave me that:
$ coredumpctl gdb
           PID: 177727 (TeamViewer)
           UID: 1000 (my-user)
           GID: 100 (users)
        Signal: 11 (SEGV)
     Timestamp: Wed 2022-01-19 19:27:26 EST (2min 42s ago)
  Command Line: /nix/store/1r7x2yclq3xbfn6cg02b5fba2rmcvza5-teamviewer-15.22.3/share/teamviewer/tv_bin/TeamViewer
    Executable: /nix/store/1r7x2yclq3xbfn6cg02b5fba2rmcvza5-teamviewer-15.22.3/share/teamviewer/tv_bin/TeamViewer
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 (my-user)
       Boot ID: ddd0f8257ef643a7a4e9235234130f92
    Machine ID: 14a0c8436c784b45a8927f528521e17c
      Hostname: my-host
       Storage: /var/lib/systemd/coredump/core.TeamViewer.1000.ddd0f8257ef643a7a4e9235234130f92.177727.1642638446000000.lz4
       Message: Process 177727 (TeamViewer) of user 1000 dumped core.

GNU gdb (GDB) 10.2
# ,,
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/nix/store/jsp3h3wpzc842j0rz61m5ly71ak6qgdn-glibc-2.32-54/lib/libthread_db.so.1".
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `/nix/store/1r7x2yclq3xbfn6cg02b5fba2rmcvza5-teamviewer-15.22.3/share/teamviewer'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000e396d0 in ?? ()
[Current thread is 1 (Thread 0x7fca967fc640 (LWP 177860))]
(gdb) bt
#0  0x0000000000e396d0 in ?? ()
#1  0x0000000000e77d71 in ?? ()
#2  0x0000000000e045de in ?? ()
#3  0x0000000000e01db6 in ?? ()
#4  0x0000000000dd34c1 in ?? ()
#5  0x0000000000d0487a in ?? ()
#6  0x000000000136398b in ?? ()
#7  0x00007fcb59caae9e in start_thread () from /nix/store/jsp3h3wpzc842j0rz61m5ly71ak6qgdn-glibc-2.32-54/lib/libpthread.so.0
#8  0x00007fcb59a994af in clone () from /nix/store/jsp3h3wpzc842j0rz61m5ly71ak6qgdn-glibc-2.32-54/lib/libc.so.6
(gdb)

A quick linux teamview libpthread start_thread crash google search lead me to the following:

TeamViewer 15.17.6 crash on Fedora 34 — TeamViewer Support
This pretty much looks like the same issue. An excerpt:

I'm having the same problem. The session is running only for 15-20
seconds before TeamViewer crashes on the remote machine.

As a workaround, I have cleaned up all TeamViewer files, downgraded
TeamViewer to the version 15.13.6

I've done fast bisecting and:

teamviewer-15.15.5-0.x86_64 - works
teamviewer-15.16.8-0.x86_64 - crash
teamviewer-15.17.6-0.x86_64 - crash

Now I'm running teamviewer_15.19.3.x86_64.rpm. Under client there is
option: Extras / Options / Remote control / Play computer sounds and
music.

So a workaround would be to disable audio (yet to be tested here).
We can decide to revert back to 15.15.5 hoping federa user find the cause
for us or a newer version fixes the problem.
Alternatively we can attempt to investigate what is wrong with our packaging.

I confirm the audio disable workaround works fine.
Before establishing a connection, from the computer that connects to nixos (in my case the Windows computer) Uncheck the Extras -> Options -> Remote control ->  Play computer sound and music checkbox:

It really needs to be disabled on the computer that connects and not from the target nixos.

The most logical culprit feature that has been added to 15.16.8 (and was not in 15.15.5) would be they started supporting hearing  target linux audio from the connected computer:
[Linux] v15.16.8 — TeamViewer Support :

I have this issue when connecting from 15.25.5 on Ubuntu 20.04 to 15.22.3 on NixOS.
The workaround of disabling the "Play computer sounds and music" checkbox stops the crashes for me.

This issue is still happening for me before connecting to remote computer, so disabling remote audio will do nothing. I closed my issue on this above (https://github.com/NixOS/nixpkgs/issues/151784) because I think this issue covers it but I want to maintain that it's still basically not working if I want to control a remote Windows computer from Linux.

@vegabook : current issue should remain open as long as the audio issue / crash is not fixed at this root. The above is merely a workaround. Unfortunately, I do not have much time lately to invest here. Help is welcome.

still happening for me before connecting to remote computer

This seems odd, this workflow works fine here. There is certainly something different. Do you have more information?

Well the only information I have is I've tried it on Ubuntu and on Steam Deck (Arch) with identical results. My original issue has all the tech details. https://github.com/NixOS/nixpkgs/issues/151784
Basically, segfaults as soon as launched.

@vegabook : It might not be the same cause for the segmentation fault then. You should re-open your ticket.

@vegabook : It might not be the same cause for the segmentation fault then. You should re-open your ticket.

Hey @jraygauthier I can't seem to reopen it. Shall I copy it into a new open issue?

@vegabook : No trouble, I just re-opened it.


feat(android): change java version to 17 to support RN 0.73+

Summary
Hi
Based on https://github.com/react-native-community/discussions-and-proposals/issues/671
to support RN 0.73+ we have to use java 17
Checklist

[x] Does your PR title have the correct title format?
Does your PR have a breaking change?:  Yes

Would this be related to this build error mentioned here?
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.facebook.react'.
   > The value for property 'languageVersion' is final and cannot be changed any further.

Hi @kesha-antonov, Amplitude's React Native package has compile options set to Java 8. It can run within an app using Java 17 because of Java is backward compatible. Updating to Java 17 seems to be required only to app developers but not library developers.


Edit README.md

The description of the absolute platform has been refined.

This patch looks good to me. Could you please update the title as follows?
"Edit README.md" or "Modify README.md"

Sure.


Make wrapped functions returned by use_args introspectable

It would be nice if there was a way to introspect the wrapped functions returned by Parser.use_args for the argmap associated with them. This would help for creating automated tools to generate things like documentation from webargs.
Assuming we did something like this, it would facilitate things like the following.
app = Flask()

@app.route('/todo', method=['POST'])
@use_args({'item': fields.Str(required=True, description='The todo to add.')})
def add_todo(args):
       pass

swagger = {}

for rule in app.url_map.iter_rules():
    argmap = app.view_functions[rule.endpoint].__argmap__
    populate_swagger(swagger, rule, argmap)

Anyone else have thoughts on this?

The target use cases are addressed by writing higher-order decorators. [https://github.com/jmcarp/flask-apispec] takes this approach; it includes decorators that do both parsing and use apispec to generate Swagger documentation.

Excellent, thanks!

Figured I'd share my final solution in case it helps others.
from webargs.flaskparser import FlaskParser

parser = FlaskParser()

def use_args(argmap, req=None, locations=None, as_kwargs=False, validate=None):
    if isinstance(argmap, collections.Mapping):
        argmap = argmap2schema(argmap)()
    func = parser.use_args(argmap, req, locations, as_kwargs, validate=None)
    func.__argmap__ = argmap
    return func


Store OAuth2 session data in database

Currently OAuth2 sessions are saved only on filesystem in sessions directory independently of where gitea session is actually saved

Codecov Report

Merging #3660 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #3660      +/-   ##
=========================================
- Coverage    35.9%   35.9%   -0.01%
=========================================
  Files         286     286
  Lines       41312   41310       -2
=========================================
- Hits        14832   14831       -1
+ Misses      24299   24298       -1
  Partials     2181    2181

Impacted Files
Coverage Δ

modules/auth/oauth2/oauth2.go
25.92% <100%> (+1.1%)
:arrow_up:

models/oauth2.go
38.09% <100%> (ø)
:arrow_up:

models/repo_list.go
65.62% <0%> (-1.57%)
:arrow_down:

models/repo_indexer.go
48.3% <0%> (ø)
:arrow_up:

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 575c109...e5108f6. Read the comment docs.

@lafriks why save OAuth session to database not in file system?

@lunny probably currently there is no real reason. I wrote this code when trying to fix oath2 bug but error that file session storage was throwing about trying to delete unexisting file was just a consequence not a real source for that bug.
But more generally speaking this could be useful in future as currently we can specify to store Gitea session data in redis for example but oauth2 sessions will still be saved in file system so Gitea can not be load balanced because of that as if first request before redirecting to auth2 authorization service would hit one node and create session, if second request after authorization would hit other node, it would not know about such session and would fail with error.

@lafriks seems good enough. Please follow my review, otherwise LGTM.

@JonasFranzDEV did you clear cookies (could be that some old cookie still be left that was stored in file system)>

@lafriks Now the authentication works (except the error reported (mysql)) but the table is empty. Is that an excepted behaviour?

@JonasFranzDEV it depends on goth lib usage and in how it is currently done in gitea it seams to store session only between when you redirect to oauth2 provider and when you get session back.

@lunny @JonasFranzDEV fixed

Make LG-TM work

@lafriks this pr is update to latest master commit. Code Review is passed already.


Misiu/os advance aug28 2

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.7 out of 11 committers have signed the CLA.:white_check_mark: tmostak:white_check_mark: paul-aiyedun:white_check_mark: misiugodfrey:white_check_mark: pearu:white_check_mark: mattpulver:white_check_mark: mattgara:white_check_mark: yoonminnam:x: guilhermeleobas:x: AndrewVDo:x: simoneves:x: brenocfgYou have signed the CLA already but the status is still pending? Let us recheck it.


Config For on-demand, pay-per-request

When I set up the config for dynamoid, it would be nice if I set some attribute that would create the tables as on-demand.
Maybe if I set the read_capacity & write_capacity to 0, have it do that? Or have another boolean attribute on_demand?

Yes, it definitely makes sense to have this feature.
I consider adding new config option capacity_mode with possible values provisioned/on_demand like it mentioned in the documentation.
https://docs.aws.amazon.com/en_us/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html
Does it make sense?

Implemented https://github.com/Dynamoid/dynamoid/pull/397


Italics = Bad

Describe the bug

Steps To Reproduce

Expected behavior

Screenshots

Device and Application Information

OS Build:
Architecture:
Application Version:
Region:
Dev Version Installed:

Additional context

Requested Assignment

If possible, I would like to fix this.
I'm just reporting this problem.  I don't want to fix it.

I think this might be a troll. Just a hunch.


Content type aliases

Allow setting up aliases for integration template content types. Useful for e.g. picking up  application/whatever+json  as application/json.

Coverage decreased (-0.3%) to 88.724% when pulling 240b3669fc3cea5a343390d463c15ef851610bb5 on DomainGroupOSS:feature/content-type-aliases into fc4e84d67c738597e3c42aec8ea5b83c7e95662d on Miserlou:master.

This looks like a good change, but needs an updated entry in the advanced settings of the README.md before I can merge it in! Even better would be a little example about why somebody might want to use this feature, etc.

Coverage decreased (-0.3%) to 86.491% when pulling d77b2e67408c9d18bc2fe285ac8d1500189613b9 on DomainGroupOSS:feature/content-type-aliases into 66d98d06eb0b8462687948e329f969f4fd7e6042 on Miserlou:master.

Coverage decreased (-0.3%) to 86.491% when pulling 441e4c78e7b1160af9ce60ae641be2bdc3313714 on DomainGroupOSS:feature/content-type-aliases into 66d98d06eb0b8462687948e329f969f4fd7e6042 on Miserlou:master.


Configuration syntax simplification

I changed implementation a bit to:

remove printing "test" message in the output every time NeoVIM starts.
simplifying configuration of the extension via definition of just a simple table.

If key exists in the default table, its value will be replaced
If key does not exist - it will be added with its value into the config.

Thanks for the contribution~

Thanks for the contribution~


Typo ?

Hi, I would like to know what is the purpose of having 2 same lines in the src file ?
Line: 855            self._boundChildren.push(child);
Line: 856            self._boundChildren.push(child);
Is it a typo ?

Looks like it.


[ProblemDetails] Regression between 4.1.2 and 4.2.2

Describe the bug
While upgrading from 4.1.2 to 4.2.2 some tests started to fail on our side. It looks like something regressed Prism side with regards to (at least) validation of "date-time" format.
To Reproduce

Remove all node_modules folder (Important as we want to rollback deps to their previous versions)
Baseline

Checkout https://github.com/nulltoken/prism/tree/ntk/date-time-4.1.2 branch
yarn
yarn jest functional.spec.ts -t "HttpValidator validateInput() all validations are turned on properly validate date-time format"
This should pass

Regression

Checkout https://github.com/nulltoken/prism/tree/ntk/date-time-4.2.2 branch
yarn
yarn jest functional.spec.ts -t "HttpValidator validateInput() all validations are turned on properly validate date-time format"
This should fail with the following error

 ● HttpValidator › validateInput() › all validations are turned on › properly validate date-time format ("2021-02-18T12:02:16.49")

    expect(received).toMatchSnapshot()

    Snapshot name: `HttpValidator validateInput() all validations are turned on properly validate date-time format ("2021-02-18T12:02:16.49") 1`

    - Snapshot  - 11
    + Received  +  9

      Object {
    -   "_tag": "Left",
    -   "left": Array [
    -     Object {
    -       "code": "format",
    -       "message": "should match format \"date-time\"",
    -       "path": Array [
    -         "query",
    -         "updated_since",
    -       ],
    -       "severity": 0,
    +   "_tag": "Right",
    +   "right": Object {
    +     "method": "get",
    +     "url": Object {
    +       "path": "/todos",
    +       "query": Object {
    +         "updated_since": "2021-02-18T12:02:16.49",
    +       },
    +     },
        },
    -   ],
      }

It seems that 4.2.2 now considers 2021-02-18T12:02:16.49 as a valid "date-time" (whereas it doesn't specify any timezone)
Expected behavior
Ajv-formats seems to be pretty explicit with "date-time" requiring a timezone part (cf. https://github.com/ajv-validator/ajv-formats#formats)
Prism should keep on reporting this not matching query parameter as a problem.
/cc @P0lip

@philsturgeon :wave: When do you think yhis could get triaged?

@lottamus do you think your team could take a swing at this? Seems like it could be telling of a larger issue, like maybe we're not validating formats anymore, or something.

@lottamus Do you need any more data from me?

@nulltoken this issue has been brought into our current sprint, so we'll start looking into this!

@nulltoken we're using AJV Formats and they are incorrectly returning that the time is valid without a timezone even though they say it's required. I've pinpointed the issue in their code to:
https://github.com/ajv-validator/ajv-formats/blob/master/src/formats.ts#L154
Gonna try to put up a PR to fix this in AJV Formats. Once that's merged and released, we can up the version in Prism.

This fix is included in Prism 4.3.1!

@chohmann 😍


Recomendation for better implamantation

Hi,
I Have just implemented a similar library.
And just now I found out that instead of all the serialize and deserialize with delimiter mechanism you use.
You can just get the custom error that way:
formatError: function (error) {
  const customError = error.originalError;
  // Add path locations etc'
  return customError
}

see more in the graphql source here
I did the same mistake, and I'm planning to change it since it much cleaner and correct.

Ah nice!  Care to make a PR?

I can make it, but it will take some time since I'm going to be out of the country for some time.

Done!

https://github.com/thebigredgeek/apollo-errors/commit/e20f9abe35f38320176e040553555f21ea9ea3c3


First time shooting ISM soldiers with large drone they don't ragdoll and don't do any death animation

This is fixed in UE 5.3 or 5.4. Unsure since it's fixed using UE dev build from ue5-main which says it's UE 5.4, but unclear when issue was fixed. Has to do with bug where UMassProcessor instances will get recreated sometimes due to query pruning logic, and when they do, their data isn't copied over, so for signal processors we lose queued up signals. Once we're on UE 5.3 we should verify if this is fixed.
To repro bug:

Go into large drone
Shoot at an ISM soldier
Notice the first time (per PIE session) they don't ragdoll. They do subsequent times.

Confirmed fixed in UE 5.3


Storage-Resize-Images replace original image once thumbnail is uploaded

[READ] Step 1: Are you in the right place?
Issues filed here should be about a feature request for a specific extension in this repository. To file a feature request that affects multiple extensions or the Firebase Extensions platform, please reach out to
Firebase support directly.
[REQUIRED] Step 2: Extension name
storage-resize-images
What feature would you like to see?
Add an option to not just delete the original image, but completely replace it by the resized image.
How would you use it?

Upload a new image to the storage
Store the download url in a document and display the original image in frontend
Extension is triggered and creates the resized image
Resized image overwrites orginal image (same file-name)
Now the resized image should be automatically displayed in the future, since it should have the same download url

Allow me to correct you on point 5:

Now the resized image should be automatically displayed in the future, since it should have the same download url

It won't have the same url, since those are generated using tokens meant to be unique and revocable. In Cloud Storage, once an image is replaced with another one with the same name, the download URL will be different.

I´m currently running tests where I upload a new image that has the same file-name as the previous one (so overwriting it) without updating the download-url in my Firestore document and the new one is still displayed correctly.
Maybe this way is not a good practice, but apparently the download-url doesn´t change enough that it wouldn´t fit the newly uploaded image file.

@RegniBlef I see... I'll investigate further, thanks for mentioning that.

@rosariopfernandes As you said, the "media&token" changes, but still both download-urls work fine.
Firestore (old link):
https://xxx/o/users%2FFtr5JeM7pNTTDu1ptNGKAarkOa23%2Favatar?alt=media&token=22db8bbf-ae76-49d7-aa61-0aa1d398a4e8
Storage (new link):
https://xxx/o/users%2FFtr5JeM7pNTTDu1ptNGKAarkOa23%2Favatar?alt=media&token=58b10809-3a18-459f-a4c5-584ae885ad5c

That's great! I thought the previous token would be revoked... I like this suggestion, btw.

Seems like a reasonable feature request. Thanks for raising it.

As you said, the "media&token" changes, but still both download-urls work fine and show the new image.

Are you sure your files are not publicly accessible (i.e. that any token would work)? The download token should be replaced when you overwrite the file, and the old one isn't kept. I just confirmed this using both the Firebase Console and the Firebase Storage SDK.

@nicoqh  You are probably right about this, I never looked at the accessibility of my images since I´ve only created public projects up until now. But I still think this feature would be a nice addition, the problem you stated could be handled by a checkbox labelled „replace original image“ and a hint saying „new image won´t be accessible with old media-token if not publicly accessible“.
Also I believe most of the people that are using this extension are using it in a public context, for example, to resize/compress profile pictures of users.

@RegniBlef I agree that it would be a nice addition! My proposal in #323 could accommodate this feature without requiring that the files are public.

Thanks for the feedback everyone! We considered this and tried think of robust ways to support it but unfortunately, felt that it would add too much complexity at this point. Thanks again for the great feedback and sample use cases.


Change Page Navigation Cache to Back-Forward Cache

Target Live Date: ASAP

[ ] This has been reviewed and approved by (@petele)
[x] I have run npm test locally and all tests pass.
[x] I have added the appropriate type-something label.
[x] I've staged the site and manually verified that my content displays correctly.

CC: @petele

Whoops!
There were 4 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/07/page-lifecycle-api.md#L1088 - Consider adding a "was this page helpful?" widget to your page: https://developers.google.com/web/resources/widgets#helpful
src/content/en/updates/2018/07/page-lifecycle-api.md#L716 - Common typo found: 'javascript' Should it be 'JavaScript'?
src/content/en/updates/2018/07/page-lifecycle-api.md#L717 - Line must be at most 100 characters
src/content/en/updates/2018/07/page-lifecycle-api.md#L936 - Line must be at most 100 characters


install.sh script doesn't support multiple directories in GOPATH

On my Mac, install.sh script doesn't support multiple directories in GOPATH. It gives an error saying the directory is not existed when more than one path are set in GOPATH.
I expect the install.sh takes the first directory in GOPATH and install it in [FIRST GOPATH DIR]/bin.

As a workaround, you can edit the install.sh at line 73 to:
GOBIN="${GOPATH%:*}/bin"

This will return the first path in your GOPATH and will be used to install dep.
If you are on Windows, the path separator is ; so you will need to change the bash string operator.

Thank you gerep.
Actually, a more easier workaround is temporarily change the GOPATH to the one I want to install it to, than change it back afterward.
I'm not looking for a workaround. I want it to be fixed permanently which will give others an easier life.

@gerep, You can't install dep with install.sh on windows.
Try following command to install on Unix-like system:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | GOBIN="${GOPATH%:*}/bin" sh

@rousan: I agree with @uynap . The workaround is easy, but is an unnecessary stumbling point for what is supposed to be a hands-off installation method. The convention of defaulting to the first path is established in other go tools.

While installing dep using install.sh script, there is an environment variable named INSTALL_DIRECTORY  to set your custom installation directory, So for the platforms having multiple directories in GOPATH should do some manual efforts as follows:
$ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | GOBIN="${GOPATH%:*}/bin" sh

or edit the install.sh file like what @gerep said.
or set INSTALL_DIRECTORY environment variable like this:
$ INSTALL_DIRECTORY="${GOPATH%:*}/bin" curl https://raw.githubusercontent.com/golang/dep/master/install.sh

So, I don't think this is a smart default. So need to be fixed this one,
And I'm working on this issue and will send PR ASAP.


[20.09] aliases: rfkill is replaced by utillinux, not util-linux

Motivation for this change
Backport #104078
Things done

[x] 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
[x] Fits CONTRIBUTING.md.

There is no backport of #104776 to 20.09 so this is still true.

Wrong branch. release-20.09 is what you're looking for.

@ajs124 done

Thanks @makefu!


Question about the usage of helper in TransformerDecoder

Hi~
I want to implement the step-by-step TransformerDecoder with a TrainingHelper(), but I don't know how to call the same forward function as the RNN's, e.g.
outputs, hidden = self.gru(embedded, hidden)  # forward for every step
Has it been done in the step method of the class helper ? Hope for your help!

Thank you for your interest in Texar-PyTorch!
The forward function for every step (Here) is implemented in TransformerDecoder.
You can take a look at self._inputs_to_outputs.

In fact, I have no idea of how the initialize/step function is called or works.  And the step function requires the helper argument. What should I do to build such class of helper? Is there any corresponding example for this?
Thanks!

Sorry but I'm a bit confused. Is your goal to write (from scratch) a new Helper class, or to use an alternative built-in helper with the decoder?

Specifically, I want to modify an alternative helper (e.g. TrainingHelper) instead of writing (from scratch). So I may need a corresponding example to help me to understand and then modify. One of the modification may be to set a teacher_forcing_ratio when feeding the next_inputs.

@huzecong  Specifically, I want to modify an alternative helper (e.g. TrainingHelper) instead of writing (from scratch). So I may need a corresponding example to help me to understand and then modify. One of the modification may be to set a teacher_forcing_ratio when feeding the next_inputs.

You don't need to do that yourself. helper.initialize is called inside decoder.initialize, where the decoder will pass its own embedding_fn to the helper.
The flow of execution would be:

Construct a helper.
Call decoder.forward with the constructed helper.
decoder.forward calls DecoderBase.dynamic_decode.
DecoderBase.dynamic_decode calls decoder.initialize, which in turns calls helper.initialize.
DecoderBase.dynamic_decode loops over each time step and calls decoder.step, which in turn calls helper.sample.
If the current step is not the final time step, DecoderBase.dynamic_decode calls decoder.next_inputs, which calls helper.next_inputs.
DecoderBase.dynamic_decode calls decoder.finalize.

This may not apply to every decoder--helper pair but is a general description of how things work.

Thanks for your detailed instruction!


don't reschedule suspended cards

Every time reposition runs, it lists all IR cards and sorts them, but this includes suspended cards which interrupts what I think is a good workflow https://github.com/luoliyan/incremental-reading/issues/96
My ideal work flow would be

add new document
break out sections
create cards from sections
suspend the remaining IR cards

This allows the suspending part of the workflow to continue working.

Codacity doesn't like the sqlite with string interpolation as a security risk, but the value that is interpolated is not a user defined value. The style I have is consistent with the anki core style e.g. https://github.com/ankitects/anki/blob/862e2b48f06dadf414d171d2cfdc4ac3ad79e7da/pylib/anki/sched.py#L747


[BUG] The type initializer for 'Elastic.CommonSchema.Serialization.JsonConfiguration' threw an exception

ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog): Elastic.CommonSchema.BenchmarkDotNetExporter
ECS schema version (e.g. 1.4.0): 1.5.1
ECS .NET assembly version (e.g. 1.4.2): 1.5.1
Elasticsearch version (if applicable): ES Cloud 7
.NET framework / OS: netcore 3.1
Description of the problem, including expected versus actual behavior:
Serialization exception after benchmarks have been constructed just before posting to ES
Specifically on this line:
https://github.com/elastic/ecs-dotnet/blob/725c4e706d93216dd379898675ace30357b0dd36/src/Elastic.CommonSchema/Base.Serialization.cs#L56
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'Elastic.CommonSchema.Serialization.JsonConfiguration' threw an exception.
Inner Exception 1:
FileNotFoundException: Could not load file or assembly 'System.Text.Encodings.Web, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
Steps to reproduce:

Created a simple benchmark and configured ES Options.
Include the nuget reference to 1.5.1 BenchmarkDotNetExporter
Failure of benchmarks complete and upload to ES attempted

I managed to fix this by cloning the repo and updating all System.Text.Json reference to 5.0.2 and the problem went away. I believe it is just the fact that I referenced from Nuget rather than the version.

Thanks for reporting @saliehendricks.

System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'Elastic.CommonSchema.Serialization.JsonConfiguration' threw an exception.
Inner Exception 1:
FileNotFoundException: Could not load file or assembly 'System.Text.Encodings.Web, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.

Elastic.CommonSchema.BenchmarkDotNetExporter 1.5.1 has a dependency on Elastic.CommonSchema 1.5.1, which in turn has a dependency on System.Text.Json (>= 4.7.0), which the latest version to match the version constraint (5.0.2) has the dependency on System.Text.Encodings.Web (>= 5.0.1). Are all the dependencies restored and up to date in the repository?
I just tried to replicate this by following the provided steps, but was unable to replicate. the benchmarks are successfully sent to Elasticsearch. Here's what I have
In Program.cs
using System;
using System.Security.Cryptography;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Running;
using Elastic.CommonSchema.BenchmarkDotNetExporter;

namespace EcsDotNet142
{
    class Program
    {
        static void Main(string[] args)
        {
            var options = new ElasticsearchBenchmarkExporterOptions("http://localhost:9200")
            {
                GitBranch = "externally-provided-branch",
                GitCommitMessage = "externally provided git commit message",
                GitRepositoryIdentifier = "repository"
            };
            var exporter = new ElasticsearchBenchmarkExporter(options);
            var config = ManualConfig.Create(DefaultConfig.Instance);
            config.Add(exporter);

            BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config);
        }
    }

    public class Md5VsSha256
    {
        private readonly SHA256 _sha256 = SHA256.Create();
        private readonly MD5 _md5 = MD5.Create();
        private byte[] _data;

        [Params(1000, 10000)]
        public int N;

        [GlobalSetup]
        public void Setup()
        {
            _data = new byte[N];
            new Random(42).NextBytes(_data);
        }

        [Benchmark]
        public byte[] Sha256() => _sha256.ComputeHash(_data);

        [Benchmark]
        public byte[] Md5() => _md5.ComputeHash(_data);
    }
}

and in EcsDotNet142.csproj
<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>netcoreapp3.1</TargetFramework>
    </PropertyGroup>

    <ItemGroup>
      <PackageReference Include="Elastic.CommonSchema.BenchmarkDotNetExporter" Version="1.5.1" />
    </ItemGroup>

</Project>

The results are successfully sent to Elasticsearch
{
  "took" : 4,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 4,
      "relation" : "eq"
    },
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : "benchmarks-dotnet-2021-01-01",
        "_type" : "_doc",
        "_id" : "vBBrsHkBC3aXDFAhmKaM",
        "_score" : 1.0,
        "_source" : {
          "agent" : {
            "git" : {
              "branch_name" : "externally-provided-branch",
              "commit_message" : "externally provided git commit message",
              "repository" : "repository"
            },
            "language" : {
              "jit_info" : "RyuJIT",
              "dot_net_sdk_version" : "5.0.202",
              "benchmark_dot_net_caption" : "BenchmarkDotNet",
              "has_ryu_jit" : true,
              "build_configuration" : "RELEASE",
              "benchmark_dot_net_version" : "0.12.0",
              "version" : ".NET Core 3.1.14 (CoreCLR 4.700.21.16201, CoreFX 4.700.21.16208)"
            },
            "type" : "Elastic.CommonSchema.BenchmarkDotNetExporter",
            "version" : "1.5.1+4d79199d75c989bc6e1ec19727faa3db58e6058b"
          },
          "os" : {
            "name" : "Windows",
            "version" : "Windows 10.0.19042",
            "platform" : "windows"
          },
          "message" : null,
          "benchmark" : {
            "lower_outliers" : [
              4236.067962646484
            ],
            "q1" : 4296.057510375977,
            "confidence_interval" : {
              "margin" : 61.83926483651583,
              "level" : 12,
              "mean" : 4322.973280686599,
              "lower" : 4261.1340158500825,
              "n" : 13,
              "standard_error" : 14.321967130061191
            },
            "percentiles" : {
              "p0" : 4236.067962646484,
              "p67" : 4330.403869628906,
              "p25" : 4297.650909423828,
              "p100" : 4458.814239501953,
              "p90" : 4367.1337890625,
              "p80" : 4332.4237060546875,
              "p50" : 4315.187072753906,
              "p85" : 4341.626281738281,
              "p95" : 4408.907470703125
            },
            "q3" : 4332.248687744141,
            "all_outliers" : [
              4236.067962646484,
              4458.814239501953
            ],
            "interquartile_range" : 36.19117736816406,
            "max" : 4458.814239501953,
            "upper_fence" : 4386.535453796387,
            "standard_deviation" : 51.63858685294546,
            "kurtosis" : 4.405886040660377,
            "n" : 13,
            "standard_error" : 14.321967130061191,
            "min" : 4236.067962646484,
            "median" : 4315.187072753906,
            "upper_outliers" : [
              4458.814239501953
            ],
            "variance" : 2666.5436521691913,
            "mean" : 4322.973280686599,
            "lower_fence" : 4241.7707443237305,
            "skewness" : 1.0739353248970622
          },
          "@timestamp" : "2021-05-28T00:41:51.5465926+00:00",
          "host" : {
            "chronometer_frequency_hertz" : 10000000,
            "hardware_timer_kind" : "Unknown",
            "physical_processor_count" : 1,
            "logical_core_count" : 12,
            "in_docker" : false,
            "processor_name" : "Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz",
            "has_attached_debugger" : true,
            "physical_core_count" : 6,
            "architecture" : "X64"
          },
          "log.level" : null,
          "event" : {
            "duration" :<PHONE_NUMBER>0,
            "measurement_stages" : [
              {
                "operations" : 1,
                "iteration_mode" : "Overhead",
                "iteration_stage" : "Jitting"
              },
              {
                "operations" : 1,
                "iteration_mode" : "Workload",
                "iteration_stage" : "Jitting"
              },
              {
                "operations" : 16,
                "iteration_mode" : "Workload",
                "iteration_stage" : "Pilot"
              },
              {
                "operations" : 131072,
                "iteration_mode" : "Overhead",
                "iteration_stage" : "Warmup"
              },
              {
                "operations" : 131072,
                "iteration_mode" : "Overhead",
                "iteration_stage" : "Actual"
              },
              {
                "operations" : 131072,
                "iteration_mode" : "Workload",
                "iteration_stage" : "Warmup"
              },
              {
                "operations" : 131072,
                "iteration_mode" : "Workload",
                "iteration_stage" : "Actual"
              },
              {
                "operations" : 131072,
                "iteration_mode" : "Workload",
                "iteration_stage" : "Result"
              }
            ],
            "job_config" : {
              "jit" : "Default",
              "launch" : {
                "unroll_factor" : 0,
                "max_iteration_count" : 0,
                "launch_count" : 0,
                "iteration_count" : 0,
                "run_strategy" : "Throughput",
                "iteration_time_in_milliseconds" : 0,
                "warm_count" : 0,
                "max_warmup_iteration_count" : 0,
                "invocation_count" : 0,
                "min_warmup_iteration_count" : 0,
                "min_iteration_count" : 0
              },
              "id" : "Default",
              "gc" : {
                "heap_affinitize_mask" : 0,
                "server" : false,
                "no_affinitize" : false,
                "allow_very_large_objects" : false,
                "retain_vm" : false,
                "cpu_groups" : false,
                "concurrent" : false,
                "heap_count" : 0,
                "force" : false
              },
              "platform" : "AnyCpu"
            },
            "original" : "Md5VsSha256.Sha256: DefaultJob [N=1000]",
            "method" : "EcsDotNet142.Md5VsSha256.Sha256(N: 1000)",
            "module" : "EcsDotNet142",
            "description" : "Sha256",
            "action" : "Sha256",
            "category" : [
              "EcsDotNet142.Md5VsSha256-20210528-104039"
            ],
            "type" : [
              "Md5VsSha256"
            ],
            "parameters" : "N=1000",
            "repetitions" : {
              "measured" : 131072,
              "warmup" : 131072
            }
          }
        }
      }
    ]
  }
}

Are you able to share a small example that replicates the finding?

Hi @russcam,
Thanks for clarifying the dependency chain and giving it a test. Will put together a sample (if I can recreate it!).
Just for my own record, my package references were as folllows:
    <PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
    <PackageReference Include="BenchmarkDotNet.Annotations" Version="0.12.1" />
    <PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
    <PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="5.0.0" />
    <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="5.0.0" />
    <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="5.0.0" />
    <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
    <PackageReference Include="ServiceStack.Text" Version="5.11.0" />
    <PackageReference Include="System.Text.Json" Version="5.0.2" />

ServiceStack.Text does not share any common dependencies.
Microsoft.Extensions.Configuration.Json depends on System.Text.Json >=5.0.0 - me thinks the issue might be here.

Microsoft.Extensions.Configuration.Json depends on System.Text.Json >=5.0.0 - me thinks the issue might be here.

Possibly; I would expect dependency resolution to pick the higher version though, and for it to "just work", though expectations don't always match reality!

Closing this because we were unable to reproduce and have not seen this error since.
Thanks for bringing this to our attention though @saliehendricks :+1:


Pack Attack zone

I felt this project needed a Packmaster tribute zone, so I made one. I was originally planning to stop at two zones (and don't plan to make more after this), but having a Packmaster tribute was important to me.
This zone picks three packs, and card rewards and shop cards are taken from the zone's packs. In combat, you get a random card from those packs added to your hand each turn, in return for drawing one less card (I didn't want it to be purely positive). If this feels too limiting, it could be two random cards instead.
This remaining content is the zone is two events that are broadly positive and intended to draw people towards the zone. If you get an event while in the zone, it will always be one of these events.
Pack Shrine lets you either pick 1 out of 20 of any Packmaster cards (Library-style events always offer interesting choices) or remove a card by offering it to the shrine in return for gold based on the card's rarity (think Bonfire Spirits, except gold instead of healing and max HP). Like all shrines, this is a purely positive event. It has image variants for both Packmaster and Packmistress.
Black Market Two has three options: PM Booster Box in return for the Vexed curse, three random cards from the zone's packs in return for losing a small amount of HP, or Cardistry in return for some gold. These have costs, but are all intended to be good options. PM Booster Box is strong enough to be worth a curse, three random cards will often be good (but may depend on the zone's packs), and Cardistry is worth buying for most decks. The image is a flipped and slightly modified version of the Packmaster event.
Everything is achieved by reflection so that this doesn't require any dependencies. The zone can only spawn if Packmaster is loaded, and I've tested that it doesn't break when Packmaster isn't loaded. Packmaster's pack filtering is respected.
Most of the code here is for the events and getting pack/card information from Packmaster by reflection. The rest of the zone setup is straightforward.
Here are screenshots for the start of each event:

Changes made. Leaving this for you to merge so you can take a quick look over the changes and confirm they match your expectations.

Looks good, thanks!


Enhancement: make fully playable with just gamepad

Make menus fully work with just controller no touch

Geometry Dash by default doesn't have gamepad support, not even on the menus; the fact that I added in support for gamepad at all is an enhancement by itself imo.

I know that's why I listed it as enhancement I have no idea how any of it works thank you for at least looking you've done enough just making the game run as good as it does imo

Commenting on this issue just to clarify that this is specific to the Android/iOS builds of the games. Windows does ship with "full" controller support.

Geometry Dash by default doesn't have gamepad support, not even on the menus; the fact that I added in support for gamepad at all is an enhancement by itself imo.

There's are gd mod menus for android where some add the controller support on pc. So it's still possible. If you know how to import it

You would have to modify the code of the game itself, most likely by applying a mod like the one discussed above. Seeing as the data files are ones you provide, this would likely only be feasible via built-in patcher, and the mod to patch the APK with would likely have to be custom-coded, so hatoving would need to have at least some knowledge of cocos2d, etc etc… Which would likely make this take more time than it’s worth.
Those are my two cents, at least. I’m not a contributor, I don’t know anything outside of my skimming the code. Good idea for an enhancement, though.


Support wildcard DNS records

I could not figure out how to add wildcard DNS records (http://en.wikipedia.org/wiki/Wildcard_DNS_record).
It is unfortunate to another DNS server just for this ;(

Hi All
I'm not sure whether my question goes along with @neigor 's but why are Entries in the DNS overwritten when two services on two separate machines register the same name? I would have expected it to build a mappings name -> List of IPs.
Thanks
Alessandro

(aside: i actually need to look in the pull request again).
Anyhow. Yes entries for a single key are overwritten, this is how it works. If a name has a new ip you write the new ip, there not appended.
Basically: you're doing it wrong :) If you want to machine register the same name, then machine a needs to registar a.bla.skydns.local and machine b needs to registar b.bla.skydns.local. You can then use bla.skydns.local is the shared name.

Hi!
I guess I have another use case for this. We have a Web application that hosts domains for our customers, e.g.:
Main domain: someservice.com
Customer 1: ibm.someservice.com
Customer 2: bmw.someservice.com
...
New customers are simply entered into the database and their subdomain name is just stored together with the rest of their data. Accessing a customer's domain will make the application behave differently (e.g., display a different logo and colors) but it's still the same application, not a separate instance of it or anything. The behavioral differences are all in the business logic, so we definitely don't want to start a separate service in order to handle each customer.
We built a Docker-based test environment for running this application (together with a bunch of related services) around skydns, and it's working very well. Now we wanted to add support for customized customer domains, but this limitation is making it quite hard to do so. Of course, we can still add a cron job that pulls the subdomains from the database and adds entries to skydns, but a simple wildcard domain will be easier and a lot more reliable.

Yes, a feature like this needs to go in. The only thing I want to make sure is that we won't make an extra query when we get back 'not found'.

Do we have any progress on the wildcard support?

No progress, because the double query issues hasn't been fleshed out (yet).

@miekg thanks.

[ Quoting<EMAIL_ADDRESS>in "Re: [skydns] Support wildcard DNS r..." ]

@miekg thanks.

np, Also nobody is actually fleshing this out; haven't seen any new proposals.
/Miek
--
Miek Gieben


[Docs] Horizontal scrolling and overlap on TOC

The navigation in the documentation is currently showing a horizontal scrollbar and isn't full-height.
I'm not sure if it's supposed to be full-height, but I think the horizontal scrollbar should be an easy fix by just making it slightly wider ;)
Here's a screenshot to show what I mean:

(that's Firefox 45 on Windows 10)
And perhaps the beautiful red text "Contents" put on top of the red github-ribbon wasn't such a great idea, but then again, I think we all know what it says anyway :)
/edit
And now it's Firefox 46 :)
And that didn't fix it, as I kind of expected.

Thanks! Could you type console.log(innerWidth, innerHeight) in the console and tell me what the values are when this happens?

Sure, here you go:
1731 1006

It seems fine when fully maximized on my WUXGA monitor, but not when almost maximized. I didn't notice that before.

Looking at this issue and #188, I think it's safer to move the banner to the top right corner instead of keeping it on top left and worrying about it colliding with the sidebar for docs. That place seems safe to me. Only the Star button has to move slightly on the left.


Implement adoption of k8s clusters

This PR resolves issue https://github.com/Mirantis/hmc/issues/542 by:

Renaming ManagedCluster to ClusterDeployment
Creation of a new template called adopted cluster that allows creating services via a sveltoscluster for existing k8s clusters not created via 2a

@kylewuolle can the PR be split into two different PRs (or at least 2 different commits within the PR): the one with the renaming and the one with the adopted templates feature? Otherwise, there are too many changes to review and each requires attention because one might be either a simple renaming (which is pretty simple to review) or a feature (which requires extra attention)

@kylewuolle can the PR be split into two different PRs (or at least 2 different commits within the PR): the one with the renaming and the one with the adopted templates feature? Otherwise, there are too many changes to review and each requires attention because one might be either a simple renaming (which is pretty simple to review) or a feature (which requires extra attention)

Done!

@Kshatrix Agreed, this looks good from my perspective, please go ahead.


Update react native per Snyk

Signed-off-by: Stephen Curran<EMAIL_ADDRESS>

Equivalent to #294 but with DCO signoff.

Also #287 #288.

Some of the tests (windows, android) failing because they want higher versions of rust — current 1.65, Windows wants 1.66 (see below), while Android wants 1.70 or higher.
What needs to be done?
error: package `relative-path v1.9.2` cannot be built because it requires rustc 1.66 or newer, while the currently active rustc version is 1.65.0
Either upgrade to rustc 1.66 or newer, or use
cargo update -p<EMAIL_ADDRESS>--precise ver
where `ver` is the latest version of `relative-path` supporting rustc 1.65.0
Error: Process completed with exit code 1.

@berendsliedrecht @andrewwhitehead can one of you rust magicians take a look at why there are errors with the rust version?

Progress - but still not working.  Now the issue seems to be a frozen-lockfile setting?  @berendsliedrecht @andrewwhitehead — can one of you do what is needed to address the issue?
1s
Run pnpm install
  pnpm install
  shell: /usr/bin/bash -e {0}
  env:
    RUST_VERSION: stable 6 months ago
    CROSS_VERSION: 0.2.4
    NPM_CONFIG_USERCONFIG: /home/runner/work/_temp/.npmrc
    NODE_AUTH_TOKEN: XXXXX-XXXXX-XXXXX-XXXXX
    PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
Scope: all 5 workspace projects
 ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with packages/anoncreds-react-native-example/package.json

Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"

    Failure reason:
    specifiers in the lockfile ({"@hyperledger/anoncreds-react-native":"workspace:*","expo":"~49.0.10","expo-splash-screen":"~0.24.0","expo-status-bar":"~1.9.0","react":"18.2.0","react-native":"0.72.7","@babel/core":"^7.20.0","@babel/runtime":"^7.22.15","@types/react":"~18.2.14"}) don't match specs in package.json ({"@babel/core":"^7.20.0","@babel/runtime":"^7.22.15","@types/react":"~18.2.14","@hyperledger/anoncreds-react-native":"workspace:*","expo":"~49.0.10","expo-status-bar":"~1.10.0","react":"18.2.0","react-native":"0.73.0","expo-splash-screen":"~0.25.0"})
Error: Process completed with exit code 1.

Closing this — can’t see how to update the branch to include main updates.


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

Codecov Report

Merging #233 (a6c7fd2) into main (2974dfe) will increase coverage by 8.72%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #233      +/-   ##
==========================================
+ Coverage   83.33%   92.05%   +8.72%
==========================================
  Files           2        1       -1
  Lines         126      340     +214
  Branches       31       40       +9
==========================================
+ Hits          105      313     +208
- Misses         21       27       +6

Impacted Files
Coverage Δ

src/index.ts
92.05% <100.00%> (+10.05%)
:arrow_up:

example/src/main.ts

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 f9e877c...a6c7fd2. Read the comment docs.


Add qiwi logo into PyQt background

Add qiwi logo designed by @choiwh03 into swift.mainWindow.

I have a question!
Which should I match the background image to, mainWindow.centralWidget or full application?
Please leave your opinion! @kangz12345

What are the differences for those two options?

Fisrt, matching mainWindow.centralWidget means filling the remainder region out of dock widgets as follows.

Second, matching the full application means filling the qapp as follows.

As I didn't implement all, there are some weird parts so please understand this..

Oh thank you for the visual support!! It looks great, I think matching the full app yet with the smaller image would be good!


Chop audio syllables into markered mp3

Right now the audio load is ineffcient, since we technically need to load 100s of small files.
This isn't that bad with HTTP2/3, but we could merge the syllables and use markers to delimit them, making voice packs much more manageable. We could also move to e.g. mp3/320 vs wav for a large download size reductions.
Wav marker parsers
https://github.com/PRX/prx-wavefile
MP3 chapter parsers
https://github.com/gbouthenot/mp3splitter-js
https://github.com/Zazama/node-id3

What the current network load looks like for the large number of files:


Fix/issue6641

https://github.com/FreeCodeCamp/FreeCodeCamp/issues/6641#issuecomment-179714598.
As agreed, the join example has been made a little bit more understandable.

@wolverine2k thanks for the PR. Please, change the title more descriptive one, don't include issue numbers in PR title/branch name/commit message. Add closes #6641 if this PR fixes that issue.  Or in other words review our Guidelines for Contributing, thank you!.

Okay thanks bugron. I will cancel the PR and issue a new one.


Headset view mirror

Describe the feature
A window on the desktop that will display/mirror what the user in XR headset sees. Maybe limited to VR for simplicity? Here's some features that would be good to have:

Fast mirroring, just show one eye from the already-rendered view.
Smoothed mirroring, render the scene from a smoothed camera viewpoint
External control, the app can control the camera's movement.

This should work for Win32, UWP, and Linux.
An example use-case
From szefo on Discord

Yeah, im talking about vr media players in general, some call them cinema apps, they all have an mirror to desktop window option build in, but only if u enable it, its a privacy thing also

A 3rd person specator auto-camera from my own experimentation:
https://twitter.com/koujaku/status/885609227338752000

Just my 2 cents.
I would concentrate mostly on the basic mirror functionality as this is the most needed use case, when the user of an app just wants to see or show others what's inside the vr env in the desktop window view, some see it also as privacy feature, so it would be helpful to control it, possibly at runtime.
The fast mirroring eye method is more than enough for basic support.
The other things are like cherry on the top, ofc it would be great to have a concept of cameras or a spectator camera than can even be controlled to look at what u want independent of the headset view, but most of apps that do have the mirroring limits itself for that simple one eye mirror.
I see ability to have or even control an independent spectator camera as an advanced use case not many will need.
This connects maybe with the ability to show some desktop window only UI controls for debug purposes or app functionality, but probably most the former one. Either as an overlay on the vr mirror view or just a somewhat independent of the vr view control panel. But this is probably a separate big ui functionality.
Also not sure it is connected to how the current desktop window is created, but there is just no window, its just the control bar, and it is kinda annoying as all vr apps i have ever used just displays an empty black window if it doesn't have a mirror anyway. So besides the mirror functionality i would propose to already create a normal empty window not just the control bar.

I assume this is not a simple feature, so in the short term, would it be possible to allow us to add some properties to the window that is currently displayed? That way we could configure messages to tell the user how to use Oculus or SteamVR mirroring tools and also inform them to keep the window in focus to capture keyboard input. Maybe display the app's logo too.

Yeah, this isn't terribly simple, but I'll bump it up in my priorities! I don't think I'll fit any of this into the current version, but I'll try and focus on this soon after.
In the meantime, you can grab the handle to the window via something like this:
IntPtr hwnd = System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle;

I believe this gets you the Win32 HWND that can then be used to modify and do plenty of stuff with the window. I saw someone recently doing this to output 2D text on the window via... GDI I think?

Excellent, thanks for the pointer :)


Can I run a job pre-deploy?

Not really an issue, I'm trying to get helm to run a job in the middle of an install, the job should run after the configmaps were set but before the pods are starting to deploy, is it even possible using current hooks? is there a pre-deploy hook or something like that?

That's one of the most common usages of hooks.
Add to both ConfigMap and Job helm.sh/hook: pre-install.
Add to Job helm.sh/hook-delete-policy: hook-succeeded.

You can learn about the hooks at https://helm.sh/docs/charts_hooks/#hooks


Getting Certificate trust Issue

Check List
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

[x] I have read the wiki page and cheat sheet, but there is no information I need.
[x] I have searched in existing issues, but did not find a same one.
[x] I want to report a problem instead of asking a question. It'd better to use kingfisher tag in Stack Overflow to ask a question.

Issue Description
Invalid certificate Issue
What
I am part of iOS developer group from USBank and we are using Kingfisher for our image rendering and caching mechanisms. We have some public facing image URL in the app for example(https://www.usbank.com/dam/images/nba/anticipate/template6/HELOC_Illustration3x.png). The issue is the image is getting rendered sometimes but the same image url is giving us back the certificate issue. I couldn't understand what exactly is causing this issue. I know adding "www.usbank.com" as trusted domain works but If you can guys provide a reason why it's failing sometimes it would be helpful for me to answer my management. The user experience in this error scenario is very bad from app perspective.
Complete Error details:
A URL session error happened. The underlying error: Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “www.usbank.com” which could put your confidential information at risk." UserInfo={NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorPeerCertificateChainKey=(\n    "<cert(0x7ff11009e000) s: www.usbank.com i: web-proxy.us.bank-dns.com>",\n    "<cert(0x7ff11002d800) s: web-proxy.us.bank-dns.com i: web-proxy.us.bank-dns.com>"\n), NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=https://www.usbank.com/dam/images/nba/anticipate/template4/HELOC_Illustration3x.png, NSErrorFailingURLStringKey=https://www.usbank.com/dam/images/nba/anticipate/template4/HELOC_Illustration3x.png, NSUnderlyingError=0x6000023d0300 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x600001e60c60>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9813, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9813, kCFStreamPropertySSLPeerCertificates=(\n    "<cert(0x7ff11009e000) s: www.usbank.com i: web-proxy.us.bank-dns.com>",\n    "<cert(0x7ff11002d800) s: web-proxy.us.bank-dns.com i: web-proxy.us.bank-dns.com>"\n)}}, _NSURLErrorRelatedURLSessionTaskErrorKey=(\n    "LocalDataTask <6726D1C3-B2DB-4A31-BADD-D825E03547EC>.<1>"\n), _kCFStreamErrorCodeKey=-9813, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <6726D1C3-B2DB-4A31-BADD-D825E03547EC>.<1>, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x600001e60c60>, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “www.usbank.com” which could put your confidential information at risk.}
We are using version 5.6
We are rending this image inside a view controller.
xcode version 11.3
Thanks in advance.

Not sure what can cause it. This error is given out by URLSession from iOS.
Is this happening on the same device with the same settings? Say, good for a while, and then failed later on? Or is it happening on different devices?
I suggest you can check:

Whether the date and time setting on the device are correct.
Is it a DNS or CDN failing when delivering the correct cert to the client?

same issue

Hi, @aerialkoala did you see the comment before , ref : https://github.com/onevcat/Kingfisher/issues/226 .
@onevcat mentioned that we need to use authenticationChallengeResponder, but did not say how to use it.
I have tried many times and different ways, and at last find one way may get work.
Implement extension of UIImageView, you can call the setImage function, in other places.
import Kingfisher

extension UIImageView {

    func setImage(_ urlStr: String? = nil, placeholder: UIImage? = nil, indicator:Bool = true, _ callback: ((UIImage?) -> Void)? = nil) {
        guard let urlStr = urlStr, let bkUrl = URL(string: urlStr) else {
            self.image = placeholder
            callback?(nil)
            return
        }
        if indicator {
            self.kf.indicatorType = .activity
        }
        self.kf.setImage(with: bkUrl, placeholder: placeholder, completionHandler:  { (result) in
            switch(result){
            case .success(let imageResult): callback?(imageResult.image)
            case .failure: callback?(nil)
            }
        })
    }
}

How do we use AuthenticationChallengeResponder, you may notice the class ImageDownloader,
but you can not use ImageDownloader.default.authenticationChallengeResponder , you need to use
KingfisherManager.shared.downloader.authenticationChallengeResponder = <#self#>

And you can implement another class,
class ImageHandler: NSObject,  AuthenticationChallengeResponsable {
   static let singleton = ImageHandler()

    func downloader(_ downloader: ImageDownloader, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
print("downloader invoked.....")
        completionHandler(URLSession.AuthChallengeDisposition.useCredential, URLCredential(trust: challenge.protectionSpace.serverTrust!))
    }
}

At last, you may set KingfisherManager.shared.downloader.authenticationChallengeResponder = ImageHandler.singleton  in AppDelegate.
Run the project and watch the console, if print any debug info there.
Hopefully, it will work for you.

There is actually some sample code in the wiki: https://github.com/onevcat/Kingfisher/wiki/Cheat-Sheet#authentication-with-nsurlcredential
But it is surprising that you need to set it to KingfisherManager.shared.downloader. Unless you are using a different downloader, by default, KingfisherManager.shared.downloader and ImageDownloader.default should point to the same thing in memory:

https://github.com/onevcat/Kingfisher/blob/master/Sources/General/KingfisherManager.swift#L106-L108

Maybe your <#self#> is released for some reason. Remember the authenticationChallengeResponder is similar to other delegate, is a weak reference and the downloader won't hold it for you.


How to get memory status of Sqlite database

Is your feature request related to a problem? Please describe.
I am interested in getting memory usage of individsal Sqlite databases from my Java program.
Basically the parameters here http://www.sqlite.org/c3ref/status.html
Describe the solution you'd like
How to get these values in my Java app?
Describe alternatives you've considered
NA
Additional context
NA

We don't expose it. It would require some JNI work.

Saw this too https://github.com/xerial/sqlite-jdbc/issues/908
Is there an example for this?


Support Azure TokenCredential for authentication against Azure OpenAI

The current AzureOpenAI auto-configuration code assume that the users will provide a static api key if no key is set, then an exception is throw see https://github.com/spring-projects/spring-ai/blob/ca1949c8250187d94d735665b2044a844234aa51/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/azure/openai/AzureOpenAiAutoConfiguration.java#L66
Azure supports a keyless authentication mode that uses Azure Active Directory and system identity.  Some users of Azure will disable key based accessed for the Azure Open AI service and those users can't use spring-ai with azure open ai.
Todo:

Enhance the the AzureOpenAiAutoConfiguration to support keyless authentication.
Document how users can configure keyless authentication

Reference https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/authentication
Resources:

https://github.com/Azure-Samples/azure-openai-keyless-java

I second this—at the very least, please provide documentation on how to update relevant scripts to enable authentication via Service Principal. We're wrestling with it at the moment, and autoconfiguration is stubbornly hard to override!

Vote for this.
Keyless authentication is more secure and recommended apporach when using Azure Open AI. There is an builder which requires customer to build the TokenCredential
        @Bean
	@ConditionalOnMissingBean
	@ConditionalOnBean(TokenCredential.class)
	public OpenAIClientBuilder openAIClientWithTokenCredential(AzureOpenAiConnectionProperties connectionProperties,
			TokenCredential tokenCredential) {

		Assert.notNull(tokenCredential, "TokenCredential must not be null");
		Assert.hasText(connectionProperties.getEndpoint(), "Endpoint must not be empty");

		return new OpenAIClientBuilder().endpoint(connectionProperties.getEndpoint())
			.credential(tokenCredential)
			.clientOptions(new ClientOptions().setApplicationId(APPLICATION_ID));
	}

While, this is not convinent enough, and it requires the devlopers to lean and build a TokenCredential by themself. I suppose, we should just add a TokenCredential bean here with the DefaultAzureCredentialBuilder in case no one feed that.
    @Bean
    @ConditionalOnMissingBean
    public TokenCredential AzureTokenCredential() {
        TokenCredential defaultCredential = new DefaultAzureCredentialBuilder().build();
        return defaultCredential;
    }


FEAT add support for local model checkpoints in HF target

Is your feature request related to a problem? Please describe.

Our HF target can download and run models from HuggingFace. However, if you have a model checkpoint locally in HF format, you can't load it (yet!).
Describe the solution you'd like

Instead of providing a model name we should perhaps also have the option of providing a model directory instead and just load it from there.
CC @KutalVolkan [just FYI since you created the original target]

Hello Roman,
I will gladly take care of it :)

This is good, I think we can close it!


ToList as Memory

Before, we’d allocate a new List, and then call ToArray on each token. The List is new, and each ToArray is a copy of the ReadOnlySpan representing the token.
In this PR, we clone the original input, and create Memory pointing to each token.
We want the semantics that by calling ToList, the new is now entirely independent of the original input. Copies in all cases. This is to avoid gotchas where the underlying original data may be mutated. I think this is what users expect.

@kevin-montrose @bretcope I don’t know if this is better, see description above. Is it better?

A little faster, but more allocation:
after:

| Method              | Mean       | Error    | StdDev   | Gen0     | Gen1     | Gen2     | Allocated   |
| ToList              | 1,484.0 us | 15.28 us | 14.29 us | 382.8125 | 373.0469 | 248.0469 | 2,155,937 B |

before:

| Method              | Mean       | Error    | StdDev   | Gen0     | Gen1     | Gen2     | Allocated   |
| ToList              | 1,847.3 us | 6.59 us  | 5.84 us  | 234.3750 | 201.1719 | 105.4688 | 1,522,633 B |

Calling it: never mind, given the above results and the simplicity of the original version.


Feat add ad4114 driver

Add a driver to be able to use an SPI external AD4114 ADC.
https://www.analog.com/en/products/ad4114.html#part-details
This is a single supply, multichannel, 31.25 kSPS, 24-Bit, Sigma-Delta ADC.
Also update samples to show how to use it on a stm32f3 discovery board.

Please add the board to samples/drivers/adc/adc_sequence/sample.yaml to build in CI
@MaureenHelm  can you please review your request changes ?


Screenshots does not include the mouse cursor

It is notable to say in the documentation that the screenshots that the pyautogui is making or anything regarding the screenshots such as locateOnScreen and etc. does not include the mouse. I've been trying to figure out why certain things are not happening because it was based on cursor image which is not shown in the screenshot.

Could I ask what platform you are using and if this affects users that use scrot?

Has your cursor interacted with the browser? If you use moveTo() to move to the middle of the screen or to interact with something to ensure it is in the foreground of your screen? Otherwise it would make sense that the cursor isn't showing up in screenshots.
A potential work around is to use the pyautogui.hotkey() function to take a screenshot that way. If you're on mac this would be pyautogui.hotkey('Cmd', 'Shift', '3') for example. This might work to avoid any issues inherent in pyautogui's screenshot method.

@pendragons-code @jtranquilli Forgive me for the late reply, the platform is Windows. There wasn't a browser interaction, and I've used it here:  https://github.com/syrull/simple-fishing-bot
There is like 60 lines of code and with the README you will get an idea how I am using it.


[poem]  After the inference model outputs the result vector, is it necessary to normalize the feature vector before distance calculation

After the inference model outputs the result vector, is it necessary to normalize the feature vector before distance calculation

Hi! It depends on which model you are using - if you are using the Pr-VIPE models we released, then there's no need to normalize


Mouse Pointer for Presentations

📝 Mouse Pointer adjustments such as

"temporary" size and/or color change
highlight (circle around pointer)
spotlight
magnifier
pen (straight line, arrow, etc)
plus on-screen display of mouse clicks and keyboard presses

Example software: PointerFocus, PresentationAssistant
_ Expected behaviour:

When activated, mouse pointer would be changed to help (presentation viewers) follow the mouse pointer more easily
Main feature and each sub-feature should ideally have their own (customizable) keyboard shortcut
Colors and sizes etc should be customizable separately

Check out https://docs.microsoft.com/en-us/sysinternals/downloads/zoomit

https://github.com/microsoft/PowerToys/issues/5021 is same issue also


Debug article reply

Hi, this PR included two commits that were already merged with your previous PR, so I took the liberty to delete those.
I'm not sure why the file codelist.json is included? Otherwise the PR looks good to me, thanks!

Merging, thanks @tonyfevrier


Webpack

What is the best way for work with webpack?

For now I'd recommend using the postcss-loader and add the plugins you need. So something like:
// postcss.loader.js
const atImport = require('postcss-import');
const customProperties = require('postcss-custom-properties');
const customMedia = require('postcss-custom-media');
const autoPrefixer = require('autoprefixer');

module.exports = {
  loader: 'postcss-loader',
  options: {
    plugins() {
      return [
        atImport,
        customProperties,
        customMedia,
        autoPrefixer,
      ];
    },
  },
};

// webpack.config.js
const postcssLoader = require('./postcss.loader');

module.exports = {
 /* ... other config options */
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          'style-loader',
          'css-loader?importLoaders=1',
          postcssLoader,
        ],
      },
    ],
  },
});

We'll look into a more 'official' solution if it makes sense, otherwise I'll just get this documented. Let's leave this issue open until then

I had same problem, I wanted to use suitcss preprocessor and utils as a webpack plugin, that's why I decide to develop following plugin https://github.com/ShavidzeT/suit-webpack-plugin

@ShavidzeT Nice.
I had actually started work on a webpack plugin for SUIT too. I'll add it to the org when I get a chance to finish it.


GEOMESA-713 Fixing of attribute index job

This stacks on top of https://github.com/locationtech/geomesa/pull/496, only the last commit(s) should be considered.

Job can be run stand-alone without needing manual steps afterwards
Fixed geoserver page that was failing to update the attributes after the job completes

Signed-off-by: Emilio Lahr-Vivaz<EMAIL_ADDRESS>

:white_check_mark:
Eclipse validation results:
All committers passed Eclipse CLA and Signed-off-by validation.

Committed as d63d975e89e2612e226cfab9d777dd277308dae6 on 1.5.


[CLOSED] Add HttpClient with builder pattern

 Issue by GoogleCodeExporter
Monday May 11, 2015 at 15:04 GMT
Originally opened as https://github.com/twogee/missing-link/issues/2

Should have the following features for the builder:

* URI parsing
  * protocol
  * host
  * port
  * context
  * extension
  * query parameters
* context builder
* query parameter builder
* header builder
  * have api support for specific common headers
    * Accept
    * Content-Type
    * Media-Type
* method builder
* authentication builder

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 12 Mar 2011 at 3:24

 Comment by GoogleCodeExporter
Monday May 11, 2015 at 15:04 GMT

Original comment by<EMAIL_ADDRESS>on 12 Mar 2011 at 3:25

Added labels: Type-Feature
Removed labels: Type-Defect

 Comment by GoogleCodeExporter
Monday May 11, 2015 at 15:04 GMT

Finished initial HttpClient + Builder with the outlined features with
supporting features

Original comment by<EMAIL_ADDRESS>on 12 Mar 2011 at 9:14

Changed state: Verified

 Comment by GoogleCodeExporter
Monday May 11, 2015 at 15:04 GMT

Original comment by<EMAIL_ADDRESS>on 19 Mar 2011 at 2:27

Added labels: Project-ant-http

 Comment by GoogleCodeExporter
Monday May 11, 2015 at 15:04 GMT

Original comment by<EMAIL_ADDRESS>on 19 Mar 2011 at 2:28

Added labels: Milestone-1.0

 Comment by twogee
Monday May 11, 2015 at 21:26 GMT

This issue was moved to twogee/ant-http#2

 Comment by twogee
Monday May 11, 2015 at 21:31 GMT

This issue was moved to twogee/ant-http#2

 Comment by twogee
Monday May 11, 2015 at 21:34 GMT

This issue was moved to twogee/ant-http#2