Trying install on brand new up to date OSX system

It seems to require a later version of sqlite3 and node than is available.
[darin@server ~ ] sudo npm i -g ibackuptool
Password:
/usr/local/bin/ibackuptool -> /usr/local/lib/node_modules/ibackuptool/tools/cli.js

<EMAIL_ADDRESS>install /usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v72 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3/lib/binding'
gyp WARN EACCES user "nobody" does not have permission to access the dev dir "/Users/darin/Library/Caches/node-gyp/12.11.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3/.node-gyp'
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3/lib/binding/node-v72-darwin-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3/lib/binding/node-v72-darwin-x64" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
gyp ERR! cwd /usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3
gyp ERR! node -v v12.11.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3/lib/binding/node-v72-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3/lib/binding/node-v72-darwin-x64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
node-pre-gyp ERR! stack     at ChildProcess. (/usr/local/lib/node_modules/ibackuptool/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Darwin 18.6.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/ibackuptool/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3
node-pre-gyp ERR! node -v v12.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3/lib/binding/node-v72-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/usr/local/lib/node_modules/ibackuptool/node_modules/sqlite3/lib/binding/node-v72-darwin-x64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      /Users/darin/.npm/_logs/2019-10-05T15_22_33_444Z-debug.log
[darin@server ~ ] sqlite3 -v
sqlite3: Error: unknown option: -v
Use -help for a list of options.
[darin@server ~ ] sqlite3 -ver
sqlite3: Error: unknown option: -ver
Use -help for a list of options.
[darin@server ~ ] sqlite3 -version
3.24.0 2018-06-04 14:10:15 95fbac39baaab1c3a84fdfc82ccb7f42398b2e92f18a2a57bce1d4a713cbaapl

the sqlite3 version referred to (4.1.0) is the nodejs module version, not the system's installed sqlite version (which should work fine)
It looks like you're trying to install globally, but don't have permission to write to the directories required. You might want to try to install as your own user, and add it to you $PATH like described in this guide: https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md

I’ll try that. But I’m doing it as root. Why would I not have rights to install globally?

Hmm, I think npm lowers it's privileges now to avoid the security implications of installing as root (all package scripts run as root) - If you you're fine with that, try using:
npm install --unsafe-perms -g ibackuptool
see also: https://geedew.com/What-does-unsafe-perm-in-npm-actually-do/

Not to bump an old thread - but it looks like this was actually caused by OSX's new disk permissions via terminal. Docs on how to allow this can be found here: https://github.com/richinfante/iphonebackuptools#terminal-permissions


CRYPTO-43: Add assembly for release and fix header

Fixing https://issues.apache.org/jira/browse/CRYPTO-43

LGTM

Thank @jerrychenhf for your review.


Readme notes

Follow up to https://github.com/teampoltergeist/poltergeist/issues/866#issuecomment-299038062.
Not sure about the wording, whether to include links to relevant issues or a more technical explanation about the problem... Just let me know and I'll update it.
I also took the chance to bump the linux links to 2.1.1.

Please add a link to the issue #866 after the warning.  Also end the commit description with [ci skip] so it doesn't trigger builds.  Thanks

Added a link to the issue.
Documented the [ci skip] thing.
Squashed everything to one commit.
Added [ci skip] to the end of the commit description.

Hope it's fine!

Thanks!


LED Strip is not lighting...dancyPi-audio-reactive-led

##@Joni B13 If there are no errors then the problem may be hardware.
How much current is your power source applying?  I usually recommend running at least 2.5A of current if you are powering the lights straight from the Pi.
WS2812x lights are also directional. Make sure you have them connected the right way. There should be an arrow indicating which way the current should flow. If they are connected backwards then the lights won't turn on.
Thirdly, make sure your GPIO pins are connected correctly. If you want me to take a look, you can post a comment on Easy Programming or on the GitHub repo where you can post pictures, I'm happy to take a look. Links to both are in the video description.##

I have a 12V/33A power supply. I think this should be enough. xD
The GPIO pins should be connected correctly. I tried a test with the project of "Core Electronics" (https://core-electronics.com.au/tutor...) and it worked.
The green cable is "Din", I soldered it together with the green-yellow cable.
The white one is "GND" which I soldered together with the blue-white one.
The red and the white wire go to "V+" and "Common GND" of the power supply.
Where is the quantity of pixels defined?

Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
I just got this message.

Thanks for the info! That looks correctly set up.
I was just about to ask you about your mic when you posted last. What kind of Mic are you using? Alsa errors are typically related to the sound device.
The mic issue can be one of a few things but most common one that I've seen is the mic_rate.
In config.py, there's a MIC_RATE constant, by default it's 48000 hz. But the value can range greatly from like 32000 to 192000. I found that 48Khz is common among consumer USB mics so I kept that as the default: Make sure the mic_rate is set correctly: https://github.com/naztronaut/dancyPi-audio-reactive-led#configpy-has-been-edited-as-follows
The second thing could be that the install script didn't pick up the correct sound device. The script inserts the first USB device but it's only accurate most of the time. If you run this command you can see what sound devices your Pi detects:
cat /proc/asound/cards

By default, it'll set the value of '1'.  If your sound device is not on the value of '1', then change it in alsa.conf and asound.conf. Directions are here: https://github.com/naztronaut/dancyPi-audio-reactive-led#audio-device-configuration
Last thing I'd recommend is unplug your USB, turn off the pi, plug the USB back in, and turn the pi back on. I've noticed that sometimes, newly connected devices aren't recognized properly. And this quick annoying 4 step process seems to help.

i have the Logitech Canada Ices-003 Class B Mic.

I have tried everything and it still does not work. I have set the mic rate to 44100 Hz. I have also followed the other steps you have taken.

Can you share the outputs of alsa.conf, asound.conf and after running cat /proc/asound/cards?  Just want to double check the content.
The four most important lines in the error are these:
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa

It's saying that it can't find the default device. Although you defined them in the asound.conf and alsa.conf files. So something weird is happening. Can you also try another USB slot?
I'm currently out of town and don't have access to a Pi. I'll be home next week, I can dig deeper then but until then, I can keep trying to help you as best as I can.

Yes no problem. We will stay on it until we have made it.

Your Mic is card 2 but the configs are using card 1.
In your asound.conf, change those values from card 1 to card 2 instead.
And in your alsa.conf, where it says default.ctl.card 1 and default.pcm.card 1, change those to 2 instead.
Your 'card 1' is your headphones which is why PyAudio can't read that data. Let me know if this helps you move forward. Good luck!

I have adjusted the two things and tried it but it doesn't work.
I have a different error code now.

That's a new error. I did some googling and it seems that error could be because the mic rate doesn't match. Here's a thread from a different project (speech recognition) where the author mentions it: https://github.com/Uberi/speech_recognition/issues/245#issuecomment-349264809
You said you changed the MIC_RATE to 44100, where did you get that value? I'm having trouble finding the datasheet for that mic. Maybe try the default 48000 again and see if that makes a difference.

I started the raspi today and it finally worked.
Thanks for your help, it was my pleasure.
Have a nice week and all the best.
Joni

Awesome!! Congrats on getting it to work :) I'll close this thread.
Have fun with the Project!


[BUG] ApplyCommitRequest failures when using custom dictionary of size 25MB

Describe the bug
ApplyCommitRequest is taking too long when the cluster is using custom dictionaries of large size > 25MB[ more specifically, IndicesClusterStateService timing out]
[ApplyCommitRequest{term=10, version=19029, sourceNode={5c557a40cb3ee7836639f99b7c0e4100}{6hKxNzvgRQezm7qLqkeixg}{73gx871cQcirs9V4VOAwAA}{<IP_ADDRESS>}{<IP_ADDRESS>:9300}{imr}{dp_version=20210501, distributed_snapshot_deletion_enabled=false, cold_enabled=false, adv_sec_enabled=true, zone=us-east-1a, cross_cluster_transport_address=2600:1f10:41c2:8f81:81f5:6f66:b680:417c, shard_indexing_pressure_enabled=true, di_number=3}}] took [1.5m] which is above the warn threshold of [30s]:

[running applier [org.opensearch.indices.cluster.IndicesClusterStateService@38d87a65]] took [95196ms],

This is causing data nodes to not process the cluster state in time, so they get dropped out of the cluster.
Expected behavior
Data nodes to start dropping out of cluster when custom dictionary size becomes too large (>=25MB)

@rahulkarajgikar  are you trying to load this custom dictionary from a plugin or via OpenSearch?

@rahulkarajgikar  can you please help answer the above question?

Custom dictionary was loaded via opensearch: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/custom-packages.html#custom-packages-using

It looks like IndicesClusterStateService during commit phase could be parsing the complete mappings again (which is 25MB) and is taking longer.


Suggestion: Allow Only Pipes in OK.With

I really like the organizational structure of the
OK.with do
   stuff <- stuff
else
  match -> error
end

For grouping error handling all in one place. However, I find the stuff <- stuff syntax has me creating temp variables that just exist to pass into the next step.
It'd be nice to have a block without any <- segments.
It would turn a method like this:
def update(%{id: id, decision: attrs}, _resolution) do
  OK.with do
    decision <- do_get(id)
    Structure.update_decision(decision, attrs)
  else
    "does not exist" = message -> OK.failure(message)
    %{} = changeset -> OK.failure(changeset.errors)
  end
end

into this
def update(%{id: id, decision: attrs}, _resolution) do
  OK.with do
    {:ok, id}
    ~>> do_get()
    ~>> Structure.update_decision(attrs)
  else
    "does not exist" = message -> OK.failure(message)
    %{} = changeset -> OK.failure(changeset.errors)
  end
end

Perhaps this could be called something like OK.with_pipe

I think it should be possible to do this without needing any new named macro. Looking at your example I think it should work as is. @bill-mybiz is this more or less what you have been doing already?

Absolutely - I'm a big fan of this. The ~>> operator dovetails beautifully with OK.with.
Check out the documentation on hex here.
Perhaps it should be on the readme as well.

lol, it was the code in the hexdocs that had me trying this, but I couldn't get it to work. :)
Unless there is a <- inside the OK.with clause, I always get the following error
== Compilation error on file lib/graphql/decision/resolvers/decision.ex ==
** (FunctionClauseError) no function clause matching in OK.with/1
    expanding macro: OK.with/1
    lib/graphql/decision/resolvers/decision.ex:35: GraphQL.Decision.Resolvers.Decision.update/2
    (elixir) lib/kernel/parallel_compiler.ex:117: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

I couldn't find any examples in the docs of only using the pipeline inside OK.with, so I assumed it was not supported.

lol, it was the code in the hexdocs that had me trying this, but I couldn't get it to work. :)

:laughing:

I couldn't find any examples in the docs or in the linked test file (https://github.com/CrowdHailer/OK/blob/master/test/ok_test.exs) of only using the pipeline inside OK.with, so I assumed it was not supported.

After re-reading your question, I realize that you've been talking about only a single pipe statement inside the OK.with statement, and wanting to use the else block for error handling. That is an interesting idea and I haven't really thought about it. You can actually use a case statement, as the one I've just made in the test file:
test "single pipe with error handling - case piped" do
  {:ok, 20}
  ~>> safe_div(2)
  ~>> safe_div(0)
  |> case do
       {:ok, answer} ->
         IO.puts answer
         {:ok, answer}
       {:error, reason} ->
         IO.puts reason
         {:error, reason}
     end
end

(You could also have the ~>> statement inside the case parens if you prefer).
As for using OK.with, I did a little investigating into the AST produced, and it turns out the error statement you're seeing is because a single line does not produce a __block__ tuple. So there is no match in the pattern match for the with macro here. I did a quick hack that matched against the bare normal arg in with/2 and this seemed to address it. But it just seems an odd thing to do, since a with statement's original intent was to do multiple lines and avoid nested case statements. So I think the implementation would just be syntactic sugar to avoid the above case statement.

@bill-mybiz Thanks for pointing me in the right direction.
I also had not though of a usecase for a single expression in a with block, I guess it would certainly not have made sense prior to the else clause existing. However I think it is fairly clear cut what the behaviour should be if someone does want to use a single expression, as in this case.
I have pushed up a fix and this should now work in 1.6.2.
@lauraannwilliams let me know if this now works for you.
:whale:

Yes, works for me now. Thank you :)

