barebones USART3 corrupts data at 1mbit

I've got an issue with comunicating with AX-12a trough USART3. When a baud rate is 115200 get the right data, but when I change the baud to 1mbit(for ax-12a) then I get corrupted data...

If I want to send data to EXP 485 board from opencm 9.04 and my ax-12a is connected to this EXP board, do I need to do it via USART1 or USART3?

I've fixed the problem. Everything is working great with FreeRTOS running on Opencm 9.04 with EXP board connected.

Hello, how did you manage to communicate the motors connected in the EXP board to the OpenCM usb?

Hi, @Iervolino458! Nope. The ax-12a motors are connected to EXP board via UART(TTL), not via USB. So I'm sending commands to servos from Opencm 9.04 connected to EXP board trough USART3.


Uncaught TypeError: Cannot read property 'kind' of undefined

Uncaught TypeError: Cannot read property 'kind' of undefined
at SwfTag.ABCMultinameToString (VM784 swf2js.js:5762)
at SwfTag.parseDoABC (VM784 swf2js.js:5609)
at SwfTag.parseTag (VM784 swf2js.js:2806)
at SwfTag.parseTags (VM784 swf2js.js:2649)
at SwfTag.parse (VM784 swf2js.js:1939)
at Stage.parse (VM784 swf2js.js:25170)
at XMLHttpRequest.xmlHttpRequest.onreadystatechange (VM784 swf2js.js:27000)

Sample: https://drive.google.com/open?id=18WWEUUILq2DstQsct0Nqe1rRu4m9bq5U

@htdag
Thank you for the sample! !
very helpful.


Add V lang

~5 seconds

What is V lang? Never heard of it. How to install it on Linux? Where is the lang.'s homepage?

https://vlang.io

@unihernandez22 You are not a chatterbox, are you?

No hahahaha

LOL

Thanks, it was added. It's a very interesting language, I'll look into it.


fix NullReferenceError in ScrollViewPager

fixes https://github.com/fusetools/fuselibs-public/issues/560
This PR contains:

[x] Changelog
[ ] ~Documentation~ no API changes
[x] Tests

If the ScrollViewPager was released in 1.3 then it is a problem there as well. It's not likely used often enough yet though to warrant a back-port.

@mortoray: Yeah, ScrollViewPAge is part of release-1.3. So perhaps we should consider back-porting?

The patch is simple enough that it'd be easy to backport -- I can't imagine any conflicts.


db-factfinder Space in decennial male variable

Description
The male variable within the decennial census has a mysterious space that is preventing the labs-factfinder frontend from linking to the data source. I attempted to manually encode the space in the front end. However, it has not resolved the behavior.
Requested action
Remove the space

male p should be corrected to malep as well right? Just for consistenty (as with fem and femp)

male p should be corrected to malep as well right? Just for consistenty (as with fem and femp)

yes, please


Birthday messages aren't sent anymore

[ ] I didn't receive any birthday message, so I checked the logs and found No default birthday branding has been set. Skipping sending out birthday messages for ...

[x] Also, be sure to check/test the behaviour of flag SHARED_MEMBERS. It is not set in the code, but it looks like multiple members are in my birthday message sent in 2017. See screenshot:

[ ] Let's change the button caption to "Thank you" instead of "OK"

There is not 1 branding setup for birthday messages so its logical these aren't set...
Bug in reinstall https://github.com/our-city-app/mobicage-backend/pull/194

Probably, when a new app is created the birthday branding isn't automatically created, so I suggest to automate this.

No its not enabled for any of our apps, so not 1 app has this

can be set here, someone must've removed it
https://gig-mobile-cc.appspot.com/backends/rogerthat_backend/default-settings/brandings/create

i don't have the birthday branding, so i can't update this

You can create a new branding using the dashboard with this image

Uploading a branding is broken...
ERROR TypeError: Cannot read property 'toString' of undefined     at Ju.getBackendBrandingFormData (main-es2015.f4528ec38a47154e9690.js:1)     at Ju.createGlobalBackendBranding (main-es2015.f4528ec38a47154e9690.js:1)     at c.project (main-es2015.f4528ec38a47154e9690.js:1)     at c._next (main-es2015.f4528ec38a47154e9690.js:1)     at c.next (main-es2015.f4528ec38a47154e9690.js:1)     at r._next (main-es2015.f4528ec38a47154e9690.js:1)     at r.next (main-es2015.f4528ec38a47154e9690.js:1)     at Object.next (main-es2015.f4528ec38a47154e9690.js:1)     at c._next (main-es2015.f4528ec38a47154e9690.js:1)     at c.__tryOrUnsub (main-es2015.f4528ec38a47154e9690.js:1)

@RubenMattan should be fixed

@lucasvanhalst did you deploy the fix?

Yes

In that case, the issue is nog fixed

How about now @RubenMattan

Its fixed :-)


Admin Delete Issue Button

Describe the bug
Delete issue on admin view doesnt do anything pls fix

Permissions issue


WIP: Revise filtering

This one will take a while, but I have a start. The to-do list:

[x] add generic filter_ function (maybe there is a better name?)
[x] refactor Raw.filter to use new filter function
[x] properly triage info['*pass'] when picks is passed (#3259)
[ ] fix bug with IIR ringing calculation (1000 samples is not necessarily sufficient)
[ ] add tests for the above
[ ] add docs showing trade-offs of different filters (#3227), which will hopefully motivate...
[ ] ...adding 'auto' mode and update (deprecation cycle) defaults to reduce ringing and work in more cases (#3239)
[ ] add tests for 'auto'
[ ] add information from the papers in #1941 to docs

Closes #3255.
Closes #3259.

For ideas to include in the FAQ we can also look at EEGLAB's docs:
http://sccn.ucsd.edu/wiki/Firfilt_FAQ

[Current coverage][cc-pull] is 91.95%

Merging [#3277][cc-pull] into [master][cc-base-branch] will decrease coverage by <.01%

@@             master      #3277   diff @@
==========================================
  Files           336        336
  Lines         56733      56745    +12
  Methods           0          0
  Messages          0          0
  Branches       8614       8616     +2
==========================================
+ Hits          52170      52176     +6
- Misses         4563       4569     +6
  Partials          0          0

[][cc-pull]

Powered by Codecov. Last updated by [a1cbb6b...c013233][cc-compare]
[cc-base-branch]: https://codecov.io/gh/mne-tools/mne-python/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/mne-tools/mne-python/compare/a1cbb6bf96612dec707e19876bef492f9f5d12d0...c013233ef2586ea583b197112ed57e9c88b12a1b
[cc-pull]: https://codecov.io/gh/mne-tools/mne-python/pull/3277?src=pr

I can write a bit non-technical, applied stuff about the purposes and dangers of filters. I can make a PR against this one, if you show me where to insert it.

Should we write a little tutorial, put something in the doc, or both? I got started on a tutorial, but you could write your bit and I can integrate more into it. Not sure what the best option is.

Maybe just add what you have to the PR, so I can avoid redundancy?

I probably won't have time to clean it up meaningfully today

I think it's better to do this as two PRs (see updated top description for what all this does). Here are the resulting [tutorials list] (https://circle-artifacts.com/gh/mne-tools/mne-python/1159/artifacts/0/home/ubuntu/mne-python/doc/_build/html/tutorials.html) and [filtering background tutorial] (https://circle-artifacts.com/gh/mne-tools/mne-python/1159/artifacts/0/home/ubuntu/mne-python/doc/_build/html/auto_tutorials/plot_background_filtering.html).
The dotted red lines in there look bad (they look good on matplotlib master on my machine), but not stable), so I switched it to dashed, which comes out as this on stable:

It looks a bit better on matplotlib master though, I wonder if we should start using it for our builds:

Ready for review/merge from my end.

Thanks for the look @jaeilepp, comments addressed.

LGTM

@jona-sassenhagen do you have time to look?

Yup, later today.

Thanks for the look @jona-sassenhagen comments addressed

besides LGTM
thx @Eric89GXL

Thanks for the look @agramfort comments addressed

one last thing. I don't really like the filter_ name. Shall we name it just filter ? or filter_data? or filter_array ?

I like filter_data

@agramfort done

thx @Eric89GXL I'll fix last comment in master

Thanks @agramfort

Nice tutorial !


hostkey_checking is global

Hello,
It seems that the hostkey settings is set globaly for every host
from inventory/group_vars/all/general_settings/security.yml:
---
security:
  ssh:
    hostkey_checking: true # enable or disable hostkey checking

We can add the var to the host , but the role ssh_master is not using it in this way :
From roles/core/ssh_master/templates/config.j2 :
Host {{ host }}
    {% if **security.ssh.hostkey**_checking is not defined or
          security.ssh.hostkey_checking == false %}
    StrictHostKeyChecking no
    UserKnownHostsFile=/dev/null
    {% endif %}

So we can't only define the host check for only one host for example .
But may be we are thinking wrong :)

Hi @yhenriet ,
Would the change at https://github.com/bluebanquise/bluebanquise/compare/master...btravouillon:fix/537 address your need?

Hello @yhenriet ,
Were you able to test the code proposal?
Should I open a PR with this change?

This is like the comment I have done here: https://github.com/bluebanquise/bluebanquise/issues/557
I will see if I can patch what @btravouillon offered.

Please let me know if it is of interest and I will open a PR.

Fixed in PR #638


Remove token param from the URL after login.

After login we have to remove the token from the URL as soon as possible.

Done!


DDLX: "Changed At" and "Changed By" not on deserialize

When an DDLX file is deserialized the "Changed At" and "Changed By" stay initial. But the should be "now" and "sy-uname".

@BeckerWdf thanks, are you interested in providing a fix via a pull request?

I will provide a PR for this.


#15123 Fix performance-for-range-copy

Ticket
#15123
Problem description
We're making copies when we don't need to make copies.  Clang-tidy told us so.
What's changed
Const-ref where possible.  All code changes made by Clang Tidy's FIX-ITs; none by hand.
Checklist

[ ] Post commit CI passes https://github.com/tenstorrent/tt-metal/actions/runs/11865596797
[ ] Blackhole Post commit (if applicable)
[ ] Model regression CI testing passes (if applicable)
[ ] Device performance regression CI testing passes (if applicable)
[ ] New/Existing tests provide coverage for changes

@afuller-TT awesome PR!


FancyZones not working on startup

Microsoft PowerToys version
0.56.2
Running as admin

[X] Yes

Area(s) with issue?
FancyZones
Steps to reproduce
Note the issue only appears after starting up the PC, the workaround is to launch powertoys and desactivate fancyzones and re-activate it...

Start the computer and snap a window (firefox for exemple) in a zone (with "shift" key)
set another layout ("ctrl+windows+alt+2" keys)

✔ Expected Behavior
the windows snap to the new defined zone
❌ Actual Behavior
the window does not follow the new layout and stay in place.
if i restart fancyzones, it work as expected.
Other Software
No response

Thanks for reporting. Could you attach /bugreport?

sure, here is the zi
PowerToysReport_2022-03-17-11-26-37.zip
p

Looks like /dup of https://github.com/microsoft/PowerToys/issues/16370

Microsoft PowerToys version
0.56.2
Running as admin

[x]  Yes

Area(s) with issue?
FancyZones
Steps to reproduce
Note the issue only appears after starting up the PC, the workaround is to launch powertoys and desactivate fancyzones and re-activate it...

Start the computer and snap a window (firefox for exemple) in a zone (with "shift" key)
set another layout ("ctrl+windows+alt+2" keys)

✔ Expected Behavior
the windows snap to the new defined zone
❌ Actual Behavior
the window does not follow the new layout and stay in place. if i restart fancyzones, it work as expected.
Other Software
No response

I have this exact problem on the same version (latest at time of writing).
The apparent duplicate issue on https://github.com/microsoft/PowerToys/issues/16370 does not describe the same problem.

@infuriatedcodex can you please share your bug report too to be sure? That issue doesn't describe the same problem, that's true, but both problems have the same root and will have one fix.

@infuriatedcodex can you please share your bug report too to be sure? That issue doesn't describe the same problem, that's true, but both problems have the same root and will have one fix.

Unfortunately, I had to uninstall Powertoys on my main PC.
I had this version installed on 2 machines, an 8th Gen Intel based laptop and a Gen2 12core AMD Ryzen Desktop.
In the case of the Ryzen PC, after a reboot, trying to Snap Windows Explorer into my preferred location caused the Shell process to hang (I have tried this with Explorer running in its own process for better shell performance but still the same). Therefore removed the package as it was too disruptive.
On the laptop, same problem behaviour without the explorer hang.

@SeraphimaZ id the issue supposed to be fixed in the v0.57 release, because it's still present on 0.57. Layout changes are not applied to existing windows after windows startup, i've to go to PowerToys settings and restart fancy zone after every boot to make it work...

@makomatt  Can you please attach a /bugreport?

@SeraphimaZ yes, i have different layouts sets and accessible via shortcut.
For exemple, when i start my computer, i snap firefox in an area, the firefox window is snapped to the right place. Now, if i switch to another layout (with shortcut key 'ctrl+win+alt'+1-9), the new layout is applied, but firefox window stay in place and does not snap to the new zone.
If i go to PowerToys settings and restart FancyZones, the firefox window go to the new zone and everything works fine until i restart my computer.

@SeraphimaZykova the issue has been closed but the problem is still present, even in the v0.57.2, do i have to make e new report?
here is a screen recording showing the issue :
https://user-images.githubusercontent.com/101323484/162562866-b6f4eee6-d0de-4b7f-b8c9-6a033e60b411.mp4

Thank you for the details, I've reopened the issue back and will investigate it.

Are you still experiencing this issue? /needinfo


Cast input to number before isNumber validation for non-strict

This is meant to be a fix for issue #178
For non-strict is casts inputs to number before validation using isNan

Mind adding couple of tests for same?

Your new PR has just changed all the tests. Also please make sure to lint the code before pushing it.
npm run lint


if a volume containing incomplete metadata is found during a ListVolumes call, clean up and continue

fixes #58 and also switches us to using 'Stat' rather than 'Open'

/lgtm
/approve


Update Bootstrap JS Code to Version 4.0.0

Does everything work OK with this change? I think it would be best if we updated Bootstrap as a whole, not just JS. Not sure how much time it would take to do that though :)

I know js works but I am not sure if css is working too. I will check and post an update within a few hours

CSS has a big issue  👎

This PR is delayed for a future update.


[CodingStandard] Cognitive complexity does not correctly track nesting

I am tinkering with forking away Cognitive Complexity sniff (for generic PHP CS use) and had noticed that results are not consistent with SonarLint. It seems that nesting level is not being correctly tracked and added.
Basic example:
function cognitive_complexity_test() {

	$foo = [];

	foreach( $foo as $bar ) {

		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
	}
}

SonarLint result: 21 ( 1 foreach + 10 * (1 if + 1 nesting level) )
Coding Standard result: 12 ( 1 foreach + (1 if + 1 nesting level) + 9 * (1 if + 0 nesting level) )

What is in compliance with pdf?
https://www.tomasvotruba.cz/blog/2018/05/21/is-your-code-readable-by-humans-cognitive-complexity-tells-you/

To my understanding SonarLint is (it's their own spec after all :)
if is B3 nesting increment, foreach is B2 nesting level, every B3 within B2 receives the increment.

I see. Please add failing test case to cognitive complexity test

Done. But build seems to pass, not sure if I am doing something wrong or these test don't fire in this environment or what...

I think I get it better now.
Nesting is counted when it happens, not when you're inside of something.
This takes x complexity to read:
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}

Sonar thinks this is 2x complexity to read, which is non-sense.
It's actually +1
  if ($value) {
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
		if( $bar ) {}
  }

Personally I get where spec is coming from on this. It is a cognitive complexity, not a reading complexity.
Understanding constructs buried levels down is more cognitively taxing because of their extended context.
If you are keeping your implementation probably worth noting somewhere that you are no longer compliant with the original spec and results aren't interoperable with other tools implementing it.
Thank you for considering the case. :)

