I want to add basic maths programs in java

Is your feature request related to a problem? Please describe.
I saw the java folder there is no programs like print factors of a number , check prime numbers etc.
Describe the solution you'd like
i want to add a folder name Mathematics under the folder java in which i put some basic maths programs.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
please assign the issue to me with the label hacktoberfest-accepted

go ahead @abhiyadav2345

i would be happy to contribute in this for hacktoberfest 2022

ok @ipratham101


Random salt for create2 tests

What ❔
Random salt for create2 tests
Why ❔
Not needed to rerun the node every time
Checklist

[ ] PR title corresponds to the body of PR (we generate changelog entries from PRs).
[ ] Tests for the changes have been added / updated.
[ ] Documentation comments have been added / updated.
[ ] Code has been formatted via zk fmt and zk lint.

@AntonD3 Why diff is so big?

@AntonD3 Why diff is so big?

I think because during the boojum-integration merge commits were squashed, but here they are present. I will redo this PR

@AntonD3 Why diff is so big?

I think because during the boojum-integration merge commits were squashed, but here they are present. I will redo this PR


Not good code

Can someone please explain to me why are all of the files from episode 14 coded in HTML? As soon as I run shell.py, it says:      py-myopl-code/ep14/shell.py at master · davidcallanan/py-myopl-code · GitHub
^
SyntaxError: invalid character '·' (U+00B7). I don't understand.

oh wait i clicked a wrong butoon


Failure to determine calling extension from callstack in web