Note I'm seeing this warning:
"warning: this clause cannot match because of different types/sizes"
on the ~>> Structure.update_decision(attrs). line, but my tests still pass :)

Glad its working.
regards the warning, I think that is because your first line is always an ok tuple. I'm probably going to let that remain for the moment. :-)

Just realized I don't have to start with an ok tuple so warnings are gone :)

regards the warning, I think that is because your first line is always an ok tuple. I'm probably going to let that remain for the moment. :-)

That is the same warning in #24, though (not) surprisingly I didn't actually state it explicitly! :laughing: I've accumulated quite a few of these warnings, as they occur whenever you have a catchall error clause, e.g.
OK.with do
...
else
  reason -> ...
end

There is still PR #25, but for some reason that hasn't been rejected or accepted.

That's not the same issue. But I should revisit #25

Just a note for anyone: the syntax I ended up with to eliminate the warnings was
def update(%{id: id, decision: attrs}, _resolution) do
  OK.with do
    id
    |> do_get()
    ~>> Structure.update_decision(attrs)
  else
    "does not exist" = message -> OK.failure(message)
    %{} = changeset -> OK.failure(changeset.errors)
  end
end

Wrapping the incoming id in an ok clause triggered the because (I think) the system could tell that first ~>> could never fail.
Switching to a regular pipe |> fixed that, and the fact that it's in a ~>> pipeline chain  and wrapped in an OK.with still catches all the errors.


Error installing on EndeavourOS kernel 5.17.9-arch1-1

==> Starting package()...
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    import envycontrol
  File "/home/edbizarro/.cache/yay/envycontrol/src/envycontrol/envycontrol.py", line 139
    TEARING_FIX = f'    Option "ForceCompositionPipeline" "true"\n'
                                                                  ^
SyntaxError: invalid syntax
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: envycontrol

Version 1.x was working fine.

Hello there, what's your Python version?
El mié, 25 de may. de 2022 19:23, Eduardo Bizarro @.***>
escribió:

==> Starting package()...
Traceback (most recent call last):
File "setup.py", line 3, in
import envycontrol
File "/home/edbizarro/.cache/yay/envycontrol/src/envycontrol/envycontrol.py", line 139
TEARING_FIX = f'    Option "ForceCompositionPipeline" "true"\n'
^
SyntaxError: invalid syntax
==> ERROR: A failure occurred in package().
Aborting...
-> error making: envycontrol
Version 1.x was working fine.
—
Reply to this email directly, view it on GitHub
https://github.com/geminis3/envycontrol/issues/45, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALY7IYMJXELUSIUBNEABJ4LVL277HANCNFSM5W7FLZQQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hi @geminis3, nevermind I have pyenv installed and set my global python to 2.7 (i don't know why), changing it back to 3.9 seems to "fix" de problem :)

Changing it back to 3.9 seems to "fix" de problem :)

I wrote the script for Python 3.X so that was to be expected ;)


Getting error when i run my automation script

Exception in thread "main" java.lang.NoSuchMethodError: org.openqa.selenium.remote.http.HttpClient$Factory.createDefault()Lorg/openqa/selenium/remote/http/HttpClient$Factory;
at io.appium.java_client.remote.AppiumCommandExecutor.(AppiumCommandExecutor.java:93)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:93)
at io.appium.java_client.windows.WindowsDriver.(WindowsDriver.java:42)
at com.desktop.automation.test.Test.main(Test.java:29)

Please any one can help me on this to resolve this issue?

can you provide more info on your setup?  The Java libraries will likely need to use a generic class like RemoteWebDriver as you're doing.  Getting the capabilities set up correctly is likely where you're hitting issues.

If i add a dependency in pom.xml my scripts are working fine. If i add a jar file i am getting the above error.


java.lang.OutOfMemoryError after upgrading to 3.16.5 (LocalCachedMap)

Expected behavior
no OutOfMemoryError on applications using the same Redis server but the previous version of redisson 3.16.3
Actual behavior
applications starting to OOM running version 3.16.3 while an application running with 3.16.5 was fine
crm@thread-pool-redisson-general-netty@thread-4
  at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(I)V (AbstractByteBuf.java:1442)
  at io.netty.buffer.AbstractByteBuf.checkReadableBytes(I)V (AbstractByteBuf.java:1428)
  at io.netty.buffer.AbstractByteBuf.readBytes([BII)Lio/netty/buffer/ByteBuf; (AbstractByteBuf.java:895)
  at io.netty.buffer.AbstractByteBuf.readBytes([B)Lio/netty/buffer/ByteBuf; (AbstractByteBuf.java:903)
  at org.redisson.cache.LocalCachedMessageCodec.lambda$new$0(Lio/netty/buffer/ByteBuf;Lorg/redisson/client/handler/State;)Ljava/lang/Object; (LocalCachedMessageCodec.java:68)
  at org.redisson.cache.LocalCachedMessageCodec$$Lambda$1805+0x0000000801d6ab08.decode(Lio/netty/buffer/ByteBuf;Lorg/redisson/client/handler/State;)Ljava/lang/Object; (Unknown Source)
  at org.redisson.client.handler.CommandDecoder.decode(Lio/netty/buffer/ByteBuf;Lorg/redisson/client/protocol/CommandData;Ljava/util/List;Lio/netty/channel/Channel;ZLjava/util/List;)V (CommandDecoder.java:383)
  at org.redisson.client.handler.CommandDecoder.decodeList(Lio/netty/buffer/ByteBuf;Lorg/redisson/client/protocol/CommandData;Ljava/util/List;Lio/netty/channel/Channel;JLjava/util/List;ZLjava/util/List;)V (CommandDecoder.java:427)
  at org.redisson.client.handler.CommandDecoder.decode(Lio/netty/buffer/ByteBuf;Lorg/redisson/client/protocol/CommandData;Ljava/util/List;Lio/netty/channel/Channel;ZLjava/util/List;)V (CommandDecoder.java:392)
  at org.redisson.client.handler.CommandPubSubDecoder.decodeCommand(Lio/netty/channel/Channel;Lio/netty/buffer/ByteBuf;Lorg/redisson/client/protocol/QueueCommand;I)V (CommandPubSubDecoder.java:84)
  at org.redisson.client.handler.CommandDecoder.decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lorg/redisson/client/protocol/QueueCommand;I)V (CommandDecoder.java:137)
  at org.redisson.client.handler.CommandDecoder.decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V (CommandDecoder.java:94)
  at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V (ByteToMessageDecoder.java:507)
  at io.netty.handler.codec.ReplayingDecoder.callDecode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V (ReplayingDecoder.java:366)
  at io.netty.handler.codec.ByteToMessageDecoder.channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V (ByteToMessageDecoder.java:276)
  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Ljava/lang/Object;)V (AbstractChannelHandlerContext.java:379)
  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Lio/netty/channel/AbstractChannelHandlerContext;Ljava/lang/Object;)V (AbstractChannelHandlerContext.java:365)
  at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Ljava/lang/Object;)Lio/netty/channel/ChannelHandlerContext; (AbstractChannelHandlerContext.java:357)
  at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V (DefaultChannelPipeline.java:1410)
  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Ljava/lang/Object;)V (AbstractChannelHandlerContext.java:379)
  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Lio/netty/channel/AbstractChannelHandlerContext;Ljava/lang/Object;)V (AbstractChannelHandlerContext.java:365)
  at io.netty.channel.DefaultChannelPipeline.fireChannelRead(Ljava/lang/Object;)Lio/netty/channel/ChannelPipeline; (DefaultChannelPipeline.java:919)
  at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read()V (AbstractNioByteChannel.java:166)
  at io.netty.channel.nio.NioEventLoop.processSelectedKey(Ljava/nio/channels/SelectionKey;Lio/netty/channel/nio/AbstractNioChannel;)V (NioEventLoop.java:719)
  at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized()V (NioEventLoop.java:655)
  at io.netty.channel.nio.NioEventLoop.processSelectedKeys()V (NioEventLoop.java:581)
  at io.netty.channel.nio.NioEventLoop.run()V (NioEventLoop.java:493)
  at io.netty.util.concurrent.SingleThreadEventExecutor$4.run()V (SingleThreadEventExecutor.java:986)
  at io.netty.util.internal.ThreadExecutorMap$2.run()V (ThreadExecutorMap.java:74)
  at java.lang.Thread.run()V (Thread.java:832)