In this case it's the same, as reader is human. You only remember if value once here.
It is compliant with PDF spec at the time of writing. All cases are covered there.
Don't forget the algorithm was data-mined and it can be also changed at any time.

It is compliant with PDF spec at the time of writing. All cases are covered there.

Original examples being compatible with your interpretation does not equal them supporting it.
Personally I don't remember spec changing on this, neither does document's change log say it (I imagine it would since the difference in score can be massive).
I don't insist on the change though, just covering bases if someone looks into it in future. :) Thanks again.

I think Sonar should be fixed, as it's cleary invalid with original concept.
The example with switch in the PDF shows it very clearly.


Multiple apps, one DB

To allow multiple app, accessing the same DB, the singular config & dictionary entries in OrionJS won't do. In our case every app deploy has it's own URL, and therefor all kinds of services (like facebook and what's not...), have theyr own setup (config) requirements.
To allow for such a setup, this simple patch works. It has every participating app it's own ENV variable (ORION_APPID). If this ENV variable is set, it is used as key (_id) for config and  dictionary lookups (server only).
Works for us...

Ah, I forgot to mention, is completely backward compatible, everything is as it was when no ORION_APPID is provided.

And if I set the same ORION_APPID to use the same config and dictionary, it works?

Yes, that is, NOT setting ORION_APPID will have Orion behave as it was, setting it, say to 'beta', will have Orion search for a dictionary with _id 'beta' and config with _id 'beta'.

On 20 Sep 2015, at 16:18, Nicolás López<EMAIL_ADDRESS>wrote:
And if I set the same ORION_APPID to use the same config and dictionary, it works?
—
Reply to this email directly or view it on GitHub https://github.com/orionjs/orion/pull/303#issuecomment-141791956.

Great!


Font weight

In react-toolbox/components/tooltip/style.scss for example, there is
.tooltip {
    font-weight: $font-weight-bold;
}

How come it's different than other attributes like font-size: $tooltip-font-size which I can override easily? If I don't want bold tooltip I would have to either override $font-weight-bold to not actually be bold, or add my own class to every tooltip instance.
I think it would be more consistent and convenient if it was
font-weight: $tooltip-font-weight;

and defined in the _config.scss
Same for font-weight everywhere, in my opinion it's as important as color or font-size, so I don't know why it's excluded.
Just a suggestion, thanks.

Hi @ktmn ! It's not included in some places because if you want to follow Material Design guidelines you shouldn't change it in most places. But I agree with you, it costs nothing to move font weight to a variable to allow overriding through themes. Let's keep it as an enhancement for future releases.

Closing to reduce noise. It's not that important and with theming you can easily achieve this. In future releases we are going to focus customization via variables only for theming stuff and this kind of customization should be done with custom modules.


Uncaught exception from user code: Command failed.

Dear Developers,
Than you very much for your software.
I tried to make chains file and the following message occurred:
/home/popov/make_lastz_chains/make_chains.py hg38 my_gen /home/popov/Human_genome_38/GRCh38.primary_assembly.genome.ordered.fasta /home/popov/primary.genome.scf.fasta.scaffolds.fa --project_dir /home/popov/chains_first_attempt --executor slurm --executor_partition genetics
Project directory: /home/popov/chains_first_attempt
Target path: /home/popov/chains_first_attempt/hg38.2bit | chrom sizes: /home/popov/chains_first_attempt/hg38.chrom.sizes
Query path: /home/popov/chains_first_attempt/my_gen.2bit | query sizes: /home/popov/chains_first_attempt/my_gen.chrom.sizes
Calling: /home/popov/chains_first_attempt/master_script.sh...
BIN: /home/popov/make_lastz_chains/doLastzChains
which: no RepeatFiller.py in (/home/popov/make_lastz_chains/GenomeAlignmentTools/src:/home/popov/make_lastz_chains/kent_binaries:/home/popov/make_lastz_chains/HL_kent_binaries:/home/popov/make_lastz_chains/HL_scripts:/home/popov/make_lastz_chains/doLastzChains:/home/popov/miniconda3/envs/togaenv/bin:/opt/ohpc/pub/mpi/openmpi3-gnu8/3.1.3/bin:/opt/ohpc/pub/compiler/gcc/8.3.0/bin:/opt/ohpc/pub/utils/prun/1.3:/opt/ohpc/pub/utils/autotools/bin:/opt/ohpc/pub/bin:/usr/condabin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/popov/.local/bin:/home/popov/bin)
PARAMETERS:
clusterRunDir /home/popov/chains_first_attempt
chainMinScore 1000
chainLinearGap loose
maxNumLastzJobs 6000
numFillJobs 1000
verbose 1
debug 0
/home/popov/chains_first_attempt/DEF looks OK!
tDb=hg38
qDb=my_gen
seq1dir=/home/popov/chains_first_attempt/hg38.2bit
seq2dir=/home/popov/chains_first_attempt/my_gen.2bit
Will run RepeatFiller.
Will run chainCleaner with parameters: -LRfoldThreshold=2.5 -doPairs -LRfoldThresholdPairs=10 -maxPairDistance=10000 -maxSuspectScore=100000 -minBrokenChainScore=75000
max number of lastz cluster jobs: 6000
The /home/popov/make_lastz_chains/doLastzChains/doLastzChain.pl run will be performed in directory /home/popov/chains_first_attempt. All temp files will be written there.
HgStepManager: executing from step 'partition' through step 'cleanChains'.
************ HgStepManager: executing step 'partition' Thu Sep  7 17:58:05 2023.
doPartition ....
doPartition: seq2MaxLength ....
doPartition: seq2MaxLength = 57195878
doPartition: partitionTargetCmd partitionSequence.pl 175000000 0 /home/popov/chains_first_attempt/hg38.2bit /home/popov/chains_first_attempt/hg38.chrom.sizes -xdir xdir.sh -rawDir /home/popov/chains_first_attempt/TEMP_psl 4000 -lstDir tParts > hg38.lst
doPartition: partitionQueryCmd partitionSequence.pl 50000000 10000 /home/popov/chains_first_attempt/my_gen.2bit /home/popov/chains_first_attempt/my_gen.chrom.sizes 10000 -lstDir qParts > my_gen.lst
content of /home/popov/chains_first_attempt/TEMP_run.lastz/doPartition.bash
#chmod a+x /home/popov/chains_first_attempt/TEMP_run.lastz/doPartition.bash
#/home/popov/chains_first_attempt/TEMP_run.lastz/doPartition.bash

cd /home/popov/chains_first_attempt/TEMP_run.lastz
partitionSequence.pl 175000000 0 /home/popov/chains_first_attempt/hg38.2bit /home/popov/chains_first_attempt/hg38.chrom.sizes -xdir xdir.sh -rawDir /home/popov/chains_first_attempt/TEMP_psl 4000 -lstDir tParts
++ wc -l
export L1=25
L1=25
partitionSequence.pl 50000000 10000 /home/popov/chains_first_attempt/my_gen.2bit /home/popov/chains_first_attempt/my_gen.chrom.sizes 10000 -lstDir qParts
++ wc -l
export L2=43
L2=43
++ echo 25 43
++ awk '{print $1*$2}'
export L=1075
L=1075
echo 'cluster batch jobList size: 1075 = 25 * 43'
cluster batch jobList size: 1075 = 25 * 43
'[' -d tParts ']'
echo 'constructing tParts/.2bit files'
constructing tParts/.2bit files
sed -e 's#tParts/##; s#.lst##;'
read tPart
ls tParts/part000.lst tParts/part001.lst tParts/part002.lst tParts/part003.lst tParts/part004.lst tParts/part005.lst tParts/part006.lst tParts/part007.lst tParts/part008.lst tParts/part009.lst tParts/part010.lst tParts/part011.lst tParts/part012.lst tParts/part013.lst tParts/part014.lst
sed -e 's#.*.2bit:##;' tParts/part000.lst
twoBitToFa -seqList=stdin /home/popov/chains_first_attempt/hg38.2bit stdout
faToTwoBit stdin tParts/part000.2bit
/home/popov/chains_first_attempt/TEMP_run.lastz/doPartition.bash: line 22: /home/popov/make_lastz_chains/kent_binaries/twoBitToFa: Permission denied
Uncaught exception from user code:
Command failed:
/home/popov/chains_first_attempt/TEMP_run.lastz/doPartition.bash
HgAutomate::run('/home/popov/chains_first_attempt/TEMP_run.lastz/doPartition.bash') called at /home/popov/make_lastz_chains/doLastzChains/HgRemoteScript.pm line 117
HgRemoteScript::execute('HgRemoteScript=HASH(0x2196128)') called at /home/popov/make_lastz_chains/doLastzChains/doLastzChain.pl line 370
main::doPartition() called at /home/popov/make_lastz_chains/doLastzChains/HgStepManager.pm line 169
HgStepManager::execute('HgStepManager=HASH(0x2195678)') called at /home/popov/make_lastz_chains/doLastzChains/doLastzChain.pl line 877
Error!!! Output file /home/popov/chains_first_attempt/hg38.my_gen.allfilled.chain.gz not found!
The pipeline crashed. Please contact developers by creating an issue at:
https://github.com/hillerlab/make_lastz_chains

Can you please tell what could be the reason of this problem and how to solve it?

Can you pls execute
/home/popov/make_lastz_chains/kent_binaries/twoBitToFa
and check if this is a proper binary that is executable and has user/group/all +r and +x rights?

Dear Prof. Dr. Michael Hiller,
Thank you for your prompt reply.
I executed this command.
The result:
-bash: /home/popov/make_lastz_chains/kent_binaries/twoBitToFa: Permission denied
Can you please tell if it is possible to correct this issue?

Pls try
chmod 755 /home/popov/make_lastz_chains/kent_binaries/twoBitToFa
or better
chmod 755 /home/popov/make_lastz_chains/kent_binaries/*
assuming that you have binaries in that dir.

Dear Prof. Dr. Michael Hiller,
Thank you very much for your wise advise.
Yes, the pipeline worked further after this command: chmod 755 /home/popov/make_lastz_chains/kent_binaries/*
Although, the pipeline still crashes with this error:
Traceback (most recent call last):
File "/home/popov/make_lastz_chains/HL_scripts/parallel_executor.py", line 11, in
from py_nf.py_nf import Nextflow
File "/home/popov/miniconda3/envs/togaenv/lib/python3.10/site-packages/py_nf/py_nf.py", line 8, in
from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/home/popov/miniconda3/envs/togaenv/lib/python3.10/collections/init.py)
Uncaught exception from user code:
Command failed:
/home/popov/chains_first_attempt/TEMP_run.lastz/doClusterRun.sh
HgAutomate::run('/home/popov/chains_first_attempt/TEMP_run.lastz/doClusterRun.sh') called at /home/popov/make_lastz_chains/doLastzChains/HgRemoteScript.pm line 117
HgRemoteScript::execute('HgRemoteScript=HASH(0x2735c90)') called at /home/popov/make_lastz_chains/doLastzChains/doLastzChain.pl line 423
main::doLastzClusterRun() called at /home/popov/make_lastz_chains/doLastzChains/HgStepManager.pm line 169
HgStepManager::execute('HgStepManager=HASH(0x27355e8)') called at /home/popov/make_lastz_chains/doLastzChains/doLastzChain.pl line 877
Error!!! Output file /home/popov/chains_first_attempt/hg38.my_gen.allfilled.chain.gz not found!
The pipeline crashed. Please contact developers by creating an issue at:
https://github.com/hillerlab/make_lastz_chains
Is it possible to correct this error?

Can you pls talk to your admin whether python and nextflow is correctly installed on your system.
The "cannot import name 'Iterable' from 'collections'" is apparently a python version issue, according to
https://stackoverflow.com/questions/72032032/importerror-cannot-import-name-iterable-from-collections-in-python
@kirilenkobm Which python version is recommended for the pipeline?

@MichaelHiller yes, I used Python 3.7 or 3.8 when I was writing this py_nf library.
@igorpop0v sorry for that, could you pls try Python 3.9?
I would need some time to fix this versioning issue.
Thanks.

Dear Dr. Bogdan Kirilenko,
I downgraded Python to 3.9 version.
Looks like there is a conflict of this Python version and Nextflow 23.04.1 version:
N E X T F L O W  ~  version 23.04.1
Nextflow DSL1 is no longer supported — Update your script to DSL2, or use Nextflow 22.10.x or earlier
/home/popov/miniconda3/envs/togaenv/lib/python3.9/site-packages/py_nf/py_nf.py:404: UserWarning: Nextflow pipeline lastz_hg38bat_nn failed! Execute function returns 1.
warnings.warn(msg)
Uncaught exception from user code:
Command failed:
/home/popov/chains_first_attempt/TEMP_run.lastz/doClusterRun.sh
HgAutomate::run('/home/popov/chains_first_attempt/TEMP_run.lastz/doClusterRun.sh') called at /home/popov/make_lastz_chains/doLastzChains/HgRemoteScript.pm line 117
HgRemoteScript::execute('HgRemoteScript=HASH(0x23a3090)') called at /home/popov/make_lastz_chains/doLastzChains/doLastzChain.pl line 423
main::doLastzClusterRun() called at /home/popov/make_lastz_chains/doLastzChains/HgStepManager.pm line 169
HgStepManager::execute('HgStepManager=HASH(0x23a29e8)') called at /home/popov/make_lastz_chains/doLastzChains/doLastzChain.pl line 877
Error!!! Output file /home/popov/chains_first_attempt/hg38.bat_nn.allfilled.chain.gz not found!
The pipeline crashed. Please contact developers by creating an issue at:
https://github.com/hillerlab/make_lastz_chains
Is it possible to downgrade Nextflow to 22.10.x or earlier version?
Thank you for your kind replies.
I enjoy using your software and looking forward to using TOGA after creating the chain file.

@igorpop0v I'm also sorry for that. Nextflow versions above 22.10 no longer support DSL1. I've fixed this for TOGA but haven't managed to do so for this pipeline yet. Downgrading Nextflow should help.

@igorpop0v
An updated and completely rearranged pipeline version will be released today/tomorrow, under the '2.0.0' tag. The nextflow issue will be fixed there (hopefully, new problems will not arise).
If you experience any issues with the updated pipeline version, please create a new issue.

Sorry for hitchhiking, but one question @kirilenkobm

yes, I used Python 3.7 or 3.8 when I was writing this py_nf library.

The older make_lastz_chains (v. 1.0.0) that uses py_nf library was not compatible  with Python 3.11.
I noticed that py_nf was removed from `requirements.txt' in the new version (2.0.8).  Is the new version tested in Python 3.11?
Thanks!
Dong-Ha


Add assertion for .type()

Hi everyone,
I have a lot of tests that use shallow rendering to assert that a particular component renders another component as its child.  Normally, the assertions would look something like this:
//components
class Foo extends React.Component {
  render () {
    return (
      <Bar />
    )
  }
}

class Bar extends React.Component {
  render () {
    return (

Bar

    )
  }
}

//tests
const shallowWrapper = shallow(<Foo />);

expect(shallowWrapper.type()).to.equal(Bar);

But I thought it would be nice to do something like this instead:
expect(shallowWrapper).to.have.type(Bar);

So this PR was born!
A side note: While I was working on this, I realized that the API for .type() works differently between ShallowWrapper and ReactWrapper
const shallowWrapper = shallow(<Foo />);
console.log(shallowWrapper.type()); // [Function: Bar]

const reactWrapper = mount(<Foo />);
console.log(reactWrapper.type()); // [Function: Foo]

Because of this, I really wasn't sure how to go about supporting both shallow() and mount(), so I opted to only support what I needed.  If anyone has any input on how to get this behavior consistent between the two APIs, I'd be happy to try and implement it.
Thanks!

As of #121 (not released yet) you'll be able to this:
class Foo extends React.Component {
  render () {
    return <Bar />
  }
}

class Bar extends React.Component {
  render () {
    return
Bar

  }
}

const shallowWrapper = shallow(<Foo />);

// before
expect(shallowWrapper.type()).to.equal(Bar);
// after
expect(shallowWrapper).to.match(Bar);

Closing this pull request for now because match already covers this use case (and supports both shallow & mount). If you think this is a mistake feel free to comment in this PR and explain why.

No worries, I haven't touched the project where I might have needed this for a while and honestly I completely forgot about this PR.

Actually I plan to add this anyway (see #9), cherry picked your commits 🙌


Starter kit not adding graph permission while running with PNP.Powershell version 1.3.0 installed

Category

[x] Question
[x] Bug
[ ] Enhancement

Expected or Desired Behavior
Starter kit should add graph permission with PNP.PowerShell 1.3.0 version.
Observed Behavior
Starter kit not adding graph permission while running with PNP.PowerShell 1.3.0 version. Tried with below set of versions

SharePointPnPPowerShellOnline 3.20.2004.0 - Working fine.
SharePointPnPPowerShellOnline 3.25.2009.1- 401 Unauthorized error on Apply-PnPTenantTemplate , not able to create sites
PNP.Powersehll 1.3.0 - Follow steps given here and change command from Apply-PnPTenantTemplate to Invoke-PnPTenantTemplate. Created 3 sites but not adding graph permissions.

Steps to Reproduce
Earlier I had PS v3.25 installed on my system but it was giving 401 error , So I followed steps given here  and install PNP.Powershell and do the below mentioned changes i.e.
1: Uninstall "SharePointPnPPowerShellOnline" all old versions and install "PnP.PowerShell".

Uninstall-Module -Name "SharePointPnPPowerShellOnline" -AllVersions -Force
Install-Module -Name "PnP.PowerShell"

2: For Authentication, run below set of lines as given and provide consent.

#Register-PnPManagementShellAccess
$creds = Get-Credential
Connect-PnPOnline -Url "https://$tenant-admin.sharepoint.com/" -Credentials $creds

It worked fine and created 3 sites. However its not adding below graph permissions. Account has global administrator role.
Added 1st permission(Windows Azure Active Directory) based on the recommendation given here but no luck.
 <pnp:WebApiPermissions>             <pnp:WebApiPermission Resource="Windows Azure Active Directory" Scope="User.Read"/>             <pnp:WebApiPermission Resource="Microsoft Graph" Scope="Group.Read.All"/>             <pnp:WebApiPermission Resource="Microsoft Graph" Scope="User.Read"/>             <pnp:WebApiPermission Resource="Microsoft Graph" Scope="User.Read.All"/>             <pnp:WebApiPermission Resource="Microsoft Graph" Scope="Mail.Read"/>             <pnp:WebApiPermission Resource="Microsoft Graph" Scope="Calendars.Read"/>             <pnp:WebApiPermission Resource="Microsoft Graph" Scope="Group.ReadWrite.All"/>             <pnp:WebApiPermission Resource="Microsoft Graph" Scope="Directory.Read.All"/>         </pnp:WebApiPermissions>
No Pending request and no request in Approved also.

and webpart which is using graph permission showing below error

Please let me know if I'm missing anything!

Hi thank you for the issue. Did you receive any errors during the provisioning of the starter kit around this step?

Hi,
No, didn't get any error while provisioning. Webparts which are consuming graph APIs are showing error which I've shared earlier.

The error you are receiving is in regards to the AAD application required for graph and aad client requests within SPFx. There is a SPO management shell commandlet that may help: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient#control-the-sharepoint-online-client-service-principal
It appears as though for some reason that AAD app is now corrupted in your tenant.


[RFC] Provide workaround for auto-complete w/ Schema

Problem
I want to be able to use a schema object to provide type hints for my settings object:
class MySchema(DynaconfBase):
    name: str
    age: int

settings = Dynaconf()
settings.na # IDE autocomplete "name" and recognizes as string

Proposal
Fake the type of the Dynaconf object by pretending it is a Schema object.
To provide both Schema attributes and Dynaconf's usual methods, we could provide a base Schema to be inherited, which will act as a stub, providing only docstrings and type hinting to Dynaconf object methods.

pro:

we avoid the efforts of significantly changing how dynaconf works (backward-compatibility safety)
we avoid the complexity a big change would bring (we have limited maintainability power).

cons:

Not very elegant (but it's not unpractical either, I would argue).

from dynaconf import DynaconfBase, Dynaconf

class MySchema(DynaconfBase):
    name: str
    age: int

settings: MySchema = Dynaconf(...) # type: ignore
settings.set # shows annotations for dynaconf set method
settings.na # suggests name: str

It could work along with this more recent Schema Validation proposal:
# Not elegant, but practical and backward-compatible safe
settings: MySchema = Dynaconf(schema=MySchema) # type: ignore

Alternatives

This draft PR should provide that, but it falls into the complexity issue
Maybe there is another kind of trick we can do that won't require the # type: ignore, but I'm not sure what.

Additional Context
I did some limited testing around that.

Django setups might provide some trouble to do that.
We could try on more IDEs (experimented with Helix and Vscode).

Recently, I've been working on adding type hints to a Flask config. I, independently, came up with essentially the same solution and would really like to see this functionality built into Dynaconf.
For reference, I got around the need for #type: ignore by casting it to my schema (after checking that all of the settings had the correct type, of course). In your example, it would look something like this:
from typing import cast
from dynaconf import Dynaconf

class MySchema(Dynaconf):
    name: str
    age: int

settings: MySchema = cast(MySchema, Dynaconf(...))

If the schema was passed to Dynaconf as in the example: settings: MySchema = Dynaconf(schema=MySchema), the cast could happen internal to Dynaconf, which would be cleaner from the end user perspective.

That's nice, I didn't know about cast, thanks for sharing!
I did some small experiment by casting internally and it does seems to work.
I'll try to get some time to work on this.

Remaining tasks from #1110

[ ] Assign Schema to the Settings class so it can be accessed later during loading process
[ ] Handle tuple type field: tuple[T, T, T] + Annotated and enclosed in list and dict variations
[ ] Handle Any type in all cases
[ ] Handle Totality and Allow Extra
[ ] Implement Annotated[int, ReadOnly] = 1
[ ] Implement Annotated[int, ReadFrom("env", "yaml")]
[ ] Implement Alias
[ ] Handle Description as annotation arg
[ ] Support expressions?
[ ] Generate sample config file from schema
[ ] Generate schema from runtime settings
[ ] Automatically cast settings to the typed setting? (on loader? on validation?)
[ ] Merge default from schema with data loaded by loaders
[ ] Improve validator messages (breaking change, post 4.0)
[ ] Dropdefault from Validator (breaking change, post 4.0)
[ ] Replace cast on Validator with pre_validation, this callable would apply only pre_validation and not mutate settings.
[ ] Support Schema on FlaskDynaconf
[ ] Support Schema on DjangoDynaconf

I think we can close this one, I opened separate issues marked with typed label


[RMP] Provide PyTorch serving support for T4R models in Torchscript

Problem:
Users should be able to serve pytorch models that were produced with Transformers4Rec or any other process using a Systems ensemble. This will work towards supporting Session-based models as well as expanding System's support for a new modeling framework.
Goal:
Systems should be able to serve all pytorch models that are currently supported by Triton.
Definition of Done
Open questions
Constraints:
Not all pytorch models can be served via Triton's pytorch backend, so we will need to be able to use multiple backends in order to serve all Triton-compatible pytorch models.
Starting Point:
Transformers4Rec

[x] Update T4R to use Merlin std schema

[x] https://github.com/NVIDIA-Merlin/Transformers4Rec/pull/507

[x] https://github.com/NVIDIA-Merlin/Transformers4Rec/issues/499
[ ] Have a padding operator and add Support for ragged inputs  that we can use consistently with Transformers for rec

Systems

[x] Use Triton's pytorch backend for "torchscriptable" models for optimized performance

[x] NVIDIA-Merlin/systems#153
[x] https://github.com/NVIDIA-Merlin/systems/pull/176

[x] Load the schema files written out by T4R

Integration Issues

[ ] Address the issues @rnyak surfaced while trying to put together an example

[x] Fix missing value_count property and/or error from value_count op if sequence min and max length is same: This  PR https://github.com/NVIDIA-Merlin/core/pull/173 should fix that issue.
[x] Fix wrong response dimension from TIS after sending request. This PR https://github.com/NVIDIA-Merlin/Transformers4Rec/pull/543 should be fixing that issue.
[ ] https://github.com/NVIDIA-Merlin/systems/issues/234
[ ] https://github.com/NVIDIA-Merlin/core/issues/175
[x] https://github.com/NVIDIA-Merlin/systems/issues/240

Nice to have: (P1)

[ ] https://github.com/NVIDIA-Merlin/systems/issues/135

Documentation

[ ] https://github.com/NVIDIA-Merlin/Transformers4Rec/issues/491
[ ] https://github.com/NVIDIA-Merlin/systems/issues/257

Examples

[ ] NVIDIA-Merlin/Transformers4Rec#660

Blockers:

[ ] [INF] Unresolved architectural decisions
[ ] Support for ragged tensors in T4R
[ ] Start with fix padding and have it all padded to the same length and then investigate whether it's worthwhile to add the like padding to the Max Sequence length
[ ] Padding support in dataloader that supports systems along with cross framework support

@karlhigley , I saw the comment after 22.05 and wondered whether we should have this ticket defined and ready for discussion at the next grooming meeting. Can you help in definition ?

@karl, do you see this getting over by 22.08?

@karlhigley , should this ticket also have these additional requirements that we discussed in the backlog grooming meeting?

enable PyT T4R

Multi-gpu training
- DP (working)
Serving
- Python-backend (working)

No, because they're not part of the scope as described at the top of this issue and they've already been completed

@karlhigley , the original ask from product team  is Session based recommender - Add PyT API to Merlin models / Systems. This ticket only covers  the systems side and not models. I think this should be a [Task] that must be part of a RMP ticket that will cover the models side also. Let me know your thoughts on this.

@viswa-nvidia That was my original thought too, until I got talked out of it. 🤷🏻

@edknv does the work you've done for Transformers4Rec support this functionality from the model training side?
@karlhigley excluding onnx support can we currently serve Torchscript based models in systems?
Looking to close this

Each side of this equation works independently, but no one has tested them together AFAIK, so we're not ready to close this yet

@rnyak @bschifferer can one of you please test this functionality and ensure that we're able to save models via torchscript and serve via systems.  I think this is relevant to a number of your customers.

I'm working on an integration test for that here, but it isn't working yet: https://github.com/NVIDIA-Merlin/systems/pull/176

@marcromeyn , Add tickets to the backlog for the optimizations


Fix new lines in README's mermaid diagram

Description
If I undertstand correctly, GitHub's mermaid doesn't support \n as EOL, but <br> is used in mermaid's docs and works, see here. On docusaurus, \n works well, so I haven't touched it.
Before:

After:

Readiness checklist

[ ] I added/updated unit tests (and they pass).
[ ] I added/updated integration/compatibility tests (and they pass).
[ ] I added/updated comments and checked rendering.
[x] I made spot refactorings.
[ ] I updated user documentation.
[ ] I ran task all, and it passed.
[x] I ensured that PR title is good enough for the changelog.
[x] (for maintainers only) I set Reviewers (@FerretDB/core), Milestone (Next), Labels, Project and project's Sprint fields.
[x] I marked all done items in this checklist.

On docusaurus, \n works well, so I haven't touched it.

I updated all of them so they are consistent


landscape: the return of the validator mark.

Issue Description:
When sending a (list card:agent:gall) to reproduce a chat/diary/heap wholesale, dex malfunctions and has the same key (specifically, now.bol) for every diff you load in. This confounds the ability to blindly accept pokes from yourself with past-dated keys.
Steps to reproduce

Extract the log from a chat/diary/heap
Re-emit the log as pokes to the appropriate agent
Get rekt.

Expected Behavior
I'm our, do what I say.

Tracking internally as LAND-407


Migrate current site docs to this repository in restructured text

See http://katharsis-jsonapi.readthedocs.io/en/latest/

done


date.setTime doesn't update timepicker 'selected' variable

Hello,
maybe it's a design choice more than a bug? you're probably gonna answer my question later.
here's the plunk:
http://plnkr.co/edit/QRXZaDWI5DWfQpIKvv1g
if i use the date.setDate or date.setHours, the timepicker isn't updated but if the variable actually gets a new reference by doing date = new Date(bla bla) it works well. You can see that my problem is that if i change the date then the time, the date modification is canceled.
Happy new Year!!!

So this is something that would not be simple to detect without degrading performance - we would have to watch for changes in [getHours(), getMinutes(), getSeconds()].
IMO if one wants to trigger the change via that method, one should instantiate a new date instance, i.e. date = new Date(date).
What are your thoughts on this given that the workaround seems easy?

I aggree, the workaround is pretty easy.  I was just surprised of this behaviour and i thought this had to be mentionned.
I don't know how to bring this out but this could be an interesting detail for other users.
Maybe a small note in the documentation?


Add dev-tools dependency for commons

Motivation:
We need to add a dev-tools dependecy for commons as otherwise we may fail to fetch it before we try to use it.
Modifications:
Add dependency.
Result:
Fixes https://github.com/netty/netty/issues/7842

its an easy one.. let me merge this


XF86 Keyboard Symbols Support

Hi,
I'd like to make a feature request: could you please add support for the XF86 media key symbols for each of the system-wide hotkeys? The RCTRL + RALT + F combinations change the virtual terminal on Ubuntu and can't be used to control musikcube.
P.S. Thanks for an amazing application. It's the best of its class.

Hello! This is already supported in a somewhat roundabout way.
Right now you can use the included mpris plugin, which will be automatically loaded when musikcube starts if you have the libsystemd package installed on your system.
Using the mpris plugin you can control musikcube via dbus. Many desktop environments (e.g. KDE) should support this out of the box, but if you're using something like i3 you can use a program called playerctl to control musikcube when the media keys are pressed.
For example, here's what I have in my i3 config:
 bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
 bindsym XF86AudioNext exec --no-startup-id playerctl next
 bindsym XF86AudioPrev exec --no-startup-id playerctl previous
 bindsym XF86AudioStop exec --no-startup-id playerctl stop

Does this help? :)

Yes, this is perfect. I am using i3 so your config is very helpful. Thank you!


JOIN support

Is there anyway to perform JOIN query? If there is, how can I do it?

Hey @aperture147 I will be looking into adding support for this next week
Thanks for suggesting this 😄

Hey @aperture147
I've just added support for join clauses in the latest v0.1.13 version
You can read the docs here
Let me know if you have any more suggestion

fields: ['role', 'department', 'payroll.salary'], returning the data in the same level of the object. Would it possible to have the  salary key in the payroll object?

Thanks for your support! Is there any way to perform joining on multiple table? We can change https://github.com/G4brym/workers-qb/blob/37919e0bf12c475b5cd459a37317af70f09ae4a8/src/Builder.ts#L139 from accepting a single Join object to an array of Join? Eg:
  _join(values?: Array<Join>): string {
    if (!values || !values.length) return ''
    let joinQuery = ''
    values.forEach((item: Join) => {
        const type = value.type ? ` ${value.type}` : ''
        joinQuery += `${type} JOIN ${value.table} ON ${value.on}`
    })

    return joinQuery
  }

This is a rough implementation to show the idea, sorry if it does not work.

Hey @subhendukundu that kind of result transformation should be handled in your application, workers-qb is only meant to generate sql queries

Hey @aperture147 I've just added support for multiple joins, checkout the docs here
https://workers-qb.massadas.com/advanced-queries/join/#multiple-joins


chore: move google/protobuf requirement to dev

Hello.
Trying to do the same as in the repository https://github.com/roadrunner-php/goridge - google/protobuf is removed from require_dev and added to suggest ext-protobuf as well. The purpose is not to install google/protobuf when ext-protobuf already installed.
However, I can not add an exception throw same as here: https://github.com/roadrunner-php/goridge/blob/8fe68b0c871862f9ec852659de1cc7c1a68b783f/src/RPC/Codec/ProtobufCodec.php#L26
All class are autogenerated, trying to find out where to make an user-friendly exception if nothing is installed. Need assistance c:
cc @Kaspiman

Summary by CodeRabbit

New Features

Added support for Protobuf codec in the development environment.

Documentation

Improved clarity and organization of dependency requirements in the project configuration.

@msmakouz could you please take a look?


No sound when booting without hdmi monitor attached

description
When I start the raspberry with no screen attached, there is no sound (from minijack).
If I connect a screen everything works as expected.
Running sudo aplay /usr/share/sounds/alsa/Front_Center.wav works.
config

# Device name on Spotify Connect
#DEVICE_NAME="raspotify"

# Bitrate, one of 96 (low quality), 160 (default quality), or 320 (high quality)
#BITRATE="160"

# Additional command line arguments for librespot can be set below.
# See `librespot -h` for more info. Make sure whatever arguments you specify
# aren't already covered by other variables in this file. (See the daemon's
# config at `/lib/systemd/system/raspotify.service` for more technical details.)
#
# To make your device visible on Spotify Connect across the Internet add your
# username and password which can be set via "Set device password", on your
# account settings, use `--username` and `--password`.
#
# To choose a different output device (ie a USB audio dongle or HDMI audio out),
# use `--device` with something like `--device hw:0,1`. Your mileage may vary.
#
#OPTIONS="--username <USERNAME> --password <PASSWORD>"

# Uncomment to use a cache for downloaded audio files. Cache is disabled by
# default. It's best to leave this as-is if you want to use it, since
# permissions are properly set on the directory `/var/cache/raspotify'.
#CACHE_ARGS="--cache /var/cache/raspotify"

# By default, the volume normalization is enabled, add alternative volume
# arguments here if you'd like, but these should be fine.
#VOLUME_ARGS="--enable-volume-normalisation --volume-ctrl linear --initial-volume=100"

# Backend could be set to pipe here, but it's for very advanced use cases of
# librespot, so you shouldn't need to change this under normal circumstances.
#BACKEND_ARGS="--backend alsa"
OPTIONS="--device hw:1"

enabling BACKEND_ARGS="--backend alsa" fixed it for me


Can Updates-Via is also sent on 404 and can listen for creation

In the bit about live update,
https://github.com/solid/solid-spec/blob/master/api-websockets.md
we need to specify that you can subscribe to changes in a resource which currently does not exist, and get a ping when  it is created (and thereafter to any changes).
The headers Update-via and `MS-Author-Via: are sent on 404 as well as 200.
NSS sends the headers now.   i haven't tested the actual WS ping message on file creation.
See also
https://github.com/linkeddata/rdflib.js/issues/392  in rdflib
which is depended on by
https://github.com/solid/solid-ui/issues/228  a issue with the chat UI needing this.

@timbl  Why not all 4xx?
Alice wants to access Bob's class notes, but gets a 403. She clicks a button to send an access request to Bob's inbox. Bob's inbox bot recognizes Alice as a close friend and updates permissions. Now Alice can view the notes.
Same use case as above with a 402 for a paywall etc.

Is this issue duplicated by https://github.com/solid/solid-spec/issues/217 ? Note that I've transferred 217 to https://github.com/solid/specification/issues/166 so that it can be addressed by the ongoing work in solid/specification. Note: https://github.com/solid/specification/issues/166#issuecomment-617654827


net: Remove s_addr/s6_addr defines from in_addr/in6_addr

Replace #defines for s_addr/s6_addr etc. in in_addr/in6_addr structures
within net_ip.h with fixed fileds. This prevents intrusive behaviour of
net_ip.h, that expands every occurence of s_addr/s6_addr with it's own
define, even in other, non-related structures.
Fixes #10242
Signed-off-by: Robert Lubos<EMAIL_ADDRESS>

Codecov Report

Merging #10257 into master will decrease coverage by <.01%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master   #10257      +/-   ##
==========================================
- Coverage   53.05%   53.05%   -0.01%
==========================================
  Files         214      214
  Lines       26200    26199       -1
  Branches     5646     5646
==========================================
- Hits        13900    13899       -1
  Misses      10027    10027
  Partials     2273     2273

Impacted Files
Coverage Δ

subsys/net/lib/coap/coap.c
60.66% <0%> (ø)
:arrow_up:

subsys/net/l2/ethernet/ethernet.c
55.04% <0%> (ø)
:arrow_up:

subsys/net/ip/dhcpv4.c
6.98% <0%> (ø)
:arrow_up:

subsys/net/lib/dns/resolve.c
36.22% <0%> (ø)
:arrow_up:

subsys/net/ip/utils.c
79.65% <100%> (ø)
:arrow_up:

subsys/net/ip/net_if.c
64.72% <100%> (-0.04%)
:arrow_down:

include/net/net_ip.h
69.07% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

@pfalcon

Also, can you add to the commit message explanation of why s4_addr with s_addr8, etc.?

I wanted to be consistent in prefixing for IPv4, as we use s_ prefix for s_addr, so I wanted to use s_ prefix for other fields as well. And as s_addr is reserved for 32-bit field, I've added 8 suffix for byte array.
Would it be preffered to stick to the s4_* nomenclature? s_addr could be then just another field in a union.

I wanted to be consistent in prefixing for IPv4, as we use s_ prefix for s_addr, so I wanted to use s_ prefix for other fields as well. And as s_addr is reserved for 32-bit field, I've added 8 suffix for byte array.

Would it be preffered to stick to the s4_* nomenclature?

I think this change is for better, just please include the motivation, as you described, in the commit message. How I'm trying to judge such changes is: what if some time later someone submits the opposite change? Will we just apply it silently, just as we apply silently this change, just piggybacked on a related change? Or is there criteria which decides which change is "more right"? If there's, let's have it in the commit message, so we avoid potential flip-flopping in the code.

Ok, I get it, I have the information needed now. Will update of course :)


Dash Coin

Description

[UT] Add Dash wallet generation
Add coin icons
[UT] Add Dash transaction Sign

Black Duck Security Report
Merging #38 into develop will not change security risk.
Click here to see full report


Interrupt Semantics

From @peacememories in Rahix/avr-device#19:

I wonder... do you think we can encode semantics like “when this interrupt fires the uart has incoming data” in the interrupts? Would that make sense? Why I would be interested in doing this: in c I would just start reading data from uart on an interrupt, but in rust I’d use read on the uart which (afaict) also Checks if there is actually data in the register. This is good for safety, but technically when the uart interrupt fires I have a guarantee that there is data available. Same for adc samples etc.

Linking to issues #235 and #237.


Remove FFCAPI for updated architecture

When events are involved, the coupling between the FFTM and the connector code is just too intertwined to support separate runtime processes. So a refactor of the FFCAPI needs to happen, and it makes sense for that to happen within a refactored FFTM.
So it should be removed from here.

Codecov Report

Merging #15 (310210a) into main (cb2a6ea) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              main       #15    +/-   ##
==========================================
  Coverage   100.00%   100.00%
==========================================
  Files           41        29    -12
  Lines         2048      1939   -109
==========================================
- Hits          2048      1939   -109

Impacted Files
Coverage Δ

pkg/ffapi/handler.go
100.00% <ø> (ø)

Continue to review full report at Codecov.

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


fix(event_bus): panic if multiple goroutine call publish and then wait

Because of wg's counter can't be a negative number, if call Wait() and then call Add(1) before Wait() complete, it will throw a panic "WaitGroup is reused before previous Wait has returned". so this PR add a mutex to fix the issue.
For more detail, see:
https://stackoverflow.com/questions/48351816/waitgroup-is-reused-before-previous-wait-unknown-reason
I write a test TestSubscribeAsyncWithMultipleGoroutine that can reproduce the issue.
func TestSubscribeAsyncWithMultipleGoroutine(t *testing.T) {
	for i := 0; i < 100; i++ {
		bus := New()
		bus.SubscribeAsync("topic", func() {
			time.Sleep(time.Millisecond)
		}, false)
		bus.Publish("topic")
		go func() {
			time.Sleep(time.Millisecond)
			bus.Publish("topic")
		}()
		bus.WaitAsync()
	}
}

Codecov Report

Merging #49 (0c59636) into master (49d4230) will decrease coverage by 1.40%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #49      +/-   ##
==========================================
- Coverage   83.26%   81.86%   -1.41%
==========================================
  Files           4        4
  Lines         251      215      -36
==========================================
- Hits          209      176      -33
+ Misses         29       26       -3
  Partials       13       13

Impacted Files
Coverage Δ

event_bus.go
93.75% <100.00%> (-1.05%)
:arrow_down:

network_bus.go
76.66% <0.00%> (-2.75%)
:arrow_down:

server.go
72.13% <0.00%> (-1.79%)
:arrow_down:

client.go
77.27% <0.00%> (+0.34%)
:arrow_up:

Continue to review full report at Codecov.

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

There is a bug!
If you add lock on WaitAsync() function, it will cause TestSubcribeOnceAsync() dead lock.


Version chooser: Stay on the same page when switching versions

About
@hlcianfagna suggested to improve the version chooser in a manner that it will try to select the same page the reader is currently viewing, when switching versions.

Dear Hernan,
the situation has been improved with GH-420, which has been released already. Are you satisfied with the outcome? Obviously, it will not work in all situations, when content has been restructured. But when the shape is the same, like on ^1, it works well.
With kind regards,
Andreas.

Hi again. GH-428 tries to improve the situation. It has not been rendered on all the documentation projects, but, for example, https://crate.io/docs/python/ already uses the corresponding theme release which includes the fix.

Thank you.
There may still be some room for improvement, for instance if you go to
https://crate.io/docs/python/en/latest/connect.html
and open the version dropdown you get offered 0.30, 0.23, and 0.22
Selecting 0.23 it stays on the Connect page but the navigation tree on the left-hand side is collapsed.
Selecting 0.22 it navigates to the page not found message.

Dear Hernan,
thanks.

Selecting 0.23 it stays on the Connect page but the navigation tree on the left-hand side is collapsed.

That's true. You will also recognize that, after navigating to https://crate.io/docs/python/en/0.23/, the version chooser swaps back to its previous version, where the current version is still a link. That means that this page has not been rendered using the latest version of the theme, yet.

Selecting 0.22 it navigates to the page not found message.

That's true. On version 0.22, there was no connect.rst page, see https://github.com/crate/crate-python/tree/0.22.1/docs. In this cases, the very light-weight component can't do anything.
Visiting its source code recently, PyData Theme's version switcher might be more capable on this matter, but that is definitively out of scope for those low-end improvements we can make right now.
With kind regards,
Andreas.

I've just deactivated those old versions of the documentation for the Python driver. I see no reason to keep them around.
We may even think about changing the versioning scheme in the future, because it is a stable piece of software, where different schemes may fit better. However, that is also a totally different story.

@michaelkremmel reported about quite a number of "404 Not Found" responses, which are most probably caused by this component.
Examples:
https://crate.io/docs/crate/reference/en/3.3/appendices/release-notes/5.4.0.html
https://crate.io/docs/crate/reference/en/3.3/appendices/release-notes/5.4.1.html
https://crate.io/docs/crate/reference/en/3.3/appendices/release-notes/5.4.2.html
https://crate.io/docs/crate/reference/en/3.3/appendices/release-notes/5.4.3.html
https://crate.io/docs/crate/reference/en/3.3/appendices/release-notes/5.5.0.html

Hi again,
with GH-436, we added the JavaScript version chooser component of pydata-sphinx-theme, where its author, @drammock, also provided valuable insights and suggestions to use a more recent version -- thank you again!
@hlcianfagna: Please let us know if that satisfies your claims for reasonably good UX, or if you see any room for improvements.
With kind regards,
Andreas.

@hlcianfagna: Please let us know if that satisfies your claims for reasonably good UX, or if you see any room for improvements.
Hi, yes, I am happy that the main objective of staying on the same page is now achieved. Ideally I would have liked that we filter out the versions for which the page does not exist or that maybe we give a more graceful message while staying on the same page, but I understand these are larger changes and also things that may be better addressed upstream on the standard components. So no objections from me to close this issue.


[Question] Support for OpenLLaMA

Question
OpenLLaMA has been released few days ago.
https://huggingface.co/openlm-research/open_llama_13b
Do you plan to deal with OpenLLaMA?
Is the OpenLLaMA + LLaVA license Apache-2.0?

I tested the OpenLLaMA + LLaVA-delta.
But, it does not work correctly. (The image is generated by my model.)

Should we need to train it LLaVA-delta to fix it?

I had the same question. I believe the answers are the following:
"Do you plan to deal with OpenLLaMA?"
I do not know but that would be great
"Is the OpenLLaMA + LLaVA license Apache-2.0?"
No, if the training procedure is the same as mentioned in the paper. Currently, "Training Stage 2: Fine-tuning End-to-End" relies on annotated data that rely on ChatGPT / GPT-4 for their annotations. ChatGPT / GPT-4 cannot be used to make other models for non-commercial purposes.
"But, it does not work correctly. (The image is generated by my model.)"
It makes sense that it does not work because the delta weights were computed using LLaMA as the frozen LLM during training instead of OpenLLaMA.
Should we need to train new LLaVA-delta to fix it?
Yes, exactly, we would need to freeze OpenLLaMA and retrain it to make it compatible with OpenLLaMA. Also, if you are planning on using this for commercial purposes, you would need to avoid using Chat-GPT / GPT-4 for the data annotation.

@nikolaspapastavrou
Thanks for helping answering these!
LLaMA-2 is now supported so commercial usage of the base LLM should be fine now. We'll release a OpenLLaMA-3B checkpoint for lightweight use cases soon.
Thanks.

@haotian-liu Thank you for your reply. LLaVA 1.5 based on Llama 2 is very good. I will close this discussion now.


Simplify KB test harness

LGTM thanks

Did you try running ./interpreter_tests after your changes to it? It segfaults for me with your changes to test harness. Everything is fine when I revert all the latest changes to test infra (this PR and other changes #607, #589)

Weird, can't reproduce.
Please fix if possible.
On Fri, Oct 4, 2019, 4:45 PM Pranav Kant<EMAIL_ADDRESS>wrote:

Did you try running ./interpreter_tests after your changes to it? It
segfaults for me with your changes to test harness. Everything is fine when
I revert all the latest changes to test infra (this PR and other changes
#607 https://github.com/google/souper/pull/607, #589
https://github.com/google/souper/pull/589)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/google/souper/pull/608?email_source=notifications&email_token=AAJNVP4COJZGLOSSCR5CAG3QM7BQBA5CNFSM4I2GC342YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEANCCKY#issuecomment-538583339,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJNVP75AD7TRX5PVM7KTMLQM7BQBANCNFSM4I2GC34Q
.

So,  you are saying that ./interpreter_tests just works for you and passes ternary tests? But how's that possible given the fshl implementation in #589 is incorrect.

It passes because the reference implementation of fshl in
InterprterInfra.cpp is equally incorrect.
On Sat, Oct 5, 2019, 1:20 PM Pranav Kant<EMAIL_ADDRESS>wrote:

So, you are saying that ./interpreter_tests just works for you and passes
ternary tests? But how's that possible given the fshl implementation in
#589 https://github.com/google/souper/pull/589 is incorrect.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/google/souper/pull/608?email_source=notifications&email_token=AAJNVP4UOAIPLA7IQAS6N3LQNDSG3A5CNFSM4I2GC342YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEANZ3NA#issuecomment-538680756,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJNVP7H7LQQU5RRXCSRKPLQNDSG3ANCNFSM4I2GC34Q
.

what's status here? has this resulted in a pull request?

@manasij7479 I am using a debug LLVM build. It's possible you are not seeing the assertion failure because you are on release llvm? The segfault is actually an assertion failure.

well, I assume that in the future @manasij7479 will be working with debug builds so he doesn't keep doing this

in the meantime: please fix this, guys


Search bar does not work properly

When using the search bar, the results do not include samples that should be found. Additionally, the navigation to e.g. experiments does not work (in all cases).

Fixed by https://github.com/qbicsoftware/projectbrowser-portlet/commit/a49a7e8ddd7d46b4cc8022ccd0cd5f58d6a38a18


Error when running on python 13

I have a project running in python 12. After updating to python 13 I got the following error
root@323b676783df:/project/banks# python manage.py check
Traceback (most recent call last):
  File "/project/banks/manage.py", line 22, in <module>
    main()
    ~~~~^^
  File "/project/banks/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
    ~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/django/core/management/base.py", line 412, in run_from_argv
    self.execute(*args, **cmd_options)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.13/site-packages/django/core/management/commands/check.py", line 76, in handle
    self.check(
    ~~~~~~~~~~^
        app_configs=app_configs,
        ^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
        databases=options["databases"],
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/django/core/management/base.py", line 485, in check
    all_issues = checks.run_checks(
        app_configs=app_configs,
    ...<2 lines>...
        databases=databases,
    )
  File "/usr/local/lib/python3.13/site-packages/django/core/checks/registry.py", line 88, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/usr/local/lib/python3.13/site-packages/django/core/checks/urls.py", line 14, in check_url_config
    return check_resolver(resolver)
  File "/usr/local/lib/python3.13/site-packages/django/core/checks/urls.py", line 24, in check_resolver
    return check_method()
  File "/usr/local/lib/python3.13/site-packages/django/urls/resolvers.py", line 494, in check
    for pattern in self.url_patterns:
                   ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/django/utils/functional.py", line 57, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
                                         ~~~~~~~~~^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/django/urls/resolvers.py", line 715, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/django/utils/functional.py", line 57, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
                                         ~~~~~~~~~^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/django/urls/resolvers.py", line 708, in urlconf_module
    return import_module(self.urlconf_name)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/project/banks/app/urls.py", line 9, in <module>
    from .schema import schema
  File "/project/banks/app/schema.py", line 1, in <module>
    import strawberry
  File "/usr/local/lib/python3.13/site-packages/strawberry/__init__.py", line 1, in <module>
    from . import experimental, federation, relay
  File "/usr/local/lib/python3.13/site-packages/strawberry/federation/__init__.py", line 5, in <module>
    from .object_type import input, interface, interface_object, type
  File "/usr/local/lib/python3.13/site-packages/strawberry/federation/object_type.py", line 16, in <module>
    from strawberry.object_type import type as base_type
  File "/usr/local/lib/python3.13/site-packages/strawberry/object_type.py", line 30, in <module>
    from .utils.dataclasses import add_custom_init_fn
  File "/usr/local/lib/python3.13/site-packages/strawberry/utils/dataclasses.py", line 13, in <module>
    from strawberry.ext.dataclasses.dataclasses import dataclass_init_fn
  File "/usr/local/lib/python3.13/site-packages/strawberry/ext/dataclasses/dataclasses.py", line 5, in <module>
    from dataclasses import (  # type: ignore
    ...<7 lines>...
    )
ImportError: cannot import name '_create_fn' from 'dataclasses' (/usr/local/lib/python3.13/dataclasses.py)

After some search I found that python13 remove the function _create_fn.
Is there any fix in the plans for this in a newer version? Or some fix that I can apply on my code?
Thanks

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

@helioascorreia have you updated to the latest version of Strawberry? :)

Damm! my bad, I only check that the requirements doesn't had the version locked by other package was blocking the version


Internal Server Error [500] when drawing bounding box

Chrome 30/31 - Getting Internal Server Error[500] when drawing a bounding box.

Can not replicate this error.  Tested on Chrome 30/31.  Closing ticket.


Represent Cilium status as Prometheus metrics

The following metrics are introduced there:

number of failing controllers
number of allocated addresses
number of nodes that cannot be reached
number of health endpoints that cannot be reached

Fixes: #3997
Represent Cilium status as Prometheus metrics

This change is

test-me-please

Jun 09 20:11:27 runtime systemd[1]: Started cilium-docker plugin.
Jun 09 20:11:27 runtime systemd[7658]: cilium-docker.service: Failed at step EXEC spawning /usr/bin/cilium-docker: No such file or directory
Jun 09 20:11:27 runtime systemd[1]: cilium-docker.service: Main process exited, code=exited, status=203/EXEC

test-me-please

This PR is a clone of #4070. Reviews have happened on PR #4070.


NodeJS code in tagui_global.js

Hi,
Will tagui accept writing node JS code in tagui_global.js file. I wanna write a user defined function using node JS which has a require/import statement at the begining of the file. When I run the flow file which is calling this function, the execution is failing. So would like to know  whether tagui accept writing node JS code in tagui_global.js file or not.
Note: I have installed TagUI as a NPM package.
Thanks,
Ramu Y

Hi, unfortunately TagUI runs on phantomjs, which does not accept and execute nodeJS code.

Adding on, it is a design choice to build TagUI on PhantomJS versus on Node.js. This is because, with PJS, any user can unzip and run TagUI directly. But with Node.js, business users or companies with strict software installation policies will not be able to have Node.js installed on their laptops, and they will not be able to run TagUI automations.
In future if PJS does not work with a future version of Linux or Windows, may need to migrate TagUI to Node.js, but it comes with a cost that many current users won't be able to use TagUI anymore, unless they have IT department to allow Node.js.

Thank you Ken for the update. But I believe nowadays, Node JS is also available as a ZIP distribution (https://nodejs.org/en/download/). With this, there is absolutely no need for business users and companies to install Node JS. You can ship Node JS distribution along with TagUI zip file like you are doing for PJS.

Hey Ramu @ramu-yarru, this is good information, thanks!
In that case, Alvin @Aussiroth (and copying Ryzal @ryzalk), this limitation may not be a concern when the time comes to migrate to Node.js. I can imagine a big rewrite of TagUI, making use heavily of existing code that talks to Chrome and the current overall automation framework. But anything to do with CasperJS will involve rewriting. For better or worse, that would also mean no execution on Firefox through SlimerJS or PhantomJS headless WebKit browser, and only running web flows on Chrome.
Personally though, I'll think a rewrite of TagUI in Python would open up more impact versus a rewrite for Node.js. A Python-based TagUI will probably make a bigger help to current data science and machine learning related user community, versus potential benefits of a Node.js TagUI over PJS TagUI.


Heuristic Benchmarking

Description
Implements some benchmarks into the heuristic mapper (both for the whole mapping process, and for each layer):

number of generated nodes
number of expanded nodes
depth of the retrieved solution in the search tree (only for each layer, not globally for the whole mapping process)
average branching factor (i.e. how many children does a node generate on average)
effective branching factor (i.e. how many of those children on average were expanded before the solution was found; or in other words the branching factor, which a balanced, uniform tree would need to have, to contain the number of processed nodes (expanded + 1) with a depth equal to the solution depth)
the average time spent on each expanded node

All of this will help keeping track of performance changes, when implementing new heuristics or updating the existing heuristic.
Checklist:

[x] The pull request only contains commits that are related to it.
[x] I have added appropriate tests and documentation.
[ ] I have made sure that all CI jobs on GitHub pass.
[x] The pull request introduces no new warnings and follows the project's style guidelines.

 Considering runtime, but also memory. Would it make sense to "hide" these computation behind a "debug" or "monitoring" or "benchmarking" flag in the configuration and only track the metrics if the flag is enabled? Or is the overhead negligible anyway and we might as well include it all the time? I guess one of my main concern comes from the Results object being passed to Python which requires translating the C++ vector of results to Python. If the vector is large, this could be costly.

Oh, I did not even think about Python here. Using C++ directly, I did not see any significant change in mapping time (however, I also did not check memory usage, though I do not think there is any potential for a huge memory overhead). But I guess it cannot hurt to hide the feature behind a debugging flag in the configuration. Thank you for the suggestion!

 Considering runtime, but also memory. Would it make sense to "hide" these computation behind a "debug" or "monitoring" or "benchmarking" flag in the configuration and only track the metrics if the flag is enabled? Or is the overhead negligible anyway and we might as well include it all the time? I guess one of my main concern comes from the Results object being passed to Python which requires translating the C++ vector of results to Python. If the vector is large, this could be costly.

Oh, I did not even think about Python here. Using C++ directly, I did not see any significant change in mapping time (however, I also did not check memory usage, though I do not think there is any potential for a huge memory overhead). But I guess it cannot hurt to hide the feature behind a debugging flag in the configuration. Thank you for the suggestion!

I agree. It's probably not the worst thing (the data structure is rather tiny), but in order to maximize performance I believe it could be helpful to deactivate the metric tracking.

LGTM. Thank you for the refinements!


Add teamleader support.

You can find the toggl link in every widget.

Thank you for your contribution


where is postprocess_bbbox?

in benchmarks.py 103 lines is pred_bbox = utils.postprocess_bbbox(pred_bbox, ANCHORS, STRIDES, XYSCALE)
but there is no postprocess_bbbox in utils.py....then how can i run benchmarks.py?

Did you solved this problem?---------------------------------------------------------------------------------------------------------------------------------------------------------------------in benchmarks.py 103 lines is pred_bbox = utils.postprocess_bbbox(pred_bbox, ANCHORS, STRIDES, XYSCALE)
but there is no postprocess_bbbox in utils.py....then how can i run benchmarks.py?


import XLSX from "xlsx";Print XLSX out is a path?

use react
import XLSX from "xlsx";
console.log(XLSX)
The result is：/static/xlsx.2748649c.mjs

That looks like a bundler issue.  Can you share a sample project?


fix tests so that they don't have API & channel keys embedded in them.

(moved them to a config file)

Looks good to me, thanks for the contribution! :+1:


Adding framework support

Fixes #147.

Thanks for this version; I've decided to fix it another way. See cb1036fe9eaa5e9d1ad2cc8549af0a26acbffc3d.


Autorest Regen Preview to 3.0.0-alpha.20240301.2 by Michael Nash from refs/pull/4308/head

Triggered from https://github.com/Azure/autorest.csharp/pull/4308

API change check
API changes are not detected in this pull request.


[Cleanup] Rename all instances of "topic" to "category"

https://app.clubhouse.io/augur/story/5204/update-all-references-of-topics-categories-keywords-tags

Not exactly sure the procedure to verify this isn't breaking anything. I've started manual testing, but pretty broad-reaching change and I'm pretty scared.
Git seems to be struggling to move files instead of add/delete. I restarted the change and made a separate commit each time I renamed a folder, but it doesn't seem to have solved the problem. Let me know if you care to preserve that, and I'll try some more things.
Potentially an ugly merge for anybody with outstanding changes. Not sure on best time to do this. Not sure if I should do the "Keywords>Tags" change together in one PR or if it best to keep them separate.

I'm going to break this into smaller changes.  This one just moves files around, but doesn't touch the content.
.... refactoring like this is a slog in javascript

That’s a totally sane approach.
Re: tooling — I know IntelliJ’s IDEs have that built in, so rename a var in one place + it’s updated everywhere.


Does this library only support sending messages to one exchange?

Just a quick question about how things are laid out.  I'm trying to plan my RabbitMQ setup and need to know if I can target different exchanges with this library.

Push a raw payload onto the queue.
how to pushRaw function method

1 exchange per one connect, but you can declare several queue connections and use it by "Queue::connection('rabbitmq2')"

This doesn't sound like a good and flexible solution


[Bug]: TypeError: Promise.allSettled is not a function. (In 'Promise.allSettled(promises)'; Promise.allSettled is not defined)

TypeError: Promise.allSettled is not a function. (In 'Promise.allSettled(promises)'; Promise.allSettled is not defined)

I'm on iOS 12.5.5 (iPhone 6). Plugin version: 2.5.1

I have no idea where that error occurs, and I'm not using Promise.allSettled() myself. Please use the provided template and describe what you are doing.

Sorry. At that time I haven't figured out the MRE yet. Here it is:
Here are my steps:

Create a new vault & install Obsidian Git
Make a dummy edit
Commit
This bug happens

I have only test on iOS 12.5.5 (iPhone 6)

I don't have an iPhone, but I can't reproduce on android. The error message doesn't help me either, so I have no way no fix this. Sorry.

Do you think it's better to tag this issue with an iPhone tag so people can easily find it and help?

I get the same error in the  Android app on a Chromebook. It happens when I want to stage my changes. Initializing the repo works without any issue. I cannot create or switch branches.

I had the same issue on android. It is caused for me by an old version of the android webview component that does not yet know about the Promise.allSettled. The function is used in the git library used in this project https://github.com/isomorphic-git/isomorphic-git/blob/328fbba5d2eb8c17093786c2594001d3a109252a/src/api/add.js#L96.
Maybe updating android webview might help future readers, but it did not help me. However i build a ugly hack to make it work on all devices needing it:

Install and enable the Dataview community plugin
In the plugin settings enable javascript queries
Add a new note (or put it in one you have always open) and paste the following

```dataviewjs
if (!Promise.allSettled) {
  Promise.allSettled = promises =>
    Promise.all(
      promises.map((promise, i) =>
        promise
          .then(value => ({
            status: "fulfilled",
            value,
          }))
          .catch(reason => ({
            status: "rejected",
            reason,
          }))
      )
    );
}

(Snippet taken from here https://stackoverflow.com/a/66673057)

Now you just need to open this note once before you want to commit your changes and it will patch the missing javascript method. For newer versions already having the javascript method it will do nothing

Wow, what an insane hack! It totally works though. Got Obsidian running and syncing with git on my Quest 2

@huettner94 thank you very much! work like a charm on my old iphone 6


Adding enchancement to show hide widgets on toggling a checkbox. Fixes #883

Hello,
The pull request adds the ability to 'show/hide other widgets' via a checkbox.
The usage guide is available as a comment in checkboxshowhide.js
Please review and suggest if any changes are required. Thanks !

Hello @davidjgonzalez,
Thanks for your time to share review comments on the first iteration.
All review (except 1) are incorporated & available for review. Have added detail explicitly for the pending review comment.
Notes:

To use the feature, user would have to add "acs-commons.widgets.showhidedialogfields"  to "cq.authoring.dialog"

Please let me know, if it can be further improved


File dita-ot-2.1.0/bin/ant throws errors when executed in a Ubuntu 15.04 shell

Here's a screenshot. It shows dita-ot-2.1.0/bin/ant failing to execute "ant -version". It also shows this same command succeeding when run as /usr/bin/ant.

The distribution packages were build on Windows and at some point the line ending characters in shell files were change to Windows line endings.

@robertnthomas do you have the same issue with dita command?

So when I do a simple pull from develop before building packages, it's changing line endings? Anything I can do to prevent that in future builds, without messing up the Windows ones?

Understood. \ and ^M are evil.
On Fri, Jun 26, 2015 at 3:32 PM, Jarno Elovirta<EMAIL_ADDRESS>wrote:

The distribution packages were build on Windows and at some point the line
ending characters in shell files were change to Windows line endings.
—
Reply to this email directly or view it on GitHub
https://github.com/dita-ot/dita-ot/issues/1954#issuecomment-115893036.

--
Bob Thomas
+1<PHONE_NUMBER>
Skype: bob.thomas.colorado
Instant messaging: Gmail chat<EMAIL_ADDRESS>or Skype
Time zone: Mountain (GMT-7)

I'll try it and let you know.
On Fri, Jun 26, 2015 at 3:34 PM, Jarno Elovirta<EMAIL_ADDRESS>wrote:

@robertnthomas https://github.com/robertnthomas do you have the same
issue with dita command?
—
Reply to this email directly or view it on GitHub
https://github.com/dita-ot/dita-ot/issues/1954#issuecomment-115893520.

--
Bob Thomas
+1<PHONE_NUMBER>
Skype: bob.thomas.colorado
Instant messaging: Gmail chat<EMAIL_ADDRESS>or Skype
Time zone: Mountain (GMT-7)

The problem is that we can use Git configuration to control this, but it's per file extension. In this case ant and dita do not have a file extension.

dita-ot-2.1.0/bin/dita -version executes without issues from Ubuntu
On Fri, Jun 26, 2015 at 3:36 PM, Jarno Elovirta<EMAIL_ADDRESS>wrote:

The problem is that we can use Git configuration to control this, but it's
per file extension. In this case ant and dita do not have a file
extension.
—
Reply to this email directly or view it on GitHub
https://github.com/dita-ot/dita-ot/issues/1954#issuecomment-115895049.

--
Bob Thomas
+1<PHONE_NUMBER>
Skype: bob.thomas.colorado
Instant messaging: Gmail chat<EMAIL_ADDRESS>or Skype
Time zone: Mountain (GMT-7)


Revert usage of DeltaAnalysisException

Description
Commit 59d5ea2 replaced the usage of AnalysisException with DeltaAnalysisException. This caused the Python API exception conversion to not work. Earlier the exception AnalysisException used to be convertd to PySpark's AnalysisException (code is here). With 59d5ea2, exception DeltaAnalysisException is thrown directly as a Py4JError.
Revert the usage of DeltaAnalysisException to not break the Python API compatibility.
Summary of reverts.

DeltaAnalysisException - Reverted in all production code. Only place this remains is in a disabled test in DeltaErrorsSuite
DeltaIllegalArgumentException - This is used only in two helper methods (copyIntoEncryptionSseCRequired and copyIntoEncryptionMasterKeyRequired) in DeltaErrors which are not used anywhere in the production code.
DeltaIllegalStateException - Used only in couple of places (Checkpoints.scala, DeltaInvariantCheckerExec.scala) which are reverted in this PR. Remaining uses are in utility method DeltaErrors.failOnCheckpoint which is not used anywhere in the production code.
DeltaColumnMappingUnsupportedException - This is used in few places like when column rename not supported, generating manifest file, convert to delta and few schema change operations. These changes are not reverted. Let me know if this needs revert as well.

How was this patch tested?
Locally.
(base) $ spark-3.2.1-bin-hadoop3.2 % pyspark --packages io.delta:delta-core_2.12:1.2.1-SNAPSHOT --conf "spark.sql.extensions=io.delta.sql.DeltaSparkSessionExtension" --conf "spark.sql.catalog.spark_catalog=org.apache.spark.sql.delta.catalog.DeltaCatalog"

downloading file:~/.m2/repository/io/delta/delta-core_2.12/1.2.1-SNAPSHOT/delta-core_2.12-1.2.1-SNAPSHOT.jar ...

>>> df = spark.read.format("delta").load("/tmp/delta-table2234234")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/anaconda3/lib/python3.9/site-packages/pyspark/sql/readwriter.py", line 158, in load
    return self._df(self._jreader.load(path))
  File "/opt/anaconda3/lib/python3.9/site-packages/pyspark/python/lib/py4j-<IP_ADDRESS>-src.zip/py4j/java_gateway.py", line 1321, in __call__
  File "/opt/anaconda3/lib/python3.9/site-packages/pyspark/sql/utils.py", line 117, in deco
    raise converted from None
pyspark.sql.utils.AnalysisException: `/tmp/delta-table2234234` is not a Delta table.

Have you reverted all usages of DeltaAnalysisException?
And i think you need to handle DeltaIllegalArgumenException

Have you reverted all usages of DeltaAnalysisException? And i think you need to handle DeltaIllegalArgumenException

Updated the PR and also put the summary of what exceptions are reverted in the PR description.

thanks for the details in the description. this makes sense.
why are the tests not running or failed?

why are the tests not running or failed?
There was an issue with pyenv. It is resolved now. Re-triggered the tests.


AttributeError when del is called on S3Client that errors during init

If an exception is raised during the creation of an S3Client instance, subsequently tearing down that instance via Client.__del__ results n an AttributeError:
❯ poetry run python
Python 3.11.5 (main, Sep 22 2023, 12:39:47) [Clang 15.0.0 (clang-15<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cloudpathlib
>>> cloudpathlib.S3Client(profile_name="some-bad-profile")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".venv/lib/python3.11/site-packages/cloudpathlib/s3/s3client.py", line 86, in __init__
    self.sess = Session(
                ^^^^^^^^
  File "venv/lib/python3.11/site-packages/boto3/session.py", line 90, in __init__
    self._setup_loader()
  File ".venv/lib/python3.11/site-packages/boto3/session.py", line 131, in _setup_loader
    self._loader = self._session.get_component('data_loader')
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/botocore/session.py", line 802, in get_component
    return self._components.get_component(name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/botocore/session.py", line 1140, in get_component
    self._components[name] = factory()
                             ^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/botocore/session.py", line 199, in <lambda>
    lambda: create_loader(self.get_config_variable('data_path')),
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "venv/lib/python3.11/site-packages/botocore/session.py", line 323, in get_config_variable
    return self.get_component('config_store').get_config_variable(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/botocore/configprovider.py", line 459, in get_config_v
ariable
    return provider.provide()
           ^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/botocore/configprovider.py", line 665, in provide
    value = provider.provide()
            ^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/botocore/configprovider.py", line 755, in provide
    scoped_config = self._session.get_scoped_config()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/botocore/session.py", line 422, in get_scoped_config
    raise ProfileNotFound(profile=profile_name)
botocore.exceptions.ProfileNotFound: The config profile (some-bad-profile) could not be found
>>> quit()
Exception ignored in: <function Client.__del__ at 0x1031bcc20>
Traceback (most recent call last):
  File ".venv/lib/python3.11/site-packages/cloudpathlib/client.py", line 88, in __del__
    if self.file_cache_mode in [
       ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'S3Client' object has no attribute 'file_cache_mode'

This is happening because the super().__init__() call happens at the bottom of the S3Client.__init__() method (here), so Client.file_cache_mode is not set before the error occurs. I checked and there doesn't seem to be a particular reason that super().__init__() needs to be called at the bottom (all the args are just pass through from the S3Client.__init__() signature). I'm happy to submit a PR to fix this by moving the super().__init__() up in S3Client.__init__() and other related classes too, if that seems like the right fix. Thanks!

To be clear, this is not a blocker for anything, just a small nit that seems pretty easy to clean up 😄

there doesn't seem to be a particular reason that super().init() needs to be called at the bottom (all the args are just pass through from the S3Client.init() signature)

Just took a quick skim, and it seems like that to me as well. Thanks for diagnosing, and PR is welcome!

Exception ignored in: <function CloudPath.del at 0x7f0ace1ef420>
Traceback (most recent call last):
File "/virtualenv/.venv/lib/python3.12/site-packages/cloudpathlib/cloudpath.py", line 250, in del
and self.client.file_cache_mode == FileCacheMode.cloudpath_object
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'S3Client' object has no attribute 'file_cache_mode'
Exception ignored in: <function CloudPath.del at 0x7f0ace1ef420>
Traceback (most recent call last):
File "/virtualenv/.venv/lib/python3.12/site-packages/cloudpathlib/cloudpath.py", line 250, in del
and self.client.file_cache_mode == FileCacheMode.cloudpath_object
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'S3Client' object has no attribute 'file_cache_mode'

This one seems to be back in 0.18.1:
Exception ignored in: <function CloudPath.__del__ at 0x7f0ace1ef420>
Traceback (most recent call last):
  File "/virtualenv/.venv/lib/python3.12/site-packages/cloudpathlib/cloudpath.py", line 250, in __del__
    and self.client.file_cache_mode == FileCacheMode.cloudpath_object
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'S3Client' object has no attribute 'file_cache_mode'
Exception ignored in: <function CloudPath.__del__ at 0x7f0ace1ef420>
Traceback (most recent call last):
  File "/virtualenv/.venv/lib/python3.12/site-packages/cloudpathlib/cloudpath.py", line 250, in __del__
    and self.client.file_cache_mode == FileCacheMode.cloudpath_object
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'S3Client' object has no attribute 'file_cache_mode'

From a quick look here, it looks like we fixed it in #373 for the __del__ finalizer on the Client class but not for the __del__ finalizer on the CloudPath class.

@sbrandtb Can you post a full reproducer script? I don't immediately see how it can get into a state where client.file_cache_mode is not assigned.

This should be addressed by #418/#419. I wasn't able to reproduce the CloudPath.__del__ error either (I was able to reproduce the original error with Client.__del__), but I think the fix doesn't hurt.

@bryanwweber @jayqi
In this case, and because the issue appears only rarely on our side, I would assume it happens in a multithreading scenario. We basically upload files in parallel with workers, but only a fraction of the workers actually upload a file. The simplified code:
from multiprocessing.pool import ThreadPool

from cloudpathlib import S3Path

def do(i):
    dst = S3Path('s3://somewhere') / f'hello_{i}.txt'
    dst.write_bytes(b'hello')

ThreadPool(processes=20).map(do, range(100))

@bryanwweber @sbrandtb This is realeased now in v0.19.0 if you want to upgrade and test your use case.


Upgrade Razor vsix project

Without this the Razor Extension project won't load in dev16

It still opens in pre-dev16 right?

Yup I opened it in 15.9