Show Logs
Visual Studio Code - Insiders (1.92.0-insider, undefined, vscode.dev)
Jupyter Extension Version: 2024.6.0.
Python Extension Version: 2024.11.2024072302.
Pylance Extension Version: 2024.7.101.
No workspace folder opened.
23:29:21.909 [error] Unable to determine the caller of the extension API for trace stack. Error:
    at VI.determineExtensionFromCallStack (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:155:48528)
    at Object.createJupyterServerCollection (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:155:28598)
    at bo.eval (https://github.vscode-unpkg.net/GitHub/codespaces/1.17.2/node_modules/google-protobuf/google-protobuf.js:31:203)
    at Generator.next (<anonymous>)
    at fulfilled (https://github.vscode-unpkg.net/GitHub/codespaces/1.17.2/node_modules/google-protobuf/google-protobuf.js:31:203)
23:29:25.827 [info] Starting Kernel (Synapse PySpark) for 'Untitled-1.ipynb' (disableUI=false)
23:29:25.839 [error] Failed to change kernel, re-throwing Error: Invalid body response: {"path":"Untitled-1-jvsc-6e33b1dd-888b-45a6-889d-3bf23232c0b6eeed7f55-acdf-4fc4-8612-6d4f819d7818.ipynb","kernel":{"name":"synapse_pyspark"},"name":"Untitled-1-64f3b4bf-bd37-4627-a767-1566c838cb13.ipynb","type":"notebook"}.
    > at new r (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:73:4502)
    > originalException = TypeError: Invalid body response: {"path":"Untitled-1-jvsc-6e33b1dd-888b-45a6-889d-3bf23232c0b6eeed7f55-acdf-4fc4-8612-6d4f819d7818.ipynb","kernel":{"name":"synapse_pyspark"},"name":"Untitled-1-64f3b4bf-bd37-4627-a767-1566c838cb13.ipynb","type":"notebook"}.
23:29:25.840 [warn] Error occurred while trying to start the kernel, options.disableUI=false Error: Failed to connect to the remote Jupyter Server 'https://synapse-remote-jupyter-server/'. Verify the server is running and reachable. (Invalid body response: {"path":"Untitled-1-jvsc-6e33b1dd-888b-45a6-889d-3bf23232c0b6eeed7f55-acdf-4fc4-8612-6d4f819d7818.ipynb","kernel":{"name":"synapse_pyspark"},"name":"Untitled-1-64f3b4bf-bd37-4627-a767-1566c838cb13.ipynb","type":"notebook"}.).
    > at Hd.create (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:246:2830)
    > url = https://synapse-remote-jupyter-server/
    > serverProviderHandle = [object Object]
    > originalError = Error: Invalid body response: {"path":"Untitled-1-jvsc-6e33b1dd-888b-45a6-889d-3bf23232c0b6eeed7f55-acdf-4fc4-8612-6d4f819d7818.ipynb","kernel":{"name":"synapse_pyspark"},"name":"Untitled-1-64f3b4bf-bd37-4627-a767-1566c838cb13.ipynb","type":"notebook"}.
    > baseUrl = https://synapse-remote-jupyter-server/
    > vslsStack = Hd.create (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:246:2830),async iA.createJupyterSession (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:246:24213),async iA.startJupyterSession (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:246:22187),async qr.wrapKernelMethodImpl (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:260:78246)
23:29:25.840 [warn] Kernel Error, context = start Error: Failed to connect to the remote Jupyter Server 'https://synapse-remote-jupyter-server/'. Verify the server is running and reachable. (Invalid body response: {"path":"Untitled-1-jvsc-6e33b1dd-888b-45a6-889d-3bf23232c0b6eeed7f55-acdf-4fc4-8612-6d4f819d7818.ipynb","kernel":{"name":"synapse_pyspark"},"name":"Untitled-1-64f3b4bf-bd37-4627-a767-1566c838cb13.ipynb","type":"notebook"}.).
    > at Hd.create (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:246:2830)
    > url = https://synapse-remote-jupyter-server/
    > serverProviderHandle = [object Object]
    > originalError = Error: Invalid body response: {"path":"Untitled-1-jvsc-6e33b1dd-888b-45a6-889d-3bf23232c0b6eeed7f55-acdf-4fc4-8612-6d4f819d7818.ipynb","kernel":{"name":"synapse_pyspark"},"name":"Untitled-1-64f3b4bf-bd37-4627-a767-1566c838cb13.ipynb","type":"notebook"}.
    > baseUrl = https://synapse-remote-jupyter-server/
    > vslsStack = Hd.create (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:246:2830),async iA.createJupyterSession (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:246:24213),async iA.startJupyterSession (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:246:22187),async qr.wrapKernelMethodImpl (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.6.0+web/extension/dist/extension.web.bundle.js#vscode-extension:260:78246)
23:29:25.842 [info] Dispose Kernel 'Untitled-1.ipynb' associated with 'Untitled-1.ipynb'

Closing for now as not reported


Rename classes in line with PyTorch standards. Remove redundent slow librosa-based MEL. Add missing docstring params.

thanks @jph00 !


elasticsearch: small fixes to create indices and get metrics

Coverage decreased (-0.05%) to 78.694% when pulling f65bc77eef431402e5e3c17cad98ef9022b8cb6a on iksaif:master into 15fc1bc63514c04e9915c63465488527148a6606 on criteo:master.


Captures native crashes?

I would love to switch from Crashlytics to Bugsnag, but does this module catch native crashes?

Yes, it does, thats the whole point of this library :), both native and javascript crashes.


security: Provide PGP signed release tarballs

We've been packaging django-axes for Debian recently at https://github.com/freedombox/django-axes-deb
The packaging is all done but for one warning.
P: django-axes source: debian-watch-may-check-gpg-signature
N:
N:    This watch file does not include a means to verify the upstream tarball
N:    using cryptographic signature.
N:
N:    If upstream distributions provide such signatures, please use the
N:    pgpsigurlmangle options in this watch file's opts= to generate the URL
N:    of an upstream GPG signature. This signature is automatically downloaded
N:    and verified against a keyring stored in
N:    debian/upstream/signing-key.asc.
N:
N:    Of course, not all upstreams provide such signatures, but you could
N:    request them as a way of verifying that no third party has modified the
N:    code against their wishes after the release. Projects such as
N:    phpmyadmin, unrealircd, and proftpd have suffered from this kind of
N:    attack.
N:
N:    Refer to the uscan(1) manual page for details.
N:
N:    Severity: pedantic, Certainty: certain
N:
N:    Check: watch-file, Type: source
N:
Lintian OK

Please provide PGP signatures for your release tarballs to make them tamper-proof and Debian-friendly.

Any ideas how to do that?

You would need to generate PGP signing keys and use them for signing your commits. A pretty nice looking short tutorial:
https://gist.github.com/cyphar/21a1b213901a0a0ec19764ac03646ebe
GitHub already supports PGP signing so you can just add your PGP key here and to some common key pools (key servers) where people can download them from and reference them :-)
GitHub help docs (there is a lot of stuff on the bottom of the page under Further reading):
https://help.github.com/articles/generating-a-new-gpg-key/
I guess signing the tarballs will require some extra work.

@aleksihakli Please do if you know how. Thanks.


Connection timeout issue with EC2 machine

I am facing an issue that if I leave my EC2 machine idle for more than 2 minutes, I am loosing the ssh connection and getting the error message 'client_loop: send disconnect: Connection reset by peer'.
I have to again connect to the machine to continue machine. I have tried the below options to resolve the issue but the issue still remains the same.

Restarting the EC2 machine
Followed the instruction mentioned in the below link
https://brakertech.com/ssh-keeps-disconnecting/

Please help.

please check the security group and enable all traffic.

Hi manikanta,
All traffic is already enabled.
Please see the inbound and outbound rules of my security group below. Let me know if I am missing anything.

check the network connectivity
ping <publicip>
if packet are sending your network connection is good otherwise it says packer lose error because your network problem. first check these things and then tell me.

The connectivity is looking good.

Now go to your pem file path then right click open git bash then try to use ssh command for connectivity.

This is not useful. Issue is still the same. Closing the issue.

I am also facing the same issue getting the error message 'client_loop: send disconnect: Connection reset by peer'.


Switch main's route handlers to be static functions

Signed-off-by: Sebastian Malton<EMAIL_ADDRESS>

Why do we need this? Cleanup/modernize?

Mostly cleanup. These don't need to be instance methods. The fact that they are instance methods is slightly confusing because (one would hope) that all of them don't store state (even though I know that this change doesn't do anything to enforce this).


Mapping interface can be confusing

When clicking Add to create a mapping between source data and a Table Schema for a Data Pacakge, the following screen is presented:

When I read File I always assume that is my source file, not the output file. 😅 I also noticed that Darwin Core Archives use a two step approach (at least in IPT 2.7.3), with a modal and then a selection screen. There also, it is a bit confusing what is presented first (output or input), especially since the title mentions "Mapping Source Data". I can only tell these are output files, because the dropdown mentions Darwin Core:

Suggestion
I think the single screen with two dropdowns (as used for the Data Packages) is more efficient, but the first dropdown should get a different label, incorporating the resource type shortname:

Darwin Core Archive
Camtrap DP
Material Entity

Thanks Peter. Deployed

Confirmed fixed, much more intuitive.

The sentence "Before you can start mapping concepts, please select your source." sounds a bit odd (since you select a schema and a source), but can likely remain.


Telemetry ssr INTERNAL SERVER ERROR

I've accepted in the console terminal telemetry collect, and now when I deploy my website on my AWS Lambda I've this logs
"nuxt": "^2.12.2",

  | 2020-06-25T16:20:10.258+02:00 | FATAL ENOENT: no such file or directory, open '/home/sbx_user1051/.nuxtrc'

  | 2020-06-25T16:25:25.052+02:00 | 2020-06-25T14:25:25.052Z	95118a2c-c4e6-4755-9774-af52c02703ef	ERROR	{ Error: ENOENT: no such file or directory, open '/home/sbx_user1051/.nuxtrc'    at Object.openSync (fs.js:443:3)    at Object.writeFileSync (fs.js:1194:35)    at write (/var/task/node_modules/rc9/dist/index.js:87:6)    at update (/var/task/node_modules/rc9/dist/index.js:106:3)    at Object.updateUser (/var/task/node_modules/rc9/dist/index.js:112:10)    at updateUserNuxtRc (/var/task/node_modules/@nuxt/telemetry/dist/module.js:30:6)    at ModuleContainer.telemetryModule (/var/task/node_modules/@nuxt/telemetry/dist/module.js:511:5)  errno: -2,  syscall: 'open',  code: 'ENOENT',  path: '/home/sbx_user1051/.nuxtrc' }
-- | -- | --
-- | -- | --
  | 2020-06-25T16:20:10.258+02:00 | at Object.openSync (fs.js:443:3)
  | 2020-06-25T16:20:10.258+02:00 | at Object.writeFileSync (fs.js:1194:35)
  | 2020-06-25T16:20:10.258+02:00 | at write (node_modules/rc9/dist/index.js:87:6)
  | 2020-06-25T16:20:10.258+02:00 | at update (node_modules/rc9/dist/index.js:106:3)
  | 2020-06-25T16:20:10.258+02:00 | at Object.updateUser (node_modules/rc9/dist/index.js:112:10)
  | 2020-06-25T16:20:10.258+02:00 | at updateUserNuxtRc (node_modules/@nuxt/telemetry/dist/module.js:30:6)
  | 2020-06-25T16:20:10.258+02:00 | at ModuleContainer.telemetryModule (node_modules/@nuxt/telemetry/dist/module.js:511:5)

And an internal server error on my website https://beta-admin.staging.letsgocity.be/

I'm getting the same error in a vercel hosted app after we upgraded our nuxt version to 2.13.1. During our CI build process we do create a project level .nuxtrc file. I use the @nuxtjs/now-builder to deploy our app.
2020-06-26T00:22:19.079Z	undefined	ERROR	λ Error while initializing nuxt: Error: ENOENT: no such file or directory, open '/home/sbx_user1051/.nuxtrc'
    at Object.openSync (fs.js:458:3)
    at Object.writeFileSync (fs.js:1279:35)
    at write (/var/task/node_modules/rc9/dist/index.js:87:6)
    at update (/var/task/node_modules/rc9/dist/index.js:106:3)
    at Object.updateUser (/var/task/node_modules/rc9/dist/index.js:112:10)
    at updateUserNuxtRc (/var/task/node_modules/@nuxt/telemetry/dist/module.js:30:6)
    at ModuleContainer.telemetryModule (/var/task/node_modules/@nuxt/telemetry/dist/module.js:511:5)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async ModuleContainer.addModule (/var/task/node_modules/@nuxt/core/dist/core.js:223:20) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/home/sbx_user1051/.nuxtrc'
}

It looks like telemetry cant access the home directory when trying to check for that global .nuxtrc file, not sure why, maybe due to the fact home dir is not writable or os.homedir() is resolving to a directory that does not exists?

I got it to work by setting telemetry option in the nuxt.config.js or by setting the environment variable NUXT_TELEMETRY_DISABLED, not sure why the project level .nuxtrc didn't work or maybe I need to add that to the now.json config.serverFiles.

I fixed this with :

nuxt 2.13.1
rm -rf node_modules/
yarn install
yarn upgrade
telemetry : false into nuxt.config.js


GH-44006: [GLib][Parquet] Add gparquet_arrow_file_writer_new_row_group()

Rationale for this change
This is a low-level API to control how to write data. This is for advanced users.
What changes are included in this PR?
gparquet_arrow_file_writer_write_chunked_array() is also added to write a test for gparquet_arrow_file_writer_new_row_group().
Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.

GitHub Issue: #44006

+1


Converge on one concept and set of APIs for "stuff packed with dlls"

In the spirit of https://themesof.net/ it would be nice if the resource story in .net converged on one idea.

I'm always unsure as to which is the right one to pick and official docs don't clearly spell out which to use.
I'm not sure which APIs for accessing the embedded resources are the right to use or what kind of lifecycle and caveats I must observe

An internet search will result in this question popping up over the years.  Here's one and you can see that the answers have a difficult time being direct.  Just references to MS docs which don't really offer clear direction.

This issue was moved to dotnet/runtime#46049


Cannot run Trialwise_Decoding notebook

Hi, thank you for making this code public! However, I have run into a problem while running the Trialwise_Decoding notebook from the documentation. The problem appears when I try to execute model.fit:

I am not sure why this happens. Looking forward to your reply! Thanks!

Hi, thanks for the notification we indeed had a bug in the code now. It should be fixed and should run now, can you try it?

Hi, this runs perfectly now. Thanks!


static compressed index.html is missed when accessing a directory

Describe the bug
The static compressed index.html is missed when accessing a directory.
To Reproduce

create a doc directory with an index.html file in it
generate the index.html.gz file in the doc directory (gzip -k index.html)
activate the static compression feature
(optionally) disable the dynamic compression feature
activate the tracing logs
run the sws server
run a GET request on the directory (xh localhost/doc/)
see in the log that SWS tries to access doc.gz
if the dynamic compression was disable, see that the file is serve uncompressed

Note that it uses the statically compressed file when explicitly providing index.html in the url (xh localhost/doc/index.html).
Expected behavior
sws should be able to serve the statically compressed index.html.gz when serving a directory.
Logs/Screenshots
2023-02-28T06:46:56.326898Z  INFO static_web_server::handler: incoming request: method=GET uri=/doc/
2023-02-28T06:46:56.326912Z TRACE static_web_server::static_files: dir: base="/public", route="doc/"
2023-02-28T06:46:56.326928Z TRACE static_web_server::compression_static: preparing pre-compressed file path variant of /public/doc
2023-02-28T06:46:56.326947Z TRACE static_web_server::compression_static: getting metadata for pre-compressed file variant /public/doc.gz
2023-02-28T06:46:56.326984Z DEBUG static_web_server::static_files: file not found: "/public/doc.gz" Os { code: 2, kind: NotFound, message: "No such file or directory" }
2023-02-28T06:46:56.327003Z TRACE static_web_server::static_files: getting metadata for file /public/doc
2023-02-28T06:46:56.327018Z TRACE static_web_server::static_files: file found: "/public/doc"
2023-02-28T06:46:56.327029Z DEBUG static_web_server::static_files: dir: appending an index.html to the directory path
2023-02-28T06:46:56.327048Z TRACE static_web_server::static_files: file found: "/public/doc/index.html"

Environment and Specs

static-web-server: 2.14.2
OS: k8s on linux
Client: xh 0.16.1, chrome 110.0.5481.77

Can you please share also how are you calling SWS like options used or config settings?

sure, it's run with static-web-server --config-file /sws.toml and sws.toml is
[general]
root = "/public"
log-level = "trace"
# we want to serve the pre-compressed files, but don't want to compress them on the fly
compression = false
compression-static = true

I just checked this and effectively, SWS is not appending the an index.html to directories therefore the issue.
A bugfix should come in next hours.

Fixed by #186.
Thanks for reporting it 👍


Issues mounting fuse.vmhgfs-fuse fileSystem

Describe the bug
Can't mount fuse.vmhgfs-fuse filesystem.
What's also problematic is that you need to set virtualisation.vmware.guest.enable = true or add open-vm-tools-headless to the system packages to have vmhgfs-fuse.
Steps To Reproduce
This only works in a VMware vm.

Add config:

virtualisation.vmware.guest.enable = true;

fileSystems."/mnt/host" = {
  fsType = "fuse.vmhgfs-fuse";
  device = ".host:/";
  options = [
    "allow_other"
    "auto_unmount"
    "uid=1000"
    "gid=100"
    "defaults"
  ];
};

Rebuild system

Expected behavior
It should mount with no issues and open-vm-tools-headless should be added to path if open-vm-tools is not available.
Additional context
Error:
Feb 23 15:05:43 nixos systemd[1]: Mounting /mnt/host...
Feb 23 15:05:43 nixos mount[9556]: /bin/sh: line 1: vmhgfs-fuse: command not found
Feb 23 15:05:43 nixos systemd[1]: mnt-host.mount: Mount process exited, code=exited, status=127/n/a
Feb 23 15:05:43 nixos systemd[1]: mnt-host.mount: Failed with result 'exit-code'.
Feb 23 15:05:43 nixos systemd[1]: Failed to mount /mnt/host.

As seen here, open-vm-tools is on the path.
> which vmhgfs-fuse | xargs realpath
/nix/store/5i0vkz00q47wdf5hr360d9pbmwj3wy19-open-vm-tools-12.1.5/bin/vmhgfs-fuse

> vmhgfs-fuse --version
vmhgfs-fuse: version <IP_ADDRESS>

FUSE library version 3.11.0
using FUSE kernel interface version 7.31
fusermount3 version: 3.11.0

Notify maintainers
If someone knows who to add, feel free to add them.
@pennae @figsoda @deinferno
Metadata
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.94, NixOS, 23.05 (Stoat), 23.05.20230220.b69883f`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.2`
 - nixpkgs: `/nix/store/4bdz2j6lry2vl44bcdaaarcap1p7qfpb-source`

It's probably related to https://github.com/NixOS/nixpkgs/issues/46529 and earlier bug https://github.com/NixOS/nixpkgs/issues/14624


[PullRequestCheck] Slack notification

@hupe1980, Is it possible to add the slack notification?

Yes, we can extend the cdk-pullrequest-check to optional publish in a sns topic. Based on that, we could then implement a slack implementation in cdk-codepipeline-slack.
Do you want to try it?

Of course, I will. Any news I inform you.
Thank you


Breaking changes

[ ] Normalize / Standardize error massages. (See: #1170)
[x] Make event related changes (done in #1055)
[x] Change getRuleName to getRulePath (See: #1134)
[x] Extract connectors to packages (@sarvaje)
[x] Webpack bundle, we will probably break packages for the utils part (@molant) --> Not bundling the main CLI but rather optimize the dependencies
[x] Extract wizards to their own packages (See: #1132) (@molant)
[x] Remove plugins from config (done in #1141).
[ ] Event to evalute JS (See : #497)
[ ] Other (?)

[ ] Extract connectors to packages
[ ] Webpack bundle, we will probably break packages for the utils part

[ ] Extract wizards to their own pacakges (See: #1132)

[ ] Change getRuleName to getRulePath (See: #1134)

[ ] Remove plugins from config

[ ] Event to evalute JS (See : #497)

[ ] Normalize / Standardize error massages. (See: #1170)

[ ] Move cdp-async-html to utils-debugging-protocol package


fix: release pipeline

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 54.89%. Comparing base (aba3aee) to head (189fea3).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #145   +/-   ##
=======================================
  Coverage   54.89%   54.89%
=======================================
  Files          10       10
  Lines        1257     1257
=======================================
  Hits          690      690
  Misses        479      479
  Partials       88       88

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Bug fixes

is it working now ?

@sumitkumar1503  My commit is valid if you are using FK constraint. I think you remove FK constraint now, so my code is now give error. So remove it and keep previous code.

will you please check it now ?


Code line not beautifying

Description
Code unchanged.
Input
The code looked like this before beautification:
Object.values(require('os').networkInterfaces()).reduce((r, list) => r.concat(list.reduce((rr, i) => rr.concat(i.family === 'IPv4' && !i.internal && i.address || []), [])), [])

Current Output
The  code actually looked like this after beautification:
Object.values(require('os').networkInterfaces()).reduce((r, list) => r.concat(list.reduce((rr, i) => rr.concat(i.family === 'IPv4' && !i.internal && i.address || []), [])), [])

Expected Output
The code should have looked like this after beautification:
Object.values(
  require('os').networkInterfaces()).reduce(
    (r, list) => r.concat(list.reduce(
      (rr, i) => rr.concat(i.family === 'IPv4' && !i.internal && i.address ||
    []),
  [])),
[]);

Environment
Browser User Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
##Language Selected:
Beautify JavaScript
Settings
{
  "indent_size": "4",
  "indent_char": " ",
  "max_preserve_newlines": "5",
  "preserve_newlines": true,
  "keep_array_indentation": false,
  "break_chained_methods": false,
  "indent_scripts": "normal",
  "brace_style": "collapse",
  "space_before_conditional": true,
  "unescape_strings": false,
  "jslint_happy": false,
  "end_with_newline": false,
  "wrap_line_length": "0",
  "indent_inner_html": false,
  "comma_first": false,
  "e4x": false,
  "indent_empty_lines": false
}

Change "wrap_line_length": "0" to "wrap_line_length": "80".

Please say if this worked, I will reopen if it did not.

Thanks, it worked!


Is it possible to install extensions automatically?

For example, the extension is automatically installed through a JSON file in a phone storage. Pre-installed extensions similar to chrome for PC.

I also want to try

I laso want try . https://github.com/narutogo/kiwibrowser-default-extensions/blob/main/README.md


Document Symbol and Workspace symbol descriptions show non alpha numeric characters

Description:
Document symbol and workspace symbol descriptions contain symbol meta information
Affected Versions:
v0.990.2 at least

Check service names with $ sign.

Fix has been merged and hence closing


Overflow issue in dashboards

Version: 7.13.0

Fixed as part of 7.13.1 https://github.com/walterra/kibana-milestones-vis/releases/tag/v7.13.1


[Feature Request] project level config

We can currently set our default org in ~/.config/planetscale/pscale.yml however I did not find a way to set your organization on a project (git repo) level.
It would be cool to have a local setting that takes precedence, similar to how e.g. .nvmrc sets the node version for the directory.
I understand I can use the --org flag, but that's still easy to mix up when working on multiple projects in multiple orgs.

If you use pscale inside a Git repository, we already should do this automatically for you. See also:
https://github.com/planetscale/cli/blob/26c43c9cb483457130ed280b94f78e543eac5eab/internal/config/config.go#L100-L119
Is that not working for you?

So if I am in the git repo root, where should I put the config exactly with what path?

@dbussink it works, thank you!
Is this documented anywhere? I tried pscale.yml in my project (notice the missing dot) and that made sense to me since it matches the pattern ~/.config/planetscale/pscale.yml
An extra sentence in the docs here would be really helpful IMHO.

An extra sentence in the docs here would be really helpful IMHO.

Would you be willing to open an issue for this on https://github.com/planetscale/docs/issues? So we can track it there as a documentation improvement? Something along the line of "document per project settings for the CLI"?

Would you be willing to open an issue for this on https://github.com/planetscale/docs/issues? So we can track it there as a documentation improvement? Something along the line of "document per project settings for the CLI"?

Thnx! Closing this one in favor of the docs issue.

@dbussink done, thanks!
https://github.com/planetscale/docs/issues/234


[Bug] PT Image display error

Describe the Bug
1.000000-PET AC-81015.zip
PT Image display error
Steps to Reproduce
The image file is as above, and the problem is as follows.
I don't know how to fix it.
The current behavior

The expected behavior

OS
win11
Node version
16.20.2
Browser
Microsoft Edge 119.0.2151.93

This looks fine when you drag and drop it in our local example https://www.cornerstonejs.org/live-examples/local.html
so it means your metadata provider is wrong

I'm using the same data source to view the image on OHIF and RadiAnt, it shows as normal.
That means the image is not corrupted.

Did you try drag and drop in the link above?

Put it in the live-examples，it looks like this

which slice? maybe i"m not putting the same slice, since when I tried one random one it was fine, which filename?

1-001
1-001.zip

I can't reproduce this bug anymore, can you verify as well?

After i  added calculate-suv to provider, the image was right


fixing the code

There were a few errors in the code. It doesn't even compile. Fixing it.

#sign-off

#sign-off


Create manually the HTML markup?

Could be possible insert manually the HTML markup needed by this plugin and use it just to manage the events?

No (at least for the current version). May I ask why would you need this? I'm asking as there might be other ways to do what you need.

I use angular and I prefer write the makeup directly so I can add ng repeat and various bindings directly to the html I write instead of having the html magically appear with jquery

If you call plugin function on a document ready event (instead of window load) plugin's markup should be applied without any delay. Plugin markup is fairly complex and I'm not sure if you'd really want to add it manually but I'll try to add this feature on the next version.

Thanks :)

Why don't you just write a simple angular directive for adding the scrollbar?
angular.module('customContentScroller').directive('customScrollbar', ['$compile',
    function($compile) {
        return {
            restrict: 'A',
            link: function($scope, $elem, $attr) {
                var options = {};
                $elem.mCustomScrollbar(options);
            }
          }
    }
])


Update returning 204

I am trying trying to update a document using put and it is returning 204 instead of 404 , when id in the url is wrong.

This is probably an issue with the database adapter. Which one are you using and could you share a reproducible example?

I am Using mongoose ,


Tautomer Canonicalization Error

Describe the bug
rdMolStandardize.TautomerEnumerator().Enumerate() gives tautomers that chemically are not possible and rdMolStandardize.TautomerEnumerator().Canonicalize() assigns the chemically non-plausible tautomer as the canonical tautomer.
To Reproduce
from rdkit import Chem
from rdkit.Chem.MolStandardize import rdMolStandardize

lig = Chem.MolFromSmiles("NP(=O)(O)N(CCCl)CCCl")
canonicalizer = rdMolStandardize.TautomerEnumerator()
tautomers = canonicalizer.Enumerate(lig)

"""
Tautomers generated:
Tautomer 1: N=P(O)(O)N(CCCl)CCCl
Tautomer 2: N=[PH](=O)(O)N(CCCl)CCCl
Tautomer 3: NP(=O)(O)N(CCCl)CCCl
Tautomer 4: N[PH](=O)(=O)N(CCCl)CCCl
"""

canonical_tautomer = canonicalizer.Canonicalize(lig)

# Canonical tautomer: N[PH](=O)(=O)N(CCCl)CCCl

Expected behavior
Tautomers 2 and 4 should not be returned and tautomer 4 should not be picked as the canonical tautomer.
Configuration:

RDKit version: 2021.09.4
OS: CentOS Linux 7, GNOME Version 3.28.2
Python version (if relevant): 3.9.7
Are you using conda?: Yes
If you are using conda, which channel did you install the rdkit from?: conda-forge

@greglandrum
I would say the rule is not fully correct. The rule should match trivalent phosphorus atom with free OH group that converts to corresponding tautomer (even in the rule description is so). Due to the not properly defined reaction the left site matches anything, and heptavalent phosphorus is produces - which AFAIR should not really happen for tautomers. I would definitelly correct it to something at least like: [#1:1][O:2][PX3:3]>>[O:2]=[P:3][#1:1]

@wopozka is absolutely correct. This 1,3 sigmatropic shift is never observed for phosphates/phosphonates.

Both @rubbs14 and @wopozka are correct. As reference I can also provide point 2 on "Thermal [1,3] sigmatropic hydrogen shift" from https://www.stereoelectronics.org/webPR/PR_06.html.

@wopozka : That seems reasonable.
We don't use the SMIRKS directly, so I'm going to use the query: [OH]-[PX3H0] to recognize the O-P pair of interest.


Bugfix - use imul for big numbers

Hi, thanks for Data.UInt.
I think I found a bug where UInt's mul doesn't do precise multiplication for big integers. I guess that * encourages the JavaScript runtime to do floating point multiplication, and so some precision is lost. It seems that in this situation developers are recommended to use Math.imul for precise integer multiplication. Observe the following node.js session:
> lhs = (-2047875787) >>> 0;
2247091509
> rhs = (-1028477387) >>> 0;
3266489909
> (lhs * rhs) >>> 0
1364097024
> Math.imul(lhs, rhs)
1364097529

I didn't know * did this either, credit for the workaround I've supplied goes to stack overflow: https://stackoverflow.com/questions/6232939/is-there-a-way-to-correctly-multiply-two-32-bit-integers-in-javascript
I also added a regression test for this to your test suite as well (but couldn't think of a cool quickcheck prpoperty). Please let me know if there's anything else I can do to help get this merged :smile:

Wonderful, I had no idea this would cause trouble, but I really appreciate your help with this! It may be a few days before I can fully review and add a test property that could verify this, but this is great!

All good! No rush.
Meanwhile, a quickcheck property idea came to me randomly, so I've added it to the branch. I was able to observe locally that this property causes a fail on master, but not on my bugfix branch.

@amarqueslee Alright, it's integrated into v5.1.4. I'm going to try and get us Travis-CI integration just for the cosmetic sake; I'd like to see this project be more robustly maintained.
\cc #11


changed --edit-notebook to use default_url instead

Passing the ipynb notebook as a positional argument forces the browser to open, even if --no-browser is used. By using --NotebookApp.default_url this does not happen. However, there does not seem to be a way to quit the notebook from the browser if this alternative is used. Any other suggestions?

It seems like one can pass the null command to --browser, in which case nothing is opened:
jupyter notebook --browser ":"

Thanks to drawing my attention to this and explaining why --no-browser does not work (which sounds like a bug to me). I have fixed this now as mentioned above in commit 497ffc3f.


ci_microshift: Just undefine the crc domain

During creation of bundle crc vm is already in shutdown state so virsh destroy commands fails. We only need to undefine the VM.

/cherry-pick release-4.14

/cherry-pick release-4.14


Fix deadlocks between write transactions and hotbackup, take 2

Make sure all follower trxs know that they are follower trxs.
Before this patch, follower transactions created from AQL or other
El Cheapo transactions did not know they are follower transactions.
This could cause deadlocks between write transactions and hotbackups.
Scope & Purpose
(Please describe the changes in this PR for reviewers - mandatory)

[+] :hankey: Bugfix (requires CHANGELOG entry)
[ ] :pizza: New feature (requires CHANGELOG entry, feature documentation and release notes)
[ ] :fire: Performance improvement
[ ] :hammer: Refactoring/simplification
[ ] :book: CHANGELOG entry made

Backports:

[ ] No backports required
[+] Backports required for: all versions, will be done

Related Information
(Please reference tickets / specification / other PRs etc)

[ ] Docs PR:
[ ] Enterprise PR:
[ ] GitHub issue / Jira ticket number:
[ ] Design document:

Testing & Verification
(Please pick either of the following options)

[ ] This change is a trivial rework / code cleanup without any test coverage.
[+] The behavior in this PR was manually tested
[ ] This change is already covered by existing tests, such as (please describe tests).
[ ] This PR adds tests that were used to verify all changes:

[ ] Added new C++ Unit tests
[ ] Added new integration tests (e.g. in shell_server / shell_server_aql)
[ ] Added new resilience tests (only if the feature is impacted by failovers)

[ ] There are tests in an external testing repository:
[ ] I ensured this code runs with ASan / TSan or other static verification tools
[+] We will add further tests, method will still be devised.

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/12652/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/12658/


fix(quantic): show search interface once initialized

https://coveord.atlassian.net/browse/SFINT-4092
The reported issue is about flickering when data from the URL hash is loaded into the Quantic search interface. The issue happens because the search interface, and components are all rendered before the URL manager could be initialized. So it makes the search interface display and then update with the URL data. The issue mentions the tab component, but all other components behave the same way.
The proposed solution is to display a loading spinner until the search interface is fully initialized (see this video).

I think this is a good fix for the issue. However, I think the ultimate fix is really this SFINT-3978 Jira which is to add loading stencil animations to the components. This is in line with the mockups and should fix the issue given each affected component would render an animation or not render at all until it is properly initialized. @lbergeron what do you think? Is it worth making this change to fix the flicker or should we do the story instead? Also do you have comments about that story?

I think this is a good fix for the issue. However, I think the ultimate fix is really this SFINT-3978 Jira which is to add loading stencil animations to the components. This is in line with the mockups and should fix the issue given each affected component would render an animation or not render at all until it is properly initialized. @lbergeron what do you think? Is it worth making this change to fix the flicker or should we do the story instead? Also do you have comments about that story?

Thanks for the link, somehow I wasn't aware of SFINT-3978.
When debugging, I noticed that all components (e.g., tab, searchbox, pager, etc) are being initialized before the search interface itself. I think that the search interface initialization sequence is wrong and the URL manager should be initialized way earlier so child components load with the correct state from the start. I'm not sure how to fix that though. My understanding is that SFINT-3978 alone would not fix the issue.

I think this is a good fix for the issue. However, I think the ultimate fix is really this SFINT-3978 Jira which is to add loading stencil animations to the components. This is in line with the mockups and should fix the issue given each affected component would render an animation or not render at all until it is properly initialized. @lbergeron what do you think? Is it worth making this change to fix the flicker or should we do the story instead? Also do you have comments about that story?

Thanks for the link, somehow I wasn't aware of SFINT-3978.
When debugging, I noticed that all components (e.g., tab, searchbox, pager, etc) are being initialized before the search interface itself. I think that the search interface initialization sequence is wrong and the URL manager should be initialized way earlier so child components load with the correct state from the start. I'm not sure how to fix that though. My understanding is that SFINT-3978 alone would not fix the issue.

Well, I didn't know the issue is actually bigger than it's. Yes, I have a same feeling as Luc, probably SFINT-3978 won't fix the issue _ the order of how components will be rendered. Personally, I might prefer a 'proper' fix than a temporary fix, so @lbergeron, when you said "I think that the search interface initialization sequence is wrong and the URL manager should be initialized way earlier so child components load with the correct state from the start" ... should we open a userstory/discussion to check it?

Personally, I might prefer a 'proper' fix than a temporary fix

@lvu285 Well, in this case we need to dig deeper in order to find a better fix.

I think you both are right :P
The core of the issue, correct me if I am wrong, is that there is a query BEFORE the urlManager can do its job of changing the state no?
We need to make sure the executeFirstQuery isn't called before the urlManager is initialized AND has executed its action of changing the state (namely the q from the url right?).
If we make sure that the query doesn't execute AND that the components have a "loading" animation from SFINT-3978, we can then have the expected behavior?

@erocheleau This PR is just hiding the flickering behind a spinner. Maybe you are right, and instead of trying to initialize the URL manager earlier, we should defer the first query. I think that is how we'll fix the flickering. After that, the loading animations would simply make it look nicer.

I think you both are right :P
The core of the issue, correct me if I am wrong, is that there is a query BEFORE the urlManager can do its job of changing the state no?
We need to make sure the executeFirstQuery isn't called before the urlManager is initialized AND has executed its action of changing the state (namely the q from the url right?).
If we make sure that the query doesn't execute AND that the components have a "loading" animation from SFINT-3978, we can then have the expected behavior?

I'm pretty confident the query doesn't execute before the components are registered. That's the whole point of the headlessLoader setup we have. If you look at the initialize function in quanticSearchInterface the urlManager initializes before the first query is sent.
I think the issue is that the searchInterface and therefore the urlManager are initialized after the components are initialized (but all of this is still before the first query so we're good on that front). The result is, when loading a page with state in the url, the components first initialize with an initial state then it gets updated with the url state and the components rerender. That's the flicker.
If the components render a loading stencil or don't render anything at all until the first query is fulfilled, then this solves it no? I think this is the best solution. But if we really want the url manager to initialize first then i think we'd have to get our hands dirty with the headlessLoader.

@nathanlb

I think the issue is that the searchInterface and therefore the urlManager are initialized after the components are initialized (but all of this is still before the first query so we're good on that front). The result is, when loading a page with state in the url, the components first initialize with an initial state then it gets updated with the url state and the components rerender. That's the flicker.

I checked the code again, and I come to the same conclusion as you. A single search request is performed, and the URL manager is initialized before it, but components should not render with their initial state, at least not in this case.

If the components render a loading stencil or don't render anything at all until the first query is fulfilled, then this solves it no?

If components wait for the first query to be fulfilled, yes it would solve the issue. That roughly follows the same idea as the current PR. To implement it, I assume each "loading" component will rely on the SearchStatus controller and check when firstSearchExecuted becomes true. There is the skipFirstSearch property that doesn't fit well in this plan though, because since the first search won't trigger automatically, the UI would stay in the loading mode forever. We'd have to do something specific to handle this situation.
@jeremierobert-coveo

I think we should first test to see what is the actual loading order then we will be able to provide a more adequate permanent solution.

With everyone's input, it seems pretty clear that the initialization sequence is correct (I was wrong on that).

FYI the curent intended order for example-search is:

SearchInterface connectedCallback

sets engine options
sets initialize callback to be executed when all children have initialized.

all child components registered with engine-id (except SearchInterface) initialize in unpredictable order.
SearchInterface initialize

initialize UrlManager.
execute first query

@lvu285 We discussed offline and here is the conclusion. Implementing loading animations on most components (SFINT-3978) would solve the flickering issue (because loading animation would disappear only once the first query is executed).
Knowing that we'll work on SFINT-3978 very soon, I'll discard the current PR.


Customize key bindings

Is it possible to customize the key bindings? maybe add a  like spacemacs?

I think this is a duplicate of #17.


Cs 241 correct CreatedOn bug (also added CreatedOn field for apprentice)

I think you need to add CreatedOn to the SQLite SQL too


tests: fix unstable test_query_stats test

What is changed and how it works?

Issue Number: Close https://github.com/tikv/tikv/issues/15656
What's Changed:

tests: fix unstable test_query_stats test

Check List
Tests

Unit test

Release note
None

/merge

/run-cherry-picker


Updated project dependencies

updated the project to use node v20
updated the project to use the latest version of yarn
updated the CORS config
fixed the restify plugins
fix the queries to take in correct parameters
verified the server still runs

as is this deploys to heroku and runs.

cc: @migurski @ycombinator @richaagarwal


Adding in a 'how to fix a quirk' with the old bootstrapper

@crutkas : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@mattwojo this should be good to go

@crutkas : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Call not being rejected in Oreo

I have just installed this on my mum's older phone and it is working very well.
After getting impressed I installed it too but it failed my simple test, I added an contact and the app didn't reject the call, it did show the notification about the call being blocked.
I am using Android Oreo and I have given it all of the requested permission on the first launch.

Confirmed not working in Android 9 (Pie) either.

Happening for me too.
Google Pixel 2, Android 9

you need to replace the default dialer to block the call

Version 1.2.12 of the app is also not blocking any calls on Android 9. The app displays a notification appears saying "Private number: call is blocked", but the call is not blocked and the number is not private.

@heetparkhiya I have Simple Contacts as my default "Phone app", but the problem persists.
However, I have noticed that when I get or place a call, the actual in-call interface is the stock phone app. Is there somewhere I can change my actual dialing app?
I have a Motorola G6 on Sprint.

@betsythefc yes you can change the dialer but changing the default with your custom is too unacceptable because your dialer should have minimum working funcationality like system app and in some case system will also not allow to change default dialer


feat: add alerting

Fixes #69
This PR provides an interface to create Alerting provisioning resources with Grafonnet. I personally don't know if we have a client that can actually do something with these JSON resources but at least we have one part of the puzzle this way.
The Grafonnet API is modelled after the Terraform provider resources. The contactPoint schema is under development so we can't offer that in Grafonnet properly yet.
The schema's for these resources come from the Grafana OpenAPI spec, this opens the door to add more resources that are described in this specification.
As always I tend to make this reviewable commit-by-commit. First commit is the actual code for the generator, the other two are generating the code and docs.

wonder if it would be good to make the experimental state of the API more explicit in the type names or something --- or is the whole thing still considered to be subject to change?

The whole library is still marked as experimental, the note is just there to say 'we know this is incomplete'.

rebased


[vcpkg baseline][kf5globalaccel] Fix build on windows when x11 is around

Describe the pull request

What does your PR fix?
Fixes a spurious build issue which depends on the presence of x11 on the target system (see https://github.com/microsoft/vcpkg/pull/25670)

Thanks!


Zoom out

Describe your problem here.
How do I make this zoom out?
function onEvent(name, value1, value2)
if Name == 'tween zoom (end)' then
doTweenZoom('tween zoom (end)', 'camGame', value1, value2, 'linear')
end
end
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

Set value1 to a number below 1 such as 0.5...

Set value1 to a number below 1 such as 0.5...

I’ll show you what the problem is tomorrow bc it’s really late for me rn.

value2 is duration, it's on the wiki

value2 is duration, it's on the wiki

That's what I put as value 2 but it dosent work like the original event

idk what this "original event" is

idk what this "original event" is

Sorry for not explaining it well, but I'm trying to replicate a event that was made on source code to lua. The original event has these two values:
tween zoom (start)",
"2",
"2"
"tween zoom (end)",
"2",
"2"
But when I tried to put value 1 to zoom it worked but duration to value 2 it doesn't seem to work, so idk what is value 2

Original: https://youtu.be/T7R6iVN7LjQ?t=857
Mine:
https://user-images.githubusercontent.com/98327930/172697192-40558306-31f3-412b-9f16-1859e0b6e442.mp4


mastodon.social is not supportet even though suggested.

If I enter mastodon.social as domain I get “Looks like your domain is not currently supported!” even if it is a suggested domain.

There was a blocklist issue.  I've fixed the data problem, will update the management code next.

Thank you!


Fix Issue #36:  Avoid deleting uncommitted changes

Basically solves https://github.com/pandas-dev/pandas-stubs/issues/36, when we run local tests now all changes are temporarily committed and restored after the tests. If there are not any new changes it is just gonna ignore.

Would it make sense to skip mypy&pyright on the installed pandas-stubs when there are unstaged or uncommited changes (or even new files that are not tracked by git)?

I don't think so, and you @Dr-Irv ?

The reason for all of the git commands is that you want to make sure that when you run mypy&pyright on the installed pandas-stubs, that it doesn't use the local pandas-stubs, or? Instead of changing any files/git, how about changing into the tests folder,  overwrite the mypy_path/stubPath to use the current folder (which doesn't contain any stubs; in the worst case you still have to alter a file, but it is only pyproject.toml), mypy&pyright then cannot use the local stubs anymore, and then run mypy . and pyright . (which hopefully finds the installed stubs)?

Here's another suggestion. Instead of doing this with git, what we really care about is that the local copy of the pandas-stubs folder is not used when we test an installed distribution.  So how about we just temporarily rename pandas-stubs to tempfile.TemporaryDirectory and after the distribution is tested, you just rename it back.

Here's another suggestion. Instead of doing this with git, what we really care about is that the local copy of the pandas-stubs folder is not used when we test an installed distribution. So how about we just temporarily rename pandas-stubs to tempfile.TemporaryDirectory and after the distribution is tested, you just rename it back.

I think that is by far the easiest method! Would need to be careful to rename the folder back to pandas-stubs (even in case of an error), otherwise the tempfile.TemporaryDirectory will get deleted. I would also be happy to just rename pandas-stubs to _pandas-stubs (and error if the folder already exists).

That's it, Done. Thx for the support guys!!

This looks good. Can you merge with main and resolve conflicts?

Sure

Please do not merge this PR now, for some reason pyupgrade is not working in my macos setup, I gonna test in other OS's to see what's going on.

I'm good with what is in here now. Let me know if I can merge once the tests pass

Everything is ok now.

Thanks @BrenoJesusFernandes


running brew services start dnsmasq reports success erroneously when starting dnsmasq fails

tl;dr: if a service exits with abnormal code 3 and then respawns, shouldn't it throw up an error in brew services list or in the output from brew service restart and brew service start?
Note: if this can't be reproduced in supported versions of OSX, it should be closed. This issue was experienced on an unsupported version of OSX> Replication notes are at the end of this ticket; replication might take ~10 minutes on a machine that has dnsmasq running.
$ sudo brew services restart --verbose dnsmasq
Stopping `dnsmasq`... (might take a while)
/bin/launchctl unload -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
==> Successfully stopped `dnsmasq` (label: homebrew.mxcl.dnsmasq)
==> Generated plist for dnsmasq:
   <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
   <plist version="1.0">
     <dict>
       <key>Label</key>
       <string>homebrew.mxcl.dnsmasq</string>
       <key>ProgramArguments</key>
       <array>
         <string>/usr/local/opt/dnsmasq/sbin/dnsmasq</string>
         <string>--keep-in-foreground</string>
         <string>-C</string>
         <string>/usr/local/etc/dnsmasq.conf</string>
       </array>
       <key>RunAtLoad</key>
       <true/>
       <key>KeepAlive</key>
       <true/>
     </dict>
   </plist>

/bin/launchctl enable system/homebrew.mxcl.dnsmasq
/bin/launchctl bootstrap system /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
==> Successfully started `dnsmasq` (label: homebrew.mxcl.dnsmasq)

Running brew services list shows that dnsmasq is running:
$ sudo brew services list
Name    Status  User Plist
dnsmasq started root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
httpd   stopped
mysql   started root /Library/LaunchDaemons/homebrew.mxcl.mysql.plist
nginx   started root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php     started root /Library/LaunchDaemons/homebrew.mxcl.php.plist

However, dnsmasq is not a running process:
$ ps -ax | grep dnsmasq
72299 ttys001    0:00.00 tail -f dnsmasq.log
73444 ttys003    0:00.00 grep dnsmasq

I attempted reinstalling dnsmasq with brew several times, rebooting the computer, starting dnsmasq with brew services and then stopping and starting it with launchctl, and various other things.
In the end, tail -f system.log | grep --line-buffered dns while running sudo brew services restart --verbose dnsmasq to restart dnsmasq produced the following insightful records:
Jul  4 19:51:00 oyster.local sudo[91780]:      user : TTY=ttys003 ; PWD=/usr/local/etc/nginx ; USER=root ; COMMAND=/usr/local/bin/brew services restart --verbose dnsmasq
Jul  4 19:51:00 oyster com.apple.xpc.launchd[1] (homebrew.mxcl.dnsmasq): This service is defined to be constantly running and is inherently inefficient.
Jul  4 19:51:00 oyster.local dnsmasq[91928]: failed to open pidfile /usr/local/var/run/dnsmasq/dnsmasq.pid: No such file or directory
Jul  4 19:51:00 oyster.local dnsmasq[91928]: FAILED to start up
Jul  4 19:51:00 oyster com.apple.xpc.launchd[1] (homebrew.mxcl.dnsmasq[91928]): Service exited with abnormal code: 3
Jul  4 19:51:00 oyster com.apple.xpc.launchd[1] (homebrew.mxcl.dnsmasq): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Jul  4 19:51:10 oyster.local dnsmasq[92003]: failed to open pidfile /usr/local/var/run/dnsmasq/dnsmasq.pid: No such file or directory
Jul  4 19:51:10 oyster.local dnsmasq[92003]: FAILED to start up
Jul  4 19:51:10 oyster com.apple.xpc.launchd[1] (homebrew.mxcl.dnsmasq[92003]): Service exited with abnormal code: 3
Jul  4 19:51:10 oyster com.apple.xpc.launchd[1] (homebrew.mxcl.dnsmasq): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

From there, I cd /usr/local/var/run/; ls -al and lo and behold the directory that dnsmasq is trying to create dnsmasq.pid in does not exist:
drwxr-xr-x  2 user   admin    68B Jul  4 16:54 httpd/
drwxr-xr-x  7 user   admin   238B Mar  8  2017 nginx/
-rw-r--r--  1 root  admin     6B Jul  4 19:07 nginx.pid

As user, I ran mkdir dnsmasq; ls -al:
drwxr-xr-x  2 user   admin    68B Jul  4 19:52 dnsmasq/
drwxr-xr-x  2 user   admin    68B Jul  4 16:54 httpd/
drwxr-xr-x  7 user   admin   238B Mar  8  2017 nginx/
-rw-r--r--  1 root  admin     6B Jul  4 19:07 nginx.pid

After that, the service restarted happily:
Jul  4 20:01:33 oyster.local sudo[96641]:      user : TTY=ttys003 ; PWD=/usr/local/var/run ; USER=root ; COMMAND=/usr/local/bin/brew services restart --verbose dnsmasq
Jul  4 20:01:33 oyster com.apple.xpc.launchd[1] (homebrew.mxcl.dnsmasq): This service is defined to be constantly running and is inherently inefficient.
Jul  4 20:01:33 oyster dnsmasq[96792]: setting --bind-interfaces option because of OS limitations
Jul  4 20:01:33 oyster dnsmasq[96792]: ignoring nameserver <IP_ADDRESS> - local interface

Thoughts on how to reproduce: on a computer where dnsmasq is installed via brew and runs successfully, do the following:

sudo brew service stop dnsmasq
rm -r /usr/local/var/run/dnsmasq
tail -f system.log | grep --line-buffered dns while running sudo brew service start dnsmasq

system details: OSX 10.10.5 (14F2511) and brew 1.6.9
$ brew --version
Homebrew 1.6.9-104-g0c38ceb
Homebrew/homebrew-core (git revision 24657; last commit 2018-07-04)
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You are using macOS 10.10.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.

If you set HOMEBREW_DEVELOPER is the output more what you'd expect from brew services list?

It's confusing because basically unknown typically means "either something is broken or the .plist for your application needs adjusted to follow the correct process ID. I'm definitely open to accepting pull requests to fix bad plists, read from the log or print better information when the service hasn't been started correctly but my previous attempts have failed to make these better than what we have now. I actively would encourage you to try and best me here, though!


[Gemini] Implementation for Upward heartbeat on private

if you send a limit order, and it stays alive for more than 45 seconds, this needs to be called (or it will be cancelled).
https://docs.gemini.com/websocket-api/#filled
your API session key has been provisioned to require a heartbeat and due to a heartbeat timeout, all your orders have been cancelled
PS: all Gemini trading keys have heartbeats

@earce

Final piece of the puzzle, You can monitor downward heartbeats in the private channel, and send this upward heartbeat every 15 seconds.

downward comes via websocket
upward is REST call


Add some debug logging

While working with the action I realized it might be nice to confirm that the action is sending the correct data, might be nice to log the filename and size here: https://github.com/cds-snc/sentinel-forward-data-action/blob/main/src/lib/forwarder.py#L50

Added additional logging in this PR.


Training code

Great work! When will you release the training code?

Hi thanks for the interest, the training codes are undergoing an internal code review, it will come shortly, stay tuned!

The training code is already provided, closing this issue for now.


I'm unable to change state through the vuex plugin like I used to. Bring this feature back PLEASE

What problem does this feature solve?
In the previous major version of vue devtools I used to be able to change feature flags on my web app to true or false very easily through the vue devtools, but now I can't. This was a really quick and unobtrusive way to validate that my feature flags were working as intended
What does the proposed API look like?
I would like the vuex plugin to look like it used to. Vue devtools was so much better before.

If you have problems with Vuex editing, please open a real issue with more info and a reproduction (and preferably without your unrespectful tone). Thank you.


Add NOT gadget to Fields

Bindings PR: https://github.com/o1-labs/snarkyjs-bindings/pull/64/

superseded by https://github.com/o1-labs/o1js/pull/1259


Code Coverage Service Solution

Hello,
As you may know, I could not setup code coverage on the Travis-CI, it does not support environment variable when PR receive from other contributors, and BTW if it supports it's not safe (token could be printed in PR).
I think about two solutions for this.

Create a service on could server and run it after every PR on my VPS.
Add a script to the project and do the code coverage whenever I send a commit and environment variable CODACY_PROJECT_TOKEN is exist!

Let me know if you have any idea to fix it up.
Best Regards.

Hey,
temporarily I've added simple test for code coverage. whenever the EV is present it will do the test (when ever I push the code), BTW we are as you can see in here our code coverage unit test is 32%, so let's improve that! I think we need to combine some tests, any idea?
 if [[ ${#CODACY_PROJECT_TOKEN} == 32 ]];
    then
      coverage run nettacker.py -i <IP_ADDRESS> -m all -t 1000 &&
      coverage report -m &&
      coverage xml &&
      python-codacy-coverage -r coverage.xml;
      else
        echo "skip code coverage section";
 fi;

Regards.


Performance of select_..._from_file

Is there any way I can have a drop-down or radio button list for select_one_external?
Currently I am getting a simple text box in which I have to type the code of selected item.
Thank you

Kobo_Test.zip
Thank you

52,000 lines in csv file.
Kobo_Test on ona.io/enketo, local enketo-express:

@hussain1368, just to be sure, the issue you experienced was with initial slow loading of the form, right?
Sorry for the late response, btw!


This address created 0xd24cba893a68573755b9763f329a6f4699981339

0x70a9016438c8b6236260087d043a7f412cf73944
0x4d1a4b41de058512c7efe24f97d09852094e2864
0xffea55e9085a6baad3e408008a66fce89bf9de98
0x9ef4f4fc49337c40c901eb831bfc177379a0a199
0x599bd0d5df0308bb06771fb1957cb504d0d837f7
Reasoning
This address first ETH come from the FTX. And besides the transaction with safe, it hardly have another transaction. So I can defifi the address is the airdrop farmer.
https://etherscan.io/address/0xd24cba893a68573755b9763f329a6f4699981339
Methodology
with target as (
select *
from url('https://raw.githubusercontent.com/safe-global/safe-user-allocation-reports/main/safe_user_allocations_reworked.csv', CSVWithNames)
), transactions as (
select t1.*
from ethereum.transactions t1
join target t2
on t1.to_address = t2.safe_address
)
select distinct to_address
from transactions
where from_address = lower('0xD24CBa893A68573755B9763F329A6F4699981339')
Example:
Safe Address
0xc7495E1c9A62e74473d890eaE40537713AAC73f7

We haven't received any further information on this ticket and therefore deemed this submission invalid.
Unfortunately just the pure fact that Safes...

were created by the same address
have the same owner
conducted the same transactions
received assets from the same address

... is not enough reasoning for a valid submission, as there are legit user behaviour leading to such as well (relayer, scripts, power users, exchanges)
This submission didn't provide sufficient indicators to convince the team that there is some targeted airdrop farming behind the provided addresses. As per the rules, when in doubt we will default in favor of the airdrop recipients in order to not risk any false positives when sorting out airdrop hunters.


fix: general improvements

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Upgrade to arrow 23.0.0 (WIP)

Which issue does this PR close?
re https://github.com/apache/arrow-rs/issues/2665
Rationale for this change
I am putting up this PR so I can incrementally test the effect on DataFusion of splitting up the arrow crate in PRs such as  https://github.com/apache/arrow-rs/pull/2693
Hopefully we can use it to actually upgrade to arrow 23.0.0 when it is released as well
What changes are included in this PR?
Update to pre-release version of arrow 23.0.0
Are there any user-facing changes?
No

The failure in the  test job https://github.com/apache/arrow-datafusion/actions/runs/3055080369/jobs/4927734152  appears to be real:
failures:

---- sql::expr::csv_query_nullif_divide_by_0 stdout ----
thread 'sql::expr::csv_query_nullif_divide_by_0' panicked at 'attempt to subtract with overflow', C:\Users\runneradmin\.cargo\git\checkouts\arrow-rs-3b86e19e889d5acc\5146663\arrow\src\compute\kernels\arity.rs:198:18

Looks related to some changes to the arity kernels  -- specifically the code that is panic'ing seems to have been changed in https://github.com/apache/arrow-rs/pull/2666 by @tustvold .  I am not sure if DataFusion is passing bad input or if there is some corner case in arrow that is hit.
I plan to look into it later today if no one else beat me to it.

It will actually be https://github.com/apache/arrow-rs/pull/2643 which changed the unchecked divide kernels to panic on divide by zero - https://github.com/apache/arrow-rs/issues/2647

It will actually be https://github.com/apache/arrow-rs/pull/2643 which changed the unchecked divide kernels to panic on divide by zero - https://github.com/apache/arrow-rs/issues/2647

Thanks @tustvold  -- great hint -- fixed in  https://github.com/apache/arrow-datafusion/pull/3483/commits/0493aa1855ba0529552f855da21350e7d9fb0d47


[Feature] Dynamic Lora Support in SGLang (like VLLM)

Checklist

[X] 1. If the issue you raised is not a feature but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
[X] 2. Please use English, otherwise it will be closed.

Motivation
In SGLang, I would to dynamically apply domain-specific Lora adapters to smaller/local models. Normally, I use SGLang for inference. Recently, I've switched to Vllm which already has the ability to unload/load adaptors: https://docs.vllm.ai/en/latest/usage/lora.html
If this feature is already exists in SGlang, can you add an example in the documentation?
Related resources
https://docs.vllm.ai/en/latest/usage/lora.html

@Ying1123 and @Wenyueh is on this. Thanks!


Improving performance

Hi,
If anyone uses this library for performance critical applications I would love to see what you're doing and benchmark changes.
I think there's a lot of room for improvements in that area, but for that to be meaningful we need actual performance critical users that can observe differences.

I dont run it, but @dpc indicated interest when I did #264.

From my perspective performance rust-bitcoin itself was great, and everything is bottlenecked on the DB.

From my perspective performance of rust-bitcoin itself was great, and everything is bottlenecked on the DB.

Same here (from electrs experience).

With regards to rust-lightning, I think we still have room for internal improvement before to turning on our libraries. That said I talked with lightning users interested by high-availability deployments, so I guess that's something we might explore in the future :)

Closing this issue - no activity for 2.5 years and this isn't clearly actionable. It could maybe be moved to the Discussions tab.


command not found even if I installed it

Description
Here is my template to launch lima vm, as you can see that I'm trying to install wolfictl tool into it, but the VM that I launched didn't have that binary, did I do something wrong?
images:
- location: "https://github.com/lima-vm/alpine-lima/releases/download/v0.2.27/alpine-lima-std-3.17.0-x86_64.iso"
  arch: "x86_64"
  digest: "sha512:07b88838734de63edf302a531aaf57f5a48ec31b31b8a95740faa4fac11852b375c5c83180ff34311ee284b8123536b86b70f0606591b1986e9af2268f3ea675"
- location: "https://github.com/lima-vm/alpine-lima/releases/download/v0.2.27/alpine-lima-std-3.17.0-aarch64.iso"
  arch: "aarch64"
  digest: "sha512:b8028c96385ea5be499e37c142cb9e9d9c861f2647ff7f8cceaf867961ef8878e34a8ba0e8cfe2e01ac082191048e7acc30534782b13c5ec4bea53dad5919c33"
cpus: 2
memory: 8GiB
disk: 20GiB
firmware:
  legacyBIOS: true
containerd:
  system: false
  user: false
mounts:
- location: "~"
  writable: true
- location: "/tmp/lima"
  writable: true
provision:
- mode: system
  script: |
    #!/bin/sh
    set -eux -o pipefail
    apk update
    apk add --update --no-cache vim git make bubblewrap curl tar go
    git clone https://github.com/wolfi-dev/wolfictl.git
    (cd wolfictl && make install)
message: |-
  ---
  Run the following to get a root shell
    limactl shell test-playground sudo su -c "HOME=\"${HOME}\" ash"
  ---

I'm confused that the regular cloud-init output seems missing, but maybe this provides a clue:
$ limactl shell test-playground cat /var/log/cloud-init-output.log
go build -trimpath  -ldflags "-buildid= -X sigs.k8s.io/release-utils/version.gitVersion=42338aa -X sigs.k8s.io/release-utils/version.gitCommit=42338aafebf4a4410402779e301526540da1cea3 -X sigs.k8s.io/release-utils/version.gitTreeState="clean" -X sigs.k8s.io/release-utils/version.buildDate='2023-05-26T00:25:39Z'" -o wolfictl ./
go: module cache not found: neither GOMODCACHE nor GOPATH is set
go: module cache not found: neither GOMODCACHE nor GOPATH is set
make: *** [Makefile:59: wolfictl] Error 1
LIMA| WARNING: Failed to execute /mnt/lima-cidata/provision.system/00000000
LIMA| Exiting with code 1


Downloaded map list not showing when open the application again

#Downloaded map list not showing in list.
Issue
I have tried to running the example application for download-preplanned-map-area and it is running fine. I am able to download map and display the downloaded map in downloaded list as well.
But when I close the app and try running again. downloaded map are not listing in downloaded list.
Question
I can see how we are downloading map with DownloadPreplannedOfflineMapJob and load the result. But How can we load the map which is already downloaded in cache folder?
I am expeting code something similar like this:
ArcGISMap offline = ArcGISMap.createFromInternal("")
But I can't get the proper field and parameter.
In Screenshot below you can see city hall, and village green are downloaded and download button are disabled as well but not listing in downloaded list when I close and  run the application.

https://github.com/Esri/arcgis-runtime-samples-android/tree/main/java/download-preplanned-map-area

Hi Tashi!
We save the map to the cache in the sample only because we expect people to run it more than once and we need it to effectively be "reset" by the time they run it again.
Instead of saving the map to the cache, save it to the app's scoped storage with getExternalFilesDir(null) instead of cacheDir

Hi @TADraeseke,
Thanks for quick respond. I am saving in file path only instead of cache and every time I download I can see map data in the file path.
But when I close and run application again. Downloaded map are not listing in downloaded listview. And I know because there is no logic in code to display map list from file.
Here is the snippet

Hi @tashi146 -- sorry I'm with you now...
So what's being created from the DownloadPreplannedOfflineMapJob is a MobileMapPackage (.mmpk). In our API a mobile map package on disk can either be mymap.mmpk (if it's zipped) or in an exploded state it's a folder. For yours it's City Hall Area which contains a p13 folder and so on. This is a mobile map package too! So...
You can create a MobileMapPackage(getExternalFilesDir(null)?.path + "/City Hall Area" (I don't recall the syntax it might need to be City_Hall_Area) and then set the first map from the mobile map package to mapView.map .
Alternatively if you're in the same app that's run the DownloadPreplannedOfflineMapJob you can access the mobile map package at this line by replacing downloadPreplannedOfflineMapResult.offlineMap with downloadPreplannedOfflineMapResult.mobileMapPackage
This should get you where you need to be :)
I'd really like to know how good our samples are at supporting our users--what are we getting right? what are we getting wrong? Any chance you'd be interested in a short email or call with me to help me improve our offering by understanding how you're using this stuff? Please drop me an email if so<EMAIL_ADDRESS>

@TADraeseke Thanks, I will check and let you know


Update nginx.conf

Performance issue. Add nodelay to avoid nginx to wait to be forward
https://www.nginx.com/blog/rate-limiting-nginx/

@zokiad Thank you for your contribution!


Post only retweets to Mastodon

Hi,
I'm using other means to post to both Mastodon and Twitter, and my original posts are already synced. So I thought I'd use this tool (which btw looks great, good job!) to only post retweets back to Mastodon and perhaps boosts over to birdsite.
On the settings page it looks like that's actually possible. This is my current config:

However, it doesn't actually sync my retweets at the moment. Not sure if that's intended, or a bug.
Cheers

ah i see. I'm probably short-circuiting the post because you have 'Post to Mastodon?' unchecked.

@skddc let me know if this works now

Doesn't seem to work yet.

@skddc what's your twitter ID?

nevermind i got it :)

derp, I only implemented this behavior for masto->twitter. Try it now.

I wish there were enough interesting stuff on birdsite to even be able to retweet something quickly from my main account. It gets worse than my fediverse timeline, day by day. ;)
I tried again with a test account and it works now. Thanks a lot for the quick replies and fixes! 🙏


Hang in Falcon40B when running with more layers

Running for example the full falcon40b model on its own seems to hang in all_gather op. There seems to be some sort of L1 corruption on eth cores as this is only recoverable using reset, and not just reboot.
Some additional testing seems like after reset and reboot, the full 60 layer test can pass on the first run, but hangs when trying to run the test again.
If we run something like 1 layer, 2 layer, then 60 layer in the same test/process, it doesn't seem to hang after rerunning the test.

Repro on t3004 because this machine has the model weights cached:

git checkout aliu/falcon40b-debug
export TT_METAL_ENV=dev && export TT_METAL_HOME=$PWD && export ARCH_NAME=wormhole_b0 && export PYTHONPATH=$TT_METAL_HOME && make build && source build/python_env/bin/activate
make tests
pytest -svv models/demos/falcon40b/tests/test_perf_falcon_v2.py::test_perf_bare_metal[BFLOAT8_B-SHARDED-falcon_40b-layers_60-decode_batch32]

Model possibly leaves machine in weird state, following test is launching a kernel on the erisc to just read from dram. No ethernet usage. It looks like the erisc app is not getting launched, even though binaries are sent to 0x9040 and signal of is sent to0x9004`.

TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests --gtest_filter="DeviceFixture.EthKernelsNocReadNoSend

The Falcon40 model runs in fast dispatch mode, and then the subsequent small test hangs in slow dispatch mode.
Does it also hang if you run it in fast dispatch mode?

fyi @umadevimcw this is the eth hang issue.

This is what I understand of the status:
Running 1 or 2 layer multiple times back to back is fine.
Running 60 layer once is fine.
Second run of 60 layer hangs.

@davorchap After running 16 layers ( I think any high layer number will repro), I cannot run any kernels on ethernet cores. Both fast dispatch unit tests and slow dispatch unit tests are failing.

I have diagnosed the issue to be due to a lingering BBE artifact in ethernet rom firmware.
BBE has the concept of epoch queues which are command queues sitting in device dram. In erisc fw <= 6.6, firmware reads in the write pointer from this BBE epoch q in dram to determine if erisc app firmware should be executed.
When I asked Allan to write 1 @0x9004 to trigger erisc app fw execution, I overlooked the fact that erisc will also look at the epoch q pointer in device dram.
The reason it worked so far is that the respective dram locations in TT-Metal would remain uninitialized random values. So, when firmware goes and reads in that dram value, its still not equal to 0, so base fw would execute app fw.
This remains true for all the (small/er) tests so far. So no issues in running tests back to back.
With 16 layer model, what happens is that the epoch q address that base fw is reading gets cleared to 0. I guess data or weights or something else populates those addresses. The first run is ok since its uninitialized. For second run the values are cleared to 0 (as part of the first run). So for the second run when base fw reads from epoch q in dram, it reads a write pointer of 0 and thinks there is nothing to do and does not execute app firmware.
The gist of it all is that base firmware does not need to look at epoch q in dram. Its the job of BBE erisc app/runtime firmware to interface with epoch queues. And Metal does not even have that concept of epoch queues, so base firmware should not read anything from dram on its own.
I have already removed dram/epoch q related operations from erisc base firmware from 6.8 onwards.
I flashed the latest fw (6.9) on t3004 and I am able to run ethernet unit test after 16 layer model. I can also run 16 layer model back to back. It does not hang anymore.
So the solution is to upgrade the boards to latest tt-flash which carries erisc 6.9.

closing, resolved.


⚠ Bofrost.lu has degraded performance

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

HTTP code: 200
Response time: 1622 ms

Resolved: Bofrost.lu performance has improved in 5ce37a7 after 13 minutes.


Dependencies

Hello,
I'm trying to add a dependency like this on my spark-notebook :
:dp + com.cloudera.sparkts % sparkts % 0.2.0
But it is not working. I have the following error :
res12: scala.xml.Elem = failed to load 'com.cloudera.sparkts:sparkts:jar:0.2.0 (runtime)' from ["Maven2 local (file:/root/.m2/repository, releases+snapshots) without authentication", "maven-central (http://repo1.maven.org/maven2/, releases+snapshots) without authentication", "spark-packages (http://dl.bintray.com/spark-packages/maven/, releases+snapshots) without authentication", "oss-sonatype (https://oss.sonatype.org/content/repositories/releases/, releases+snapshots) without authentication"] into /tmp/spark-notebook/aether/94652615-857f-4e43-870e-ec6c92e26823
failed to load 'com.cloudera.sparkts:sparkts:jar:0.2.0 (runtime)' from ["Maven2 local (file:/root/.m2/repository, releases+snapshots) without authentication", "maven-central (http://repo1.maven.org/maven2/, releases+snapshots) without authentication", "spark-packages (http://dl.bintray.com/spark-packages/maven/, releases+snapshots) without authentication", "oss-sonatype (https://oss.sonatype.org/content/repositories/releases/, releases+snapshots) without authentication"] into /tmp/spark-notebook/aether/94652615-857f-4e43-870e-ec6c92e26823
It sounds like sbt could not resolve the spark-ts artifact.
Do you have any idea ?
Thanks

Hi @FBdata, are you including the cloudera repo in your repositories?  This is how you'd do it in Maven:
<repositories>
    <repository>
      <id>cloudera-repos</id>
      <name>Cloudera Repos</name>
      <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
    </repository>
</repositories>


Set-PnPMicrosoft365Group : Deserialization of reference types without parameterless constructor is not supported

I use pnp.powershell in Azure Automation runbooks.
pnp.powershell - version 1.4.0

$servicePrincipalConnection=Get-AutomationConnection -Name $connectionName
$siteToOpen = "https://<my-company>-admin.sharepoint.com"
$adminCtx = Connect-PnPOnline -Url $siteToOpen `
                -ClientId $servicePrincipalConnection.ApplicationId `
                -Tenant $servicePrincipalConnection.TenantId `
                -Thumbprint $servicePrincipalConnection.CertificateThumbprint `
                -ReturnConnection
$TeamTitle = <my team>
$myGroup = Get-PnPMicrosoft365Group -Connection $adminCtx -Identity "$($TeamTitle)" -IncludeSiteUrl
"Group: $($TeamTitle) - with site: $($myGroup.SiteUrl)"
Set-PnPMicrosoft365Group -Identity $myGroup -HideFromAddressLists $true

The Get-PnPMicrosoft365Group succeeds, as I see the output including the site Url.
With the next line I get this error:
Set-PnPMicrosoft365Group : Deserialization of reference types without parameterless constructor is not supported. Type
'<>f__AnonymousType20`2[System.Nullable`1[System.Boolean],System.Nullable`1[System.Boolean]]'
At line:35 char:1
+ Set-PnPMicrosoft365Group -Identity $myGroup -HideFromAddressList ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-PnPMicrosoft365Group], NotSupportedException
    + FullyQualifiedErrorId :
System.NotSupportedException,PnP.PowerShell.Commands.Microsoft365Groups.SetMicrosoft365Group

Is this a bug or am I doing something wrong?

Should I also post this to https://github.com/pnp/powershell/issues ?

The issue is now posted here: https://github.com/pnp/powershell/issues/530

@get-itips Thank you very much for the contribution and sharing this explanation. @prossum Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Check if file is writable before flushing

Which issue(s) this PR fixes

Fixes None
Additional comments

IMO it makes more sense to check if the file is writable before flushing on disk.
Flushing on disk on a non writable file should raise an error.
Agreements

[X] I hereby declare this contribution to be licensed under the Apache License Version 2.0, January 2004.
[X] I hereby agree to grant TOSIT a copyright license to use my contributions.

I added a unit test for that


Missing CFBundleVersion from Info.plist

PromiseKit version: 4.1.5
Xcode version: 8
Carthage version: 0.18.1

As seen here: https://github.com/mxcl/PromiseKit/commit/0918a08be28ff443bd21cf8e70e4c87ee977eb7f#commitcomment-20640590
This commit breaks uploading of the framework to itunes store, as it requires a CFBundleVersion to be set for the framework.

PR please. I cannot fix this this weekend.

Tagged 4.1.6


StrawberryShake. Result deserialization. Inappropriate performance issue on large arrays

Describe the bug
Suppose the request returns a list of objects (each object is pretty easy, like, for instance, has 5 fields - strings, ints, datetimes). And the number of such objects is<PHONE_NUMBER>00. Then it takes about 5 mins to deserialize on 16Gb RAM.
This issue is pretty critical because it makes the client, generated by StrawberryShake, practically unusable on large arrays.

@ademchenko really would love to have you involved in the work on StrawberryShake, we are ramping work up on this. The main work can be tracked here:
https://github.com/ChilliCream/hotchocolate/pull/2708
I think it will take another two weeks to put the pieces together and start with previews. If you want to get involved in the decision-making process please get in touch and we will include you in the design meetings.

@michaelstaib is there an architectural document or road map or something like this to have a look?
After a while of using StrawberryShake my main concern is the "rigidity" of generated stuff. I mean we have pretty memory-loaded items returned by graphql server and need to use the output fields very carefully. So, we optimize everywhere - if some use case needs just two of ten output fields we have to use a query with those exact two fields. Since we have a wealth number of different scenarios we have to generate lots of different versions of each request. Thus, we would actually need some natural way of customizing response objects (like IWith interfaces or something like this).

Let's do a zoom meeting this or next week. Would love to understand your use-case better.
At the moment we are tracking the redesign in a private repo... we are still researching some aspects. I think we cover now much more cases and allow an easy tie-in with System.Rx, but would love to get your perspective on things.

Is this still an issue with version 11.2?l
I'm closing this for now, feel free to re-open.

looks like this kind of got closed because of lack of activity, but i can confirm that there is a serious problem with version 12.7 of strawberry shake that means it can't be used for fetching larger datasets.
i finally got the project i'm working on to the stage that i was ready to throw some real world data at it and i immediately noticed that the memory was way way higher that i was expecting it to be. after running a memory profiler i could see that all of the memory was being consumed by dictionaries containing strawberry shake EntityIds.
what i did after that was take the GraphQL .NET client, use the models generated by strawberry shake with it and all of the memory issues went away. It was also significantly faster. I have a lot of RAM on my computer so the GC never kicked in, but if I were to stick this on a modest size box in the cloud one thread would be constantly consumed in the GC, so that would kill the performance even more. For comparison (and as I say the GC was never running due to RAM still being available) after I'd finished my run that processed around 5 GB of data the process had allocated over 20GB of RAM. when i reran the same run with the GraphQL .NET client it stayed under 2GB for the entire run.
the data I was fetching using the client was between 10k - 100k rows of a narrow table, so not a silly amount of data.
the problem that you have is the caching infrastructure. the only solution i can see is to either remove it completely from the generated code, or at the least to stick a flag in the runtime config to do the same.
i'm more than happy to give you a demo of the issue, am in slack.

@brian-tygotech  Thanks for the feedback. Can you copy paste this into a new issue?
You can btw deactive the whole caching stuff if you'd like:
{
  "schema": "schema.graphql",
  "documents": "**/*.graphql",
  "extensions": {
    "strawberryShake": {
      "name": "ConferenceClient",
      "url": "https://workshop.chillicream.com/graphql/",
      "dependencyInjection": true,
      "strictSchemaValidation": true,
      "hashAlgorithm": "md5",
      "useSingleFile": true,
      "requestStrategy": "Default",
      "outputDirectoryName": "Generated",
      "noStore": true, //<----------
      "emitGeneratedCode": true,
      "razorComponents": false,
      "records": {
        "inputs": false,
        "entities": false
      },
      "transportProfiles": [
        {
          "default": "Http",
          "subscription": "WebSocket"
        }
      ]
    }
  }
}

@PascalSenn thanks i've reverted back to strawberry shake with noStore: true and the memory consumption is back to normal levels. it requires a little bit more memory than my GraphQL.NET hybrid, but no cause for concern. perf is also similar.
i think the main issue that i had was when i looked at the documentation there was nothing that mentioned this flag in the caching section https://chillicream.com/docs/strawberryshake/caching
do you still want me to create a new issue?

We designed StrawberryShake for UI components first. In UI components you would use paging and work with a reactive store. But we allow you to opt-out of this with the noStore option. The only issue is maybe missing documentation regarding server to server.
If you want you can create a PR for the caching docs and add a note there.


[ADP-2565] WIP Table SQL

🚧 This pull request

implements a domain-specific language (DSL) for SQLite queries, and
prototypes a Store for UTxOHistory in order to exercise the DSL and see whether it is fit for purpose.

Issue number
ADP-2565

Is this still relevant?


Datepicker popup onFocus: cannot read property 0 of undefined

Version 0.14.3
Using datepicker-template-url in combination with day.html from angular-ui/bootstrap templates.

@ginna-baker, please do not use the issues forum for support-related requests.  Rather, please follow the instructions here as support-related questions are best served by and for the community.  The issues forum is reserved for bugs.  Thanks.
That said, please extend us the courtesy of a minimal, reproducible plunker (as documented) so we can investigate.  It's difficult, if not impossible, to diagnose problems with no information.  Thanks.

@icfantv I experienced the same bug and made a plnkr here

@dimbslmh at first glance it appears you're trying to focus an element that's not yet in the DOM.

@icfantv Yeah, my bad. After some more testing, it seems this error occurred because I was using $provide.decorator to override the template. And I found out that when using datepicker-template-url, the DatepickerPopup does not get focus the first time. At least my console is error free now. I updated my plnkr to show the on open focus "bug" using the datepicker-template-url. Thanks

on-open-focus = false works for me


IllegalStateException when binding json to record from non ballerina thread via FromJsonWithType

Description:
Getting java.lang.IllegalStateException: strand is not accessible from non-strand-worker threads[1] exception when trying to bind a json payload to a record. This is done in the HTTP transport thread and not in the ballerina thread.
Stdlibs are in the process of introducing data binding for may modules, and this is a major requirement to bind data and start ballerina thread. Earlier we used CloneWithType which worked fine.
What is the solution for this or an alternative?
Update: If you give same record as an array, it works fine. :) Looks like a bug
[1] https://github.com/ballerina-platform/ballerina-lang/blob/master/langlib/lang.value/src/main/java/org/ballerinalang/langlib/value/FromJsonWithType.java#L208
Steps to reproduce:
Affected Versions:
2201.0.1
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Sample code
type Person record {|
    string name;
    int age;
|};

resource function post body6(http:Caller caller, http:Request req, @http:Payload Person person) returns error? {
    string name = [person.name](http://person.name/);
    int age = person.age;
    check caller->respond({ Key: name, Age: age });
}

resource function post body8(http:Caller caller, @http:Payload Person[] persons) returns error? {
    var jsonPayload = persons.cloneWithType(json);
    if (jsonPayload is json) {
        check caller->respond(jsonPayload);
    } else {
        check caller->respond(jsonPayload.message());
    }
}

This happens because the implementation calls the fromJsonWithType() before starting a scheduler thread while passing a typedesc.
In cloneWithType usage, we use the CloneWithType.convert() API without passing the typedesc value.
To solve this,

We can check whether the strand is available inside fromJsonWithType(), and use the non-typedesc method to create the record.
Have a new API in FromJsonWithType that does not require a typedesc value. Similar to, https://github.com/ballerina-platform/ballerina-lang/blob/ec9174e926e0f2a62ecd3e7cb83bffb12032ef98/langlib/lang.value/src/main/java/org/ballerinalang/langlib/value/CloneWithType.java#L80


Fix for Konflux error: invalid input params for task deprecated-image-check

Fix for Konflux error:
[User error] Validation failed for pipelinerun lightspeed-rag-content-on-pull-request-7v8q7 with error invalid
input params for task deprecated-image-check: missing values for these params which have no default
values: [IMAGE_URL IMAGE_DIGEST]

@xrajesh could you lgtm this? I'm hoping it'll unblock https://github.com/openshift/lightspeed-rag-content/pull/15

/lgtm


Failed at adding a new vein, with added requirement of a dimension

Hi so i am trying to add in veins to incorporate materials from Divine RPG, and i keep running into an error.

below is my code that is causing that error. I got it to work once.
event.recipes.createoreexcavation.vein('{"text": "Eden Vein"}', 'divinerpg:eden_ore').placement(1024, 128, 6894685).biomeWhitelist('forge:is_eden').id("kubejs:eden_vein");
event.recipes.createoreexcavation.drilling('divinerpg:eden_fragments', 'kubejs:eden_vein', 1200).priority(1).id("kubejs:eden_vein");

this is my 1st time using kubejs, but i followed your examples and cant seem to make it work. Any help would be appreciated.

Fixed by changing the drilling id to something different than the vein id.


no response

i can't get it to work. i have set it up on fly.io, got all the api keys, upgraded eleven labs, everything is set in .env. when i call it, it establishes a websocket connection, it gets an incoming request from twilio, it response with the connection endpoint, it opens a new websocket connection, and then nothing happens, or at least i am not getting any reponses. tried everything with chatgpt but i am out of ideas on what the issue could be. any pointers?

@Granato25 is there any chance you could post what gets logged out in your console? Do you know if it's failing at Deepgram, GPT, or 11labs?

that is all i am getting on fly.io after chatgpt added logging to app.js. I (chatgpt) also added logging to the files in the service folder but without results. I will try to add more logging to these files.
(i have replaced some characters with #)
log:
2024-03-26T20:51:13.592 app[683d5d2b126###] iad [info] Incoming POST request to /incoming
2024-03-26T20:51:13.593 app[683d5d2b126###] iad [info] Headers: {"content-type":"application/x-www-form-urlencoded; charset=UTF-8","i-twilio-idempotency-token":"de19ee3b-f366-4b8d-93c6-a8514945####","x-twilio-signature":"nvRyytMx8MDQ31nnhTqDKC####=","accept":"/","content-length":"828","x-home-region":"us1","host":"####gpt.fly.dev","user-agent":"TwilioProxy/1.1","x-request-start":"t=1711486273588###","fly-client-ip":"3.95.242.###","x-forwarded-for":"3.95.242.###, 66.241.124.###","fly-forwarded-proto":"https","x-forwarded-proto":"https","fly-forwarded-ssl":"on","x-forwarded-ssl":"on","fly-forwarded-port":"443","x-forwarded-port":"443","fly-region":"iad","fly-request-id":"01HSY8G21M#DHD7YR9V0FME####-iad","via":"1.1 fly.io","fly-traceparent":"00-cf644ae55fc399c068b7d6#d45efc0450-8cab345bf609####-00","fly-tracestate":""}
2024-03-26T20:51:13.593 app[683d5d2b126###] iad [info] Body: {"Called":"+17087878######","ToState":"IL","CallerCountry":"DE","Direction":"inbound","CallerState":"","ToZip":"","CallSid":"CAef6e3adef00#8f80c62c4d0dc0389####","To":"+1708787###","CallerZip":"","ToCountry":"US","StirVerstat":"TN-Validation-Passed-C","CallToken":"%7B%22parentCallInfoToken%22%3A%22eyJhbGciOiJFUzI1####.eyJjYWxsU2lkIjoiQ0FlZjZlM2FkZ#WYwMDhmODBjNjJ####ZGMwMzg5Y#mQ1OCIsImZyb20iOiIrNDkxNzcyNjQ4MTE3IiwidG8iOiIrMTcwODc4Nzg1NzY#iLCJpYXQ#iOiIxNzExNDg2MjczIn0.CGlUadRYs6u19XQRuaLALYmdXg7O27V4SWOhn-3tbmX5SXB32lLLj3g_tMTCOldUYm###wQX5wc4Ttd2lUw%22%2C%22identityHeaderTokens%22%3A%5B%5D%7D","CalledZip":"","ApiVersion":"2010-04-01","CalledCity":"","CallStatus":"ringing","From":"+4917726####","AccountSid":"ACceb97f7d3bf3b919e8b19be728####","CalledCountry":"US","CallerCity":"","ToCity":"","FromCountry":"DE","Caller":"+49177264###","FromCity":"","CalledState":"IL","FromZip":"","FromState":""}
2024-03-26T20:51:13.593 app[683d5d2b126####] iad [info] Response Sent for Incoming Request:
2024-03-26T20:51:13.648 app[683d5d2b126###] iad [info] New WebSocket connection established.
2024-03-26T20:51:13.648 app[683d5d2b126###] iad [info] Connection from ::ffff:172.16.5.###

@Granato25 Is there any chance the SERVER in your .env file is set incorrectly? Or perhaps does it include https://? It should be something like my-server-url.fly.dev.

Thanks, I started over and have it working now. I ran into issues customizing it. I removed the example functions and I had to remove everything related to functions to make it work. It would be great if we could also setup language somewhere, so deepgram and eleven labs give better results. Right now it talks to me but is changing accents and it also doesn't understand my inputs. I will play with it more next week.

@cweems Hey Dear! can you plzz tell how i can run this code i have follow instructions on Readme but unable to conversation with gpt on a phone call can you help me ??


Replacing colon-delimited Instance.id with typed InstanceId object

See #1376 for a more detailed description, but this removes the colon-delimited InstancePlan.id and replaces that with an InstanceId class. We no longer parse the colon-delimited id to pull things out of it. Key changes are seen in the following classes:

PackingPlan.InstancePlan
InstanceId
heron_executor.py
proto PackingPlans.InstancePlan
PackingUtils
Fixes #1376.

Very useful change, improves quality of the code 👍

Nice! 👍