Steps to reproduce or test case
access the same Redis server with different versions of the library (3.16.3 vs. 3.16.5)
Redis version
5.0.3
Redisson version
3.16.3 and 3.16.5
Redisson configuration
local cache map config
    @Nonnull
    @Override
    public <T extends RedisCacheable> RedisWithLocalCache<String, T> getLocallyCachedMap(@Nonnull final CacheKey cacheName,
            final int cacheSize,
            @Nonnull final Duration timeToLive,
            @Nonnull final Duration localCacheTimeToLive) {
        final var options = LocalCachedMapOptions.<String, T> defaults() //
                .cacheSize(cacheSize) //
                .timeToLive(timeToLive.toMillis()) //
                .maxIdle(localCacheTimeToLive.toMillis()) //
                .evictionPolicy(LocalCachedMapOptions.EvictionPolicy.LRU) //
                .reconnectionStrategy(LocalCachedMapOptions.ReconnectionStrategy.LOAD) //
                .syncStrategy(LocalCachedMapOptions.SyncStrategy.UPDATE) //
                .writeMode(MapOptions.WriteMode.WRITE_BEHIND);
        return new RedisWithLocalCacheWrapper<>(redisson.getLocalCachedMap(cacheName.keyName(), options));
    }

is there a way to share it directly with you without exposing it to the whole world?

Here is the email<EMAIL_ADDRESS>

mail with link has been sent

download requires registration. Can you use different hosting?

The page says that owner deleted file.

No leaks were found. I set -Dio.netty.leakDetection.level=advanced in vm args and executed test below.
        RedissonClient r = Redisson.create();

        LocalCachedMapOptions options = LocalCachedMapOptions.defaults() //
                .cacheSize(1000) //
                .timeToLive(10000) //
                .maxIdle(100000) //
                .evictionPolicy(LocalCachedMapOptions.EvictionPolicy.LRU) //
                .reconnectionStrategy(LocalCachedMapOptions.ReconnectionStrategy.LOAD) //
                .syncStrategy(LocalCachedMapOptions.SyncStrategy.UPDATE) //
                .writeMode(MapOptions.WriteMode.WRITE_BEHIND);
        RLocalCachedMap<String, String> m = r.getLocalCachedMap("test", options);

        for (int i = 0; i < 100000; i++) {
            m.put("i" + i, "i" + i);
            m.get("i" + i);
        }

        r.shutdown();

i sent you a new link to the heapdump to the email address in comment
the issue as far as i could understand the heapdump and behaviour of the other applications accessing the same cache was that they received an infinite stream of 0 from the applicatin that used 3.16.5 (when i just downgraded this one application to 3.16.4 everything worked again)

infinite stream of 0 from the applicatin that used 3.16.5

Can you provide test code to reproduce this behaviour?

infinite stream of 0 from the applicatin that used 3.16.5

Can you provide test code to reproduce this behaviour?

