Improve error message when default signing key is not set

Fixes Issue: https://github.com/notaryproject/notation/issues/410
Test output
➜  notation git:(fix) ✗ ./notation key ls
NAME   KEY PATH   CERTIFICATE PATH   ID   PLUGIN NAME
➜  notation git:(fix) ✗ ./notation sign --plain-http $IMAGE
Error: default signing key not set. Please set default singing key or specify a key name

Codecov Report

Merging #432 (51f7740) into main (ed5beb8) will decrease coverage by 0.13%.
The diff coverage is 0.00%.

:exclamation: Current head 51f7740 differs from pull request most recent head d86b039. Consider uploading reports for the commit d86b039 to get more accurate results

@@            Coverage Diff             @@
##             main     #432      +/-   ##
==========================================
- Coverage   32.95%   32.82%   -0.14%
==========================================
  Files          25       25
  Lines        1232     1237       +5
==========================================
  Hits          406      406
- Misses        814      819       +5
  Partials       12       12

Impacted Files
Coverage Δ

pkg/configutil/util.go
0.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


setting NewRegistry with publisher in NewListAndHandler

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Harter, Nicholas (Contractor) seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Codecov Report

Merging #98 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #98      +/-   ##
==========================================
- Coverage   84.53%   84.51%   -0.03%
==========================================
  Files          79       79
  Lines        3525     3525
==========================================
- Hits         2980     2979       -1
- Misses        454      455       +1
  Partials       91       91

Impacted Files
Coverage Δ

webhook/factory.go
75.6% <100%> (ø)
:arrow_up:

webhook/handler.go
10.76% <0%> (-1.54%)
:arrow_down:

Continue to review full report at Codecov.

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


Calculation for estimated storage is incorrect

Sia-UI estimates the storage capacity based on the allowance:

The calculation is here:
https://github.com/NebulousLabs/Sia-UI/blob/e6be3f69901a8e548be42ab83642e440c2277d33/plugins/Files/js/sagas/files.js#L50-L52
This calculation is essentially:
[allowance] / [storage_per_tb_per_month]

This is incorrect as it neglects upload cost and contract fees. It also misuses the storage price as the price per TB per contract period when it is actually the price per TB per month. The actual calculation requires Sia-UI to solve for tb_count in this equation:
allowance = (storage_per_tb_per_month * tb_count * months_per_contract) +
  (upload_per_tb * tb_count) +
  (contract_fees)

don't know how this slipped through for so many months, this is an easy fix. @eddiewang

Thanks for the equation @mtlynch - i went ahead and implemented that into PR #800. Feel free to give it a glance to see if it makes sense. From my testing, the numbers look right.


Merge pull request #319 from paulbellamy/dev

Cherry-picked from the dev branch. I noticed that these changes were made for the last release, but was merged into dev after we merged dev into main. We didn't use the dev branch for this release and it has a ton of conflicts with main so that needs to be resolved as well.

Preview is available here:http://soroban-docs-pr359.previews.kube001.services.stellar-ops.com/

Preview is available here:http://soroban-docs-pr359.previews.kube001.services.stellar-ops.com/


TypeError: '>' not supported between instances of 'NoneType' and 'int'

TypeError: '>' not supported between instances of 'NoneType' and 'int'

How to reproduce the error

Maybe a problem with your custom model, and make sure you're running the latest colab and the latest A1111 repo


A customer support agent should be able to set auto respond message when a user responds to a closed conversation

When a user replies to a closed conversation they should receive a custom auto message. This is to set expectations that the agent might not respond immediately. The customer support agent should be able to toggle this feature and set the default message that gets sent.

mind if I try out this one?

hey @jalford14! i think we need to define this a bit more clearly first -- I'd rather break this down into a few tickets before someone jumps in to tackle it.
for example, some questions we need to answer:

what problem are we trying to solve here exactly? is it only the case where a user replies to a conversation that has already been closed, or the case where a user replies but the agent is no longer available? (these aren't necessarily the same thing, and we shouldn't conflate both cases)
where do we store the "custom auto message"? (i'm guessing on the widget_settings table, but maybe i'm wrong?)
how does this automated message present itself? do we display it in the chat window as from the agent, or from a bot/company user?

(not sure if you have any thoughts on these points, but just want to make sure they're clarified a bit more!)
anyway, if you're looking for more tickets to work on, feel free to ping me on slack and we can find a good one for you 😄


Blogpost for Flow Framework

Describe the blog post your would like to write
As part of 2.13 we are releasing a new plugin flow framework. This blog post would help users understand how they can do complex ML setup of OpenSearch using one click using flow framework.
What is the title of the blog post?
Configurable Automation for OpenSearch ML Use Cases
Who are the authors?
@owaiskazi19 @amitgalitz
What is the proposed posting date?
4/5

Closing this issue


Remove version: bornova.numara version 3.16.5

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://github.com/bornova/numara-calculator/releases/download/v3.16.5/Numara-3.16.5.exe
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 910)


Hive unit requires cleanup

Hive unit fails if cleanup wasn't performed after previous start

The problem was occured by compatibility problem. Earlie, hive2-unit was not tested with hive 0.13.1. At now I make changed to support it.


Coverity 1373300: Use of untrusted scalar value

[approve ci]

I'll send another PR include adding same check in indexof


Bug in strict mode

When I run minification on my javascript, Sortable plugin triggers an error that prevents minification:
/* Minification failed. Returning unminified contents.
(6715,9-17): run-time error JS1300: Strict-mode does not allow assignment to undefined variables: Sortable
*/

on the following line in the beginning of plugin:
Sortable = factory();  // export for Meteor.js

you can fix this bug by the following code:
window.Sortable = factory(); // export for Meteor.js

@dandv normally?

That change worked for me, allowing bundle minification.

Dear all! Meteor is moved to the separate repository. If this issue is still actual, please create it there once again.
For your info: this project needs a maintainer.


Update snapshot-isolation-in-sql-server.md

Added references to SQL docs
Summary
Describe your changes here.
Fixes #Issue_Number (if available)

I can't see a preview, to know if the rel links resolve, or if full http URLs are needed.

@douglaslMS  it's done, thanks

@pmasl These types of links don't work in our preview anyway. I will accept your changes and check the page after it's republished. If by chance I didn't get the syntax quite right, I'll (1) fix it and (2) learn a lesson!

You need to remove the .md in those urls.

@mairaw I overlooked that. I will fix this.

Thank you both!

@mairaw I have fixed the link format in a new PR 8441. Reverting stuff scares me too much, so I used a new PR.


Backend returns a 500 response at /register

@geromegrignon could you have a look at this?
I'll be waiting for a fix here since I'm not sure what to expect in the UI.
https://github.com/gothinkster/realworld-e2e-tests/blob/8b8ef2ee20bd532679c147c084554e00bd6a3a06/cypress/integration/signUpForm_spec.js#L65

I'll fix it next week: currently, I'm removing whitespaces before checking if the email is provided.

Fixed by https://github.com/gothinkster/node-express-prisma-v1-official-app/pull/52


Jax GPU is slower than in CPU

Description
Hi,
I am trying to run Jax on an Nvidia GPU on a Ubuntu 20.04 computer. I succeeded to install it, but when I run my program, it is slower than with CPU.
I tried to put the code from https://jax.readthedocs.io/en/latest/gpu_performance_tips.html#xla-performance-flags and https://jax.readthedocs.io/en/latest/gpu_performance_tips.html#nccl-flags, at the beginning of my python file, but there is no change of the performances.
Thanks in advance for helping me.
What jax/jaxlib version are you using?
jax and jaxlib 0.4.19
Which accelerator(s) are you using?
Nvidia GPU
Additional system info?
Python 3.11, Ubuntu 20.04, Cuda 12.3, cudnn 8.9, driver Cuda 545.23.08
NVIDIA GPU info
No response

Thanks for the report! It will be hard to help without more information. For example, if your script is I/O bound, then the computational backend will not make much difference when it comes to end-to-end execution. Can you put together a minimal reproducible example?
Also please take a look at FAQ: Benchmarking JAX code for general tips on getting meaningful benchmarks of JAX code.

For a reproductible example, I got one optimization problem : you need to install the package noloadj (pip install noloadj) and run the 'optimize_mono' file  (in the zip folder attached to this message). With CPU optimization converges in 45 secunds, and with GPU in 55 secunds.
I runned that code one year ago with an old jax version (0.1.67) and at
that time, optimization converges in 25 secunds with GPU, which was coherent.
reproductible_example.zip

Thanks - if you can provide a self-contained example without the need to download and extract a zip file, that would be helpful.

If you want a simpler example, you can test this :
`import jax.numpy as np
from noloadj.optimization.optimProblem import OptimProblem,Spec
def StyblinskiTang(x):
fobj=0.5*(np.sum(x4)-16*np.sum(x2)+5*np.sum(x))/len(x)
return locals().items()
n=800
x0=[0. for i in range(n)]
xbounds=[[-5.,5.] for i in range(n)]
spec=Spec(variables={'x':x0},bounds={'x':xbounds},objectives={'fobj':[0.,1.]})
optim=OptimProblem(StyblinskiTang,spec)
from datetime import datetime
start=datetime.today()
optim.run()
print(datetime.today()-start)`
Optimization converges in 13 secunds in CPU, and in 15 secunds in GPU.
noloadj is a solving-optimization problem library I contribued to develop.
I just like to know if you have same performances than me, to understand if it is a problem of installation or a problem of parallelization of my code.

For the code example above, I also tested with a jacobian computation (jacfwd) instead of an optimization, and in that case, GPU is faster than CPU, which is coherent.

Thanks - I'm not familiar with the noloadj package, and it look like it contains a pretty significant amount of code. I'm not sure offhand why it would execute faster on CPU than GPU; figuring out why would involve doing some profiling to look for the most costly operations on each device. There's some information on that here if you're interested in digging in: https://jax.readthedocs.io/en/latest/profiling.html
Best of luck!

It looks like there's not enough information to answer this here – I'm going to close the issue because there's been no activity in quite a while. Please feel free to open another issue if you have further questions. Thanks!


Invalid transaction nonce: StarkGate: STRK Token