this is my assumption based on the heapdump which just shows 0`s and the stacktrace for the receive method. unfortunately i do not have test code, because the thing started to crash the other application when by just starting the one with the new version, which had to shutdown immediately, because of the multiple OOMs on the other applications.

i added a reproducer project here, sometimes it crashes with an OOM when running very long. https://github.com/BigMichi1/redisson
another interesting thing is when running the two Main classes in parallel with different redisson versions they do not see each other changes to the map

MainNew
MainOld
changes seen by the other

3.16.4
3.16.4
OK

3.16.4
3.16.6 / 3.16.5
NOT OK

3.16.6 / 3.16.5
3.16.6 / 3.16.5
OK

for example when MainOld uses 3.16.4 it will only print out foo = 12 and MainNew uses 3.16.6 will only print out the random values
when both MainOld and MainNew use the same version 3.16.6 or 3.16.4 they print out foo=12 and the random value in each execution depending on which one currently reads the updated value
while the last one is correct from my pov the first one when using different versions shows that there is some compatibility issue which I can not figure out and it looks like that this is causing the OOM after a while

I guess there is a compatibility issue caused by fix of https://github.com/redisson/redisson/issues/3978
Please upgrade to 3.16.5 version.

the problem is that we can not upgrade all applications at the same time they need to run for some time in parallel, anything we can do here, because we are still not quite sure if this is the only thing (using LocalCachedMap) that breaks applications using older versions in parallel

We still have the problem with the latest version!

@coditori
Could you share code to reproduce it?


updated catalyst-toolbox dependencies to main branch, removed voting-…

…hir dependencies

I've updated already the updates in my branch for snapshot test


Ignore package delete error if it is deleted already

https://github.com/stolostron/backlog/issues/22562
Signed-off-by: Philip Wu<EMAIL_ADDRESS>

/lgtm

/unhold


Dataset.to_tf_dataset fails when strings cannot be encoded as np.bytes_

Describe the bug
When loading any dataset that contains a column with strings that are not ASCII-compatible, looping over those records raises the following exception e.g. for é character UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 0: ordinal not in range(128).
Steps to reproduce the bug
Running the following script will eventually fail, when reaching to the batch that contains non-ASCII compatible strings.
from datasets import load_dataset

ds = load_dataset("imdb", split="train")
tfds = ds.to_tf_dataset(batch_size=16)

for batch in tfds:
  print(batch)
>>> UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 0: ordinal not in range(128)

Expected behavior
The following script to run properly, making sure that the strings are either numpy.unicode_ or numpy.string instead of numpy.bytes_ since some characters are not ASCII compatible and that would lead to an issue when applying the map.
from datasets import load_dataset

ds = load_dataset("imdb", split="train")
tfds = ds.to_tf_dataset(batch_size=16)

for batch in tfds:
  print(batch)

Environment info

datasets version: 2.12.1.dev0
Platform: macOS-13.3.1-arm64-arm-64bit
Python version: 3.10.11
Huggingface_hub version: 0.14.1
PyArrow version: 11.0.0
Pandas version: 1.5.3

May eventually be solved in #5883


What kind of images are going to be in the 0, 1, 2 folders under each image folders ?

You say image folders are,
├── datasets
└── RGB_Images
├── org_1_80x60
├── 0
├── aaa.png
├── bbb.png
└── ...
├── 1
├── ddd.png
├── eee.png
└── ...
└── 2
├── ggg.png
├── hhh.png
└── ...
├── 1_80x80
└── ...
What kind of images are going to be in the 0, 1, 2 folders under each image folders (org_1_80x80, 1_80x80 etc) ?
For example, 0 are live images, 1 are print images, 2 are mobile images ...
Sincerely yours.

@songinmok63
Did you find correct answer for that?

@songinmok63
Did you find correct answer for that?

I don't know that I have correct answer, but I have selected the 0 is print, the 1 is real, and the 2 is mobile.

thanks for your help.

@songinmok63
Did you find correct answer for that?

I don't know that I have correct answer, but I have selected the 0 is print, the 1 is real, and the 2 is mobile.


Expose /project to a user-configurable variable

IMO the root project should be /{project_slug} not just /project -- this is more expectable from the user point of view since locally the project root directory is called {project_slug}

All right, having the same structure locally, in storage, and in training environment makes sense.


No graph4nlp_demo folder created when git clone

I followed the instructions in the repo:
created environment (python 3.8)
git clone -b v0.5.5 https://github.com/graph4ai/graph4nlp.git
While this created a graph4nlp folder, it does not have a graph4nlp_demo folder. I had to separately clone to the graph4nlp_demo repo

graph4nlp and graph4nlp_demo are two separate repositories. You may need to git clone them separately to get both of them. Thanks.


Link fixes

Proposed changes
Fixed a few links in toc.yaml for CI tests to pass.
Also removed backslashed spaces in Dockerfile (preventing new line from being backslashed)

The fixes are good. Let's not let Jenkins weirdness hold up things any longer. It's had 3 and a half hours.


Add scroll_event vfunc to WidgetImpl

Another vfunc. It seems to work, although my test application had an issue where the event only gets triggered when a mouse button is held down at the same time. I suspect this is for a different reason though, e.g. some faulty window setup. Implementation is much the same as for motion_notify_event.

Failed CI are unrelated to this.

Seems like CI is on fire lately.
Thanks @tsahyt !


support for hydrated reboot aka shutdown -g

shutdown -g does a restart AND after logging in it automatically reopens your apps that were open at the time of restart. it is what it does when you 'update and restart', except you can trigger it manually without also updating.
windows has no native GUI for this, but can CS add this as an item in the shutdown menu?
thanks!
don't know where hydrated reboot comes from, I just saw a Microsoft engineer using the term on reddit

oops I didn't realize I was living under a stone, created the issue in the new repo
https://github.com/Open-Shell/Open-Shell-Menu/issues/152


feat:Added the changes to provide custom annotations to the fluent-operator deployment and pod

What this PR does / why we need it: This PR provides the feature to add custom annotations to the fluent operator deployment set and its subsequent pod.

I think this will fix some of the aspects I mentioned in issue https://github.com/fluent/fluent-operator/issues/456 :)

@juhis135 Thanks for the contribution!


Missing the specific details for the sink in the dataflow

Missing the specific details for the sink in the dataflow.
Especially for the incremental loading of data from SAP.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 24e254c6-6f8e-d271-8122-4c86d6278592
Version Independent ID: 6481d2fa-3edd-28ea-bee6-c423898a1a65
Content: Transform data from an SAP ODP source with the SAP CDC connector in Azure Data Factory or Azure Synapse Analytics - Azure Data Factory & Azure Synapse
Content Source: articles/data-factory/connector-sap-change-data-capture.md
Service: data-factory
Sub-service: data-movement
GitHub Login: @ukchrist
Microsoft Alias: ulrichchrist

@be-robinu
Thanks for your feedback! We will investigate and update as appropriate.

@ukchrist
Could you please review add comments on this, update as appropriate.

@be-robinu
Thank you for bringing this to our attention.
I've delegated this to content author @ukchrist, who will review it and offer their insightful opinions.

Thanks for your question @be-robinu. The SAP CDC connector isn't supported as sink in mapping data flows, as noted in the table here. #please-close


Show user IP

Hi! This Opensource project looks awesome and i'd really like to help you guys improve it!
I think it's cool to show the user its IP when he visits the website, so I added a feature to display a dialogbox showing it.
I used the is-info type for this dialogbox because I think it's the most relevant here, but let me know if you have any convention I am not aware of.
Here is a little screenshot:

Let me know if you have any concerned about this PR, I would be happy to contribute to this project! :smiley:

Hi !
Thanks for the contribution, I will quickly deploy the version to check that everything is working correctly :slightly_smiling_face:

DISCLAIMER: This PR uses v-iplib which is an infected library scanning local port of the user. This PR and library were made for educational purposes, this will not be merged and the library v-iplib should not be used.


All the tXReader.cpp files are missing Finalize

The missing Finalize calls is preventing mpirun being used properly

This has  been closed now: https://github.com/kramergroup/openImpala/commit/87924b387cd831beeb8c7c23d3ad2e1dbacded8a


tsify ValidateCall and schema types for cedar-wasm

Description of changes
Expose the types for ValidateCall (JSON input to wasm_validate) and the schema. Update previous Record<string, any> types for the schema to use the exported Schema type.
Issue #, if available
N/A
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):

[x] A change (breaking or otherwise) that only impacts unreleased or experimental code.

I confirm that this PR (choose one, and delete the other options):

[x] Updates the "Unreleased" section of the CHANGELOG with a description of my change (required for major/minor version bumps).
I confirm that cedar-spec (choose one, and delete the other options):

[x] Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.

Disclaimer
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Side question: I see that this PR modifies the build-wasm.sh script. Could you document what this script does and add it to our CI (if that makes sense)? Wouldn't want other PRs to accidentally break cedar-wasm 🙂

Side question: I see that this PR modifies the build-wasm.sh script. Could you document what this script does and add it to our CI (if that makes sense)? Wouldn't want other PRs to accidentally break cedar-wasm 🙂

For now, we can add the script itself to CI and see that wasm-pack build still passes, but in order to invoke tests and ensure that new commits don't break wasm we'd have to write TS/JS code in this repo for tests.


[Bug] System.InvalidOperationException: This service descriptor is keyed. Your service provider may not support keyed services

What are you really trying to do?

Describe the bug
See https://github.com/dotnet/runtime/issues/95789.
As of the v1.1.0 release,  the System.InvalidOperationException: This service descriptor is keyed. Your service provider may not support keyed services is thrown when calling AddHostedTemporalWorker after registering a keyed service descriptor to container.
I believe this to be the offending code, introduced in #216.
https://github.com/temporalio/sdk-dotnet/blob/ee378c17595bccf8a390ff82e4e1f514d4a6344f/src/Temporalio.Extensions.Hosting/TemporalWorkerServiceOptionsBuilderExtensions.cs#L184-L186
Minimal Reproduction

Environment/Versions

OS and processor: Windows/Linux
Temporal Version: n/a -- can't even startup
Are you using Docker or Kubernetes or building Temporal from source? n/a

I'm not sure if I'm doing something wrong, but using Temporal SDK for .NET 1.2.0 in a dotnet 8.0 project I still get this.
💣 System.InvalidOperationException: 'This service descriptor is keyed. Your service provider may not support keyed services.'
 	Microsoft.Extensions.DependencyInjection.Abstractions.dll!Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ThrowKeyedDescriptor()
 	Microsoft.Extensions.DependencyInjection.Abstractions.dll!Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ImplementationInstance.get()
>	Temporalio.Extensions.Hosting.dll!Temporalio.Extensions.Hosting.TemporalWorkerServiceOptionsBuilderExtensions.ConfigureOptions.AnonymousMethod__0(Microsoft.Extensions.DependencyInjection.ServiceDescriptor s)	C#
 	System.Linq.dll!System.Linq.Enumerable.Any<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>(System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyInjection.ServiceDescriptor> source, System.Func<Microsoft.Extensions.DependencyInjection.ServiceDescriptor, bool> predicate)	Unknown
 	Temporalio.Extensions.Hosting.dll!Temporalio.Extensions.Hosting.TemporalWorkerServiceOptionsBuilderExtensions.ConfigureOptions(Temporalio.Extensions.Hosting.ITemporalWorkerServiceOptionsBuilder builder, bool disallowDuplicates)	C#
 	Temporalio.Extensions.Hosting.dll!Temporalio.Extensions.Hosting.TemporalWorkerServiceOptionsBuilderExtensions.ConfigureOptions(Temporalio.Extensions.Hosting.ITemporalWorkerServiceOptionsBuilder builder, System.Action<Temporalio.Extensions.Hosting.TemporalWorkerServiceOptions> configure, bool disallowDuplicates)	C#
 	Temporalio.Extensions.Hosting.dll!Microsoft.Extensions.DependencyInjection.TemporalHostingServiceCollectionExtensions.AddHostedTemporalWorker(Microsoft.Extensions.DependencyInjection.IServiceCollection services, string taskQueue, string buildId)	C#
 	DealerVision.Operations.SampleWorker.dll!Program.<Main>$(string[] args)	C#


Side Bar Revision

Sidebar should be revisioned in a way that it is clear and contains expandable menu lists.

Sidebar has been revisioned with Home, Team Members, Meetings, Templates, and Researches expandable menu lists. New version of it can be checked by the following images.


clean up text implementation

And fix CI

Does this fix text transformations / #1145?

Yeah, I think it should! Sorry, completely forgot about communicating that!

Great ! Thanks both of you :wink:
This is minor to me, but changing the text size in the mwe ax3d[:ticks, :textsize] = 20 ... pushes the text labels further than before:

@SimonDanisch maybe we should take 5 min here to write a text unittest  in https://github.com/JuliaPlots/Makie.jl/tree/master/ReferenceTests/src/tests (translation, rotation, scale) so that it does not happen again and got covered by CI ? Even though I don't see what could go in it at the moment ...


Feat(admin) Allow multiple projects linked to a single repository

Goal
One of the goals of the migration to Postgres was to allow multiple projects to be linked to the same repository, which is a common pattern with the raise of monorepos.
This is why the database design includes 2 separate tables:

repos: only includes the data from GitHub about a given repository
projects: connected to repos via the repoId, have their own name, description, URL, tags

From the schema.ts file:
export const projects = pgTable("projects", {
  id: text("id").primaryKey(),
  name: text("name").notNull().unique(),
  slug: text("slug").notNull().unique(),
  description: text("description").notNull(),
  repoId: text("repoId")
    .references(() => repos.id, { onDelete: "cascade" })
    .notNull(),
});

export const repos = pgTable("repos", {
  id: text("id").primaryKey(),
  archived: boolean("archived"),
  default_branch: text("default_branch"),
  description: text("description"),
  full_name: text("full_name").notNull().unique(),
  homepage: text("homepage"),
  name: text("name").notNull(),
  owner_id: text("owner_id").notNull(),
  stars: integer("stargazers_count"),
  topics: jsonb("topics"),
});

Other changes includes:

Show a section with the projects from the same owner
Extract ProjectTable used in search results page component to share it
make repoId column required in projects schema

Why we need this feature
Example 1: React Spectrum
We need this feature to register a project like React Aria that is related to the same repo as React Spectrum, React Spectrum being a set of libraries.

Currently Best of JS only includes the React Spectrum library: https://bestofjs.org/projects/react-spectrum
Example 2: xyflow
Another example: the project xyflow includes different packages: one for React, one for Svelte.

Currently we display "React Flow / Svelte Flow" in Best of JS, which is not great: https://bestofjs.org/projects/react-flow-svelte-flow
So this PR introduces a new button "Add project to repository" in the Project details page.
How to test

In the admin app, visit the "project details" page. E.g. /projects/react-spectrum
A new section "Projects related to the same repo" shows the list of projects linked to the same repo
A button lets admin users add another project to the repo

Next step
I have added React Aria to the database, the project is available here: https://bestofjs.org/projects/react-aria
What is missing: I think the README section should display the content of the README of the relevant app in the Adobe Spectrum monorepo, instead of the one at the root level (screenshot below)


FPS Drops when Holding Guns, Dropping Guns, Or looking at Bandits (AMD Card)

Describe the bug
Pretty much the title, simply rendering a large gun like the AK-47 or M16A4 Cuts my FPS by about 30-40%, and rendering just 5-6 of the guns on screen result in almost 0 FPS, and, as the title suggest the same thing happens when looking at the NPC's from the mod
Reproducibility
Seems that it may be an issue with AMD, I am on a 6700XT and with the graphics driver version 23.7.1
To Reproduce
Drop a gun, or spawn a bandit on the ground
Screenshots or/and videos
Here is the video from when i originally reported the issue in discord: https://discord.com/channels/801852948854079489/1128516203615354900/1131496795680284752
Do note, i have had the command /wdb weapon liverender toggle toggled the entire time (You can see it for a brief moment in the video)
Logs or/and crash reports
Here is my logs: https://pastebin.com/LeMr3GKu (This happens without the modular suite of mods, gonna remove them i was just testing something)
Versions

Modern Warfare Cubed:0.1-Dev-14
Forge: 1.12.2 - <IP_ADDRESS>59 (I updated to 2860, same thing)
Java:1.8.0_51 (Viewable in the video)
Java JVM: Gonna be honest, have NO idea / Have any idea how to check this and I'm a java developer myself 🤣

Specification:

OS: Windows 11

CPU: Ryzen 5 7600x

GPU: Radeon RX 6700xt

RAM Allocated: 9GB

CPU Speed: Overclocking enabled, Max boosts up to around 5.3ish Base is 4.7

CPU Core: 6

CPU Threads: 12

RAM Size: 32GB

RAM Speed: 4800MHz

Storage Type:NVMe

GPU VRAM: 8GB

Additional context
I tried this with and without optifine, same results :)

Have you ever turned off world shaders and screen shaders?

Have you ever turned off world shaders and screen shaders?

They were on the whole time, I just tried turning them off now and its pretty much the same result with the FPS

Okay, however though turning ever shader option off DOES fix the issue, ill ship my modpack with these off by default then
Would this be an issue with AMD and there drivers, or some bug within MWCs shaders itself? I had this mod running a few months back on a rx570 8gb with a hefty overclock and TBH it held up pretty well (Never noticed/saw any frame drops when messing with guns and bandits), cant remember the driver version i was using though!

Okay, here is my final testing with the shaders setting: https://www.youtube.com/watch?v=bSDdntl6o9M
So, I can enabled EVERY shader, except that final top option, I can spam switch between stuff in my hotbar, render a gun and bandit on the screen without and major fps drops, however this seems to remove the skins feature from guns (seems it also messed up the drum texture too in the video I tried to restart the game with "Enabled All Shaders" to false and they stayed the same)
However, the moment I enable "Enable All Shaders" option it creates a horrid lag spike for every gun (And armor piece i assume too) rendered on the screen, but allows for the skins on guns to be rendered again
Disabling any of the other options other than "Enable All Shaders" really has no effect on performance, for me at least

Not an issue, the mod is just not very optimized in this current state, this will be something we will always work on, but it is not something we can just tick a box and "fix"


Colégio Oriente

@diogo-castro-vasconcelos First stage of verification passed, official domain for Colégio Oriente is coriente.pt as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@diogo-castro-vasconcelos Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.


Add tailwindcss + a random api

Is your feature request related to a problem? Please describe.
Can I add a random api and also tailwind css
Describe the solution you'd like
tailwind css is much easier and way faster to style things, it may introduce many devs to the project itself
Which Program are you part of?

[x] Hacktoberfest21
[ ] Any other

Additional context

That would be an amazing contribution to the project, @apoorvcodes!
Go on.

sure


[CS] Clean up extra lines from documentation

I've removed all extra lines from our documentation :smile:

Hi ;)
Please change target branch to 2.2 (you will also need to rebase your branch and push it with force)

Sure, rebasing in a minute :man_technologist:


fix(UuidModel): update condition to check if insertion succeeded

New changes were introduced to the BaseModel when fixing a bug in codeigniter4: https://github.com/codeigniter4/CodeIgniter4/pull/4176
fixes #2

Thanks!


net/http: use of Write method on Request/Response/Header is confusing

I think the choice of Write as the method name for writing to an io.Writer in wire format is poor. Write is a well known method name coming from the io.Writer interface, so it can be confused with it.
But worse than that, while Write([]byte) error modifies the receiver, Write(io.Writer) error modifies the argument.
I understand that the signatures are different, but if I'm quickly reading code I want to be able to understand what's going on without keeping track of types and signtures. Right now, if I see this line, it's very hard to know which of the two it is without reading more code and some light investigation:
r.Write(buf)

I think a better name would be WriteTo or WriteToWire. Suggestions welcome.
This can't be done in Go 1.x, so marking as Go2.

@bradfitz reason behind closing?

Because it's Go2. We know where to find Go2 stuff later. We won't be searching for "is:open label:Go2" later.
I also don't want to encourage people to file Go2 bugs about everything they don't like. Hidden away is fine.


Exiting a code block

Right now when you create a code block, there's no way to exit it apart from typing ```. (which is kinda unintuitive) Ideally there should be two more ways to do it:

Automatically add an emtpy, unstyled block after a code block on creation so that one can downarrow to it
On SHIFT+Enter jump out of the code block

I thought we had that first one already, but it appears to have been removed at some point. Any clues @juliankrispel?

that's weird - yea we totally had that and I tested it :/
I'll make a pr


How long wait Android App?

iOS app is running long time ago, some problem with android app?

It is in the works. We, however, are concentrating on clearing out the backlog on issues for the current apps.


How to create mysql::connection without config

I try to create class contain mysql::connection object:

class Database {
Database(std::shared_ptrmysql::connection_config config) {
// set config code ???
}
private:
mysql::connection db;
}

but i the error "error: no matching function for call to ‘sqlpp::mysql::connection::connection()’" at "mysql::connection db" line.
How do I initialize my db variable in Database constructor?
Thanks!

Have you looked a the tests? They connect to a database.
In your case: You need to pass the parameter to the database constructor before the opening curly brace, i.e. something like:
class Database
{
    Database(std::shared_ptr<mysql::connection_config> config)
     : db(config)
    {
    // set config code ???
    }

    private:
    mysql::connection db;
};

Thanks a lot!


Have all asynchronous requests cached using Universal Cache to support SEO

The application runs XHR requests on the server & once again on the Client-side (when the application bootstraps)
Use a UniversalCache instead of regular Http, to save certain requests so they aren't re-ran again on the Client. (Example useage here)

https://github.com/angular/universal-starter
With redux storing a centralized state, it seems that all asynchronous requests should be put into the store and that put into Universal Cache.

On my current rest services branch, all async requests are indeed put in to the store.
I'll look in to putting the store in universal cache.

This was fixed by #62


Rewrite rules

It might be nice to have some facility to provide rewrite rules in a configuration block.  For example, if you have some Rack rewrite (or nginx/unicorn-level rewrites), it's difficult to get a signature match.
As an example, if the incoming request_uri is /api/v1/posts, it'd be nice to be able to say:
ApiAuth.allow_uri('api/v1/posts', ['api/posts', 'posts'])

(The desired outcome is that if I POST to /posts, and nginx rewrites my request to /api/v1/posts, ApiAuth will check each possible signature and return true if any of them match.)
(Another approach might be an option allowing you to specify a certain header -- Http-X-Original-URI, for example, or whatever header your web server might generate -- instead of using request_uri when building and verifying the signature.)

I think it would make sense to have a header that specifies the path
originally used to sign the request. On the server side I wonder if we
should provide for some sort or warning or ability to pass allowed paths
into the authentic? method or some other way to make this an opt in only
feature
On February 3, 2016 at 8:19:59 AM, elliot nelson<EMAIL_ADDRESS>wrote:

It might be nice to have some facility to provide rewrite rules in a
configuration block. For example, if you have some Rack rewrite (or
nginx/unicorn-level rewrites), it's difficult to get a signature match.
As an example, if the incoming request_uri is /api/v1/posts, it'd be nice
to be able to say:
ApiAuth.allow_uri('api/v1/posts', ['api/posts', 'posts'])
(The desired outcome is that if I POST to /posts, and nginx rewrites my
request to /api/v1/posts, ApiAuth will check each possible signature and
return true if any of them match.)
(Another approach might be an option allowing you to specify a certain
header -- Http-X-Original-URI, for example, or whatever header your web
server might generate -- instead of using request_uri when building and
verifying the signature.)
—
Reply to this email directly or view it on GitHub
https://github.com/mgomes/api_auth/issues/95.

Just bumped into the exact same issue, happy to provide a PR if given the direction to fix this.
We have Nginx on top of a Rails application and this is rewriting incoming calls, making the signature check failing.

+1

Worked on a fix for this, you can see it on #137


Building animation spinner off center

I don't have time to dig into why, but the building status image is spinning off center:

Just noticed this too.

That's a bug in VS Code, investigated and filed here: https://github.com/microsoft/vscode/issues/117859

Should be fixed in the next release!

Still exists in the bottom corner on the status bar for version 1.70.2 (say for deleting a large folder)


Showing magnum simulation without mc_rtc_ticker

Hi,
Is there a way where I can display my robot simulation in magnum when using my own program to activate my controller?
I currently have a python program activating the controller using MCGlobalController().run(). Is there a method I can use on McGlobalController such that the magnum simulation is activated as well? I see that there's a Ticker class under mc_control, but I cannot call it in python.
Thank you in advance for your help!
From,
Jeffrey

hi @jlee1218
this should work out-of-the-box if the GUI is enabled in mc_rtc configuration.
When you start MCGlobalController you should see something like:
[info] GUI server enabled
[info] Will serve data on:
[info] - ipc:///tmp/mc_rtc_pub.ipc
[info] - tcp://*:4242
[info] Will handle requests on:
[info] - ipc:///tmp/mc_rtc_rep.ipc
[info] - tcp://*:4343

If you are running the Python program with super-user privilege you might not be able to access the IPC files and mc-rtc-magnum does not complain about it. Instead you can connect via tcp: mc-rtc-magnum --tcp localhost
Another possible issue might be that you never call the run() function for some reason (e.g. you are waiting on sensor data before calling run() and the sensor data never comes), in that case the GUI will also appear empty since nothing is published.

I currently have a python program activating the controller using MCGlobalController().run()

Note that you have to create an instance of MCGlobalController and call run on this instance. e.g.:
gc = mc_control.MCGlobalController()
while active:
  # Update sensors via gc interface
  gc.run()
  # Use gc output to update the system's commands
  # Wait for the next iteration

If you are actually calling MCGlobalController().run() instead then you are basically re-creating everything everytime.


fix(XMLHttpRequest): prevent invalid listener name access

When a XMLHttpRequest event handler is reset by setting it to null, an error will be thrown, that @mswjs/interceptors cannot access the property name on null. Here is an example of that error:
const req = new XMLHttpRequest()
req.onload = function() { console.log(`Responded with status %i`, this.status) }
req.ontimeout = null
req.open("GET", "http://localhost:7003/test/status/200")
req.send()

This PR prevents the error by not accessing the name property if the listener is undefined | null;
Do you think it needs tests, or is it fine as-is?

This is a great find, @hpohlmeyer! Thank you for fixing this.
Yes, adding an integration test that does exactly what you do in that code snippet would be essential. Would you have a chance to add it, please? You can put it in test/modules/XMLHttpRequest/compliance/xhr-event-callback-null. A better name for the test module is also welcome!
Let me know if you need any help writing that test.

@kettanaito sorry for not responding sooner. I am on vacation right now. I will be back next week.
I did write some tests already, but was not sure where to put it. Thanks for pointing me to the right file. I will probably be able to add the tests on Monday.

@hpohlmeyer, I think it's enough to put your usage scenario from the description and assert that the request doesn't error. We shouldn't assert the name or anything since those are implementation details.

Okay, I have added some tests and I am just logging the event listener now.

Released: v0.25.8 🎉
This has been released in v0.25.8!

📄 Release notes
📦 npm package

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.

Predictable release automation by @ossjs/release.


Testing Output Network

Hi,
I'd like to give an image input from testset, in order to visualize the result (the corrisponding label).
How can I do this? Is there a command?
Thanks

Hello,
This code base does not officially provide such function at this point.
Unfortunately, it seems unlikely to be easily implemented from this repository. 🤔
You may need to load and transform your own query image, and replace it with the query set provided in the dataloader.
For example, the code snippet from test.py
https://github.com/dahyun-kang/renet/blob/b58ebc092fcdb40e7f534f6407512df4f109cacd/test.py#L28-L35
should be something like below:
        for i, (data, labels) in enumerate(tqdm_gen, 1):
            myquery = # read, transform, and load the image to the GPU here.
            data = data.cuda()
            data = torch.cat((data[:k], myquery), dim=0)
            data = model(data)
            data_shot, data_query = data[:k], data[k:]
            model.module.mode = 'cca'
            logits = model((data_shot.unsqueeze(0).repeat(args.num_gpu, 1, 1, 1, 1), data_query))
            print(logits.argmax(dim=1))  # you can see the prediction out of 0 to N-1 here