Rexecuting with starknet-replay transaction 0x20442a731c584181b72d1aed7b2e92309935ab936589cd6ef5c8a04d7e9534a from block 648461 on mainnet fails with:
Error: Invalid transaction nonce of contract at:
Address: ContractAddress(PatriciaKey(StarkFelt("0x0515000ac316382150bb8dd94d0af0e361d80401757487bc3e33599aad131a19"))).
Account nonce: Nonce(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000000"));
got: Nonce(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000001")).

If executed from tests rather tan from binary, it panics with:
called `Result::unwrap()` on an `Err` value:
TransactionPreValidationError(InvalidNonce {
    address: ContractAddress(PatriciaKey(StarkFelt("0x0515000ac316382150bb8dd94d0af0e361d80401757487bc3e33599aad131a19"))),
    account_nonce: Nonce(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000002")),
    incoming_tx_nonce: Nonce(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000001")) })
note: run with `RUST_BACKTRACE=1`

Fixed in Replay crate


Update main.cpp

The tag should be fast_pool_allocator_tag.
ref: http://www.boost.org/doc/libs/1_60_0/libs/pool/doc/html/header/boost/pool/pool_alloc_hpp.html

Thanks for pull request!
I'll investigate the fast_pool_allocator to remember why I have not used it. Probably that was by mistake and I'll merge your request, but I need to be sure.

Great thanks for the fix! I've merged your change + fixed a few more unpleasant issues in that recipe here: c7c7f9
Thanks again!


Add "save" to AssociationActionOptions options

Versions

sequelize: ^5.21.2
sequelize-typescript: ^1.0.0
typescript: ^3.7.2

I'm submitting a ...
[x] bug report
[  ] feature request
Related
#244
Behavior
$set doesn't accept the save option described in sequelize documentation (https://sequelize.org/v5/class/lib/associations/belongs-to.js~BelongsTo.html#instance-method-set). The following code produces compilation error:
ModelA.$set('modelB', instanceOfB, { save: false })

It works with // @ts-ignore so it would be nice to add the save property to the AssociationActionOptions interface

Hey @ialexi-bl , thanks for reporting!


Bump module Go version to 1.18

Our CI workflows and docker builds already use 1.18 but our go.mod was left with 1.17. This bumps it to 1.18.

@mumoshu DCO. I often forget too.


Fix static links on the site to avoid page reloads

Is there any way to just not have # in every URL?

It's possible see html5mode here.
However, that's sort of outside the scope of this PR; this just updates the links on the static docs so that you don't get a full page reload when you click on them.


Shapehelper reorg: shape helper for all ops (but the ones with optional and sequences)

Added many remaining ONNX ops that were using the UNDEFINED shape helper. Now only a few ops are remaining without it, namely ops that use Opt or Seq types. These need some special handling that is not currently avail within the infrastructure.

Jenkins Linux ppc64le Build #8374 [push] Shapehelper reorg: shape... started at 11:30

Jenkins Linux amd64 Build #9310 [push] Shapehelper reorg: shape... started at 10:26

Jenkins Linux s390x Build #9328 [push] Shapehelper reorg: shape... started at 11:26

Jenkins Linux amd64 Build #9310 [push] Shapehelper reorg: shape... passed after 1 hr 6 min

Jenkins Linux s390x Build #9328 [push] Shapehelper reorg: shape... passed after 1 hr 24 min

Jenkins Linux ppc64le Build #8374 [push] Shapehelper reorg: shape... passed after 1 hr 47 min


Problem when install on Win7 64bit

My OS is Win7 64bit.
when I run "go get github.com/jpoirier/visa"  it show some errors:
# github.com/jpoirier/visa
src\github.com\jpoirier\visa\defs.go:5:18: fatal error: visa.h: No such file or directory compilation terminated.

Unfortunately building the package on Windows requires you to copy and
paste the visa.h header file. You'll need find the visa.h file (it will be
somewhere in the Visa library installation folder) and copy it to the visa
package's folder (YOUR_GOPATH/github.com/jpoirier/visa), alternatively you
can set the header file path in visa.go, line 44.
To download the package without building it use:
go get -d github.com/jpoirier/visa

To build the package after downloading it, and assuming you've copied the
header file to the visa package's folder:
go build github.com/jpoirier/visa

Apologies for the inconvenience.
On Wed, Aug 10, 2016 at 3:15 AM, leeooox<EMAIL_ADDRESS>wrote:

My OS is Win7 64bit.
when I run "go get github.com/jpoirier/visa" it show some errors:
github.com/jpoirier/visa
src\github.com\jpoirier\visa\defs.go:5:18: fatal error: visa.h: No such
file or directory compilation terminated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jpoirier/visa/issues/1, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAd7bpyMlHfCHKNur2POO3AYeTV_4sfvks5qeYi8gaJpZM4Jg5JR
.

I followed the instruction:

go get -d github.com/jpoirier/visa
"visa.h" and "visatype.h" to the visa package folder
go build github.com/jpoirier/visa
but still found errors as below, which version of MinGW should I use?

could not determine kind of name for C.VI_ASRL_WIRE_232_AUTO
could not determine kind of name for C.VI_ASRL_WIRE_232_DCE
could not determine kind of name for C.VI_ASRL_WIRE_232_DTE
could not determine kind of name for C.VI_ASRL_WIRE_485_2_AUTO
could not determine kind of name for C.VI_ASRL_WIRE_485_2_DTR_CT
could not determine kind of name for C.VI_ASRL_WIRE_485_2_DTR_EC
could not determine kind of name for C.VI_ASRL_WIRE_485_4
could not determine kind of name for C.VI_ATTR_ASRL_ALLOW_TRANSM
could not determine kind of name for C.VI_ATTR_ASRL_BREAK_LEN
could not determine kind of name for C.VI_ATTR_ASRL_BREAK_STATE
could not determine kind of name for C.VI_ATTR_ASRL_CONNECTED
could not determine kind of name for C.VI_ATTR_ASRL_DISCARD_NULL
could not determine kind of name for C.VI_ATTR_ASRL_WIRE_MODE
could not determine kind of name for C.VI_ATTR_SYNC_MXI_ALLOW_EN
could not determine kind of name for C.VI_ATTR_VXI_DEV_CMD_TYPE
could not determine kind of name for C.VI_ATTR_VXI_DEV_CMD_VALUE
could not determine kind of name for C.VI_ATTR_VXI_TRIG_DIR
could not determine kind of name for C.VI_ATTR_VXI_TRIG_LINES_EN
could not determine kind of name for C.VI_DEREF_ADDR_BYTE_SWAP
could not determine kind of name for C.VI_ERROR_LINE_NRESERVED
could not determine kind of name for C.VI_ERROR_MACHINE_NAVAIL
could not determine kind of name for C.VI_ERROR_QUEUE_OVERFLOW
could not determine kind of name for C.VI_EVENT_ASRL_BREAK
could not determine kind of name for C.VI_EVENT_ASRL_CHAR
could not determine kind of name for C.VI_EVENT_ASRL_CTS
could not determine kind of name for C.VI_EVENT_ASRL_DCD
could not determine kind of name for C.VI_EVENT_ASRL_DSR
could not determine kind of name for C.VI_EVENT_ASRL_RI
could not determine kind of name for C.VI_EVENT_ASRL_TERMCHAR
could not determine kind of name for C.VI_EVENT_VXI_DEV_CMD
could not determine kind of name for C.VI_INTF_FIREWIRE
could not determine kind of name for C.VI_INTF_RIO
could not determine kind of name for C.VI_PXI_LBUS_NONE
could not determine kind of name for C.VI_PXI_LBUS_UNKNOWN
could not determine kind of name for C.VI_VXI_DEV_CMD_TYPE_16
could not determine kind of name for C.VI_VXI_DEV_CMD_TYPE_32
could not determine kind of name for C.VI_VXI_RESP_NONE
could not determine kind of name for C.VI_VXI_RESP_PROT_ERROR

Those are VISA definitions and they should be in visa.h (not sure why Go is
complaining) but I'd also forgotten about visa.h including visatype.h and
vpptype.h so you'll need to set the include path in visa.go instead,
e.g. change at line number 44 change:
#cgo CFLAGS: -I.

to the path where the header files are, use forward slashes for folder
separators and backslashes for spaces
#cgo CFLAGS: -Ic:/Program\ Files/NI/header_files

or use quotes:
#cgo CFLAGS: -I"c:/Program Files/NI/header_files"

It has been a while since I've compiled the package on Windows and I'll do
a compile on my side tomorrow (Texas time)
On Wed, Aug 10, 2016 at 10:12 PM, leeooox<EMAIL_ADDRESS>wrote:

I followed the instruction:

go get -d github.com/jpoirier/visa
"visa.h" and "visatype.h" to the visa package folder
go build github.com/jpoirier/visa
but still found errors as below, which version of MinGW should I use?

could not determine kind of name for C.VI_ASRL_WIRE_232_AUTO
could not determine kind of name for C.VI_ASRL_WIRE_232_DCE
could not determine kind of name for C.VI_ASRL_WIRE_232_DTE
could not determine kind of name for C.VI_ASRL_WIRE_485_2_AUTO
could not determine kind of name for C.VI_ASRL_WIRE_485_2_DTR_CT
could not determine kind of name for C.VI_ASRL_WIRE_485_2_DTR_EC
could not determine kind of name for C.VI_ASRL_WIRE_485_4
could not determine kind of name for C.VI_ATTR_ASRL_ALLOW_TRANSM
could not determine kind of name for C.VI_ATTR_ASRL_BREAK_LEN
could not determine kind of name for C.VI_ATTR_ASRL_BREAK_STATE
could not determine kind of name for C.VI_ATTR_ASRL_CONNECTED
could not determine kind of name for C.VI_ATTR_ASRL_DISCARD_NULL
could not determine kind of name for C.VI_ATTR_ASRL_WIRE_MODE
could not determine kind of name for C.VI_ATTR_SYNC_MXI_ALLOW_EN
could not determine kind of name for C.VI_ATTR_VXI_DEV_CMD_TYPE
could not determine kind of name for C.VI_ATTR_VXI_DEV_CMD_VALUE
could not determine kind of name for C.VI_ATTR_VXI_TRIG_DIR
could not determine kind of name for C.VI_ATTR_VXI_TRIG_LINES_EN
could not determine kind of name for C.VI_DEREF_ADDR_BYTE_SWAP
could not determine kind of name for C.VI_ERROR_LINE_NRESERVED
could not determine kind of name for C.VI_ERROR_MACHINE_NAVAIL
could not determine kind of name for C.VI_ERROR_QUEUE_OVERFLOW
could not determine kind of name for C.VI_EVENT_ASRL_BREAK
could not determine kind of name for C.VI_EVENT_ASRL_CHAR
could not determine kind of name for C.VI_EVENT_ASRL_CTS
could not determine kind of name for C.VI_EVENT_ASRL_DCD
could not determine kind of name for C.VI_EVENT_ASRL_DSR
could not determine kind of name for C.VI_EVENT_ASRL_RI
could not determine kind of name for C.VI_EVENT_ASRL_TERMCHAR
could not determine kind of name for C.VI_EVENT_VXI_DEV_CMD
could not determine kind of name for C.VI_INTF_FIREWIRE
could not determine kind of name for C.VI_INTF_RIO
could not determine kind of name for C.VI_PXI_LBUS_NONE
could not determine kind of name for C.VI_PXI_LBUS_UNKNOWN
could not determine kind of name for C.VI_VXI_DEV_CMD_TYPE_16
could not determine kind of name for C.VI_VXI_DEV_CMD_TYPE_32
could not determine kind of name for C.VI_VXI_RESP_NONE
could not determine kind of name for C.VI_VXI_RESP_PROT_ERROR
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jpoirier/visa/issues/1#issuecomment-239062829, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAd7bmU7V3BTVkkRPGf-kREGa7_k_Pzvks5qepMFgaJpZM4Jg5JR
.

I found that visa.h have many different distributions, some have VI_ASRL_WIRE_232_AUTO, but some not.
eg. this code https://github.com/rbmj/wpilib/blob/master/visa/visa.h have VI_ASRL_WIRE_232_AUTO, but it lack of other defines like VI_ATTR_PXI_ALLOW_WRITE_COMBINE.
The visa.h on my PC is aslo different from the above link.
Here is my work around:
Remove the in defs.go and add lib link, the build is successful.
D:/clibs/visa/lib is visa64.lib folder
D:/clibs/visa/include is header files folder
#cgo amd64 linux LDFLAGS: -LD:/clibs/visa/lib -lvisa64
#cgo darwin LDFLAGS: -framework VISA
#cgo windows LDFLAGS: -LD:/clibs/visa/lib -lvisa64
#cgo 386 linux LDFLAGS: -lvisa
#cgo 386 darwin LDFLAGS: -framework VISA
#cgo 386 windows LDFLAGS: -LD:/clibs/visa/lib -lvisa64
#cgo CFLAGS: -ID:/clibs/visa/include
Run the example
When I play with FindRsrc.go, the build is also without errors, but after run, it shows erros as below.
Exception 0xc0000005 0x0 0xffffffffffffffff 0x5c5cc8
PC=0x5c5cc8
signal arrived during external code execution
github.com/jpoirier/visa._Cfunc_viOpenDefaultRM(0xc0820042b4, 0xc000000000)
github.com/jpoirier/visa/_obj/_cgo_gotypes.go:1244 +0x44
github.com/jpoirier/visa.OpenDefaultRM(0x0)
D:/mygo/src/github.com/jpoirier/visa/visa.go:97 +0x45
main.main()
D:/mygo/src/visa_test/FindRsrc.go:35 +0x53
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
c:/go/src/runtime/asm_amd64.s:1998 +0x1
rax     0xc08202ffb0
rbx     0xc08202fe10
rcx     0xc0820042b4
rdi     0xc08202fe10
rsi     0xc08202ffb0
rbp     0x0
rsp     0x22fd88
r8      0xc08201a000
r9      0xc08202fda0
r10     0x5034c0
r11     0x710158
r12     0x10
r13     0x561124
r14     0x3
r15     0x8
rip     0x5c5cc8
rflags  0x10206
cs      0x33
fs      0x53
gs      0x2b

Unfortunately I've not used, nor updated, the package in a couple of years
but I'll work on syncing it with the latest NI Visa library next week, and
pull requests are welcome.
Not sure what's causing the error but what version of Go are you using?
btw, thanks for taking the time to report back the problems you've
encountered!
On Thu, Aug 11, 2016 at 2:29 AM, leeooox<EMAIL_ADDRESS>wrote:

I found that visa.h have many different distributions, some have
VI_ASRL_WIRE_232_AUTO, but some not.
eg. this code https://github.com/rbmj/wpilib/blob/master/visa/visa.h have
VI_ASRL_WIRE_232_AUTO, but it lack of other defines like
VI_ATTR_PXI_ALLOW_WRITE_COMBINE.
The visa.h on my PC is aslo different from the above link.
Here is my work around:
Remove the in defs.go and add lib link, the build is successful.
D:/clibs/visa/lib is visa64.lib folder
D:/clibs/visa/include is header files folder
#cgo amd64 linux LDFLAGS: -LD:/clibs/visa/lib -lvisa64
#cgo darwin LDFLAGS: -framework VISA
#cgo windows LDFLAGS: -LD:/clibs/visa/lib -lvisa64
#cgo 386 linux LDFLAGS: -lvisa
#cgo 386 darwin LDFLAGS: -framework VISA
#cgo 386 windows LDFLAGS: -LD:/clibs/visa/lib -lvisa64
#cgo CFLAGS: -ID:/clibs/visa/include
Run the example
When I play with FindRsrc.go, the build is also without errors, but after
run, it shows erros as below.
Exception 0xc0000005 0x0 0xffffffffffffffff 0x5c5cc8
PC=0x5c5cc8
signal arrived during external code execution
github.com/jpoirier/visa._Cfunc_viOpenDefaultRM(0xc0820042b4,
0xc000000000)
github.com/jpoirier/visa/_obj/_cgo_gotypes.go:1244 +0x44
github.com/jpoirier/visa.OpenDefaultRM(0x0)
D:/mygo/src/github.com/jpoirier/visa/visa.go:97 +0x45
main.main()
D:/mygo/src/visa_test/FindRsrc.go:35 +0x53
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
c:/go/src/runtime/asm_amd64.s:1998 +0x1
rax 0xc08202ffb0
rbx 0xc08202fe10
rcx 0xc0820042b4
rdi 0xc08202fe10
rsi 0xc08202ffb0
rbp 0x0
rsp 0x22fd88
r8 0xc08201a000
r9 0xc08202fda0
r10 0x5034c0
r11 0x710158
r12 0x10
r13 0x561124
r14 0x3
r15 0x8
rip 0x5c5cc8
rflags 0x10206
cs 0x33
fs 0x53
gs 0x2b
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jpoirier/visa/issues/1#issuecomment-239091142, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAd7bm5kFfHMZB3liY4mKQs6XXV3dVpSks5qes9XgaJpZM4Jg5JR
.

I was able to run the FindRsrc example using the following steps:
- installed Go 1.7rc6
- install the latest NI Visa tools, version 16
- install a 64 bit GCC via http://tdm-gcc.tdragon.net/download, add C:\TDM-GCC-64\bin to PATH
- go get -d github.com/jpoirier/visa
- copy visa.h, visatype.h, vpptype.h from C:/Program Files/National Instruments/shared/CompilerSupport/c/Include to %GOPATH%/src/github.com/jpoirier/visa
- copy visa64.dll from C:/Windows/System32 to C:/Temp
- edit visa.go, change: #cgo windows LDFLAGS: -lvisa  to: #cgo windows LDFLAGS: -lvisa -LC:/Temp
- open a Window's shell in %GOPATH%/src/github.com/jpoirier/visa
- run: go build -o %GOPATH%/pkg/windows_amd64/github.com/jpoirier/visa.a visa.go exports.go defs.go
- from the shell window cd to visa/examples and: go run FindRsrc.go

Notes:
- it seems there are permission issues when setting cgo paths to C:/Windows and/or C:/Program Files, etc...
- cgo is looking for visa64.dll and it's cgo include path can't be relative


Review Electron.NET-React-Typescript-MobX?

If you have a moment to look over and give feedback on the Typescript React boilerplate sample I just prepped, any suggestions would be much appreciated (and yes, I realize the un-themed app currently looks terrible, I'm aiming to clean that up in the next commit but wanted to get a functionality check first).
The repo is at https://github.com/yoDon/Electron.NET-React-Typescript-MobX
A couple notes: I'm a big fan of so-called static React architecturs where the frontend and backend are nicely decoupled and just data is exchanged between browser and server after the initial HTML/JS/CSS loads, so this sample uses webpack to build the React Typescript into a static /wwwroot/index.html and /wwwroot/bundle.js.
The React pages in this sample communicate with the C# server code entirely over Electron's Ipc API, so there isn't really any need for the ASPNET Controllers but I left the support for them in place in case others want to make use of them. Eventually I'd prefer to use strongly-typed SignalR communications between client and server rather than the text-based Ipc routes, but with the dotnet core version of SignalR still at alpha1 I wasn't convinced now was the time to bake that in. On the Server side, the Ipc routes are registered via code in /Ipc/Register.cs that's called by Startup.cs. I'm currently using a dictionary to ensure uniqueness of the Ipc route names because I wasn't sure if either Electron or Electron.NET would warn/throw an exception if I accidentally screwed up and registered two handlers with competing text paths on a larger project.
The index.html generated by webpack (npm run build) is currently loaded into the renderer process by putting a window.location redirect in the Home View .cshtml file. That's kind of a weird way to go about it but I wasn't sure how to keep the ASPNET MVC intact while routing Electron to open /index.html rather than /, and as with the Controllers I wanted to make sure that the basics of the boilerplate could support either static React sites or MVC sites built using whatever rendering engines the developer might prefer.
I wasn't able to figure out how to get hot reload working on the C# code. I don't know if that's pilot error on my part or a feature that's not implemented yet. I also didn't try to turn on hot reload of the React code into the browser as a result of a currently open bug elsewhere in the React/Typescript ecosystem.
Super excited to start trying to use this for something real.

Hey @yoDon,
I´m happy to see your involved with ASP.NET Core, React and Electron.NET.
I tried your app, but I can only see a small part from github on the header and a "go to chat..." link.
After I clicked the link, I input my name and went back with "back to home page...". The home page showed me the same from the start again. Is this your expected behavior?

Architecture review
I´m not familiar with React and I only compared it with the default ASP.NET Core React project template. Do you use an other archtitecture? I think a lot of ASP.NET devs are more familiar with the default templates and have a simpler entry. It´s only an idea.
Thank you for your exciting project sample!

Thanks for verifying that it builds and runs and that the instructions were viable enough to make that happen.
There is currently zero CSS applied to any of the elements in this repo, so yeah it looks ugly and the WebView is oddly sized. My hope is to get another commit in later this week to apply some CSS styling to it.
As a general note, since you mention not being familiar with React, I'd highly recommend spending a bit of time getting familiar with it, as it's an incredibly well architected tech that's going to be a huge part of what people are doing on the front end of your Electron.NET tooling.
As to the ASP.NET Core React project template, I've not been able to find a good walkthrough on it (perhaps your googlefu is better than mine), and I'm frankly puzzled as to what ASP.NET would be offering on the SPA frontend side given that modern front end development is a world of npm and webpack whether you want it to be or not (the backend advantages of ASPNET I totally get, which is why I'm so excited about Electron.NET, and I can see how ASPNET SPA can facilitate the backend development for modern frontends).
Totally ok to mark as closed this if you're so inclined

I've updated the boilerplate to have a better looking sample app, improved the Readme, and added a few helper commands to project.json to make it easier to build the app
https://github.com/yoDon/Electron.NET-React-Typescript-MobX

I sync your new update and can see and use it:

I like it! Go for it! :)


Add prompts for additional features ensuring code quality

Add prompts such that the user is required to decide whether he/she require additional features like linter (Jshint/ Eslint), prettier etc.
Target your PR against init

Can I work on this ?

@khyati18 Sure you can go on with it :+1:

Hello Sir, sorry to start late.Can you please elaborate with issue ?

@khyati18 So I would recommend this prompt appearing after the user has chosen his app name.

@anto-christo Please assign me this issue. I would like to work on it.

@ani-sha you can go ahead with this.

@khyati18 due to no response from your end regarding the progress of this issue, it has been assigned to another participant. You are still welcomed to choose another issue and contribute if interested.


DefaultClassDictionary memory usage

In most scenarios cloud.orbit.actors.runtime.DefaultClassDictionary#getHashCodeToClassName is an OOM waiting to happen, let me know if you have any objections to removing it.
Ideally I would like to explore another class finder that simply scans for actor interfaces and implementations at build time instead of runtime @quilombodigital had some ideas on that.. :)

@JoeHegarty ping.

What are the implications of removing this from your point of view?

Actually, removing it will break cloud.orbit.actors.extensions.json.JsonMessageSerializer..


Unbound variable mode

Unbound variable causes the script to fail if invoked without arguments:
$ sqids
sqids: line 1026: mode: unbound variable

To fix this add = on line 986:
    local mode=

or perhaps
    local mode=''

so that the variable then will be bound while still empty and the test expresison on the line 1026 starts to work as intended. (PS: I won't PR for this.)

Thank you for the bug report! This is fixed now.


Need to call WSAGetOverlappedResult

I believe after all overlapped operations are complete we need to call WSAGetOverlappedResult due to how we're getting results from the kernel. I'm somewhat surprised that we haven't run into this yet, but we should probably do this sooner rather than later.

I've gamed out support for this in named pipes for mio so I don't think that this will be too hard to bolt on.


[WIP] Botany

Looking for casual code review while I continue working on this, feel free to @ me on the discord (digitalis) for your convenience
Implemented:

Trays, substrates
Seeds
Plants, they don't do much other than grow right now though
Harvesting
Death & damage
Alt. lifecycles (courtesy of reworking stages into delta-transition FSMish system)

Undoing too many commits which will just litter this thing with a commitlog, I'll keep working on the branch and will throw it back up when it's complete as opposed to WIP


Json response not formatting correctly

So I have a response like so:
     * @response {
     *  data: [
     *   "type" => "success",
     *   "message"=>"You have deleted these products",
     *  ];
     * }

When I generate my document it returns all on one line like so
"{\n data: [\n  "type" => "success",\n  "message"=>"You have deleted these products",\n ],\n}"
How come its not prettyfying?

Me using laravel 5.4

Duplicate of #198

If someone is interested: #271
👋

Fixed in #271


Added methods for retrieving filename and modifying file extensions

Coming from the C#/.NET world, the approciate "Path" class has a few more useful methods. These are only partially available in native PHP, so I thought this would be a good point to extend and complete your Path class with these:
getFilename($path)
getFilenameWithoutExtension($path, $extension = null)
getExtension($path, $forceLowerCase = false)
hasExtension($path, $extension = null, $ignoreCase = false)
changeExtension($path, $extension)

I'm open for any discussion or if you don't like it / deny it.

Well this is pretty cool! :) Thanks @King2500. I'll happily merge this when my comments are resolved

Thanks. :)
Added/changed the mentioned points and fixed little bugs (found through additional tests :))
I'm not sure about the requirement of mbstring for unit-testing.
Should we add
    "require-dev": {
        "ext-mbstring": "*"
    }

to composor.json?
(Then my conditions in the test methods are obsolete)

I think the way you did it is fine. It's better to run 95% of the tests when mbstring is not installed than none at all. Thanks! :)


Migrate OGM Forklift to Palletjack

Benefit
This would be a tech debt payment for this project to get it on the latest and greatest solution for pushing data to AGOL.
Acceptance Criteria

[ ] https://github.com/agrc/ogm-pallets/issues/17
[ ] https://github.com/agrc/palletjack/issues/77 (possible enhancement to lump into this project since it would be nice for OGM)

Notes
We have about 20 hours (PRJTASK0614062) of maintenance left for this project.
Risks
Perhaps there is some data issues specific to OGM that palletjack hasn't seen yet.
Issue Reference
refs #

We are running out of maintenance money. It may be best to push this to FY26.


Update CMakeLists.txt

bump c++ version to 17

@votca-bot changelog: bump c++ to 17

libint triggered a compiler bug in icc versions smaller 2021
see https://github.com/evaleev/libint/issues/208

see https://github.com/votca/xtp/pull/735


Cannot convert a Symbol value to a string

Thanks for the loader, it works nicely!
However, there is an error occurs when the loader used:

Hot Reloading works as intended, but that error will simply reoccur with each file save.
Error is happening here, in Vue script:

Seems like Vue does not like some loader changes, however it can't log an error about it properly since key in that case results to be Symbol...

You're welcome 😄
I've never encountered this error myself. Could you provide a code example or repository?

Here we go.
I've tried to reduce my current project to the minimal repo. Run npm start to run the server and open http://localhost:8080
I thought that it might be related to the Vue class decorators or metadata polyfill, but primarily tests shown no difference.

 I've forgotten that it's ignored by default. Fixed.

Looks like Lodash throws an error when trying to detect the type of the Vue proxy objects. Not sure where do they come from exactly, but I'm just ignoring these objects from the serialization anyway.
Please, check out the 1.4.1 release: https://github.com/skyrpex/vue-jsx-hot-loader/releases/tag/v1.4.1

Yeap, fixed. Thanks a lot!


About the Adjacent Pixel Auto-Correlation

In the Adjacent Pixel Auto-Correlation for Arnold Cat it is giving an error telling that color is not defined in getImageMatrix_gray() function.
The error was like this:
NameError                                 Traceback (most recent call last)
 in ()
1 image = "HorizonZero"
2 ext = ".png"
----> 3 ImageMatrix,image_size = getImageMatrix_gray(image+ext)
4 samples_x = []
5 samples_y = []
 in getImageMatrix_gray(imageName)
9                 row.append((pix[width,height]))
10         image_matrix.append(row)
---> 11     return image_matrix, image_size[0], image_size[1],color
NameError: name 'color' is not defined
While I did do some changes in getImageMatrix_gray() function it was still showing some other error.

In the Adjacent Pixel Auto-Correlation for Arnold Cat it is giving an error telling that color is not defined in getImageMatrix_gray() function. The error was like this: NameError Traceback (most recent call last) in () 1 image = "HorizonZero" 2 ext = ".png" ----> 3 ImageMatrix,image_size = getImageMatrix_gray(image+ext) 4 samples_x = [] 5 samples_y = []
in getImageMatrix_gray(imageName) 9 row.append((pix[width,height])) 10 image_matrix.append(row) ---> 11 return image_matrix, image_size[0], image_size[1],color
NameError: name 'color' is not defined
While I did do some changes in getImageMatrix_gray() function it was still showing some other error.

same issue happen in my side
how can we solve this one do u know then reply me asap.

This solves the issue (I reckon it's a year late but only working with this today xD) @kalpitpatel4999 @U4ay07


[NuGet.org Bug]: API key scope is not prefilled when creating more than one API key

Impact
It bothers me. A fix would be nice
Describe the bug
When you create an API key you get "Select scopes" prefilled to "Push new packages and package versions" when you create the first key and not prefilled when you create a second one without leaving the page.
Repro Steps
Prerequisite: have an account that is not a member of any organizations (so that "Package owner" drop down list in the API key page contains exactly one entry besides "Select an owner...").

Go to https://www.nuget.org/account/apikeys
Create an API key, notice "Push new packages and package versions" is selected under "Select Scopes"
Without reloading page create another API key. Notice that this time nothing is selected under "Select Scopes".

Expected Behavior
Consistency between the first and subsequent experiences. Either don't prefill anything any time or prefill the same every time.
Screenshots
No response
Additional Context and logs
No response

Do you think "*" should be prefilled also? I bet we could look at the data to see what % of users actually make API keys scoped to a subset of their packages.

My main concern is behavior consistency. As long creating the first API key provides the same experience as any subsequent create operations, I would consider this item resolved. Right now, we don't prefill in any case, so seems unrelated.
And generally, I'm not sure we want to encourage keys with blanket coverage of all packages (on the other hand, it shouldn't matter much unless one has dozens of rather unrelated packages).


Update(operator): Add iscsiadm file and related library mounts to operator yaml

This PR solves the iscsi login issue arising due to OS version mismatch between host and csi container.
Installation of open-iscsi has been avoided inside the csi container. And instead iscsiadm binary and the required shared libraries are being mounted from the host.
This PR also updates the ci test where the csi-operator file was being fetched from csi master repo instead of using the same from the local path.
Signed-off-by: Payes<EMAIL_ADDRESS>

Codecov Report

Merging #26 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #26   +/-   ##
=======================================
  Coverage   53.72%   53.72%
=======================================
  Files          12       12
  Lines         631      631
=======================================
  Hits          339      339
  Misses        272      272
  Partials       20       20

Continue to review full report at Codecov.

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


DEV: Update API calls to datetime functionality

The API calls in main are depreciated. I have updated these calls to comply with the latest versions. If I use main to build SciPy docs with myst_nb execution mode set to cache then I get the following errors,
reading sources... [  3%] reference/generated/scipy.cluster.hierarchy.DisjointSet.add .. reference/generated/scipy.fft.ifft
(Error in parallel process)
Traceback (most recent call last):
  File "/Users/czgdp1807/mambaforge/envs/scipy-dev/lib/python3.12/site-packages/sphinx/util/parallel.py", line 76, in _process
    ret = func(arg)
          ^^^^^^^^^
  File "/Users/czgdp1807/mambaforge/envs/scipy-dev/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 495, in read_process
    self.read_doc(docname, _cache=False)
  File "/Users/czgdp1807/mambaforge/envs/scipy-dev/lib/python3.12/site-packages/sphinx/builders/__init__.py", line 536, in read_doc
    publisher.publish()
  File "/Users/czgdp1807/mambaforge/envs/scipy-dev/lib/python3.12/site-packages/docutils/core.py", line 234, in publish
    self.document = self.reader.read(self.source, self.parser,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/czgdp1807/mambaforge/envs/scipy-dev/lib/python3.12/site-packages/sphinx/io.py", line 106, in read
    self.parse()
  File "/Users/czgdp1807/mambaforge/envs/scipy-dev/lib/python3.12/site-packages/docutils/readers/__init__.py", line 76, in parse
    self.parser.parse(self.input, document)
  File "/Users/czgdp1807/Quansight/MyST-NB/myst_nb/sphinx_.py", line 152, in parse
    with create_client(
  File "/Users/czgdp1807/Quansight/MyST-NB/myst_nb/core/execute/base.py", line 79, in __enter__
    self.start_client()
  File "/Users/czgdp1807/Quansight/MyST-NB/myst_nb/core/execute/cache.py", line 36, in start_client
    _, self._notebook = cache.merge_match_into_notebook(self.notebook)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/czgdp1807/Quansight/jupyter-cache/jupyter_cache/cache/main.py", line 357, in merge_match_into_notebook
    cache_nb = self.get_cache_bundle(pk).nb
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/czgdp1807/Quansight/jupyter-cache/jupyter_cache/cache/main.py", line 296, in get_cache_bundle
    NbCacheRecord.touch(pk, self.db)
  File "/Users/czgdp1807/Quansight/jupyter-cache/jupyter_cache/cache/db.py", line 371, in touch
    record.accessed = datetime.utcnow()
                      ^^^^^^^^^^^^^^^^^
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).

Sphinx parallel build error:
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
make: *** [html-build] Error 2

With my PR I get the following,
writing additional pages... search done
copying images... [  9%] ../build/plot_directive/reference/generated/scipy-interpolate-SmoothSphereBivariateSpline-__call__-1.pn
copying images... [100%] ../build/plot_directive/tutorial/stats/sampling_srou-1.png
dumping search index in English (code: en)... done
dumping object inventory... done
[jupyterlite-sphinx] Running JupyterLite build
[jupyterlite-sphinx] JupyterLite build done
build succeeded.

The HTML pages are in build/html.

Seems like the newer API is applicable from Python 3.11 onwards.

Requesting @chrisjsewell @choldgraf @agoose77 for review. Thanks. <3.

There is a codecov error with Python 3.10 job.

This is a duplicate of #114. Either way, please let me know how I can help moving a release fwd as I run into these deprecations in a few projects, too.

@bsipocz I noticed your PR as well. I think merging this PR (this one is compatible with Python 3.9, 3.10, 3.11 and 3.12) and releasing a new version of jupyter-cache should get things going.
Requesting @agoose77 for reviewing and if possible merge this PR.

Well, the other would have been compatible too two weeks ago if CI was allowed to run on it 🤷♀
And if you noticed it, it would have been a minimum courtesy to at least cross-reference an existing PR before starting a new one or at least once you notice it.

Well, the other would have been compatible too two weeks ago if CI was allowed to run on it 🤷♀

Please check the description of this PR. I personally don't know why CI wasn't executed on your PR. Maintainers of this repository can comment on it.

And if you noticed it, it would have been a minimum courtesy to at least cross-reference an existing PR before starting a new one or at least once you notice it.

Apologies. Referenced your PR here as well.


Add frequency to SubscribeAttributes

Linked to https://github.com/eclipse-uprotocol/uprotocol-spec/issues/24

merged


searching in rendered with an empty string

On https://bulletproofmeteor.com/database-modeling/building-a-real-world-search-app-meteor-package-search/2
you have
Template.searchResult.rendered = function() {
  PackageSearch.search('');
};

But when I take this line out, it seems to still work. Is this line helpful? If so, why? (And it should be added to the README if it should be there.)

The search won't send a request automatically, hence if you have a default set of results to show before the user types in the search box, you need to initialise the search with a blank string to get your first set of results.
If anyone has a better way of doing this let me know.


Update samples with screenshots

Some samples do not have screenshots in the README.  We will update such that all samples have a screenshot of the app.

hi.. How I can update location of point in arcgis android? doneill


Latest spotify android client (v<IP_ADDRESS>2) does not detect librespot

Hello everybody,
first off all, thank you for the great project, I really appreciate the work you're doing.
I recently updated the android client to the newest version and since then it has stopped to list librespot
as an available device. It does work with the previous one (v<IP_ADDRESS>3) though.
I'm using a Galaxy S6 (LineageOS 14.1) and librespot (build from master today) is running on a raspberry pi 3 with the latest moode os.
Maybe the issue is on my end, but I haven't changed anything in my setup line besides upgrading to the latest librespot version.
I apologize in advance if I have missed something.

This should be fixed by #167
Do you have a log?

Hello,
thank you for the reply.

Do you have a log?

I suppose you mean a log from the spotify application?
I already took a look at the logcat but couldn't find anything useful.
But I can of course provide one.
In the case of a librespot log, I executed the following command.
 RUST_BACKTRACE=1 librespot --name name --backend alsa --verbose
Due to the fact that it doesn't show up in the application, there is no other output than:
INFO:librespot: librespot 8f8eb8c (2018-02-28). Built on 2018-02-28. Build ID: FL46vJJ7 DEBUG:librespot_connect::discovery: Zeroconf server listening on <IP_ADDRESS>:0
But I get the feeling the issue is on my end, since I seem to be the only one that does experience the problem.
I will just keep an eye on it and do some further testing.

My Spotify updated yesterday too. The device shows up in the devices tab, but as soon as I choose it, it crashes.
thread 'main' panicked at 'calledResult::unwrap()on anErrvalue: WireError(InvalidEnumValue(13))', /checkout/src/libcore/result.rs:860:4 note: Run withRUST_BACKTRACE=1for a backtrace. DEBUG:librespot::spirc: drop Spirc[0] DEBUG:librespot::player: drop Player[0] DEBUG:librespot_core::session: drop Session[0] DEBUG:librespot_core::mercury: drop MercuryManager DEBUG:librespot_core::session: drop Dispatch

@aopst that issue was resolved in #167. Rebuild librespot with the latest commit and it'll work again.
@romqu I'm inclined to agree that the issue is likely on your end. To test this, could you start librespot with -u YOUR_USERNAME added, and login manually. If the device then shows up and you are able to play music to it from the spotify app, then that isolates the problem to your network at least.

@sashahilton00
Indeed, it works with the username and password supplied. But discovery mode does not work. Only with the previous android version. Really weird.
Anyway, I apologize for the inconvenience.

@romqu - I'm having the same problem when using the Spotty fork of librespot and am at my wits end, I'm beginning to think it's a network issue on my end and would be interested to know if you ever found a solution?

@jollybully - some users mentioned they had to to wipe the Spotify app's data/cache. And make sure you enable local discovery or disable local only discovery in the app.
Did you get in touch with me on forums.slimdevices.com?

I have the same problem for about a year and still have it. Librespot doesnt show up as a device to play to.


Calling Command::resolveCommand with Command instance throws an error

Laravel Version: 7.9.2
PHP Version: 7.3.17
Database Driver & Version:

Description:
Calling Illuminate\Console\Command::resolveCommand with a Command instance throws an error :
ErrorException: class_exists() expects parameter 1 to be string, object given
However the resolveCommand method accepts an instance of \Symfony\Component\Console\Command\Command class as first parameter.
Steps To Reproduce:
Create a new Command :
php artisan make:command ErrorCommand
Fill the $name attribute :
protected $name = 'make:error';
Fill the handle method with :
public function handle()
{
$command = $this->resolveCommand('\Illuminate\Foundation\Console\ModelMakeCommand');
$second = $this->resolveCommand($command);
}
Execute the command :
php artisan make:error

Hey there,
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to report back and I'll gladly help you out and re-open this issue.

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

Thanks!


python controller crashes when calling setup-payload command

Steps to reproduce.

Launch python controller and run the below command.
setup-payload parse-manual
Traceback (most recent call last):
File "/home/ubuntu/chipCode/chip_0902/connectedhomeip/out/python_env/bin/chip-device-ctrl", line 1044, in
main()
File "/home/ubuntu/chipCode/chip_0902/connectedhomeip/out/python_env/bin/chip-device-ctrl", line 1036, in main
devMgrCmd.cmdloop()
File "/usr/lib/python3.8/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "/usr/lib/python3.8/cmd.py", line 217, in onecmd
return func(arg)
File "/home/ubuntu/chipCode/chip_0902/connectedhomeip/out/python_env/bin/chip-device-ctrl", line 371, in do_setuppayload
SetupPayload().ParseManualPairingCode(arglist[1]).Print()
IndexError: list index out of range

Closing, as this likely doesn't happen anymore. Please re-open if this still persists.


fix: incorrect variable access

Motivation
Make sure all variable access are correct. Took this opportunity to explicitly implement the DataTransform interface.

:tada: This PR is included in v1.20.0 :tada:


Minor settings documentation bug: _stopYara vs. _dontCheckYara

In https://molo.ch/settings#high-performance-settings, the sample high-performance rule for  "Dont write tls packets or check yara after 10 packets, still save SPI" uses _stopYara (which prevents capture from starting) instead of _dontCheckYara.
This is also misstated in https://github.com/aol/moloch/wiki/settings

Elasticsearch version:
Moloch version:
OS name and version:
How was Moloch built/installed: (rpm, deb, easybutton, ...)
Provide logs, stack traces and steps to reproduce:

fixed, thanks.  You can do PRs against the repo aol/molochweb if interested.


Compatibility fix for 4.3 release

Godot 4.3 seems to have changed something about the order required now. Plugin would not load properly or at all until this reordering.
NOTE: the documentation for the method add_submenu_item is now DEPRECATED and a new method was added add_submenu_node_item

Thanks for the contribution! Can you verify if the bug also exists with the 4.3 branch?

Just checked with 4.3 branch with full setup and again with licenses addon only to verify against dependencies. Looks like you'd run into that at some point, because the reordering was present in the same spot in the toolbar.gd. Back to functioning!
Just mind the deprecated function mentioned. :)


[php_fpm] Add timeout options

Summary
This PR does two things:

Adds a timeout parameter to the php_fpm check
Sets the default timeout to 20 seconds

Rationale
The packaged FPM check uses an unspecified timeout for requests it makes, which can potentially lead to failing pools taking forever to return a response (or as long as intermediary
services/proxies/etc allow).
The effect is that should a pool fail to return a response, the affected check iteration can hang, blocking execution of all further checks and subsequent metric submission.  DataDog/dd-agent#2854 is a useful reference point for a similar issue.
The unlimited timeout behaviour can cause the agent watchdog thread to kick in and terminate the agent before any data is returned.
Ultimately, this means one failing pool can block the return of any data at all.  This is sub-optimal for an operator responding to an incident; the best data they are able to get without further investigation is that there isn't any data at all for the host.
A 20 second timeout seems a reasonable compromise for an ill performing pool to prevent this scenario.  Should the operator require, they can specify a custom timeout.

@degemer No worries.
Thank you for the feedback.  I'll amend with your suggestions.

@toksvaeth Thanks again for the efforts on this PR. Have you had a chance to review @masci 's feedback? If it'd be helpful to chat in real time we have office hours coming up soon.

@toksvaeth This looks quite close, have you had a chance to dig into the feedback?

@toksvaeth We'd love to include this in the 5.18 release. Any thoughts on the suggestions here?

Superseded by https://github.com/DataDog/integrations-core/pull/888, I've cherry picked your comments @toksvaeth thanks!


Revert "Cleanup react routing and update upload page wording"

Reverts machine-learning-exchange/mlx#84 because it broke the details page in server mode.

FYI I think #84 broke the current UI details page when you login. Sorry I didn't get time to review that PR before merging so I catch this problem right now.
@drewbutlerbb4  I revert the #84 commit for now and reopen #84 for you to fix the bug. Thanks


run demo load checkpoint error .

When I download large-3m in my local path , run this in A100 GPU
I set
FULL_CKPT_PATH = './experiment/unified-io-2/large-3m'
MODEL_TYPE = "large"
TypeError: JAX only supports number and bool dtypes, got dtype bfloat16 in asarray

same error

I also meet same question with large-3m and xl-3m

Same issue on A6000
File /usr/local/lib/python3.10/dist-packages/jax/_src/numpy/lax_numpy.py:2026, in asarray(a, dtype, order)
   2024 @_wraps(np.asarray, lax_description=_ARRAY_DOC)
   2025 def asarray(a: Any, dtype: Optional[DTypeLike] = None, order: Optional[str] = None) -> Array:
-> 2026   lax_internal._check_user_dtype_supported(dtype, "asarray")
   2027   dtype = dtypes.canonicalize_dtype(dtype) if dtype is not None else dtype
   2028   return array(a, dtype=dtype, copy=False, order=order)

File /usr/local/lib/python3.10/dist-packages/jax/_src/lax/lax.py:4812, in _check_user_dtype_supported(dtype, fun_name)
   4810   msg = f"JAX only supports number and bool dtypes, got dtype {dtype}"
   4811   msg += f" in {fun_name}" if fun_name else ""
-> 4812   raise TypeError(msg)
   4813 if dtype is not None and np_dtype != dtypes.canonicalize_dtype(dtype):
   4814   msg = ("Explicitly requested dtype {} {} is not available, "
   4815          "and will be truncated to dtype {}. To enable more dtypes, set the "
   4816          "jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell "
   4817          "environment variable. "
   4818          "See https://github.com/google/jax#current-gotchas for more.")

TypeError: JAX only supports number and bool dtypes, got dtype bfloat16 in asarray

same error

Same issue on A6000
File /usr/local/lib/python3.10/dist-packages/jax/_src/numpy/lax_numpy.py:2026, in asarray(a, dtype, order)
   2024 @_wraps(np.asarray, lax_description=_ARRAY_DOC)
   2025 def asarray(a: Any, dtype: Optional[DTypeLike] = None, order: Optional[str] = None) -> Array:
-> 2026   lax_internal._check_user_dtype_supported(dtype, "asarray")
   2027   dtype = dtypes.canonicalize_dtype(dtype) if dtype is not None else dtype
   2028   return array(a, dtype=dtype, copy=False, order=order)

File /usr/local/lib/python3.10/dist-packages/jax/_src/lax/lax.py:4812, in _check_user_dtype_supported(dtype, fun_name)
   4810   msg = f"JAX only supports number and bool dtypes, got dtype {dtype}"
   4811   msg += f" in {fun_name}" if fun_name else ""
-> 4812   raise TypeError(msg)
   4813 if dtype is not None and np_dtype != dtypes.canonicalize_dtype(dtype):
   4814   msg = ("Explicitly requested dtype {} {} is not available, "
   4815          "and will be truncated to dtype {}. To enable more dtypes, set the "
   4816          "jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell "
   4817          "environment variable. "
   4818          "See https://github.com/google/jax#current-gotchas for more.")

TypeError: JAX only supports number and bool dtypes, got dtype bfloat16 in asarray

how to resolve?

change dtype in t5x/examples/unified_io/t5_1_1/{model_size}.gin to float32 in  i got new error:

AssertionError                            Traceback (most recent call last)
Cell In[11], line 18
16 vocab = get_default_vocabulary()
17 partitioner = partitioning.PjitPartitioner(num_partitions=8)
---> 18 parameters, param_axes = uio_utils.get_parameters(model, FULL_CKPT_PATH, partitioner)
File /mnt/workspace/wanggui.hwg/LLVM/llvm/model/unified_io_2/t5x/examples/unified_io/utils.py:85, in get_parameters(model, model_checkpoint, partitioner, rng)
83 input_shapes, input_types = get_input_spec(1)
84 if partitioner is not None:
---> 85   train_state_initializer = TrainStateInitializer(
86     optimizer_def=None,
87     init_fn=model.get_initial_variables,
88     input_shapes=input_shapes,
89     input_types=input_types,
90     partitioner=partitioner
91   )
92   param_axes = train_state_initializer.train_state_axes.params
93   params = LegacyCheckpointManager(
94     restore_cfg=RestoreCheckpointConfig(model_checkpoint),
95     train_state_shape=train_state_initializer.global_train_state_shape,
96     partitioner=partitioner
97   ).restore([model_checkpoint], RestoreCheckpointConfig(model_checkpoint)).params
File /mnt/workspace/wanggui.hwg/LLVM/llvm/model/unified_io_2/t5x/utils.py:958, in TrainStateInitializer.init(self, optimizer_def, init_fn, input_shapes, partitioner, model, input_types)
955   return train_state_lib.InferenceState.create(initial_variables)
957 self._partitioner = partitioner
--> 958 self.global_train_state_shape = jax.eval_shape(
959     initialize_train_state, rng=jax.random.PRNGKey(0))
961 self.train_state_axes = partitioner.get_mesh_axes(
962     self.global_train_state_shape)
963 self._initialize_train_state = initialize_train_state
File /home/pai/envs/unified_io/lib/python3.9/site-packages/jax/_src/api.py:3201, in eval_shape(fun, *args, **kwargs)
3199 wrapped_fun, out_tree = flatten_fun(lu.wrap_init(fun), in_tree)
3200 debug_info = pe.debug_info(fun, in_tree, True, "eval_shape")
-> 3201 out = pe.abstract_eval_fun(wrapped_fun.call_wrapped,
3202                            *map(shaped_abstractify, args_flat),
3203                            debug_info=debug_info)
3204 out = [ShapeDtypeStruct(x.shape, x.dtype, x.named_shape) for x in out]
3205 return tree_unflatten(out_tree(), out)
File /home/pai/envs/unified_io/lib/python3.9/site-packages/jax/interpreters/partial_eval.py:660, in abstract_eval_fun(fun, debug_info, *avals, **params)
659 def abstract_eval_fun(fun, *avals, debug_info=None, **params):
--> 660   _, avals_out, _ = trace_to_jaxpr_dynamic(
661       lu.wrap_init(fun, params), avals, debug_info)
662   assert all(isinstance(aval, AbstractValue) for aval in avals_out)
663   return avals_out
File /home/pai/envs/unified_io/lib/python3.9/site-packages/jax/_src/profiler.py:314, in annotate_function..wrapper(*args, **kwargs)
311 @wraps(func)
312 def wrapper(*args, **kwargs):
313   with TraceAnnotation(name, **decorator_kwargs):
--> 314     return func(*args, **kwargs)
315   return wrapper
File /home/pai/envs/unified_io/lib/python3.9/site-packages/jax/interpreters/partial_eval.py:1981, in trace_to_jaxpr_dynamic(fun, in_avals, debug_info, keep_inputs)
1979 with core.new_main(DynamicJaxprTrace, dynamic=True) as main:  # type: ignore
1980   main.jaxpr_stack = ()  # type: ignore
-> 1981   jaxpr, out_avals, consts = trace_to_subjaxpr_dynamic(
1982     fun, main, in_avals, keep_inputs=keep_inputs, debug_info=debug_info)
1983   del main, fun
1984 return jaxpr, out_avals, consts
File /home/pai/envs/unified_io/lib/python3.9/site-packages/jax/interpreters/partial_eval.py:1998, in trace_to_subjaxpr_dynamic(fun, main, in_avals, keep_inputs, debug_info)
1996 in_tracers = input_type_to_tracers(trace.new_arg, in_avals)
1997 in_tracers = [t for t, keep in zip(in_tracers, keep_inputs) if keep]
-> 1998 ans = fun.call_wrapped(*in_tracers_)
1999 out_tracers = map(trace.full_raise, ans)
2000 jaxpr, consts = frame.to_jaxpr(out_tracers)
File /home/pai/envs/unified_io/lib/python3.9/site-packages/jax/linear_util.py:167, in WrappedFun.call_wrapped(self, *args, **kwargs)
164 gen = gen_static_args = out_store = None
166 try:
--> 167   ans = self.f(*args, **dict(self.params, **kwargs))
168 except:
169   # Some transformations yield from inside context managers, so we have to
170   # interrupt them before reraising the exception. Otherwise they will only
171   # get garbage-collected at some later time, running their cleanup tasks
172   # only after this exception is handled, which can corrupt the global
173   # state.
174   while stack:
File /home/pai/envs/unified_io/lib/python3.9/site-packages/jax/linear_util.py:167, in WrappedFun.call_wrapped(self, *args, **kwargs)
164 gen = gen_static_args = out_store = None
166 try:
--> 167   ans = self.f(*args, **dict(self.params, **kwargs))
168 except:
169   # Some transformations yield from inside context managers, so we have to
170   # interrupt them before reraising the exception. Otherwise they will only
171   # get garbage-collected at some later time, running their cleanup tasks
172   # only after this exception is handled, which can corrupt the global
173   # state.
174   while stack:
File /mnt/workspace/wanggui.hwg/LLVM/llvm/model/unified_io_2/t5x/utils.py:950, in TrainStateInitializer.init..initialize_train_state(rng)
949 def initialize_train_state(rng: Array):
--> 950   initial_variables = init_fn(
951       rng=rng, input_shapes=input_shapes, input_types=input_types)
952   if optimizer_def:
953     return train_state_lib.FlaxOptimTrainState.create(
954         optimizer_def, initial_variables)
File /mnt/workspace/wanggui.hwg/LLVM/llvm/model/unified_io_2/t5x/examples/unified_io/models.py:129, in EncoderDecoderModel.get_initial_variables(self, rng, input_shapes, input_types)
127 if input_types is None:
128   raise NotImplementedError()
--> 129 initial_variables = self.module.init(
130   rng,
131   {k: jnp.ones(input_shapes[k], input_types[k]) for k in input_shapes},
132   enable_dropout=False, init=True
133 )
134 return initial_variables
[... skipping hidden 9 frame]

File /mnt/workspace/wanggui.hwg/LLVM/llvm/model/unified_io_2/t5x/examples/unified_io/network.py:616, in Transformer.call(self, features, enable_dropout, horizontally_pack_inputs, horizontally_pack_targets, fold, init, decode, use_constraints, return_packing_stats)
614 for k, v in self.target_encoders.items():
615   if target_features.get(k) is not None:
--> 616     target_parts.append(v(**target_features[k], init=init))
618 target_tokens = [k.target_tokens for k in target_parts]
619 loss_masks = [k.loss_mask for k in target_parts]
[... skipping hidden 2 frame]

File /mnt/workspace/wanggui.hwg/LLVM/llvm/model/unified_io_2/t5x/examples/unified_io/target_modalities.py:74, in TextEmbedder.call(self, inputs, mask, pos_ids, segment_ids, targets, init, decode, decode_length, cur_index)
70   x += modality_emb[None, None, :].astype(cfg.dtype)
72 attn_pattern_mask = jnp.ones([bs, 4, x.shape[1], x.shape[1]], cfg.dtype)
---> 74 return TargetSequence(
75   x, pos_emb, jnp.array(TEXT_MODALITY_INDEX), mask, attn_pattern_mask=attn_pattern_mask,
76   subsegments=segment_ids, target_tokens=targets, loss_mask=mask
77 )
File :12, in init(self, input_embedding, position_id, modality_id, mask, attn_pattern_mask, target_tokens, subsegments, segment_ids, loss_mask)
File /mnt/workspace/wanggui.hwg/LLVM/llvm/model/unified_io_2/t5x/examples/unified_io/seq_features.py:93, in TargetSequence.post_init(self)
90   assert self.position_id.shape[:2] in [(1, seq_len), (bs, seq_len)]
92 assert self.modality_id.shape in [(), (1, seq_len), (bs, seq_len)]
---> 93 assert self.modality_id.dtype == jnp.int32
95 if self.target_tokens is not None:
96   assert self.target_tokens.shape == (bs, seq_len)
AssertionError:

I have added the ability to load the model in float32 model, I was able to run the demo with the XL model using one A6000 and the XXL with 2 A600.
I am not sure about the assertion error but feel free to create a new issue with instructions to reproduce it.

change dtype in t5x/examples/unified_io/t5_1_1/{model_size}.gin and t5x/examples/unified_io.config.py to float32 in i got new error:
AssertionError Traceback (most recent call last) Cell In[11], line 18 16 vocab = get_default_vocabulary() 17 partitioner = partitioning.PjitPartitioner(num_partitions=8) ---> 18 parameters, param_axes = uio_utils.get_parameters(model, FULL_CKPT_PATH, partitioner)
get_parameters(model, model_checkpoint, partitioner, rng) 83 input_shapes, input_types = get_input_spec(1) 84 if partitioner is not None: ---> 85 train_state_initializer = TrainStateInitializer( 86 optimizer_def=None, 87 init_fn=model.get_initial_variables, 88 input_shapes=input_shapes, 89 input_types=input_types, 90 partitioner=partitioner 91 ) 92 param_axes = train_state_initializer.train_state_axes.params 93 params = LegacyCheckpointManager( 94 restore_cfg=RestoreCheckpointConfig(model_checkpoint), 95 train_state_shape=train_state_initializer.global_train_state_shape, 96 partitioner=partitioner 97 ).restore([model_checkpoint], RestoreCheckpointConfig(model_checkpoint)).params
unified_io_2/t5x/utils.py:958, in TrainStateInitializer.init(self, optimizer_def, init_fn, input_shapes, partitioner, model, input_types) 955 return train_state_lib.InferenceState.create(initial_variables) 957 self._partitioner = partitioner --> 958 self.global_train_state_shape = jax.eval_shape( 959 initialize_train_state, rng=jax.random.PRNGKey(0)) 961 self.train_state_axes = partitioner.get_mesh_axes( 962 self.global_train_state_shape) 963 self._initialize_train_state = initialize_train_state
File /home/pai/envs/unified_io/lib/python3.9/site-packages/jax/_src/api.py:3201, in eval_shape(fun, *args, **kwargs) 3199 wrapped_fun, out_tree = flatten_fun(lu.wrap_init(fun), in_tree) 3200 debug_info = pe.debug_info(fun, in_tree, True, "eval_shape") -> 3201 out = pe.abstract_eval_fun(wrapped_fun.call_wrapped, 3202 *map(shaped_abstractify, args_flat), 3203 debug_info=debug_info) 3204 out = [ShapeDtypeStruct(x.shape, x.dtype, x.named_shape) for x in out] 3205 return tree_unflatten(out_tree(), out)
unified_io/lib/python3.9/site-packages/jax/interpreters/partial_eval.py:660, in abstract_eval_fun(fun, debug_info, *avals, **params) 659 def abstract_eval_fun(fun, *avals, debug_info=None, **params): --> 660 _, avals_out, _ = trace_to_jaxpr_dynamic( 661 lu.wrap_init(fun, params), avals, debug_info) 662 assert all(isinstance(aval, AbstractValue) for aval in avals_out) 663 return avals_out
unified_io/lib/python3.9/site-packages/jax/_src/profiler.py:314, in annotate_function..wrapper(*args, **kwargs) 311 @wraps(func) 312 def wrapper(*args, **kwargs): 313 with TraceAnnotation(name, **decorator_kwargs): --> 314 return func(*args, **kwargs) 315 return wrapper
unified_io/lib/python3.9/site-packages/jax/interpreters/partial_eval.py:1981, in trace_to_jaxpr_dynamic(fun, in_avals, debug_info, keep_inputs) 1979 with core.new_main(DynamicJaxprTrace, dynamic=True) as main: # type: ignore 1980 main.jaxpr_stack = () # type: ignore -> 1981 jaxpr, out_avals, consts = trace_to_subjaxpr_dynamic( 1982 fun, main, in_avals, keep_inputs=keep_inputs, debug_info=debug_info) 1983 del main, fun 1984 return jaxpr, out_avals, consts
unified_io/lib/python3.9/site-packages/jax/interpreters/partial_eval.py:1998, in trace_to_subjaxpr_dynamic(fun, main, in_avals, keep_inputs, debug_info) 1996 in_tracers = input_type_to_tracers(trace.new_arg, in_avals) 1997 in_tracers = [t for t, keep in zip(in_tracers, keep_inputs) if keep] -> 1998 ans = fun.call_wrapped(*in_tracers_) 1999 out_tracers = map(trace.full_raise, ans) 2000 jaxpr, consts = frame.to_jaxpr(out_tracers)
/unified_io/lib/python3.9/site-packages/jax/linear_util.py:167, in WrappedFun.call_wrapped(self, *args, **kwargs) 164 gen = gen_static_args = out_store = None 166 try: --> 167 ans = self.f(*args, **dict(self.params, **kwargs)) 168 except: 169 # Some transformations yield from inside context managers, so we have to 170 # interrupt them before reraising the exception. Otherwise they will only 171 # get garbage-collected at some later time, running their cleanup tasks 172 # only after this exception is handled, which can corrupt the global 173 # state. 174 while stack:
File /home/pai/envs/unified_io/lib/python3.9/site-packages/jax/linear_util.py:167, in WrappedFun.call_wrapped(self, *args, **kwargs) 164 gen = gen_static_args = out_store = None 166 try: --> 167 ans = self.f(*args, **dict(self.params, **kwargs)) 168 except: 169 # Some transformations yield from inside context managers, so we have to 170 # interrupt them before reraising the exception. Otherwise they will only 171 # get garbage-collected at some later time, running their cleanup tasks 172 # only after this exception is handled, which can corrupt the global 173 # state. 174 while stack: , in TargetSequence.post_init(self) 90 assert self.position_id.shape[:2] in [(1, seq_len), (bs, seq_len)] 92 assert self.modality_id.shape in [(), (1, seq_len), (bs, seq_len)] ---> 93 assert self.modality_id.dtype == jnp.int32 95 if self.target_tokens is not None: 96 assert self.target_tokens.shape == (bs, seq_len)
AssertionError:

@robooootx did you ever find a solution to this?

for error
TypeError: JAX only supports number and bool dtypes, got dtype bfloat16 in asarray
It is mostly due to import orbax.checkpoint.  Since this project has taken quite a long time, some of the packages we used are from older versions; recently we found that using pip install dependencies with Python 3.9 would indeed cause conflicts between the Jax and orbax.checkpoint if specifying dtype="bfloat16", but it still works with Python 3.8 (e.g., 3.8.10, which is the default in TPU VMs). After downgrading Python to 3.8, please also downgrade pyglove==0.4.3 which is required by seqio and the latest version released 3 weeks ago only supports Python 3.9. We'll look into this dependency issue more deeply but feel free to use this workaround for now!
For AssertionError, I haven't met this with recent debugging. Could you please share more details? Can you provide a minimal script to reproduce? With the above change, there's no need to change dtype in t5x/examples/unified_io/t5_1_1/{model_size}.gin and t5x/examples/unified_io.config.py to float32  and you can directly set supports_bfloat16 = False or True if using GPU.

I only seem to get AssertionError when attempting to float32. With your solution above using bfloat16 worked for me.


Memory Leak in Windows when continuously writing.

Summary of Problem (UPDATED with null modem demo.)
I have a device (Kollmorgen servo drive) which echos data so as to give the user a terminal when using a client like putty. In my test I send it a message, and when I receive the echo, i send another message and so on. In my demo I send/receive 10kb messages, but leak is reproducible with any size messages.
The program below, leaks more then 1MB per minute. The leak does not appear to be happening in JS Heap but at the native module level. Memory is not release when port is closed. This leak does not appear to be caused by timing nor caused by Readline.
This problem is similar to #1496
Apologies in advance if I am missing something obvious.
Code to Reproduce the Issue
const SerialPort = require('serialport');
const Readline = SerialPort.parsers.Readline;

var port = new SerialPort ("COM1", {
    baudRate: 115200
});

let counter = 0;
const MESSAGE_SIZE = 10 * 1000;

function sendMessage(){
    setTimeout(()=>{
        port.drain((err)=>{
            setTimeout(()=>{
                console.log(counter ++);
                let msg = "" + counter + Array(MESSAGE_SIZE).fill("I").join("") + `==${counter}==`;
                port.write(msg+ "\r\n");
            });
        });
    });
}

port.on('open',function() {
    console.log('Serial Port is opened.');

    const parser = new Readline();
    port.pipe(parser);

    parser.on('data', (line)=>{
        // When we recieve the echo, send another message.
        if(line.toString().endsWith( `==${counter}==\r`)){
            sendMessage();
        }
    });
    sendMessage(); // Kick off the first message
});

Null modem device
const SerialPort = require('serialport');

// Code
var port = new SerialPort ("COM5", {
    baudRate: 115200
});

port.on('open',()=>{
	port.pipe(port); // Echo to terminal.
});

Versions, Operating System and Hardware

<EMAIL_ADDRESS>& 9.0.0 (pre-compiled binaries in both cases)
Node.js v12.15.0
Windows 10 Enterprise
Hardware and chipset? Nullmodem cable connecting 2 serial ports

in-line NR:33306I  (FTDI driver v<IP_ADDRESS>)
dell optiplex onboard serial port (Standard MS driver serial.sys serenum.sys)

Could not reproduce with hardware on windows 8 with no A/V, so this has something to either do with either windows group policies or antivirus. I will know in the next 2 weeks and update this, so don't bother investigating. This is worthwhile knowledge tho, in case someone else runs into a similar problem. Will update if/when i narrow it down.

Just giving you an update, I have not forgotten. The IT of my company are very slow to give me a setup where I can do process of elimination to figure this out. I.e. disable virus checker. I'm on a waiting list. What I can say is that we have other applications that do not leak memory when communicating via serial, so this is a combination of our IT policies + serialport.io. Will keep you updated and if I get a rejection, will also let you know. Apologies for the delay.


FIX: Inconsistent EXPIRE with conflicting options: LT GT

Fixes #506
Test run logs:
❯ TEST_FUNC=TestExpire make test-one
go test -v -count=1 --run TestExpire ./tests/...
2024/09/11 01:09:57 INFO DiceDB running on port 8739
Starting the test server on port 8739
=== RUN   TestExpire
=== RUN   TestExpire/Set_with_EXPIRE_command
=== RUN   TestExpire/Check_if_key_is_nil_after_expiration
=== RUN   TestExpire/EXPIRE_non-existent_key
=== RUN   TestExpire/EXPIRE_with_past_time
=== RUN   TestExpire/EXPIRE_with_invalid_syntax
=== RUN   TestExpire/Test(NX):_Set_the_expiration_only_if_the_key_has_no_expiration_time
=== RUN   TestExpire/Test(XX):_Set_the_expiration_only_if_the_key_already_has_an_expiration_time
=== RUN   TestExpire/TEST(GT):_Set_the_expiration_only_if_the_new_expiration_time_is_greater_than_the_current_one
=== RUN   TestExpire/TEST(LT):_Set_the_expiration_only_if_the_new_expiration_time_is_less_than_the_current_one
=== RUN   TestExpire/TEST(LT):_Set_the_expiration_only_if_the_new_expiration_time_is_less_than_the_current_one#01
=== RUN   TestExpire/TEST(NX_+_LT/GT)
=== RUN   TestExpire/TEST(XX_+_LT/GT)
=== RUN   TestExpire/Test_if_value_is_nil_after_expiration
=== RUN   TestExpire/Test_if_value_is_nil_after_expiration#01
=== RUN   TestExpire/Invalid_Command_Test
--- PASS: TestExpire (5.12s)

TCL tests log:
tcl-output.log

Overall, the changes look good.
However, the same helper function evaluateAndSetExpiry is also being used by the EXPIREAT command. Can you please update the test cases for that command as well?

Got it, will update the PR with changes.

@jainam2907 I have updated the test case of invalid commands for EXPIREAT command.
Test run output:
❯ TEST_FUNC=TestExpireat make test-one
go test -v -count=1 --run TestExpireat ./tests/...
2024/09/11 15:41:15 INFO DiceDB running on port 8739
Starting the test server on port 8739
=== RUN   TestExpireat
=== RUN   TestExpireat/Set_with_EXPIREAT_command
=== RUN   TestExpireat/Check_if_key_is_nil_after_expiration
=== RUN   TestExpireat/EXPIREAT_non-existent_key
=== RUN   TestExpireat/EXPIREAT_with_past_time
=== RUN   TestExpireat/EXPIREAT_with_invalid_syntax
=== RUN   TestExpireat/Test(NX):_Set_the_expiration_only_if_the_key_has_no_expiration_time
=== RUN   TestExpireat/Test(XX):_Set_the_expiration_only_if_the_key_already_has_an_expiration_time
=== RUN   TestExpireat/TEST(GT):_Set_the_expiration_only_if_the_new_expiration_time_is_greater_than_the_current_one
=== RUN   TestExpireat/TEST(LT):_Set_the_expiration_only_if_the_new_expiration_time_is_less_than_the_current_one
=== RUN   TestExpireat/TEST(LT):_Set_the_expiration_only_if_the_new_expiration_time_is_less_than_the_current_one#01
=== RUN   TestExpireat/TEST(NX_+_LT/GT)
=== RUN   TestExpireat/TEST(XX_+_LT/GT)
=== RUN   TestExpireat/Test_if_value_is_nil_after_expiration
=== RUN   TestExpireat/Test_if_value_is_nil_after_expiration#01
=== RUN   TestExpireat/Invalid_Command_Test
--- PASS: TestExpireat (5.14s)
    --- PASS: TestExpireat/Set_with_EXPIREAT_command (0.00s)
    --- PASS: TestExpireat/Check_if_key_is_nil_after_expiration (1.10s)
    --- PASS: TestExpireat/EXPIREAT_non-existent_key (0.00s)
    --- PASS: TestExpireat/EXPIREAT_with_past_time (0.00s)
    --- PASS: TestExpireat/EXPIREAT_with_invalid_syntax (0.00s)
    --- PASS: TestExpireat/Test(NX):_Set_the_expiration_only_if_the_key_has_no_expiration_time (0.00s)
    --- PASS: TestExpireat/Test(XX):_Set_the_expiration_only_if_the_key_already_has_an_expiration_time (0.00s)
    --- PASS: TestExpireat/TEST(GT):_Set_the_expiration_only_if_the_new_expiration_time_is_greater_than_the_current_one (0.00s)
    --- PASS: TestExpireat/TEST(LT):_Set_the_expiration_only_if_the_new_expiration_time_is_less_than_the_current_one (0.00s)
    --- PASS: TestExpireat/TEST(LT):_Set_the_expiration_only_if_the_new_expiration_time_is_less_than_the_current_one#01 (0.00s)
    --- PASS: TestExpireat/TEST(NX_+_LT/GT) (0.00s)
    --- PASS: TestExpireat/TEST(XX_+_LT/GT) (0.00s)
    --- PASS: TestExpireat/Test_if_value_is_nil_after_expiration (2.01s)
    --- PASS: TestExpireat/Test_if_value_is_nil_after_expiration#01 (2.01s)
    --- PASS: TestExpireat/Invalid_Command_Test (0.01s)
PASS
2024/09/11 15:41:21 INFO Connection closed by client or reset fd=13
2024/09/11 15:41:21 INFO Received abort command, initiating graceful shutdown
2024/09/11 15:41:21 INFO Server socket closed successfully
2024/09/11 15:41:21 INFO cleaned up all client connections
2024/09/11 15:41:21 INFO Skipping AOF dump as test env enabled.
ok  	github.com/dicedb/dice/tests	9.386s

@harshrai654 thanks for contributing, changes look good to me.
Can you please add TCL tests log also for reference.
The steps to run the test cases are mentioned in the README of the dice-tests repository.
Look out for the mentioned test case you've fixed it should be passing with [ok] prefix.

@lucifercr07 I have attached tcl test run log file:
tcl-output.log
The mentioned tcl test case is now passing:
[ok]: EXPIRE with LT and XX option on a key with ttl (0 ms)
2024/09/11 19:30:17 INFO Connection closed by client or reset fd=11
[ok]: EXPIRE with LT and XX option on a key without ttl (1 ms)
2024/09/11 19:30:17 INFO Connection closed by client or reset fd=11
[ok]: EXPIRE with conflicting options: LT GT (0 ms)


Show more news when scrolling down

Show more news when scrolling down automatically instead of clicking load more button (#144).

When you have a very big screen there will never be loaded more news items.
After rendering all news items check if the last item is visible and load if needed


Move gossip headers to a gossip message

The headers in the metadata that related to gossip (AuthPubKey, AuthorSign, Gossip, (Auth)Timestamp) should be moved to the gossip message. in order to do #296

Was done in #310.
We kept the structure of the AuthPubKey and the signature, but a gossip message is now transferred as a regular protocol message. thus same structure is also required in both levels of the message.


missing glext.h include without glew

I'm building lolengine (well, specifically lolremez) on msys2 for the heck of it. it built successfully after making this change, though I haven't actually tested OpenGL support. installing glew also works, as you'd expect.
diff --git a/src/lolgl.h b/src/lolgl.h
index 373ea2ae..ac301f84 100644
--- a/src/lolgl.h
+++ b/src/lolgl.h
@@ -47,4 +47,5 @@
 #       define GL_GLEXT_PROTOTYPES
 #       include <GL/gl.h>
+#       include <GL/glext.h>
 #   endif
 #elif defined HAVE_GLES_2X

otherwise, I get a ton of missing enumerations, declarations, etc. when attempting to compile files like src/gpu/shader.cpp.

This makes sense, thanks! I’m an MSYS2 user myself.


Cache miss on macOS and Windows

I am triggering a matrix with the three OS. Calling it two times in a row with a workflow_dispatch should avoid rerunning all cacheable tasks in the second run, but this is only happening on Ubuntu.

Run: https://github.com/JavierSegoviaCordoba/detekt-rules/actions/runs/7119436063

Ubuntu time: 52s
macOS time: 3m 32s
Windows time: 2m 19s

Gradle Scans

Ubuntu: https://scans.gradle.com/s/7pzuyv5jdnjfi/performance/execution
macOS: https://scans.gradle.com/s/id7s5v5h7h3to/performance/execution
Windows: https://scans.gradle.com/s/3butjrhvrd2ts/performance/execution

Looks like there are some issues with the action related to the accessors (it shows Gradle 8.4, but the project is using Gradle 8.5).
Unhandled error in Gradle post-action - job will continue: Error: ENOENT: no such file or directory, realpath 'C:\Users\runneradmin\.gradle\caches\8.4\kotlin-dsl\accessors\2cef9241056ff6787ec530b1dbb398f1\classes\org\gradle\kotlin\dsl'

Thanks for the report @JavierSegoviaCordoba. The "Unhandled error" is very likely to be the problem, and this appears to be coming from the cache-cleanup part of the action.
This problem during cache cleanup seems to be causing the rest of the post-action to abort, including writing the job summary. (Which means we can't see a caching summary like this for the MacOS/Windows run).
I suspect that you may have seen a similar issue with the build that should have written the data to the cache, but I'm unable to find that CI run. Can you repeat your experiment after deleting any GitHub Actions cache entries and share the links to both GitHub Actions runs (the one that writes the entries to cache and the one that should read them back).
In any case, the action should be more robust with respect to failures during cache-cleanup.

I confirm it works. But I had to manually delete 30 cache files one by one via GitHub UI 😅

Closing this in preference of #990


Remove SNAPSHOT frorm OpenSearch version

Signed-off-by: cliu123<EMAIL_ADDRESS>Description
[Describe what this change achieves]

Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation) Maintenance
Why these changes are required? SNAPSHOT dependency is not available in Maven Central, which fails compilation.

Testing
UT
Check List

[x] Commits are signed per the DCO using --signoff

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

Looks like there is a missing dependency. Is this for a backport? - If so I think we should make sure we come up with the proper decision as a project before investing more time in those changes.
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project opensearch-security: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-surefire-plugin:jar:3.0.0-M3 -> org.apache.maven.surefire:maven-surefire-common:jar:3.0.0-M3: Failed to read artifact descriptor for org.apache.maven.surefire:maven-surefire-common:jar:3.0.0-M3: Could not transfer artifact org.apache.maven.surefire:maven-surefire-common:pom:3.0.0-M3 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/3.0.0-M3/maven-surefire-common-3.0.0-M3.pom: Connection timed out -> [Help 1]


_FillValue is mis-applied when netCDF data are packed

Reported by hankin on 12 Aug 2002 16:38 UTC
According to the CF conventions (2.5.1 Missing Data)the missing value flag
should be processed before data are unpacked (at least if the data type of the
flag matches the packed data type.  In Ferret the reverse is done.  Unpacking
occurs in cd_read.F without regard to the missing value flag (dual missing value
flags are handled later in read_tm.F)
To fix: the packed missing value flags need to be handled in cd_read.F,
cd_read_sub.c, or tm_scale.F . The default (Ferret) missing value flag of the
unpacked (float) type should be inserted (before unpacking occurs).
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/419

Comment by<EMAIL_ADDRESS>on 5 Nov 2003 22:51 UTC
reassign to Ansley

Comment by<EMAIL_ADDRESS>on 7 Apr 2005 15:45 UTC
This was fixed back in version 5.50, cd_get_1_dep_var.F

Comment by<EMAIL_ADDRESS>on 8 Nov 2005 17:22 UTC
The missing-value flag is assigned correctly, i.e. in cd_get_1_dep_var.F we get
the missing flag without applying the scale and offset.  BUT, when the data is
read (cd_read.F), and when there are scale and offset attributes, the scaling is
applied to all data (tm_scale.F) without checking for the missing-value flag.
The relevant paragraph from the CF standard is
The missing values of a variable with scale_factor and/or add_offset
attributes (see section 8.1) are interpreted relative to the variable's external
values, i.e., the values stored in the netCDF file. Applications that process
variables that have attributes to indicate both a transformation (via a scale
and/or offset) and missing values should first check that a data value is valid,
and then apply the transformation. Note that values that are identified as
missing should not be transformed.
The fix should be to keep the correct value of the missing flag, as is already
done in cd_get_1_dep_var.F, and then to apply it when scaling the data in
tm_scale.F -- send the missing value flag into tm_scale.

Comment by<EMAIL_ADDRESS>on 10 Nov 2005 18:03 UTC
Fixed correctly this time, in cd_read.F and tm_scale.F.  A new benchmark script
tests this  err581_missing_scale_off.jnl

Comment by<EMAIL_ADDRESS>on 5 Jan 2006 16:47 UTC
*** Bug 1374 has been marked as a duplicate of this bug. ***


Update of PCL token entry

Hello Taylor,
we are doing a token swap for PCL and thus are requesting to rename the old contract to PCL_OLD and add the new contract as PCL.
If you should have questions please feel free to e-mail us at<EMAIL_ADDRESS>or visit us in Telegram https://t.me/ico_peculium
greetings
criptix
www.peculium.io

Hey I'm in the process of updating all the tokens across the various lists right now. I'll make sure you're in and it should be live on the site tomorrow. :)


Chore(contributing.md) inroduction

#46

TODO:

add mention of biomeJS
clean code snippet

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 97.568%

Totals

Change from base Build<PHONE_NUMBER>2:
-0.1%

Covered Lines:
606

Relevant Lines:
612

💛  - Coveralls


[C#]"ctor+TAB+TAB": Generates constructor BUT fails to caption the actual class name & instead displays generic text "ClassName(Parameters)"

From @j-arya on April 20, 2017 16:1

VSCode Version:
Version 1.11.2
Commit 6eaebe3b9c70406d67c97779468c324a7a95db0e
Date 2017-04-13T08:03:11.395Z
Shell 1.4.6
Renderer 53.0.2785.143
Node 6.5.0
Extension: C Sharp (C#)
dotnet sdk runtime: 1.0.0-preview2-003131

OS Version:
OS Name	Microsoft Windows 10 Pro
Version	10.0.14393 Build 14393

Steps to Reproduce:

Create a Class File with name TestClass
Focus the Mouse Cursor inside the TestClass
Type ctor and hit TAB twice (ctor + tab + tab)
Verify that constructor get created with name set as public TestClass()

Actual Behavior:
constructor get created with name set as public ClassName(Parameters)
Expected Behavior:
constructor should get created with name set as that of its containing class i.e. public TestClass()
Note: Please refer the attached file named "vscode_ctor.PNG
"

Copied from original issue: Microsoft/vscode#25082

This is a dupe of https://github.com/OmniSharp/omnisharp-vscode/issues/643


[BUG, RKE2] cluster with windows node fails to deploy System Upgrade Controller to windows node, Write-EventLog : The source name "rancher-wins" does not exist on computer "localhost". on pods using rancher-wins image

Rancher Server Setup

Rancher version: v2.6-head (a3b5237)
Installation option (Docker install/Helm Chart): docker

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc):n/a

Proxy/Cert Details:n/a

Information about the Cluster

Kubernetes version:1.24.4+rke2r1
Cluster Type (Local/Downstream):downstream

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):vsphere

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)

If custom, define the set of permissions: standard user, cluster owner

Describe the bug

when deploying a windows cluster (1etcd, 1cp, 2workers are linux, 1 worker is windows after the linux nodes are all active), the SUC job fails to deploy to the windows node.
To Reproduce

in vsphere, deploy a windows cluster  (1etcd, 1cp, 2workers are linux pools, 1 worker is windows pool)
wait for the cluster to get to an active state

Result
pods using rancher-wins fail with this error in their logs
Creating C:\etc\rancher\wins
Tue, Sep 13 2022 2:11:51 pm | Write-EventLog : The source name "rancher-wins" does not exist on computer
Tue, Sep 13 2022 2:11:51 pm | "localhost".
Tue, Sep 13 2022 2:11:51 pm | At C:\run.ps1:103 char:5
Tue, Sep 13 2022 2:11:51 pm | + Write-EventLog -LogName "$LogName" -Source "$Source" -Message "$M ...
Tue, Sep 13 2022 2:11:51 pm | + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tue, Sep 13 2022 2:11:51 pm | + CategoryInfo : InvalidOperation: (:) [Write-EventLog], InvalidO
Tue, Sep 13 2022 2:11:51 pm | perationException
Tue, Sep 13 2022 2:11:51 pm | + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteEventLogCommand

Expected Result

windows should allow suc to deploy
Screenshots

Additional context

unable to test in a custom cluster with this version due to https://github.com/rancher/rancher/issues/38893

/backport v2.6.9

Ugh, this should not have been closed.

This is ready to test on v2.7-head.

tested on rancher v2.7-head (62f7959):

deployed windows 2022 rke2 cluster (v1.24.4+rke2r1) -- pass

after adding the windows node, it takes about 10 minutes for the SUC job to finish.


Adds fontsize function

Hey @heyman333 - here is the PR for the font size function we discussed a few weeks ago, sorry again for the delay.
Let me know what you think and I am happy to make further amendments.
Have not had time to test on a device yet but that is the next step. Cheers

Really appriciate for your effort @jamesmcn1
I will test your code and let you know the result ASAP

ping @jamesmcn1
Some changes has occurred since you requeted PR
please check all changes if you want merge your code 👍

I configured new cicleCI and please check that.
thanks


The defination of NFT and Inscriptions :are inscriptions NFTs?

Why are sat inscriptions called "digital artifacts" instead of "NFTs"?
An inscription is an NFT, but the term "digital artifact" is used instead, because it's simple, suggestive, and familiar.
The phrase "digital artifact" is highly suggestive, even to someone who has never heard the term before. In comparison, NFT is an acronym, and doesn't provide any indication of what it means if you haven't heard the term before.
Additionally, "NFT" feels like financial terminology, and the both word "fungible" and sense of the word "token" as used in "NFT" is uncommon outside of financial contexts.

The handbook and casey's video say Inscriptions are NFTs but list a lot differences with NFTs. And We all know Casey express his dislike with "NFTs" publicly.
This could be very much confusing to the new people who are coming into Ordinals. We try to educate people to use "Digital artifacts" or "Inscriptions" instead of "NFTs".
To make the defination clear ,We should let people understand clearly that which are correct at following ?
1,NFTs > Inscriptions
2,Inscriptions = digital artifacts ," inscriptions is digital arttifacts "
3,digital artifacts > Inscriptions;
NFT > Digital artifacts >= Inscriptions  If this is correct, the handbook also says :"What are digital artifacts? Simply put, they are the digital equivalent of physical artifacts."
So  "digital artifacts > NFTs " sounds correct as well.
With the development of BRC20 ,it making even more confusing :
Inscriptions = BRC 20 + other "digital artifacts "
So
Inscriptions > BRC20
and
Inscriptions < NFT
So NFT > Inscriptions > BRC 20 = FT
@casey Thought ?

Inscriptions are definitely NFTs.

Inscriptions are definitely NFTs.

Inscriptions are definitely NFTs.
Ser you are trying to say this is correct ?

Maybe this Chart is more likely to describe what is an Inscriptions.