You can see how your query image is predicted based on a various composition of support set.

have you solved the question? can you tell me how to visualize the result?


upload trained faster/mask rcnn model to model zoo

Can you upload trained models of mask/faster rcnn in model zoo?
Thank you!

R50-C4
64
(600, 1024)
280k
33.1
18h on 8 V100s

R50-C4
512
(800, 1333)
280k
35.6
55h on 8 P100s

R50-C4
512
(800, 1333)
360k
36.6
49h on 8 V100s

R50-FPN
512
(800, 1333)
360k
37.5
28h on 8 V100s

R50-C4
256
(800, 1333)
280k
36.8/32.1
39h on 8 P100s

R50-C4
512
(800, 1333)
360k
37.8/33.2
51h on 8 V100s

R50-FPN
512
(800, 1333)
360k
38.1/34.9
38h on 8 V100s

R101-C4
512
(800, 1333)
280k
40.1/34.4
70h on 8 P100s

R101-C4
512
(800, 1333)
360k
40.8/35.1
63h on 8 V100s

Two best C4 models are uploaded already.
I may upload a FPN one later, but I won't have time to manage every one of them..

R50FPN model was uploaded.  I don't plan to upload those non-standard models. Closing this now.


Error when using las2fmap.py

Hi, thank for fixing the BUGs and it works great with examples.las.
But when I use the las file you prvides in<EMAIL_ADDRESS>which is the prepared data( I use dbnet-2018\train\1\points_16384\0.las for test), it comes the error:
Traceback (most recent call last):   File "J:/DBNet-master/tools/las2fmap.py", line 290, in <module>     main()   File "J:/DBNet-master/tools/las2fmap.py", line 274, in main     if get_fmap(p):   File "J:/DBNet-master/tools/las2fmap.py", line 233, in get_fmap     rotate_about_center(fmap, 180, 1.0))   File "J:/DBNet-master/tools/las2fmap.py", line 98, in rotate_about_center     return cv2.warpAffine(src, rot_mat, (int(math.ceil(nw)), int(math.ceil(nh))), flags=cv2.INTER_LANCZOS4) cv2.error: OpenCV(3.4.4) C:\projects\opencv-python\opencv\modules\imgproc\src\imgwarp.cpp:2611: error: (-215:Assertion failed) src.cols > 0 && src.rows > 0 in function 'cv::warpAffine'
which means I could not make fmap by myself, could you please help me?

This is because down-sampled point clouds are not dense enough to be mapped into the 2D plane. In the paper, original point clouds which contain millions of points (like example.las) in each scene are used to generate feature maps directly to maintain enough information.

Sorry for late reply!
Got it! Thanks a lot!
By the way, would you like to share the code with using LSTM? I'm a noob of Tensorflow and want to learn how to do like your paper.

Thanks for the interest! For now, I have other projects to work on so maybe there is no time to add more models and results. There are also many fantastic tutorials of tensorflow (including LSTM ops) on Github, which are good materials to learn and start from :)
By the way, any pull-requests about new models/results are highly welcomed and appreciated!


Validation module improvements

The validation.js module needs some work if it's to be used in production
This file can be found under the Input component

Added validation for:

[x] Email
[x] Postal code
[x] Phone number
[x] Credit card (with different card types)
[ ] Address
[ ] ??


Add sysinfo dmesg action to Sansshell

Description
Allow sansshell to read messages from kernel ring buffer with sysinfo dmesg action. Currently this action is supported only in linux or unix OS.
Usage of this action:
demsg [--tail=N] [--grep=PATTERN] [-i] [-v]:
Print the messages from kernel ring buffer.
-grep string
regual expression filter
-i	ignore case
-tail int
tail the latest n lines (default -1)
-v	invert match
Example:

$./sanssh --targets=localhost sysinfo dmesg -tail 5 -grep USB
[2023-07-24 15:22:10 PDT]: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 SUBSYSTEM=usb
 DEVICE=c189:264
[2023-07-24 15:22:10 PDT]: hid-generic 0003:203A:FFFB.000C: input,hidraw2: USB HID v10.01 Keyboard [Parallels Virtual Keyboard] on usb-0000:00:03.0-2/input0
 SUBSYSTEM=hid
 DEVICE=+hid:0003:203A:FFFB.000C
[2023-07-24 15:22:10 PDT]: usb 1-1: New USB device found, idVendor=203a, idProduct=fffa, bcdDevice= 1.00
 SUBSYSTEM=usb
 DEVICE=c189:4
[2023-07-24 15:22:10 PDT]: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 SUBSYSTEM=usb
 DEVICE=c189:4
[2023-07-24 15:22:10 PDT]: usblp 1-1:1.0: usblp0: USB Unidirectional printer dev 5 if 0 alt 0 proto 1 vid 0x203A pid 0xFFFA
 SUBSYSTEM=usb
 DEVICE=+usb:1-1:1.0

One thing I want to shout out is the timeout setup for kmsgParser: https://github.com/Snowflake-Labs/sansshell/pull/277/files#diff-76044fc118d77e4ad23a112617066226480af94110de9414934321b9460ce8c9R69. Without using that, the Parse() function will always keep the channel open which in effect block the program(for loop never ends).
Although the channel will be closed if it encounters EOF, but it requires us to explicitly call parser.Close() function. The original logic just like this: https://github.com/euank/go-kmsg-parser/blob/master/cmd/godmesg/main.go but the for loop never ends.
So I just wait 2 seconds to close the channel which usually be free within 1 second.

One thing I want to shout out is the timeout setup for kmsgParser: https://github.com/Snowflake-Labs/sansshell/pull/277/files#diff-76044fc118d77e4ad23a112617066226480af94110de9414934321b9460ce8c9R69. Without using that, the Parse() function will always keep the channel open which in effect block the program(for loop never ends).
Although the channel will be closed if it encounters EOF, but it requires us to explicitly call parser.Close() function. The original logic just like this: https://github.com/euank/go-kmsg-parser/blob/master/cmd/godmesg/main.go but the for loop never ends.
So I just wait 2 seconds to close the channel which usually be free within 1 second.

Could you add a comment in the code mentioning this quirk?
It's unfortunate that this library doesn't support a way to only read until we reach the end of recently-logged messages, but I don't think the added complexity from trying to support that is worthwhile yet.

Yes, actually I have raised a Issue to the owner of the library: https://github.com/euank/go-kmsg-parser/issues/8. And he is working on supporting reading dev/kmsg in non-blocking way. Once the new feature is released, I will make corresponding change on my side.


write README.md

closed via https://github.com/phra/nodebuster/commit/344a60ce6a94d94aeda73b96cf5506e09258b598


Unable to immediately drag item in combination with select2

Problem:
In combination with select2 library, it is only possible to drag items after an initial click.
When using forceFallback true, it works fine.
JSBin/JSFiddle demonstrating the problem:
https://jsbin.com/rolinewihu

Before you create an issue, check it:

Try master-branch, perhaps the problem has been solved;
Use the search, maybe we already have an answer;
If not found, create an example on jsbin.com (draft) and describe the problem.

Bindings:

Angular

2.0+: https://github.com/SortableJS/angular-sortablejs/issues
legacy: https://github.com/SortableJS/angular-legacy-sortablejs/issues

React

ES2015+: https://github.com/SortableJS/react-sortablejs/issues
mixin: https://github.com/SortableJS/react-mixin-sortablejs/issues

Polymer: https://github.com/SortableJS/polymer-sortablejs/issues
Knockout: https://github.com/SortableJS/knockout-sortablejs/issues
Meteor: https://github.com/SortableJS/meteor-sortablejs/issues

I don't understand, I can drag it right away after the items are added.

You are correct, the behaviour only appears if options are already selected (input element has no focus) and you try to sort the options:
https://jsbin.com/rolinewihu
with forceFallback option this works fine:
https://jsbin.com/suxadinate

The jsbins you've provided don't show the bug.
@ol0lll  If this is still a bug, feel free to reopen with an example showing the bug.

I have the same problem on last release (v1.15.2), and I can recreate the behavior on the jsbin by ol0lll on Google Chrome.
In Firefox, items can be drag immediately.
Seems on Google Chrome, the action "drag" will trigger input's focus event?
That cause select2's dropdown be triggered, and cancel the drag action.


Does the cmake build work with clang?

On debian linux, I do
cmake -DTARGET=LIBS -DNETWORK=mpi -DSMP=off -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_Fortran_COMPILER=gfortran <charm-src>

and I get
<...>/charmc: line 236: eval: -I: invalid option
eval: usage: eval [arg ...]
Fatal Error by charmc in directory <...>/b
Command -I<...>/b/include -DAMPI_ERRHANDLER_RETURN=0 -DNDEBUG -O3 -O3 -O2 -c <...>/b/pup_f.f90 -o CMakeFiles/conv-utilf.dir/pup_f.f90.o returned error code 2

Seems like a command is missing in charmc:236
DoNoErrCheck() {
	[ -n "$VERBOSE" ] && echo "charmc: Executing $@" 1>&2
	eval "$@"
}

Does someone have a workaround?

In general, I would suggest specifying compilers via environment variables, not inside the cmake options when using cmake directly:
$ CC=mpicc CXX=mpicxx FC=gfortran cmake -DTARGET=LIBS -DNETWORK=mpi -DSMP=off <charm-src>

Does this make a difference for your build?

As I have multiple mpi installs besides the system-wide one with gcc, e.g., with clang, I usually point cmake to non-system mpi wrappers via either env vars (as you suggest) or via cmake's args. Neither of the above helps though with the error if I have clang behind the mpi wrappers. (Though, I'm also happy with the workaround in #3636.)

That is interesting. Could you please paste the complete cmake output in a gist and add a link here?

https://gist.github.com/jbakosi/a827cbdcab0d3bcfdc4df5874703d4e9
It only errors with -DNETWORK=mpi.

@matthiasdiener  @ebohm I have a couple of colleagues here at AMD who are trying to get Charm++ built with our clang-based AOCC compiler and are snagging in the same error described here. Do you guys have an ETA for a fix on this issue?

I'm guessing if gfortran is not installed, CMake will blank out CMAKE_Fortran_COMPILER, and that's why the shell sees -I as the first word in the command.
Side note, if you're using mpicc and mpicxx, I would set the Fortran compiler to mpif90 or similar.

Side note, if you're using mpicc and mpicxx, I would set the Fortran compiler to mpif90 or similar.

I usually do, but for cmake projects that do not enable fortran, this remains an issue.


BPM giving too high a value

Hi I recently got one of the pulse sensors to measure the BPM and most of my values are extremely high (200+) and I can't figure out why. I didn't alter the code much and I've attached my own code below. I've also attached a photo of the pulse sensor so that you could confirm it is genuine. I would really appreciate if I could get some help with this.
Thank you
// Sensor and pins variables
int pulsePin = 0;
int blinkPin = 13;
// Pulse rate variable
volatile int BPM;
// Raw signal
volatile int Signal;
// Interval between beats
volatile int IBI = 600;
// Becomes true when the pulse is high
volatile boolean Pulse = false;
// Becomes true when Arduino finds a pulse
volatile boolean QS = false;
void interruptSetup();
void setup(){
// Start Serial
Serial.begin(115200);
// Sets up to read Pulse Sensor signal every 2mS
interruptSetup();
}
void loop(){
// If heart beat is found
if (QS == true) {
// Print heart rate
Serial.print("Heart rate: ");
Serial.println(BPM);

// Reset the Quantified Self flag for next time
QS = false;

}
// Wait 20 ms
delay(50);
}
volatile int rate[10];                    // array to hold last ten IBI values
volatile unsigned long sampleCounter = 0;          // used to determine pulse timing
volatile unsigned long lastBeatTime = 0;           // used to find IBI
volatile int P =512;                      // used to find peak in pulse wave, seeded
volatile int T = 512;                     // used to find trough in pulse wave, seeded
volatile int thresh = 512;                // used to find instant moment of heart beat, seeded
volatile int amp = 100;                   // used to hold amplitude of pulse waveform, seeded
volatile boolean firstBeat = true;        // used to seed rate array so we startup with reasonable BPM
volatile boolean secondBeat = false;      // used to seed rate array so we startup with reasonable BPM
void interruptSetup(){
// Initializes Timer2 to throw an interrupt every 2mS.

// Timer 2 makes sure that we take a reading every 2 miliseconds
ISR(TIMER2_COMPA_vect){                         // triggered when Timer2 counts to 124
cli();                                      // disable interrupts while we do this
Signal = analogRead(pulsePin);              // read the Pulse Sensor
sampleCounter += 2;                         // keep track of the time in mS with this variable
int N = sampleCounter - lastBeatTime;       // monitor the time since the last beat to avoid noise
//  find the peak and trough of the pulse wave

if(Signal < thresh && N > (IBI/5)*3){       // avoid dichrotic noise by waiting 3/5 of last IBI
if (Signal < T){                        // T is the trough
T = Signal;                         // keep track of lowest point in pulse wave
}
}
if(Signal > thresh && Signal > P){          // thresh condition helps avoid noise
P = Signal;                             // P is the peak
}                                        // keep track of highest point in pulse wave
//  NOW IT'S TIME TO LOOK FOR THE HEART BEAT
// signal surges up in value every time there is a pulse
if (N > 250){                                   // avoid high frequency noise
if ( (Signal > thresh) && (Pulse == false) && (N > (IBI/5)*3) ){
Pulse = true;                               // set the Pulse flag when we think there is a pulse
digitalWrite(blinkPin,HIGH);                // turn on pin 13 LED
IBI = sampleCounter - lastBeatTime;         // measure time between beats in mS
lastBeatTime = sampleCounter;               // keep track of time for next pulse
  if(secondBeat){                        // if this is the second beat, if secondBeat == TRUE
    secondBeat = false;                  // clear secondBeat flag
    for(int i=0; i<=9; i++){             // seed the running total to get a realisitic BPM at startup
      rate[i] = IBI;
    }
  }

  if(firstBeat){                         // if it's the first time we found a beat, if firstBeat == TRUE
    firstBeat = false;                   // clear firstBeat flag
    secondBeat = true;                   // set the second beat flag
    sei();                               // enable interrupts again
    return;                              // IBI value is unreliable so discard it
  }

  // keep a running total of the last 10 IBI values
  word runningTotal = 0;                  // clear the runningTotal variable

  for(int i=0; i<=8; i++){                // shift data in the rate array
    rate[i] = rate[i+1];                  // and drop the oldest IBI value
    runningTotal += rate[i];              // add up the 9 oldest IBI values
  }

  rate[9] = IBI;                          // add the latest IBI to the rate array
  runningTotal += rate[9];                // add the latest IBI to runningTotal
  runningTotal /= 10;                     // average the last 10 IBI values
  BPM = 60000/runningTotal;               // how many beats can fit into a minute? that's BPM!
  QS = true;                              // set Quantified Self flag
  // QS FLAG IS NOT CLEARED INSIDE THIS ISR
}

}
if (Signal < thresh && Pulse == true){   // when the values are going down, the beat is over
digitalWrite(blinkPin,LOW);            // turn off pin 13 LED
Pulse = false;                         // reset the Pulse flag so we can do it again
amp = P - T;                           // get amplitude of the pulse wave
thresh = amp/2 + T;                    // set thresh at 50% of the amplitude
P = thresh;                            // reset these for next time
T = thresh;
}
if (N > 2500){                           // if 2.5 seconds go by without a beat
thresh = 512;                          // set thresh default
P = 512;                               // set P default
T = 512;                               // set T default
lastBeatTime = sampleCounter;          // bring the lastBeatTime up to date
firstBeat = true;                      // set these to avoid noise
secondBeat = false;                    // when we get the heartbeat back
}
sei();                                   // enable interrupts when youre done!
}// end isr

You Pulse Sensor does look legit.
What Arduino board are you using?
Please use our Pulse Sensor Playground Library
https://github.com/WorldFamousElectronics/PulseSensorPlayground
This code that you are using has been superseded.

Thanks I think the old code was the source of my problems, I'm getting much more sensible readings now.

Great!

Hii, I am using Sensor Playground Library. (Getting_BPM_to_Monitor code), I have pasted the code down below, as soon as I upload the code, I see the output in serial monitor is not stable, it keeps getting increasing like beyond 150 reaches till 250 or sometimes its below 50.
I have tried changing the threshold value, still no changes.
I really need some help on this, Kindly acknowledge as soon a possible.
#define USE_ARDUINO_INTERRUPTS true    // Set-up low-level interrupts for most accurate BPM math.
#include <PulseSensorPlayground.h>     // Includes the PulseSensorPlayground Library.
//  Variables
const int PulseWire = 0;       // PulseSensor PURPLE WIRE connected to ANALOG PIN 0
const int LED13 = 13;          // The on-board Arduino LED, close to PIN 13.
int Threshold = 400;           // Determine which Signal to "count as a beat" and which to ignore.
// Use the "Getting Started Project" to fine-tune Threshold Value beyond the default setting.
// Otherwise leave the default "550" value.
PulseSensorPlayground pulseSensor;  // Creates an instance of the PulseSensorPlayground object called "pulseSensor"
void setup() {
Serial.begin(9600);          // For Serial Monitor
// Configure the PulseSensor object, by assigning our variables to it.
pulseSensor.analogInput(PulseWire);
pulseSensor.blinkOnPulse(LED13);       //auto-magically blink Arduino's LED with heartbeat.
pulseSensor.setThreshold(Threshold);
// Double-check the "pulseSensor" object was created and "began" seeing a signal.
if (pulseSensor.begin()) {
Serial.println("We created a pulseSensor Object !");  //This prints one time at Arduino power-up,  or on Arduino reset.
}
}
void loop() {
int myBPM = pulseSensor.getBeatsPerMinute();  // Calls function on our pulseSensor object that returns BPM as an "int".
// "myBPM" hold this BPM value now.
if (pulseSensor.sawStartOfBeat()) {            // Constantly test to see if "a beat happened".
Serial.println("♥  A HeartBeat Happened ! "); // If test is "true", print a message "a heartbeat happened".
Serial.print("BPM: ");                        // Print phrase "BPM: "
Serial.println(myBPM);                        // Print the value inside of myBPM.
}
delay(20);                    // considered best practice in a simple sketch.
}

@ANJALI2022 I'll need more information to troubleshoot your problem.
What hardware are you targeting (Arduino UNO? Some other thing?)
When you adjust the threshold variable, make sure that you set it above 512, which is around where the Pulse Sensor signal idles.
Also, plz send a picture of your Pulse Sensor for verification.

Thanks for the acknowledgment!
I am using Arduino UNO, and I kept the Threshold value above 512.
Here I have attached the picture of the sensor I am using.
On Fri, Feb 14, 2020 at 11:57 PM Joel Murphy<EMAIL_ADDRESS>wrote:

@ANJALI2022 https://github.com/ANJALI2022 I'll need more information to
troubleshoot your problem.
What hardware are you targeting (Arduino UNO? Some other thing?)
When you adjust the threshold variable, make sure that you set it above
512, which is around where the Pulse Sensor signal idles.
Also, plz send a picture of your Pulse Sensor for verification.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/WorldFamousElectronics/PulseSensor_Amped_Arduino/issues/67?email_source=notifications&email_token=AKR7NI7R27CNSRHT2RTIQPLRC3O7XA5CNFSM4EU7MIVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELZ66KQ#issuecomment-586411818,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKR7NI4KZE4LZDA5BK5KHYTRC3O7XANCNFSM4EU7MIVA
.

I don't see an image, please try again

Sir, I am attaching the pictures of the sensor along with the serial
monitor screenshot. I hope you can find it.
On Sun, Feb 16, 2020 at 9:38 PM Joel Murphy<EMAIL_ADDRESS>wrote:

I don't see an image, please try again
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/WorldFamousElectronics/PulseSensor_Amped_Arduino/issues/67?email_source=notifications&email_token=AKR7NI3NYK6OEYQGTDV2YCTRDFQIPA5CNFSM4EU7MIVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL4LCOI#issuecomment-586723641,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKR7NI5CVYXFRUCLXM2FJ6TRDFQIPANCNFSM4EU7MIVA
.

Sir could you Please acknowledge, I really need some suggestions on it.
On Sun, 16 Feb 2020, 22:33 anjali patel<EMAIL_ADDRESS>wrote:

Sir, I am attaching the pictures of the sensor along with the serial
monitor screenshot. I hope you can find it.
On Sun, Feb 16, 2020 at 9:38 PM Joel Murphy<EMAIL_ADDRESS>wrote:

I don't see an image, please try again
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/WorldFamousElectronics/PulseSensor_Amped_Arduino/issues/67?email_source=notifications&email_token=AKR7NI3NYK6OEYQGTDV2YCTRDFQIPA5CNFSM4EU7MIVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL4LCOI#issuecomment-586723641,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKR7NI5CVYXFRUCLXM2FJ6TRDFQIPANCNFSM4EU7MIVA
.

@ANJALI2022 I don't see the images that you're trying to send.
Please access the github issue page that you are in and check for yourself.
Please drag and drop the images that you want to include directly into the text field that you are typing in.

@ANJALI2022 This issue is closed.
If you keep having problems, please open a NEW issue.


Combine location based routing with hash based routing

Hi,
I was wondering if there are any examples or plans to support location - and hash based routing side by side.
My use case is as follows:
I use normal routing for most of the app:
e.g.: /orders
On some pages I use tabs, and I'm using hashes to support deep linking, which is actually working quite nice.
e.g.: /orders#completed
For the back button to work, Wouter should also listen to changes in hash. Would be nice if someone can point me in the right direction.
Thanks in advance.

You can use wouter as is for most of your app's routes, and then for the part where you need to control hash location use a standalone useHashLocation hook which you can implement as:
// returns the current hash location in a normalized form
// (excluding the leading '#' symbol)
const hashLocation = () => window.location.hash.replace(/^#/, "") || "/";

// this is from the example in the README, however it won't create a new history entry, so you need pushState
// const hashNavigate = (to) => navigate("#" + to);

const hashNavigate = (to) => history.pushState({}, "", location.pathname + "#" + to)

const useHashLocation = () => {
  const location = useLocationProperty(hashLocation);
  return [location, hashNavigate];
};

Hi @mvdenk! Did it solve your issue?


Configure TypeScript to target a modern ECMAScript standard

Since we are using BigInt literals, we should set the target (see https://www.typescriptlang.org/tsconfig#target) to be at least ES2020.
In VSCode, I'm seeing errors like:
BigInt literals are not available when targeting lower than ES2020.ts(2737)

As of this writing, our TypeScript configuration file looks like this:
{
    "files": [],
    "references": [
        {
            "path": "./tsconfig.vite-config.json"
        },
        {
            "path": "./tsconfig.app.json"
        },
        {
            "path": "./tsconfig.vitest.json"
        }
    ]
}

@gwhitney, do you think this should be closed? We discussed this in our last weekly meeting, and I recall you thought we should try to keep the configuration minimal and abide by the "if it ain't broke, don't fix it" maxim.

Well, but the VSCode UI complaining is a way in which things are broken. So I have no problem leaving this issue in place and the target being updated, as long as the (manual) testing for the eventual PR includes running error-free in VSCode...

I also think that the target standard should be explicit somewhere in our tsconfig. As far as I can see, it is not, which I suspect means we are just getting the current tools' default, which may change unexpectedly, with unexpected consequences.

In ui2, there is a "lib": ["ES2022"], compiler option. Perhaps this should simply be moved up to the root tsconfig? I will make this a part of #420, which is about testing and typechecking anyway.

Resolved in ui2 per #420. Closing.


bump kvproto to v4.0.0-rc

What problem does this PR solve?
bump kvproto to v4.0.0-rc

/run-all-tests


Show snackbar when speech recognition failed

Task/Issue URL:
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

Current dependencies on/for this PR:

develop

PR #3477

PR #3489   👈

PR #3490

This comment was auto-generated by Graphite.


CamelCase attribute of Element being parsed as lowercase

Hi, I got a wired problem when getting value by attribute name from an Element which makes me a little bit confused.
Tested on 0.9.0 and 0.10.0
Reproduce code:
issue_page_response = self.session.get(url='https://bugs.chromium.org/p/chromium/issues/detail_ezt?id=965748')
issue_page = issue_page_response.html
issue_content = issue_page.find("#ezt-comments", first=True)
issue_content = issue_content.attrs['commentList']  # KeyError raised, requests_html parsed it as "commentlist" actually

Is this a bug or a expected behavior?

I believe this is expected behaviour (said that, I didn't check the source code), since attribute names are case-insensitive it seems sane to rely on lowercase names only:

https://w3c.github.io/html-reference/documents.html#case-insensitivity
https://www.w3.org/TR/2011/WD-html5-20110525/elements.html#embedding-custom-non-visible-data-with-the-data-attributes

If you check page source you can see commentList but if you use inspect tool it will most likely be commentlist.

correct.


Angular code deployment to Azure fails with ECONNRESET

Hello.
So, there aren't much steps to follow, I just updated my visual studio code to latest version (1.66) and suddenly I get this error while trying to push Angular code to a Web App.
xxxxx.azurewebsites.net/api/zipdeploy?isAsync=true&author=VS%20Code failed, reason: read ECONNRESET
I do have a workaround, and the proff that this version is faulty, if you downgrade to v.1.64, I don't get any issues and deployment succeeds.
On the following post from microsoft forum, looks like this issue happens for other types of deployments:
https://docs.microsoft.com/en-us/answers/questions/798151/angular-code-deployment-to-azure-failed-reason-azu.html
Hope it helps.

/duplicate of #146470


#1 Allow bloom filters to be serialized/deserialized

Feature request:
Allow serialization of bloom filters for quick startups after application was down.
Rebuilding of big filters might take much time and be unnecessary

Pull Request Test Coverage Report for Build #3

33 of 33 (100.0%) changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.4%) to 95.043%

Totals

Change from base Build #2:
0.4%

Covered Lines:
441

Relevant Lines:
464

💛  - Coveralls

Great idea! Thanks for contributing.


ImplyContentTypeInterceptor does not set content type to json when data is Json Array

Package
dio
Version
^5.0.2
Output of flutter doctor -v
[✓] Flutter (Channel stable, 3.7.5, on macOS 13.2.1 22D68 darwin-x64, locale en-TH)
    • Flutter version 3.7.5 on channel stable at /Users/kittipongtheothaisong/fvm/versions/3.7.5
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c07f788888 (3 weeks ago), 2023-02-22 17:52:33 -0600
    • Engine revision 0f359063c4
    • Dart version 2.19.2
    • DevTools version 2.20.1

[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/kittipongtheothaisong/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] IntelliJ IDEA Community Edition (version 2021.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.76.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (3 available)
    • SM N770F (mobile) • *********** • android-arm64  • Android 13 (API 33)
    • macOS (desktop)   • macos       • darwin-x64     • macOS 13.2.1 22D68 darwin-x64
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 111.0.5563.64

[✓] HTTP Host Availability
    • All required HTTP hosts are available

Dart Version
Dart SDK version: 2.19.2 (stable) (Tue Feb 7 18:37:17 2023 +0000) on "macos_x64"
Steps to Reproduce

Send request data as Json Array.

import 'package:dio/dio.dart';
import 'package:dio/io.dart';
import 'package:dio_imply_content_type_flutter/book_entity.dart';
import 'package:flutter/material.dart';

Future<void> main() async {
  await createBooks();
  runApp(const MyApp());
}

Future<void> createBooks() async {
  Dio client = Dio(BaseOptions(baseUrl: 'http://localhost:8081'));
  client = _setupProxy(client: client);

  const book1 = BookEntity(title: 'Book 1', authorName: 'John doe');
  const book2 = BookEntity(title: 'Book 2', authorName: 'Jane doe');

  await client.post('/books/create', data: [book1.toJson(), book2.toJson()]);
}

Dio _setupProxy({
  required Dio client,
}) {
  client.httpClientAdapter = IOHttpClientAdapter()
    ..onHttpClientCreate = (client) {
      return client..findProxy = (uri) => 'PROXY <IP_ADDRESS>:9090';
    };

  return client;
}

BookEntity.dart
import 'package:json_annotation/json_annotation.dart';

part 'book_entity.g.dart';

@JsonSerializable()
class BookEntity {
  const BookEntity({
    required this.title,
    required this.authorName,
  });

  factory BookEntity.fromJson(
    Map<String, dynamic> json,
  ) =>
      _$BookEntityFromJson(json);

  Map<String, dynamic> toJson() => _$BookEntityToJson(this);

  final String title;

  @JsonKey(name: 'author_name')
  final String authorName;
}

Expected Result
ImplyContentTypeInterceptor should attach content-type json to request header when content type is Json Array.
Actual Result
No content-type header exist and get warning.
[🔔 Dio] List<Map<String, dynamic>> cannot be usedto imply a default content-type, please set a proper content-type in the request.
         #0      ImplyContentTypeInterceptor.onRequest (package:dio/src/interceptors/imply_content_type.dart:45:36)
         #1      DioMixin.fetch.requestInterceptorWrapper.<anonymous closure>.<anonymous closure> (package:dio/src/dio_mixin.dart:412:26)
         #2      new Future.<anonymous closure> (dart:async/future.dart:253:37)
         #3      Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
         #4      _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
         #5      _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
         #6      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:26)

Proxy log (content-type not exist)

@AlexV525, looks like my application also meet this case issue on dio 5.2.0 version, but my case is List, not List, will your guys will do List handling ? BTW, have any best way to solve those issue? i think add field type handling is not the final solution, as the type have more and more.

but my case is List, not List

?

but my case is List, not List

?

looks like my application also meet this case issue on dio 5.2.0 version, but my case is List not List, will your guys will do List handling ? BTW, have any best way to solve those issue? i think add field type handling is not the final solution, as the type have more and more.

We don't have plans to add more support to the implied interceptor. Users should define the content type explicitly during requests whether the interceptor has implied it or not.


Fix fmdb import

Clean up other Xcode 8.3 compiler warnings as well

@frowing or @mmccroskey 👀 🙏

@postmechanical Code looks good. What issue does this fix?

@frowing Yes, just Xcode 8.3 compiler warnings.