So, i test $.events
Right now,i only tested with the global syntax ( $.event(subject, handlers) )
describe("$.events", function() {
	it('exists', function() {
		expect($.events).to.exist;
	});
	describe("use with global", function() {
		it("Set multiple event listeners on an element based on element", function(done) {
			var subject = document.createElement("input");
			subject.type = "text";
			subject.id = "test";
			document.body.appendChild(subject);

			var clone = document.createElement("textarea");
			clone.addEventListener("input", function(e){ done(); });
			clone.addEventListener("click", function(e){ done(); });
			$.events(subject, clone);

/*			var ev = document.createEvent("MouseEvent");
			ev.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
			subject.dispatchEvent(ev);*/
			subject.value = "test";
		});
[...]

So the test is a success with the click event, but failed when i just change the value of the input.
If it was copying the events from the element, the test should pass with click event and input event.
The input event is implemented on both input and textarea. doc
I also tried with my own handler (not cloning from an other elements) and it didn't work at all.
		it("Set multiple event listeners on an element", function(done) {
			var subject = document.createElement("input");
			subject.type = "text";
			subject.id = "test";
			document.body.appendChild(subject);

			$.events(subject, {
				'oninput onclick': function(e){ done(); }
			});

			var ev = document.createEvent("MouseEvent");
			ev.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
			subject.dispatchEvent(ev);
		});

I don't know if i do things badly or i am just unlucky but i'm not really helping right now, i can't make a single test work :/
Sorry guys.

You're not dumb. Let's make that pristine. None of us are going to make you feel that way. Bliss is a learning tool as well as a nice utility.
Now that I have that out of the way, we can all take a look and see if we can help.

Yeah, @wcastand, you're doing great work. For example, your test for $.delegate was well designed and it passed on both Chrome and Firefox; it was totally PhantomJS's fault that it was failing. Don't be too hard on yourself. :smiley:

Agreed with @guoguo12. That test is part of the suite now. It was Phantom that was screwing up.

@wcastand - Comment out your test file and commit the code. We can all download your tests and play around, see if we can't spot the issue.

This test is in the repo. If we can take a look and see if we can help, that would be great.

In the second example, it should be "input click", i.e. without the "on".
The first one is really odd, no ideas right now…

Ok so the second worked with "input click".
We should update the doc on blissfuljs.com then because the example look like this:
$$('input[type="range"]')._.events({
	"oninput onchange": function(evt) { this.title = this.value}
})

I don't know if the use of $$()._.events()  change somethins about the "oninput onclick" or "input click"

I don't think setting the input value via javascript is the same as the user setting the input value. I don't think the change event is getting called (or the input event). I think it requires an actual user?

Oh, you were changing the value via JS? Yeah, that doesn't fire an input event. I thought you were changing it manually!

The mozilla doc write that:
Also the change event is related. change fires less often than input – it only fires when the changes are committed by the user.

So I have this:
it("Set multiple event listeners on an element based on element", function(done) {

	//Create elements
	var subject = document.createElement("input");
	var clone = document.createElement("textarea");
	var htmlEvt = document.createEvent("HTMLEvents");
	var calls = {
		input: 0,
		click: 0
	};

	// Add properties to the input and add it to the body.
	subject.type = "text";
	subject.id = "test";
	document.body.appendChild(subject);

	htmlEvt.initEvent('input', true, true);

	clone.addEventListener("input", function(e) {
		calls.input += 1;
		done();
	});

	clone.addEventListener("click", function(e) {
		calls.click += 1;
		done();
	});

	$.events(subject, clone);

	subject.value = 'test';
	subject.dispatchEvent(htmlEvt);

	expect(calls.input).to.equal(1);
	expect(calls.click).to.equal(0);

	clone.click();

	expect(calls.input).to.equal(1);
	expect(calls.click).to.equal(1);

});

It passes, but is it what we want?

my 2 cents, i would use spies to keep track of the call count, makes the code cleaner too you dont have to write any functions
var spy = sinon.spy();
clone.addEventListener("click", spy);
//...
expect(spy.wasCalledOnce).to.be.true;

im using spies in $.lazy  in a similar situation if you want an example.

@dperrymorrow - Shit. Forgot about that. Thanks for the reminder.
Spies aside, is this how we would test something like this? Since we can't actually simulate being a user in a browser?

it("Set multiple event listeners on an element based on element", function(done) {

	//Create elements
	var subject = document.createElement("input");
	var clone = document.createElement("textarea");
	var htmlEvt = document.createEvent("HTMLEvents");
	var spy = sinon.spy();

	// Add properties to the input and add it to the body.
	subject.type = "text";
	subject.id = "test";
	document.body.appendChild(subject);

	htmlEvt.initEvent('input', true, true);

	clone.addEventListener("input", spy);
	clone.addEventListener("click", spy);

	$.events(subject, clone);

	subject.value = 'test';
	subject.dispatchEvent(htmlEvt);

	expect(spy.callCount).to.be.equal(1);

	clone.click();

	expect(spy.callCount).to.equal(2);

	clone.value = 'testclone';
	clone.dispatchEvent(htmlEvt);

	expect(spy.callCount).to.equal(3);

	done();

});

Updated with spies. What do we think?

Thanks @zdfs! Yeah, can't think of any other way. Writing automated tests that involve user interaction is not exactly a solved problem, so simulating the event is our best bet.

When you do something like
clone.click();
expect(spy.callCount).to.equal(2);

is it possible that the click doesn't get processed before the expect call?

I haven't seen that happen yet, @guoguo12. Should I worry?

I've added my version of the $.events tests. Take a look? See if we're all happy?

@guoguo12 I believe click() is synchronous, so that shouldn’t happen…

@wcastand - Were there more tests you wanted to write, or was that all of them? Did you have any questions on what we did?

Closing this for now, since tests have been submitted.

@LeaVerou: Okay, I wasn't sure. For some reason I thought all JS events were queued in the event loop...
Anyway, this will make writing $.delegate tests easier.

Okay, sorry guys i had to go to bed, it was 00h00 in France and i had to wake up at 5 :p
So i have one suggestion and one question.
I think we should write one on the listener with the other synthax like:
clone.oninput = spy

So we can test the second loop of $.events. Because bliss process .onevent in a different loop.
And my question is, when we test and for example in $.events , we have multiple uses.
With an element, with a handler
but also with $.events(), $('element')._.events() , ....
In the test do we need to test every use case or just one and assume that all the other possibility works fine too and only look at them if we have an issue at some point ?
Examples, in the case of $.events, do we need to write 2 tests like we did or 6 tests for each possibility ?


update rake task for rails 3

the rake task no longer calls PolymorphicRoutes in the wrong module

ActionController::PolymorphicRoutes -> ActionDispatch::Routing::PolymorphicRoutes

rails 3 has come and gone and so did this pull request


reduced genome script: sed extra character

Hi I am at the last step in generating the reduced genome. I am trying to get bed file from the fa file using
#make a BED file of unqiue sequences
grep '^>' ${genome}_${enzyme}flanking_sequences${fl}unique.fa > ${genome}${enzyme}flanking_sites${fl}unique.bed
sed -i 's/>//g' ${genome}${enzyme}flanking_sites${fl}unique.bed
sed -i 's/:|-/\t/g' ${genome}${enzyme}flanking_sites${fl}_unique.bed
i got error saying sed: extra character. I tried using -i.bak but the format of the bed file is not right
chr10:100002921-100002942:-
I am using Mac, not LINUS so i think the issue is specific to Mac.
Anyone know?

Hi I think the -i option may not work on a Mac. Try sed -i -e

Hi Ramya,
Thank you for getting back. It is able to generate a bed file but still with this format
chr10:100002921-100002942:-
…………………..
Elissa
From: Ramya Raviram<EMAIL_ADDRESS>Sent: Thursday, August 15, 2019 2:01 PM
To: rr1859/R.4Cker<EMAIL_ADDRESS>Cc: Wong, Wai Pung E./Sloan Kettering Institute<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: [EXTERNAL] Re: [rr1859/R.4Cker] reduced genome script: sed extra character (#58)
Hi I think the -i option may not work on a Mac. Try sed -i -e
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/rr1859/R.4Cker/issues/58?email_source=notifications&email_token=AKFFRZX67XI22O6JW6BB7FLQEWKVDA5CNFSM4IL6MAGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4MRHZI#issuecomment-521737189, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKFFRZTQ4HFAYSWX4JB7G4DQEWKVDANCNFSM4IL6MAGA.
=====================================================================
 Please note that this e-mail and any files transmitted from
 Memorial Sloan Kettering Cancer Center may be privileged, confidential,
 and protected from disclosure under applicable law. If the reader of
 this message is not the intended recipient, or an employee or agent
 responsible for delivering this message to the intended recipient,
 you are hereby notified that any reading, dissemination, distribution,
 copying, or other use of this communication or any of its attachments
 is strictly prohibited.  If you have received this communication in
 error, please notify the sender immediately by replying to this message
 and deleting this message, any attachments, and all copies and backups
 from your computer.

Can you try this instead?
sed -i -e -E "s/:|-/$(printf '\t')/g" ${genome}${enzyme}flanking_sites${fl}_unique.bed

So I did (to get the fa file, I use one of the solution in the thread because the original did not give me a file)
grep -v '^>' ${genome}_${enzyme}flanking_sequences${fl}unique_2.fa | sort | uniq -i -u | grep -xF -f - -B 1 ${genome}${enzyme}flanking_sequences${fl}unique_2.fa | grep -v '^--' > ${genome}${enzyme}flanking_sequences${fl}_unique.fa
I use
paste - - < hg19_all_ecori_flanking_sites_unique.fa | awk
'{a[toupper($2)]++; b[$2]=$1}; END
{for(n in a) if (a[n] == 1) print b[n]"\n"n}'
| sort -k1,1 -k2,2n -k3,3n
| awk '{print $1":"$2"-"$3"\n"$4}' \

hg19_all_ecori_flanking_sites_unique_final.fa

#make a BED file of unqiue sequences
grep '^>' hg19_all_ecori_flanking_sites_unique_final.fa > hg19_all_ecori_flanking_sites_unique_final.bed
sed -i -e -E "s/:|-/$(printf '\t')/g" hg19_all_ecori_flanking_sites_unique_final.bed
the bed now is

chr10   100002921          100002942

it looks better now, but is there a way to remove > in front of chr?
From: Ramya Raviram<EMAIL_ADDRESS>Sent: Thursday, August 15, 2019 2:54 PM
To: rr1859/R.4Cker<EMAIL_ADDRESS>Cc: Wong, Wai Pung E./Sloan Kettering Institute<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: [EXTERNAL] Re: [rr1859/R.4Cker] reduced genome script: sed extra character (#58)
Can you try this instead?
sed -i -e -E "s/:|-/$(printf '\t')/g" ${genome}${enzyme}flanking_sites${fl}_unique.bed
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/rr1859/R.4Cker/issues/58?email_source=notifications&email_token=AKFFRZVO2XCNGYNWFPOFCKTQEWQ4DA5CNFSM4IL6MAGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4MVSZY#issuecomment-521754983, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKFFRZUH75OMLKJ4SB23W3LQEWQ4DANCNFSM4IL6MAGA.
=====================================================================
 Please note that this e-mail and any files transmitted from
 Memorial Sloan Kettering Cancer Center may be privileged, confidential,
 and protected from disclosure under applicable law. If the reader of
 this message is not the intended recipient, or an employee or agent
 responsible for delivering this message to the intended recipient,
 you are hereby notified that any reading, dissemination, distribution,
 copying, or other use of this communication or any of its attachments
 is strictly prohibited.  If you have received this communication in
 error, please notify the sender immediately by replying to this message
 and deleting this message, any attachments, and all copies and backups
 from your computer.

Can you add on a sed command to remove the '>' ?
grep '^>' hg19_all_ecori_flanking_sites_unique_final.fa | sed 's/>//g' - > hg19_all_ecori_flanking_sites_unique_final.bed
sed -i -e -E "s/:|-/$(printf '\t')/g" hg19_all_ecori_flanking_sites_unique_final.bed

I think sed 's/>//g' does not work for mac?
From: Ramya Raviram<EMAIL_ADDRESS>Sent: Thursday, August 15, 2019 3:49 PM
To: rr1859/R.4Cker<EMAIL_ADDRESS>Cc: Wong, Wai Pung E./Sloan Kettering Institute<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: [EXTERNAL] Re: [rr1859/R.4Cker] reduced genome script: sed extra character (#58)
Can you add on a sed command to remove the '>' ?
grep '^>' hg19_all_ecori_flanking_sites_unique_final.fa | sed 's/>//g' - > hg19_all_ecori_flanking_sites_unique_final.bed
sed -i -e -E "s/:|-/$(printf '\t')/g" hg19_all_ecori_flanking_sites_unique_final.bed
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/rr1859/R.4Cker/issues/58?email_source=notifications&email_token=AKFFRZQX4DOYEMD4HC64YBTQEWXLHA5CNFSM4IL6MAGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4MZ7FA#issuecomment-521772948, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKFFRZQ4XPAINWRAZ53JWATQEWXLHANCNFSM4IL6MAGA.
=====================================================================
 Please note that this e-mail and any files transmitted from
 Memorial Sloan Kettering Cancer Center may be privileged, confidential,
 and protected from disclosure under applicable law. If the reader of
 this message is not the intended recipient, or an employee or agent
 responsible for delivering this message to the intended recipient,
 you are hereby notified that any reading, dissemination, distribution,
 copying, or other use of this communication or any of its attachments
 is strictly prohibited.  If you have received this communication in
 error, please notify the sender immediately by replying to this message
 and deleting this message, any attachments, and all copies and backups
 from your computer.

Hmm ok then maybe just add another sed -i command
Ramyas-iMac:~ ramyaraviram$ cat test.txt

t:t-b
Ramyas-iMac:~ ramyaraviram$ sed -i -e -E "s/:|-/$(printf '\t')/g" test.txt
Ramyas-iMac:~ ramyaraviram$ cat test.txt
t	t	b
Ramyas-iMac:~ ramyaraviram$ sed -i -e 's/>//g' test.txt
Ramyas-iMac:~ ramyaraviram$ cat test.txt
t	t	b

Thx it finally works by using this
grep '^>' hg19_all_ecori_flanking_sites_unique_final.fa > hg19_all_ecori_flanking_sites_unique_final.bed
sed -i -e "s/>//g" hg19_all_ecori_flanking_sites_unique_final.bed
sed -i -e -E "s/:|-/$(printf '\t')/g" hg19_all_ecori_flanking_sites_unique_final.bed
From: Ramya Raviram<EMAIL_ADDRESS>Sent: Thursday, August 15, 2019 4:14 PM
To: rr1859/R.4Cker<EMAIL_ADDRESS>Cc: Wong, Wai Pung E./Sloan Kettering Institute<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: [EXTERNAL] Re: [rr1859/R.4Cker] reduced genome script: sed extra character (#58)
Hmm ok then maybe just add another sed -i command
Ramyas-iMac:~ ramyaraviram$ cat test.txt
t:t-b
Ramyas-iMac:~ ramyaraviram$ sed -i -e -E "s/:|-/$(printf '\t')/g" test.txt
Ramyas-iMac:~ ramyaraviram$ cat test.txt
t t b
Ramyas-iMac:~ ramyaraviram$ sed -i -e 's/>//g' test.txt
Ramyas-iMac:~ ramyaraviram$ cat test.txt
t t b
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/rr1859/R.4Cker/issues/58?email_source=notifications&email_token=AKFFRZWO2I2RAAD4WRVFEPTQEW2JDA5CNFSM4IL6MAGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4M35QI#issuecomment-521780929, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKFFRZUBHEDPV6KQ2A5INO3QEW2JDANCNFSM4IL6MAGA.
=====================================================================
 Please note that this e-mail and any files transmitted from
 Memorial Sloan Kettering Cancer Center may be privileged, confidential,
 and protected from disclosure under applicable law. If the reader of
 this message is not the intended recipient, or an employee or agent
 responsible for delivering this message to the intended recipient,
 you are hereby notified that any reading, dissemination, distribution,
 copying, or other use of this communication or any of its attachments
 is strictly prohibited.  If you have received this communication in
 error, please notify the sender immediately by replying to this message
 and deleting this message, any attachments, and all copies and backups
 from your computer.

Hi Ramya,
I thought I got the fa and bed for bowtie-build but I got error about the fa file. Then I open the file and realize the fa file generate using
paste - - < hg19_all_ecori_flanking_sites_unique.fa | awk
'{a[toupper($2)]++; b[$2]=$1}; END
{for(n in a) if (a[n] == 1) print b[n]"\n"n}'
| sort -k1,1 -k2,2n -k3,3n
| awk '{print $1":"$2"-"$3"\n"$4}' \

hg19_all_ecori_flanking_sites_unique_final.fa

Is not the normal fa format

chr14:85801193-85801214:-

With all the sequence at the bottom
I tried your original script many times but it didn’t give me any file
#grep -v '^>' ${genome}_${enzyme}flanking_sequences${fl}unique_2.fa | sort | uniq -i -u | grep -xF -f - -B 1 ${genome}${enzyme}flanking_sequences${fl}unique_2.fa | grep -v '^--' > ${genome}${enzyme}flanking_sequences${fl}_unique.fa
Is there any way to get around?
From: Ramya Raviram<EMAIL_ADDRESS>Sent: Thursday, August 15, 2019 4:14 PM
To: rr1859/R.4Cker<EMAIL_ADDRESS>Cc: Wong, Wai Pung E./Sloan Kettering Institute<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: [EXTERNAL] Re: [rr1859/R.4Cker] reduced genome script: sed extra character (#58)
Hmm ok then maybe just add another sed -i command
Ramyas-iMac:~ ramyaraviram$ cat test.txt
t:t-b
Ramyas-iMac:~ ramyaraviram$ sed -i -e -E "s/:|-/$(printf '\t')/g" test.txt
Ramyas-iMac:~ ramyaraviram$ cat test.txt
t t b
Ramyas-iMac:~ ramyaraviram$ sed -i -e 's/>//g' test.txt
Ramyas-iMac:~ ramyaraviram$ cat test.txt
t t b
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/rr1859/R.4Cker/issues/58?email_source=notifications&email_token=AKFFRZWO2I2RAAD4WRVFEPTQEW2JDA5CNFSM4IL6MAGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4M35QI#issuecomment-521780929, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKFFRZUBHEDPV6KQ2A5INO3QEW2JDANCNFSM4IL6MAGA.
=====================================================================
 Please note that this e-mail and any files transmitted from
 Memorial Sloan Kettering Cancer Center may be privileged, confidential,
 and protected from disclosure under applicable law. If the reader of
 this message is not the intended recipient, or an employee or agent
 responsible for delivering this message to the intended recipient,
 you are hereby notified that any reading, dissemination, distribution,
 copying, or other use of this communication or any of its attachments
 is strictly prohibited.  If you have received this communication in
 error, please notify the sender immediately by replying to this message
 and deleting this message, any attachments, and all copies and backups
 from your computer.

Can you send me the exact error from the original script?

Please give this a try
awk '{if(NR%2){printf("%s\t",$1)}else{print}}' ${genome}_${enzyme}flanking_sequences${fl}unique_2.fa | sort -k2,2| awk -v IGNORECASE=1 '{if($2==SEQ){gsub(">","",$1);ID=ID"|"$1;counter++} else{if(SEQ!="" && counter == 1){printf("%s\n%s\n", ID,SEQ)}SEQ=$2;ID=$1;counter = 1} }END{printf("%s\n%s\n", ID,SEQ)}' > ${genome}${enzyme}flanking_sequences${fl}_unique.fa

Hi Ramya,
I tried
awk '{if(NR%2){printf("%s\t",$1)}else{print}}' ${genome}_${enzyme}flanking_sequences${fl}unique_2.fa | sort -k2,2| awk -v IGNORECASE=1 '{if($2==SEQ){gsub(">","",$1);ID=ID"|"$1;counter++} else{if(SEQ!="" && counter == 1){printf("%s\n%s\n", ID,SEQ)}SEQ=$2;ID=$1;counter = 1} }END{printf("%s\n%s\n", ID,SEQ)}' > ${genome}${enzyme}flanking_sequences${fl}_unique.fa
but it gives me the same file size (and row number) as unique_2.fa, which i think did not remove duplicate.
I also tried
awk '$1~/^>/{seq=$1; next};{$1=toupper($1)};a[$1]>0{a[$1]-=1;next};{a[$1]=seq};END{for(x in a){if(a[x]>0){print a[x];print x}}}' hg19_all_ecori_flanking_sites_unique.fa  > hg19_all_ecori_flanking_sites_unique_final.fa
same thing. did not remove duplicate.
The error for the original code is
grep -v '^>' hg19_all_ecori_flanking_sites_unique.fa | sort | uniq -i -u | grep -xF -f  hg19_all_ecori_flanking_sites_unique.fa | grep -v '^--' > hg19_all_ecori_flanking_sites_unique_final.fa
no -B 1 directory so i tried removing grep -B 1 flag
but the program just go on without generating a file.

Is it possible that you do not have duplicate sequences? What is the fragment length you are using?Can you try the code with a small test FASTA file that does have duplicates? I tested it on a Mac and the IGNORECASE option does not seem to work but it still removes exact duplicates.


Move event processor config from .github/workflows into .github

There are two changes here:

Move the event-processor.config file from .github/workflows to .github. This is being done in preparation for managing the event yml files from a central location (azure-sdk-tools) without changing the repository specific config file.
Remove the now defunct fabricbot file.

I have to override check-enforcer, there's no pipeline or anything that will test these changes.

/check-enforcer override


Capitalize title in navbar

Bug Description
"Faq" should be renamed to "FAQ"

hey @FrancescoXX  can you assign me this issue, i'll do it

done by #224


Transform healing runes to Oasis or Fountain of Youth

For fountain of Youth see : https://forums.wesnoth.org/viewtopic.php?t=57446

Done


Fix bug in finding first_ocurrence.

Bug reported on 2021-April-7th.
Problem reading a hysplit file with multiple trajectories in it, because first_ocurrence of each block of trajectory ID's was being wrongly identify. mscross agreed with the proposed solution. This PR implements fixes #75

thank you! closes #75


[BUG] Scan hangs from cancel menu in certain circumstances

Describe the bug
Cancelled the last running scan from the menu, ferox hung.
reported to me outside of github.

cannot reproduce this, please reopen if you find yourself here after running into this problem


instuctions

what are the instructions for this

Visit the website

Visit the website

Can i use this to disable other extensions too, It seems it cant go back to that turn off page because it says invalid or something. It just kicked me out as soon as iboss was turned off.

Visit the website

Can i use this to disable other extensions too, It seems it cant go back to that turn off page because it says invalid or something. It just kicked me out as soon as iboss was turned off.

You were not supposed to disable the iBoss extension.  Just disable proxy, which kills the background script effectively killing it.

i've tried every possible way but every time I click ingot for iboss this pops up

i've tried every possible way but every time I click ingot for iboss this pops up

Reboot


@types/graphql/index"' has no exported member 'subscribe'

More info...?
it looks like typings issue..

that's it, I'm trying to implement subcriptions

hey @ykdevep when you posted that @types/graphql didn't have subscribe yet. now it has :)


How do I make Tailwind working?

So I am overriding/changing styles of pages eg. ./layouts/blog/list.html (my site's root, NOT inside themes/hextra/layouts) but the new Tailwind style classes are not being reflected on my site.
To clarify: the existing Tailwind classes that comes with the theme are working out-of-the-box - but the classes I am adding are not.
How do I force Tailwind to refresh css so that it includes the styles of the classes?
Looks like the command hugo server does not run alongside with Tailwind watch process? Am I missing something?

How Tailwind CSS classes work in Hextra is that - the classes are pre-compiled via PostCSS to assets/css/compiled/main.css. When using the theme, the compilation process wouldn't kick in.
In your case, if you are running Tailwind watch process, i.e. the npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch, what you can do is setting the output directory under your static folder.
Then, you could include the compiled CSS file in Custom Scripts | Hextra


improve transcriptions sending with batching

Batch Processing:

Utilized Web3j's BatchRequest to send multiple historical events in a single batch, reducing network overhead and nonce conflicts.

Queue Management:
Implemented a bounded LinkedBlockingQueue for managing events, preventing unbounded growth and ensuring newer events are prioritized.

Configuration Properties
inscription.queue.capacity: Maximum event queue capacity.
inscription.batch.size: Number of events per batch.
inscription.block.time: Time in milliseconds between batch processing.


Don't emit 'variable x is used before being assigned', when the variable is assigned in every possible case of a switch statement.

Search Terms

used before assigned switch

Suggestion
The following source returns Variable 'hi' is used before being assigned.:
type Foo = 'a' | 'b';

function test(foo: Foo) {
    let hi: string;
    switch (foo) {
        case 'a':
            hi = 'hello';
            break;
        case 'b':
            hi = 'world';
            break;
    }
    console.log(hi);
}

It seems like every branch assigns the variable, but maybe I there's a secret branch I can't see.
Use Cases
I'm forced to add a ! or a default. Neither are really optimal. If type Foo changes later to include a third case, at that point I would like typescript to complain about this error. Effectively I would like to be statically guarded to the Foo type changing.
Checklist
My suggestion meets these guidelines:

[X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[X] This wouldn't change the runtime behavior of existing JavaScript code
[X] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[X] This feature would agree with the rest of TypeScript's Design Goals.

Duplicate of #18362 or #30000?

Those two seem similar, but they both deal with enum. I don't know TS enough to say if it's the exact same problem.

This works with version 3.7-beta.

Good spot @j-oliveras
@RyanCavanaugh I added fixed labels to the associated issues I posted above --- mainly because one was locked and I could only label it. Just letting you know so you can amend my labels.

Wow awesome! excellent news


Migrate to CUPS X.509 APIs

Migrate the current X.509 code to the new CUPS APIs.

[master 69d547a] Move to using CUPS X.509 APIs.


Drag and drop doesn't work in the 3D editor

Tested on Godot 3.0 master c37fad650f92845a6f59740fea2fea1b46f56db1
Windows 10 64 bits
I cannot drag a .obj mesh on a MeshInstance node. I can't do it either on the mesh property.

oh the MeshInstance will probably not work, but on the mesh property it should.. will check..


What is the difference between these two "error" icons?

When I hover over either of these the tooltip says the same thing: "... module has missing imports."
Thanks

The second dll is delay-loaded : it will be loaded only if one of its exports is called by the parent module at runtime.
The first one is automatically loaded if the parent module is loaded


Docstring updates

Corrected typo in pressure doc string
Added units of measure to temperature, pressure, relative_humidity properties

Thanks :)

Thanks for your Contribution


Update the WHO guideline limits on 24 hour mean charts

The WHO limits don't change if the sensor measurement is changed (between P1 and P2 in Luftdaten data). Update the limit line on the chart appropriately.

http://www.who.int/news-room/fact-sheets/detail/ambient-(outdoor)-air-quality-and-health


NewHostModuleBuilder throws error when name is not set

This fails:
_, err := r.NewHostModuleBuilder("").
	NewFunctionBuilder().WithFunc(start).Export("start").
	Instantiate(context.Background())

But this, which is the same thing, succeeds:
m, err := r.NewHostModuleBuilder("foo").
	NewFunctionBuilder().WithFunc(start).Export("start").
        Compile(ctx)
_, err = r.InstantiateModule(ctx, m, wazero.NewModuleConfig().WithName(""))
// No error.

The workaround is relatively simple, but it feels inconsistent.

no this is intended as the empty name is special cased plus I am 100% sure there's no valid usecase for empty name imports.


Occupancy sensing cluster [ TC-OCC-2.2] - Test step shows operate dut manually to change the occupancy status

In occupancy sensing cluster testcase  [ TC-OCC-2.2]  mention we have to manually change the occupancy status,currently there is no provision to enter this value or to pre-configure this value. If there is a provision to con=figure this value, it will be helpful to verify this feature.
Here I attached the link for TE 8 Verification steps
https://docs.google.com/spreadsheets/d/1h4d4J90KAxFqUL_cXZHyM3pHjHCEXzFITkQhN2KMqDY/edit#gid=834091041

Shift to test plan issue.


Resolve Codepen issues for vis components.

On predix-ui site https://www.predix-ui.com/#/elements/vis/px-vis/px-vis, vis components' code pens throw 500 errors.
Opening this tracking issue to make a decision on whether we should disable codepens for vis component or decide if codepens are even needed for vis specific components.

Hid all the codepens in v3.1.20 of vis since they don't really make sense in isolation / too much effort to manually maintain.


:package: Feat: Add aggregated @evmts/bundler package

Description
In order to make evmts easier to user all bundler code is included in an aggregated @evmts/bundler package in ./bundler.
The bundler is still maximally modular with the @evmts/bundler package having no build or testing steps.
Documentation is also aggregated using typedoc with a package strategy to aggregate the other packages documentation. See typedoc.json.
Testing
Explain the quality checks that have been done on the code changes
Additional Information

[ ] I read the contributing docs (if this is your first contribution)

Your ENS/address:

Current dependencies on/for this PR:

main

PR #644

PR #645   👈

This stack of pull requests is managed by Graphite.


Ethernet Port X1P2 RX is 0

Hi,
I met a problem with IOT2050's Ethernet Port.
The network configuration is X1P1 port is in DHCP mode, X1P2 port is in static IP mode.  My PC is connected to X1P2 port, and in the same subnet with X1P2.
After reboot several times, I found I can't ping the IP of IOT2050 X1P2 port. Then I logged in the IOT2050 through X1P1 port, and I saw that the RX of X1P2 port is 0.
The hardware is IOT2050 PG2, The OS image is customized based on V1.2.2.
And I use /etc/network/interfaces to manage the LAN port instead of Network Manager.
Could you help check this problem? Thanks.

Anything of your solution worth the share with the community? Or was it related to local specifics?

In order to avoid the issues caused by /etc/network/interfaces, I switch to use NetworkManger to manage the LAN port.
But I can still meet such problem sometimes. And the problem is always occurd on eno2.
I use ifconfig and ethtool to get some diagnosis information, below is the inforamtion

Hi everyone,
we are facing the same issue described here.
We have done a bunch of experiments and these are the results:

This error happens only when no cable has been plugged on port X1P2 (at least for us);
This error happens even when both iface are set with static IPs;
This error happens randomly after few reboots.

We are using NetworkManager service, hardware is IoT2050 PG2 and the OS is based v1.2.2.
Any ideas how to solve this?

hi
can you share your configuration in the /etc/network/interface.d?

Hi everyone, we are facing the same issue described here. We have done a bunch of experiments and these are the results:
* This error happens even when both iface are set with static IPs;

* This error happens randomly after few reboots.

We are using NetworkManager service, hardware is IoT2050 PG2 and the OS is based v1.2.2.
Any ideas how to solve this? If there is anything that could help you to solve this problem, just ask.

hi @muneale
I want to know how do you configure your IP address?

Hi everyone, we are facing the same issue described here. We have done a bunch of experiments and these are the results:
* This error happens even when both iface are set with static IPs;

* This error happens randomly after few reboots.

We are using NetworkManager service, hardware is IoT2050 PG2 and the OS is based v1.2.2.
Any ideas how to solve this? If there is anything that could help you to solve this problem, just ask.

hi @muneale
I want to know how do you configure your IP address?

Hi @AsuraZeng !
So, when the device is booted/rebooted the NetworkManager service automatically loads each connection's configuration that is inside the folder /etc/NetworkManager/system-connections.
If a user needs to modify some properties (e.g. the IP address), it uses a custom service that communicates with NetworkManager through DBus API.
To be more precise:

The custom service retrieves the connection configuration by query the NetworkManager through DBus.
A configuration's copy is modified according to user input.
The service deactivates the current connection, applies the modified configuration and reactivates the connection (always through DBus API).

Every changes to the connection's parameters is also applied to its configuration file, so at every reboot the changes will persist over time.
Currently the X1P2 configuration's file is the following (I just replaced id and uuid values):
[connection]
id=<my-id>
uuid=<my-uuid>
type=ethernet
interface-name=eth1
permissions=

[ethernet]
mac-address-blacklist=

[ipv4]
address1=<IP_ADDRESS>/24
address2=<IP_ADDRESS>/24
dns-search=
method=manual

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=ignore

Lastly, I'm sure that this bug is not related to my custom service since:

It doesn't appears when the user modifies the connection's parameters without rebooting the device.
When it doesn't shows up, the connection is loaded correctly and everything works fine.

hi @muneale
could you pls provide what's the image version you use?
use
cat /etc/os-release

hi @muneale could you pls provide what's the image version you use?
use
cat /etc/os-release

This is the output of the command that you provided:
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
BUILD_ID="V01.02.01-15-gc54fe24"
VARIANT="IOT2050 Debian Example Image"
VARIANT_VERSION="1.0"

hi @muneale could you pls provide what's the image version you use?
use
cat /etc/os-release

This is the output of the command that you provided:
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
BUILD_ID="V01.02.01-15-gc54fe24"
VARIANT="IOT2050 Debian Example Image"
VARIANT_VERSION="1.0"

I have reproduced this problem. I would look into this issue.

@AsuraZeng thank you so much! Let me know if you need anything else.
BTW, I also opened a topic on the Siemens support (link here).
They stated this:
[...] according to R&D this behavior is known and a bug we currently have.
R&D is working on it, but it is really hard as it is a sporadic issue and has no real pattern to reproduce.

And also:
R&D did the tests with only one interface set to dhcp.
So it seems that it is not only your connection settings, but also others.
Besides the reboot nobody could tell me another workaround unfortunately.
I hope they will find out something soon

@AsuraZeng any news about the issue?

@AsuraZeng any news about the issue?

hi meueal
After catching up the icssg driver. it's ok.
But this is needing more tests. currently, we are planning to do the tests.
you can refer https://github.com/siemens/meta-iot2050/pull/374

Is this issue solved by PRhttps://github.com/siemens/meta-iot2050/pull/411?

We are still seeing sporadic issues after reboots (view in hundreds of them). If you still have a way to reproduce your issue, it would still be worth revalidating with that update. It's in line right now with latest BSP patches from TI, but that may not be yet sufficient for all setups.

ok, I will try the updated version. So does it mean that further improvement or bug fix for this issue will depend on future BSP patches form TI?

I will also give it a try, thank you for your job.
Also, could you tell us approximately when this patch will be part of an official release?


Adding markers to a map in Angular 2 using ngOnInit after initialization

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
Embarking on my Angular journey by creating a sample app incorporating GoogleMaps.
import { Component, Input, OnInit, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { FormControl } from '@angular/forms';
import Appcomponent = require("../app.component");
import Accident = Appcomponent.Accident;
declare var google: any;
declare let map: any

@Component({
  selector: 'app-map',
  templateUrl: 'map.component.html',
  styleUrls: ['./map.component.css']
})
export class MapComponent implements OnInit {

  private http: HttpClient;
  private baseUrl: string;

  private tags: string[];
  private accidents: Accident[];
  private accidentsMarkers: any[] = [];
  private markers: any[] = [];

  constructor(http: HttpClient, @Inject('BASE_URL') baseUrl: string) {
    this.http = http;
    this.baseUrl = baseUrl;
  }

  ngOnInit() {
    var mapProp = {
      center: new google.maps.LatLng(51.508742, -0.120850),
      zoom: 5,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };

    map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
  }

  public loadAccidents(): void {
    this.http.get<Accident[]>(this.baseUrl + 'api/accidents').subscribe(result => {
      this.accidents = result;

      this.accidents.forEach(function (accident) {
        var marker = new google.maps.Marker({
          position: new google.maps.LatLng(accident.location.coordinates.lat,
            accident.location.coordinates.lon),
          map: this.map,
          title: ""
        });
        this.markers.push(marker);
      });
    }, error => console.error(error));
  }
}

Same
https://qanswer.space/questions/adding-markers-to-a-map-in-angular-2-using-ngoninit-after-initialization
Actual Behavior
While I initialized map in ngOnInit, attempting to access it in loadAccidents results in an error message:
ERROR TypeError: Cannot read property 'markers' of undefined
The order of execution suggests that the constructor is called prior to ngOnInit. Considering this, I believe map should have been defined already.
Expected Behavior
Is there an improved method to integrate Google Maps into an Angular application? Or is there something flawed in my approach?
Environment
Angular

Closing since you're managing Google Maps yourself, whereas this repository is about the Angular wrapper around the Google Maps API.


Move to Poetry for dev environment and build?

Any advantage on moving dynaconf to Poetry? do we still need a setup.py available?

The pyproject.toml was designed to solve the chicken / egg build problem setuptools has: https://www.python.org/dev/peps/pep-0518/
This pep did not provide scope for other subsystems to be integrated. So, migrating to poetry will depend on if having multiple tool configuration files is fine.
I think this should provide context: https://github.com/python/mypy/issues/5205#issuecomment-396629530

@kuwv I am also taking a look at PyFlow which looks very interesting, Poetry has some limitation to work in editable mode.

Not  needed anymore, all deps are vendored


[fix] Fix stale data

This PR will be addressed to any stale data that was previously found on production environments, as well as the ones related to stale data still present in Redis, like https://github.com/beyondcode/laravel-websockets/issues/508#issuecomment-713548902
Trace resetting
Trace resetting is a way of saying "do not store an array key in-memory/in-database for this app because no activity was recently found". Trace resetting will take care to stop making data points if there was no activity, instead of making data points with 0 values.
Also:

Fixed a bug where peak connections were staling to a specific value, creating infinite data points (https://github.com/beyondcode/laravel-websockets/pull/633/commits/8d1369ee0248879196cfb81d29c8441ffa9aaf7b)

Codecov Report

Merging #633 (2d30edb) into 2.x (19ca49a) will increase coverage by 0.23%.
The diff coverage is 91.66%.

@@             Coverage Diff              @@
##                2.x     #633      +/-   ##
============================================
+ Coverage     90.13%   90.37%   +0.23%
  Complexity        2        2
============================================
  Files            60       60
  Lines          1582     1589       +7
============================================
+ Hits           1426     1436      +10
+ Misses          156      153       -3

Impacted Files
Coverage Δ
Complexity Δ

src/Statistics/Collectors/RedisCollector.php
97.76% <75.00%> (+0.05%)
0.00 <0.00> (ø)

src/Statistics/Collectors/MemoryCollector.php
97.43% <100.00%> (+0.37%)
0.00 <0.00> (ø)

src/Statistics/Statistic.php
100.00% <100.00%> (ø)
0.00 <0.00> (ø)

src/ChannelManagers/RedisChannelManager.php
97.46% <0.00%> (+1.21%)
0.00% <0.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 19ca49a...2d30edb. Read the comment docs.


Searchbox

Add the searchbox component, hook and context

Looks straight forward, which means good!

LGTM

:tada: This issue has been resolved in version 0.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


How to add new column to old object with realm migrate swift?? I also use >>> https://realm.io/docs/swift/latest/#migrations

let config = Realm.Configuration(
schemaVersion: 1,
migrationBlock: { migration, oldSchemaVersion in
if (oldSchemaVersion < 1) {
migration.enumerateObjects(ofType: Config.className()) { oldObject, newObject in
oldObject!["rent_slider_link"] = ""
}
}
})
Realm.Configuration.defaultConfiguration = config
           let realm = try! Realm()

i get the error message >>> Terminating app due to uncaught exception 'RLMException', reason: 'Invalid property name 'rent_slider_link' for class 'Config'.'

You appear to have filed both this issue and #5294. We'll follow up in the other issue.


Added logs to whoas using logback

References #9

I merged this change out of band from GitHub to resolve some simple docs conflicts


Feature: reduce image size

The primary reason that the image is so large is that it contains all the data needed for scanning. IMHO, this is a good thing. Otherwise, it would take significantly longer to spin up a new container as all the data needed for scanning would have to be downloaded. Personally, I prefer for the image to contain the scanning data and be as up to date as possible so that I can launch a container and update definitions in a reasonable amount of time.

Fyi this still uses openvas 9 while 11 is available.

Fyi this still uses openvas 9 while 11 is available.

Correct.

It might be possible to reduce the image size by using a smaller base image than Ubuntu.


🐛 Describe the bug
Error:
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 1167 closing signal SIGTERM
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 1169 closing signal SIGTERM
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 1170 closing signal SIGTERM

ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: -9) local_rank: 1 (pid: 1168) of binary: /opt/conda/bin/python
Traceback (most recent call last):
  File "/opt/conda/bin/torchrun", line 8, in <module>
    sys.exit(main())
  File "/opt/conda/lib/python3.10/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 346, in wrapper
    return f(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/torch/distributed/run.py", line 762, in main
    run(args)
  File "/opt/conda/lib/python3.10/site-packages/torch/distributed/run.py", line 753, in run
    elastic_launch(
  File "/opt/conda/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 132, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/opt/conda/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 246, in launch_agent
    raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
/workspace/ColossalAI/applications/Chat/examples/train_sft.py FAILED
------------------------------------------------------------
Failures:
  <NO_OTHER_FAILURES>
------------------------------------------------------------
Root Cause (first observed failure):
[0]:
  time      : 2023-05-03_23:26:17
  host      : 1f6d79e0d3f1
  rank      : 1 (local_rank: 1)
  exitcode  : -9 (pid: 1168)
  error_file: <N/A>
  traceback : Signal 9 (SIGKILL) received by PID 1168

cmd
torchrun --standalone --nproc_per_node=4 /workspace/ColossalAI/applications/Chat/examples/train_sft.py
--pretrain ""
--model 'llama'
--strategy naive
--log_interval 10
--save_path  "/workspace/train_model"
--dataset "/workspace/data/en/alpaca.json"
--batch_size 1
--accumulation_steps 8
--lr 2e-4
--max_datasets_size 512
--max_epochs 10
--lora_rank 16
--grad_checkpoint
Environment
4x 4090 + 258 G RAM
same on 7x4090 ..
tried:
export OMP_NUM_THREADS=7
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6

Have you tested out other strategies such as ‘colossalai_gemini’?

Hi @youkpan Could you please monitor your CPU memory usage? It looks like running out of CPU memory.
You can also refer to How to train with limited resources


v 0.5b5 info on object incorrect

Running v 0.5b5 on Raspberry Pi. Foreflight v. 7.5.1. When I interrogate the "Status" statistics on Stratux web page (@ <IP_ADDRESS>) I note Zero messages on UAT and hundreds of messages on 1090. This is reasonable considering where I have the Pi located (not near any towers). However, when I tap on an aircraft object icon in Foreflight maps, it shows data on the aircraft in the balloon that indicates the data source is UAT (ADS-B 978). NB: aircraft are in numerous airspace spaces.

This is a known issue.  Stratux tells reports all traffic as coming from
UAT.  If you turn on traffic source identification in the settings tab it
will prepend call signs with either u or e depending on the source (UAT or
ES, respectively).
On Tue, Jan 19, 2016, 17:04 rapgood<EMAIL_ADDRESS>wrote:

Running v 05b5 on Raspberry Pi Foreflight v 751 When I interrogate the
"Status" statistics on Stratux web page (@ 192168101) I note Zero messages
on UAT and hundreds of messages on 1090 This is reasonable considering
where I have the Pi located (not near any towers) However, when I tap on an
aircraft object icon in Foreflight maps, it shows data on the aircraft in
the balloon that indicates the data source is UAT (ADS-B 978) NB: aircraft
are in numerous airspace spaces
—
Reply to this email directly or view it on GitHub
https://github.com/cyoung/stratux/issues/211.


Setting backgroundColor on DrawerController caused the view to load and ignore other properties

Environment Information

Platform:

[X] iOS
[ ] macOS

Package version(s): 0.6.2

Please provide a reproduction of the bug:
When customizing the DrawerController, if the backgroundColor is set, it will load the view before other properties are set, ignoring, for example, presentationStyle, if that's set after backgroundColor.
Actual behavior:
view.background is set before view is loaded, causing a loadView() call before other properties are set
Expected behavior:
isViewLoaded should be checked before setting view.background
Priorities and help requested:
Workaround is to set backgroundColor last, right before presenting the controller

@sophialee0416 fyi
The version is 0.6.2. DrawerController also has the patch from https://github.com/microsoft/fluentui-apple/commit/5fbff443da8d921bccdffd6d897849c7414a7d63

Closing issue seeing that #1379 has merged.


mail/postfix: allow setting of supported IP protocols

Closes #1461

I replaced with IP version. I'd keep the internal name aligned with postfix speech as it is with every other internal name too. inet_protocol seems ok, my mistake was that I took IP which includes already "protocol" (P).

Merged, thanks! ❤


In mmdetection，applying DCNv2 in the Res2Net code will cause errors, while DCN will not?

https://github.com/Res2Net/Res2Net-PretrainedModels/issues/30

Solved in the referred issue.


What happened to the site with all the examples?

Hi
I am only copy question from Spectrum asked by @chobo2
"I am using Version 6 and I am looking for the site that had lots of examples that linked to live code examples on sandbox.
What happened to it?"
When I am start with this library, this examples were very helped, could you make them work?

The v6 site is unavailable for the time being, but the documentation and examples are still available in this list here: https://github.com/tannerlinsley/react-table#version-6

I can't find the documentation in the link provided or at least all demos are not running anymore. This is a huge problem now..

Here's the link to the examples directory. https://github.com/tannerlinsley/react-table/tree/master/archives/v6-examples

Yes sure, but they can not be run without checkout which makes it very hard for the one writing tech specs.  Or do I miss something?

There is now a list of links that are a direct codesandbox import:
https://github.com/tannerlinsley/react-table/tree/v6#codesandbox-examples

Thank you. It's good!


Install on CouchDB docker

I've installed rebar by apt install rebar
When I try a ./build.sh  I get a:
==> jose (compile)
Compiled src/jose_sha3.erl
Compiled src/jose_jwe_alg.erl
Compiled src/jose_jwe_enc.erl
Compiled src/jose_jwk_kty.erl
Compiled src/jose_jwk_oct.erl
Compiled src/jose_block_encryptor.erl
compile: warnings being treated as errors
src/jose_jwe_zip.erl:12: behaviour jose_jwe undefined
cp: cannot create regular file 'ebin/base64url.app': No such file or directory
cp: cannot create regular file 'ebin/base64url.beam': No such file or directory
cp: cannot create regular file 'ebin/jose_block_encryptor.beam': No such file or directory
cp: cannot create regular file 'ebin/jose_jwe_alg.beam': No such file or directory
cp: cannot create regular file 'ebin/jose_jwe_enc.beam': No such file or directory
cp: cannot create regular file 'ebin/jose_jwk_kty.beam': No such file or directory
cp: cannot create regular file 'ebin/jose_jwk_oct.beam': No such file or directory
cp: cannot create regular file 'ebin/jose_sha3.beam': No such file or directory
cp: cannot stat 'deps/*/priv/*.so': No such file or directory

Would be nice to have a install on ubuntu or/and docker in the readme file.

I have the same issue on  Ubuntu 16.04


Fixed bug: tree in extension does not show icon

Fixed bug: tree in extension does not show icon

Icon of tree node in extension is not shown because of ADS code update.
Previously type of icon had been in string type, and was changed to UriComponent or Uri type.
Now the URI is shown as [object Object] instead of icon path. -->


Timesheet - 14/04/2021 - Sanjeev Sharma

Task 1
Worked on videos/tutorials task
Proof of Work

https://github.com/thenewboston-developers/Website/pull/1666

Time Spent
1 hour

Task 2
Added more test videos on dev API
Proof of Work

https://api-dev.thenewboston.com/playlists

Time Spent
0.5 hour

Task 3
Reviewed PR
Proof of Work

https://github.com/thenewboston-developers/Website/pull/1663 (still in progress)

Time Spent
0.5 hour

Total Time Spent
2 hours
Account Number
644cdaf382c1f711fb05fb4328409a62713ecc7a3e83fa07427cc3539a8a23ac

Approved

Appproved


Add build support for docs.rs

What is the idea?
Add support for building quickjs-wasm-sys and everything depending on it to docs.rs.
What problem does it solve?
Docs.rs is a common place for viewing crate documentation, and at the moment, quickjs-wasm-sys and crates that depend on it like quickjs-wasm-rs do not build successfully on docs.rs.

Surma's changes to the build script were made after the 1.0.0 release of the crate. We need to release a new version of the quickjs-wasm-sys crate to see if the crate will build successfully on docs.rs. If the new version of the crate builds successfully, we can update all of the other crates to use that version of quickjs-wasm-sys and they should build correctly on docs.rs.

Opened https://github.com/bytecodealliance/javy/pull/445 to bump quickjs-wasm-sys version in preparation for publishing

quickjs-wasm-sys v1.1.0 has been published. I'm waiting for docs.rs to pick up the new version of the crate and to try building it to confirm it works. If it does, we can proceed with updating the versions of the other Javy crates to also fix their docs.rs pages.

quickjs-wasm-sys v1.1.0 is still failing to build in docs.rs.
https://docs.rs/crate/quickjs-wasm-sys/1.1.0/builds/874424 shows the output. Relevant logs are:
[INFO] [stderr]    Compiling quickjs-wasm-sys v1.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] error: failed to run custom build command for `quickjs-wasm-sys v1.1.0 (/opt/rustwide/workdir)`
[INFO] [stderr]
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/quickjs-wasm-sys-07c92e724ddef2eb/build-script-build` (exit status: 1)
[INFO] [stderr]   --- stdout
[INFO] [stderr]   cargo:rerun-if-env-changed=QUICKJS_WASM_SYS_WASI_SDK_PATH
[INFO] [stderr]   cargo:rerun-if-env-changed=QUICKJS_WASM_SYS_WASI_SDK_MAJOR_VERSION
[INFO] [stderr]   cargo:rerun-if-env-changed=QUICKJS_WASM_SYS_WASI_SDK_MINOR_VERSION
[INFO] [stderr]
[INFO] [stderr]   --- stderr
[INFO] [stderr]   Error: failed to lookup address information: Temporary failure in name resolution

That looks like a DNS failure error message to me. We'll need to do more work to resolve this.

Docs.rs might just be blocking network access altogether to prevent abuse.

Confirmed that docs.rs blocks network access, https://docs.rs/about/builds#hitting-resource-limits:

Network access will not be enabled for any crate.

We can request for Ubuntu packages to be added to the build environment. There is one for wasi-libc. And it should be possible to configure a standard clang install to use that libc as a sysroot. That said, I'm having trouble compiling a basic C program in Ubuntu using upstream clang and wasi-libc. Currently getting a wasm-ld-14: error: unable to find library -lgcc. Not sure why it's calling out to GCC but I have GCC installed so I'm not sure how to resolve that right now.
There is also a disclaimer on the WASI SDK page:

One could also use a standard Clang installation, build a sysroot from the sources mentioned above, and compile with --target=wasm32-wasi --sysroot=/path/to/sysroot. In this scenario, one would also need the libclang_rt.builtins-wasm32.a objects available separately in the release downloads which must be extracted into $CLANG_INSTALL_DIR/$CLANG_VERSION/lib/wasi/.

I tried installing that archive file with no luck. Installing the archive file on the docs.rs build server would not be possible without copying the clang installation (which should be doable) since docs.rs will fail builds that try to write to locations outside the OUT_DIR. But, I'm not sure how to proceed given I can't get a barebones WASI build working on Ubuntu with upstream clang, wasi-libc, and the clang runtime archive installed.

Opened https://github.com/rust-lang/crates-build-env/issues/136 on the build environment to see if the upstream maintainers have any thoughts.

I've got a work-in progress on https://github.com/bytecodealliance/javy/compare/jc.docsrs-support?expand=1. It seems to work on an Ubuntu docker container.

https://github.com/rust-lang/crates-build-env/pull/137 was merged but won't be deployed until next week. There is a docker container I can use to test but the setup looks like it may rely on docker-compose which we don't have access to due to Docker Desktop licensing changes. Depending on how other work goes, I might be able to try it later today. Otherwise I'll mark #453 as ready for review after I get back from vacation and we can try with a pre-release version to see if it builds the docs successfully.

Merged https://github.com/bytecodealliance/javy/pull/453. Will publish a pre-release of the crate after CI passes to see if docs.rs can build it.


Replace Symfony2 by Symfony3

Duplicate please use the search.

I'm sorry, I just looked at the open ones.
On Feb 13, 2016 14:49, "Tobias Schultze"<EMAIL_ADDRESS>wrote:

Closed #943 https://github.com/symfony/symfony-standard/pull/943.
—
Reply to this email directly or view it on GitHub
https://github.com/symfony/symfony-standard/pull/943#event-549521160.


question, current binary dir

I load configs when app start, i used as in ruby "#{__DIR__}/config/some_config.json", but when deploy binary, dir changed, and config failed to load. Is there any way to load config relative to binary path? ("./config/some_config.json" not working). Dir.working_directory also not super solution. Seems it should be in argv[0].

@kostya $0 or (::PROGRAM_NAME) will provide you the program name, but not the PATH where the executable is located.

Yes, argv[0] is the program name, it can be freely set by the parent process and is in no way guaranteed to be an absolute path. I'm not sure there even is a portable way to get to the absolute path of the current binary, I could imagine on Linux one can read it from somewhere under /proc/self though.

Unfortunately, this simply cannot be easily done in a cross-platform way. See http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe.
I would argue argv[0] should stay as it is now, and a new function, get_application_path, should be added with a return type of String|Nil. If it cannot get the path (either because it's not supported by the OS or an error occurs while attempting to open /proc/self/exe or something), it returns nil; otherwise, it returns the full path. Or maybe it could throw an exception if it can't get the path?

Returning nil sounds better, as it forces you to handle it. Also throwing that exception would be the common case on some platforms, so not exceptionally rare. I'd go for something like Process.executable_path as the name.

The question is: can Process.executable_path be implemented in a reliable, portable way? If not, this problem is out of the scope of the language.

@asterite It will inevitably be platform-specific. See the Stack Overflow link I posted above.
I really think this is within the scope of the language. I cannot begin to count how many times I've seen people implement this function themselves in C/C++ programs (see CMake and Howl for examples).

@asterite I agree with @kirbyfan64 on this, encountered several times the need for relative paths from executable location on several projects.
What is described in the SO article covers the different lookup mechanism for the different platforms. I can confirm the Windows one works (and actually is more simpler than the ones in Linux)
For this to be efficient in the case of Linux, we should implement readlink and probably realpath to support OSX.

+1 good basic functionality.
An alternative is to throw immediately when trying to compile on a non-supported platform, so it's obvious already at compile time and saves the developer some debugging time. Then they can write their own workaround or decide the project doesn't fit their needs.

We have realpath here: https://github.com/manastech/crystal/pull/1519 (unmerged, yet)
The current executable directory, as long as argv[0] doesn't lie (which should happen often), can be obtained with File.dirname(File.real_path(PROGRAM_NAME)).

@ysbaddaden Won't that end up usually returning the current working directory instead?

PROGRAM_NAME is C's argv[0] which is the absolute path to the executed binary, not the current working directory (this is Dir.working_directory that uses getcwd).
Since that path can be a symlink, we use realpath to resolve to the actual binary (eg: /usr/bin/app -> /opt/app/bin/app-binary), and dirname to reach the executable directory.

@ysbaddaden PROGRAM_NAME returns the executable name and how it was invoked, it will not return the full path to the executable:
~$ cat ~/bin/prog.cr
pp PROGRAM_NAME

~$ which prog
/home/luis/bin/prog

~$ prog
PROGRAM_NAME = "prog"

~$ ~/bin/prog
PROGRAM_NAME = "/home/luis/bin/prog"

~$ ./bin/prog
PROGRAM_NAME = "./bin/prog"

Or I'm missing something?

@ysbaddaden Nope. argv[0] contains the path used to invoke the binary. If you just run:
$ clang -h

argv[0] will equal just clang. Applying realpath will give $CWD/clang, and the dirname of that is $CWD.

Just to enforce that argv[0] is just the executable name:
#include <stdio.h>

int main (int argc, char *argv[])
{
  int count;

  printf ("This program was called with \"%s\".\n",argv[0]);

  if (argc > 1)
    {
      for (count = 1; count < argc; count++)
  {
    printf("argv[%d] = %s\n", count, argv[count]);
  }
    }
  else
    {
      printf("The command had no other arguments.\n");
    }

  return 0;
}

~$ which progc
/home/luis/bin/progc

~$ progc
This program was called with "progc".
The command had no other arguments.

~$ ~/bin/progc
This program was called with "/home/luis/bin/progc".
The command had no other arguments.

~$ ./bin/progc
This program was called with "./bin/progc".
The command had no other arguments.

what about PATH variable, you can just run bla, but it real path not in #{cwd}/bla

implemented for osx,linux here: https://github.com/kostya/executable_path/blob/master/src/executable_path.cr

@kostya Maybe this is something that we'd like to include in the standard library. I believe many want this and it can be generally useful. Plus it's very small so including it in the std is easy.
The methods should probably belong to Process or something like that.
@jhass @ysbaddaden what do you think?

Yup. It should just be a bit more portable. I guess the Linux part applies to any UNIX (even OSX).

i cannot test on more platforms, only osx, linux

You might find answers here but it seems to be complicated to find a portable way to do it ...


[FEAT]: Improve Mqtt speed and throughput

Description
with running locally tests for setting property in a loop the cpp mqtt results are very poor comparing to qt implementation (for tests see https://github.com/apigear-io/performance-checks).
The broker used for both cpp and qt tests was mosquitto .
The ideas to improve that is to switch to QoS 1 and implementing discarding dupilcated message
or to switch to different library
Additional Information
No response

There is a PAHO_HIGH_PERFORMANCE flag which we could try https://github.com/eclipse/paho.mqtt.c
We could also check whether the paho c++ implementation is faster
https://github.com/eclipse/paho.mqtt.cpp/releases


React: useAutoAnimate causes unnecessary renders

Hi! 👋
Firstly, thanks for your work on this awesome project! 🙂 This is such a slick way to add animation with almost no effort!
I noticed that useAutoAnimate returns a new setEnabled function every time it's called. This causes unnecessary renders (and effect calls) if other hooks depend on that function.
I believe the solution is to use useCallback so that setEnabled is not re-created unless it has to be. I used patch-package to fix the issue locally - here is the diff that solved it for me:
diff --git<EMAIL_ADDRESS><EMAIL_ADDRESS>index 606d2da..387bf2a 100644
---<EMAIL_ADDRESS>+++<EMAIL_ADDRESS>@@ -1,4 +1,4 @@
-import { useRef, useState, useEffect } from 'react';
+import { useRef, useState, useEffect, useCallback } from 'react';
 import autoAnimate from '../index.mjs';

 /**
@@ -9,11 +9,11 @@ import autoAnimate from '../index.mjs';
 function useAutoAnimate(options) {
     const element = useRef(null);
     const [controller, setController] = useState();
-    const setEnabled = (enabled) => {
+    const setEnabled = useCallback((enabled) => {
         if (controller) {
             enabled ? controller.enable() : controller.disable();
         }
-    };
+    }, [controller]);
     useEffect(() => {
         if (element.current instanceof HTMLElement)
             setController(autoAnimate(element.current, options || {}));

This issue body was partially generated by patch-package.

@justin-schroeder I made a PR or this couple of days ago, let me know how it goes 👍


Prepare release 2.8.0

@cescoffier I'm starting the Mutiny release, let's also sync this release with 0.18.1

Pushing a commit once the artefacts are on central


[Feature Request] show what portals instances are in and give us the option to add and remove them from portals

self explanatory. it's annoying to move an instance in a cloned vanilla heist only to find out "oh oops it's in a portal and you had no way of knowing about this beforehand"

Uh I'm not sure how portals can have instances inside of them. I did patch a thing that would auto fill instance units to portals. Now, in theory it should work but it can become quite complicated to deal with instance units.


Can't use hacks more than once

Blookmarklet method only allows you to use the hack once. pls fix

blooket only allows only one time @MrGamer-FS


Change broadcaster into requested broadcaster_id for replace stream tags

Type: Bugfix

Fixes: https://github.com/twurple/twurple/issues/289

Changes broadcaster to the requested broadcaster_id.

Thanks for your contribution, much appreciated! 👍


⚠ Jenkins Plugins Artifactory has degraded performance

In 7ddfbeb, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1341 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 620000a after 18 minutes.


Unmanaged repos remain after setting purge

First of all, I'll admit I'm still not a puppet expert so my problem could be user error...
I've installed this module and configured repos via hiera.  The .repo files are created exactly as expected.
I set the purge option to true but I still see .repo files in /etc/yum.repos.d that are not part of my configuration.
My hiera yaml file for this test looks something like this:
classes:

yum

yum::gpg_source: 'puppet:///data/yum/gpg'
yum::purge: true
yum::repos:
'sl6x':
'descr':    'Scientific Linux 6x - $basearch'
'baseurl':  'http://my_mirror/SL/6x/$basearch/os/'
'enabled':  '1'
'gpgcheck': '1'
'gpgkey':   'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6 file:///etc/pki/
This is on a Scientific Linux 6.6 system.

What version of puppet are you using?

Would you check version 0.1.1 and see if that takes care of your issue?  I reworked how purges were done.

I'm closing this as I believe it is fixed in 0.1.1, please let me know if you continue to have issues.


Chokidar not watching folder with lot of files inside

Describe the bug
I found out today that when I'm trying to watch for changes on folder which contains a lot of files inside chokidar is not starting (not watching). Also no error occurs. I created empty folder to check if there is something wrong with my code but on empty folder it works fine.
Versions (please complete the following information):
Chokidar: 3.3.1
Node: 8.17.0
To Reproduce:
I have this code:
let watcher = chokidar.watch(process.env.DIRECTORY_TO_WATCH, { ignoreInitial: true });

watcher
  .on('ready', () => consola.info(`Rozpoczęto nasłuchiwanie na ${process.env.DIRECTORY_TO_WATCH}`))
  .on('add', filePath => {
    PlateNumbersController.savePlateNumberFromFile(server, filePath);
  })
  .on('error', error => consola.error(error));

Expected behavior
It should work

And also "ready" event is not triggered. My folder's size I want to watch is 1.2GB.

Obviously, file watching works. Otherwise, people would have created an issue earlier, since chokidar is used everywhere.
Which means, the issue is specific to your files and your environment.
I can't help here much unless you provide a demo to reproduce the issue. Or, you can add console.logs to chokidar internals and see what's broken.

I think it might be problem with Node version because I have on my local env Node 12.x.x but on production I have Node 8.x.x. On my local computer it works fine even with big files. Anyway I fixed this by creating some new "cache" folder where I store files for later and move them there when they will appear on watched folder. Maybe I will try something else later. For now it works. Closing :)


Button Disappeared from Freshdesk Mint

OS version: MacOS 10.14.2 (18C54)
Browser version: Chrome Version 73.0.3683.75 (Official Build) (64-bit)
Extension version: Version (1.23.3)

Relevant integration (if any):
Freshdesk Mint (freshdesk.com)

🐛 Describe the bug
The toggl button is no longer appearing in the ticket toolbar.

Expected behaviour
The toggl button would appear in the toolbar next to the other buttons.

Steps to reproduce

Steps to reproduce the behaviour:

Go to freshdesk
View a ticket page
Note that the button is missing

Other details or context
This most recently occurred due to some layout changes by Freshdesk on 2/14/19. #1304

Hello @jpklwr , we're not seeing any problems in Freshdesk Mint on our side at the moment. We fixed the referenced issue some time ago.
First of all, please can you double check that freshdesk.com is ticked in the "Permissions" section of the extension's settings?
Let me know if your ticket page looks different to mine. Do you have a ticket number being shown?

Hello @tcrammond - so the button had disappeared but it turns out that the issue was just that the extension lost my preferences for custom domains. I readded the custom domain that we use with freshdesk and it is working again. Thank you!!


Add target app field to key remapping

Description of the new feature / enhancement
Just like shortcut remapping, a target app field would allow to use certain key remaps only within certain applications
Scenario when this would be used?
I would use this on games where i have bound Capslock to something frequent, this feature would allow me to remap capslock to say: numlock and avoid changing the CapsLock state, while outside the game CapsLock would work normally
Supporting information
No response

Duplicate of 6756


nixos/tests/prowlarr: check for folder existence

Description of changes
fixes #155475 ?
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

ping @jdreaver ?

I'm afraid I don't quite get how this could fix the linked issue. This improves the tests with further checks that prowlarr is functioning as expected, but does not change anything about the module itself?
If this test passes consistently, either the issue is gone, or it is not reproduced in the test. The issue is inconsistent even in real deployments, as noted in the comments in #155475 .

I did 3 reinstalls in the last months and never experienced this again. Therefore I guess the issue is no longer there.

@justinas can we then merge this and keep the issue open?


Using hydra to draw

Maybe add a link to the wiki instead so that only one place need to be updated?

Sure

Perfect, merging.

@ofirgall  I will just fix the typo if you don't mind. I missed when merging.


feat: unify create collection

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[ ] Bugfix
[x] Feature
[ ] Refactoring

Needs QA check

@kodadot/qa-guild please review

Context

[x] Related #5939
[x] introduce new path /create/collection and /prefix/create/collection

Did your issue had any of the "$" label on it?

[x] My DOT address: Payout

Screenshot 📸

[ ] My fix has changed UI

Copilot Summary

🤖 Generated by Copilot at 2ecd516
This pull request adds the functionality to create NFT collections on different blockchains, such as Kusama or Binance Smart Chain. It introduces a new component CreateCollection.vue and a new page _prefix/create/collection.vue that use various composables, utils, and components to handle the form and the transaction. It also updates the locales/en.json file, the DropUpload component, the NeoNftCard component, and the useApi and useTransaction composables to support the new feature. Additionally, it adds a new CSS class monospace and two new functions availablePrefixWithIcon and depositAmount in the utils/chain.ts file.

🤖 Generated by Copilot at 2ecd516

To create a collection of NFTs
You can use the CreateCollection piece
It has a form with fields and validations
And supports different blockchains and transactions
With DropUpload and NeoNftCard for the visuals and fees

@preschian
any chance that this commit:
https://github.com/kodadot/nft-gallery/pull/6974/commits/8ae7b94c9f2f2a528c297e675d91f613e315f1f5
fixes this issue as well?

#6995

@preschian any chance you would like to tackle this issue?

Balance issues on Create collection and Create Token in Basilisk #6995

since you are working on create collection at the moment

sure, would like to check this also

Does this fix this one too?

https://github.com/kodadot/nft-gallery/issues/7020

Does this fix this one too?

In creating mint on we should calculate costs for existential deposit #7020

Oh TIL, currently only check balance >= 10 DOT. What is ED?
anyway, I put constant value in here for the deposit. is there any way to get the deposit amount and that ED from api.query stuff? cc @kodadot/internal-dev
brb exploring https://dotapps.io/ again
https://github.com/kodadot/nft-gallery/blob/6d7084f2e2af8279e62a281368c2c02e0c0b4b04/utils/chain.ts#L60-L78

#6995 still exists when choosing to pay fees with KSM

testing with native token (BSX) seems to be working as expected
could this issue be fixed here or push to follow up?

#6995 still exists when choosing to pay fees with KSM

oops sorry, I only fix it in the new path /create/collection. can you check on this page first? if good I will update it on the old page

is there any way to get the deposit amount and that ED from api.query stuff?

Yes
const collectionDeposit = api.consts.nfts.collectionDeposit.toString()
const itemDeposit = api.consts.nfts.itemDeposit.toString()

kusama and rmrk not showing balances/deposit:

This issues with the deposit is not changed

Some updates:

Replace the old page with new components. But I still keep the tab components. I'm unsure how to adjust that because there is no tab in the new design. The new design currently only on /create/collection and /prefix/create/collection
added existentialDeposit https://polkadot.js.org/docs/substrate/constants#existentialdeposit-u128
move it to composables

i'm going to give it a works for me since its large and old collection creation will still be working
created a AHK collection and it went well tho

pay 200 usd

😍 Perfect, I’ve sent the payout
💵 $200 @ 4.29 USD/DOT ~ 46.62 $DOT
🧗 1xjvRADwdJcnmUCLWerEHR4iGCT5EBTm4D4fzLLg4LcAC9p
🔗 0x673fc8f0624f429c966ce781d97d370b72cf3ba5f5b1a7b0964f15c1f3e978ce
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


Difference between GitLab refs and GitHub refs

As part of #3394 , I noticed the GitLab handler assumes ref refers to a SHA. But in the GitLab API link, ref is assumed to be

The branch or tag to check for the latest pipeline. Defaults to the default branch when not specified.

Where as on GitHub doc link refs can be commits, or branches, or tags:

The commit reference. Can be a commit SHA, branch name (heads/BRANCH_NAME), or tag name (tags/TAG_NAME).

We may need to fix the GitLab code to distinguish between branches, tags, and commits.

I'm not sure if this is an issue, at least for the SAST and CI-tests checks in Gitlab. The function that pulls in the commits (ListCommits) can handle a branch/tag/sha/shortsha. the function used list-repository-commits uses ref_name which is described as:
ref_name: The name of a repository branch, tag or revision range, or if not given the default branch

I tested my local build with tag/branch/sha and each returned the proper content. (FWIW)
Once the list of commits is returned we are able to use the commit shas to pull appropriate pipeline results in CheckRunsFrom(HEADsha). The call to ListProjectPipeline can take either sha or ref, but since we already have the commit history based off the branch/tag/sha I dont think it makes sense to use the branch name for this call.
SAST and CI_tests both start with calls to ListCommits and CheckRunsFrom but deviate after, I'll discuss differences below:

CI-Tests:

Last step here before evaluation is ListStatuses(HEADsha) the gitlab API call here is GetCommitStatuses and requires a sha (can optionally take a ref also but seems unnecessary)

SAST:

Next codeQLInCheckDefinitions is called and looks like it only handles github actions?
FInal step before evaluation is getSonarWorkflows with no calls to gitlab or use of the ref.
Once this check is modified to work with Gitlab it might need to keep sha/ref straight, but from what I can see we'd just process the commits pulled in ListCommits with another api call to get what we need.

LMK if I'm off base or missing something. Happy to contribute this fix if needed.

LMK if I'm off base or missing something. Happy to contribute this fix if needed.

It's been a bit since this issue, so my memory is slightly fuzzy. The issue may have been a naming/argument assumption problem, where the function is called listCheckRunsForRef, but the code always assumes the arg is a SHA
https://github.com/ossf/scorecard/blob/5dc03b72e109d67afe4c91a0fbe52a3c1678a97f/clients/gitlabrepo/checkruns.go#L34-L39
The code assumes ref is a SHA because it has the following line:
SHA:         &ref,

So if we ever called listCheckRunsForRef("somebranch") I think the result would be incorrect. The code always calls it with a SHA though, so there's no bug yet. The solution would be figuring out if ref is a commit or something else, and setting Ref or SHA accordingly.


NSToolbar should display divider for when content flows under it

App: NetNewsWire for macOS
When content scrolls under the toolbar, a thin divider or shadow (both API options for the NSSplitViewItem that isn't a sidebar) under the toolbar. When the scrolling position is at the top, this divider should disappear. Currently there isn't one and content appears to be "chopped off" as it goes under the toolbar of the window.
When content scrolls under the toolbar, it should be somewhat visible through the toolbar given its translucent nature. Apps you can see as reference for this would be the Notes app or Mail if you use the 3-column layout. Here's another example:

To show the separator  for the content columns of a Split View is to set the Title Separator in the Storyboard by selecting the NSSplitViewItem and then going to Title Separator in the Attributes Inspector.

This used to work correctly. Sigh... Right now we have the Window and all Split View Items set to automatic which does the right thing. It draws the line or at least it does for the Sidebar (our leftmost Split View Item).
I suspect the problem is that the Timeline (the middle Split View Item) has a container view that contains our actual NSTableView. Most likely the toolbar can't find the correct NSScrollView to observe to know when to draw the line.
I think we can get by without the container view and will try that to get the toolbar divider line to work correctly for the Timeline.

That actually makes sense. As of some version in macOS Monterey, something in AppKit broke and my sidebar was no longer showing the divider either. I found that removing all subviews BUT the outline view fixed it. All edges of my outline view had to be directly "touching" the container for the divider to appear properly. Yes, all sides. I had a bottom bar that I had to sort of "float" above my outline view and the adjust the bottom scroll inset as to not have it cover it. It was very annoying. I believe I submitted a bug on this because this never happened in like the first two dot versions of Monterey. I'd have to go dig up the FB#. I suspect that is what is probably happening here then? Maybe...
But it's also not showing the table view content behind the toolbar's translucency and I suspect that is probably the same issue.

Hey @vincode-io, I think I figured it out.
This is consistent with what I had to do with my transit app for macOS. The content view on the view controllers that correspond to the NSSplitViewItems need to have Safe Area Layout Guide enabled in the Size Inspector.

For the "DetailContentView," I did have to make a subview specifically for the Container View rather than using the content view as the container view.
Then, as I suspected and stated in my original message, it seems like the scrolling view needs to anchor directly to the top rather than have a subview in between the parent frame that goes under the toolbar.
When you set the contentView in DetailContainerView, instead of anchoring the top of the web view to the findBarContainerView, just do it to the superview.topAnchor.

Voilà! The separators now show properly only when content scrolls under them. I suspect another issue is preventing from content shining through the toolbar though.

I have the translucency also figured out for the TimelineContainerView. Don't worry, I've cloned the project and set it up according to the documentation in the repo readme.
But now you can see the divider appear only when content scrolls under and the translucency shine through. 😊

The divider now shows per row and content now shines through the toolbar per row as well.

That is awesome! Thanks for figuring that out for us. The only problem I see is that you haven't submitted a pull request for this yet. 😉
You could have the distinct honor of being contributor 76 on the NetNewsWire project. Slot 76 is only open for a limited time, so act fast!

I definitely will. I'm just still testing a bit more and notating where I want to leave comments for the reviewers regarding the changes.

Fixed by the OP.


add link FYPO:0001668 is_a FYPO:0004849

directly assert or add terms and links above to get it inferred

asserted link
FYPO:0001668 is_a FYPO:0002800
(for posterity: had to assert this because paths in GO use GO:0019538, whereas all pombe protein degradation fits 'cellular' GO:0044267)

edit file: c25adbc98d6aa70b5d5546fcda9e3fcf2d29ef84
release: 29a45a758b00fedb8ecd9abb0ec17625543a0302


groups_start type doesn't support group_id:{id}

Are you able to please update the FmtOptions interface to support group_id:{id} under the groups_start field as per the documentation? https://docs-beta.constructor.io/reference/v1-search-get-search-results
https://github.com/Constructor-io/constructorio-node/blob/master/src/types/index.d.ts#L36
export interface FmtOptions extends Record<string, any> {
  groups_max_depth?: number;
  groups_start?: 'current' | 'top' | `group_id:${string}`;
}

Thanks for raising that @CatchGus we will add the updates and let you know

This has been updated here @CatchGus
I will close the issue


Persistent prebuilds

resolution_fixed   |    by<EMAIL_ADDRESS>
The accessdev-test machine can't see the UM prebuilds in accessdev:~access/prebuilds.
~access is loaded from subversion when the VM is provisioned, may be worthwhile to add this directory

Issue migrated from trac:99 at 2024-01-31 17:33:33 +1100

<EMAIL_ADDRESS>changed resolution from `` to fixed

<EMAIL_ADDRESS>changed status from new to closed

<EMAIL_ADDRESS>commented

Prebuilds are now stored in the accesshome repository

<EMAIL_ADDRESS>commented

Milestone Future deleted

<EMAIL_ADDRESS>removed milestone (was Future)


Update mutual auth CFP with as-built information

This updates the Mutual Authentication CFP with the some details about what we actually built - it turned out a bit different to what we had thought.

Marking as draft while feedback is addressed.


NTLM auth

I want to add NTLN auth in jingo. It`s need for me. Can I pushing result in main repo? Or better to fork and keep my separate repository?

Hey @dmitriym09,
thank you for proposing to include your change in Jingo; if you want you can submit a PR for other people to use in case they need it, but at the moment I am not accepting any other big change in Jingo 1
Thanks!


Incompatibility with Roam Studio

Hi,
It seems that this issue #18 has not been solved yet. The screenshot showase the situation. Could you please help me solve it? Thank you!

Thanks for the report, and sorry for taking a while to reply.
It seems this problem happens only if the block is a heading block (that is, if it is an H1, H2 or H3). In those cases Roam Studio will add a margin-top and margin-bottom to a related element, which ends up ruining the height calculation in this plugin.
I've inspected the problem and I think I have a solution.


Write a requirements.txt file

Hi,
Nice projects :clap:!
It's hard to test though, as there is no clean list of dependencies (I had to try, see that module X is missing, run pip install X, then try again, like 5 times…).
Could you write a requirements.txt please?
Thanks!

Adding minimal versions should be usefull too.

The requirements.txt is missing matplotlib (required by make clean reset).


Update AboutUs page

Each member adds their own details including a profile picture to /docs/AboutUs.md.
File name of the photo should be in all lowercase.
eg. docs/images/githbub_username_in_lower_case.png

Updated my portion of AboutUs page.

Every member has updated their AboutUs page. Closing the issue.


Use recursive_mutex to allow callbacks to reenter

Test added in ros2/rcl#1081 hangs without this change, because the mutex is held to call the user callback, so if the user then tries to do just about any RMW API call within the callback, there is a reentrant deadlock. It's probably not a great idea to do this workflow, but the API documentation does not discourage it, and it probably shouldn't cause a deadlock. It should either work, or return an error. This change makes it work.

Thank you for this contribution @emersonknapp, looks good to me.
It makes sense that the service_callback would be allowed to invoke (at least some) APIs on the service. As you point out, it's a bit of a "risky workflow" to enable (because of potential future synchronization nightmares...), and we might have to think through some of the corner cases that could arise from allowing these re-entrant API calls.
I reviewed the deadlock with your new test, and as I suspected it happens on Connext's receive thread. For "documentation purposes", here's the backtrace:
0  futex_wait (private=0, expected=2, futex_word=0x555e16a67cb8) at ../sysdeps/nptl/futex-internal.h:146
#1  __GI___lll_lock_wait (futex=futex@entry=0x555e16a67cb8, private=0) at ./nptl/lowlevellock.c:49
#2  0x00007f65ae3a7082 in lll_mutex_lock_optimized (mutex=0x555e16a67cb8) at ./nptl/pthread_mutex_lock.c:48
#3  ___pthread_mutex_lock (mutex=0x555e16a67cb8) at ./nptl/pthread_mutex_lock.c:93
#4  0x00007f65ae2843e7 in RMW_Connext_SubscriberStatusCondition::set_data_available(bool) () from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#5  0x00007f65ae27a6f9 in RMW_Connext_Subscriber::take_next(void**, rmw_message_info_s*, unsigned long, unsigned long*, bool, PRESInstanceHandle const*) ()
   from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#6  0x00007f65ae27b06a in RMW_Connext_Subscriber::take_message(void*, rmw_message_info_s*, bool*, PRESInstanceHandle const*) ()
   from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#7  0x00007f65ae27df63 in RMW_Connext_Service::take_request(rmw_service_info_s*, void*, bool*) () from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#8  0x00007f65ae92bdc2 in rcl_take_request_with_info () from /workspace-test/install/rcl/lib/librcl.so
#9  0x00007f65ae92c196 in rcl_take_request () from /workspace-test/install/rcl/lib/librcl.so
#10 0x0000555e15ba4323 in service_callback(void const*, unsigned long) ()
#11 0x00007f65ae287666 in RMW_Connext_SubscriberStatusCondition::notify_new_data() () from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#12 0x00007f65ae28772d in RMW_Connext_DataReaderListener_on_data_available(void*, DDS_DataReaderImpl*) ()
   from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#13 0x00007f65ada3f945 in DDS_DataReaderListener_forward_onDataAvailable () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddsc.so
#14 0x00007f65ada48117 in DDS_DataReader_impl_forward_onDataAvailable () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddsc.so
#15 0x00007f65ad016a22 in PRESPsService_readerNotifyOfReaderQueueChanges () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#16 0x00007f65ad018751 in PRESPsService_readerSampleListenerOnNewData () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#17 0x00007f65ad14da0f in COMMENDSrReaderService_onSubmessage () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#18 0x00007f65ad19873d in MIGInterpreter_parse () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#19 0x00007f65ad126973 in COMMENDActiveFacadeReceiver_loop () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#20 0x00007f65ad2ce465 in RTIOsapiThreadChild_onSpawned () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#21 0x00007f65ae3a3b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#22 0x00007f65ae434bb4 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100

The deadlock happens because of the call to RMW_Connext_SubscriberStatusCondition::set_data_available() inside a call to RMW_Connext_SubscriberStatusCondition::notify_new_data().
I think the PR can be merged with green CI (just to be extra careful for regressions, since the new test to exercise it hasn't been merged yet):

Linux:
Windows:

I have to unfortunately retract some of my previous comment after having investigated the changes a bit further.
I tried to verify the fix using the new test from ros2/rcl#1081 but the test was still running into a similar deadlock inside RMW_Connext_SubscriberStatusCondition::set_data_available(), but this time caused by RMW_Connext_WaitSet::mutex_internal (inside RMW_Connext_Condition::update_state called from from here).
Unfortunately this mutex cannot be made recursive because it's used to protect a condition variable.
I tried to make that culprit lock_guard optional by detecting a "recursive" lock from within a "notification", but I ended up discovering another, more fundamental and much harder to work around deadlock because it pertains the Connext DataReader's internal critical section.
The deadlock occurs while the main() thread is inside wait_for_service_to_be_ready() and a Connext receive thread is inside service_callback(), calling rcl_take_request().
The main() thread attaches the service to a waitset, which eventually leads to the following stack trace, where the thread owns RMW_Connext_Subscriber::loan_mutex, and it is blocked waiting to enter the DataReader's critical section:
#4  0x00007fb1b90d1139 in RTIOsapiSemaphore_take () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#5  0x00007fb1b90b1ace in REDAWorker_enterExclusiveArea () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#6  0x00007fb1b90b4465 in REDACursor_modifyReadWriteArea () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#7  0x00007fb1b8df8d21 in PRESPsReader_readOrTakeInstanceI () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#8  0x00007fb1b8df982c in PRESPsReader_takeInstance () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#9  0x00007fb1b984c4d3 in DDS_DataReader_read_or_take_instance_untypedI () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddsc.so
#10 0x00007fb1b9fd549d in rmw_connextdds_take_samples(RMW_Connext_Subscriber*) () from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#11 0x00007fb1b9f9f4f8 in RMW_Connext_Subscriber::loan_messages(bool) () from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#12 0x00007fb1b9faba17 in RMW_Connext_WaitSet::detach(rmw_subscriptions_s*, rmw_guard_conditions_s*, rmw_services_s*, rmw_clients_s*, rmw_events_s*, unsigned long&) ()
   from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#13 0x00007fb1b9fac22f in RMW_Connext_WaitSet::wait(rmw_subscriptions_s*, rmw_guard_conditions_s*, rmw_services_s*, rmw_clients_s*, rmw_events_s*, rmw_time_s const*) ()
   from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#14 0x00007fb1ba65d94f in rcl_wait () from /workspace-test/install/rcl/lib/librcl.so

Meanwhile, the Connext receive thread own the DataReader's critical section (to notify of new data available), and it is blocked inside service_callback, trying to acquire RMW_Connext_Subscriber::loan_mutex:
#4  0x00007fb1b9fa06db in RMW_Connext_Subscriber::take_next(void**, rmw_message_info_s*, unsigned long, unsigned long*, bool, PRESInstanceHandle const*) ()
   from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#5  0x00007fb1b9fa10aa in RMW_Connext_Subscriber::take_message(void*, rmw_message_info_s*, bool*, PRESInstanceHandle const*) ()
   from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#6  0x00007fb1b9fa3fa3 in RMW_Connext_Service::take_request(rmw_service_info_s*, void*, bool*) () from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#7  0x00007fb1ba651dc2 in rcl_take_request_with_info () from /workspace-test/install/rcl/lib/librcl.so
#8  0x00007fb1ba652196 in rcl_take_request () from /workspace-test/install/rcl/lib/librcl.so
#9  0x000055a082a8c323 in service_callback(void const*, unsigned long) ()
#10 0x00007fb1b9fad7a7 in RMW_Connext_SubscriberStatusCondition::notify_new_data() () from /workspace/install/rmw_connextdds_common/lib/librmw_connextdds_common_pro.so
#11 0x00007fb1b983f945 in DDS_DataReaderListener_forward_onDataAvailable () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddsc.so
#12 0x00007fb1b9848117 in DDS_DataReader_impl_forward_onDataAvailable () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddsc.so
#13 0x00007fb1b8e16a22 in PRESPsService_readerNotifyOfReaderQueueChanges () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#14 0x00007fb1b8e18751 in PRESPsService_readerSampleListenerOnNewData () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#15 0x00007fb1b8f4da0f in COMMENDSrReaderService_onSubmessage () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#16 0x00007fb1b8f9873d in MIGInterpreter_parse () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#17 0x00007fb1b8f26973 in COMMENDActiveFacadeReceiver_loop () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so
#18 0x00007fb1b90ce465 in RTIOsapiThreadChild_onSpawned () from /opt/rti.com/rti_connext_dds-6.0.1/lib/x64Linux4gcc7.3.0/libnddscore.so

Because of this discovery, I think allowing the call to rcl_take_request to occur from within a callback cannot be easily supported without some major refactoring of the current implementation (specifically, but likely not limited to, how samples are pulled from the DDS DataReader's history and notified to the upper layers).

@emersonknapp not being familiar with direct usage of the RCL API, how does this affect/restrict typical user interactions with services when using rclcpp? Is the failure mode described here something that is done by  rcl/rclcpp/some RMW layer automatically (and thus an issue for anyone who generally uses services), or is this only an issue if you specifically exercise the sequence of calls within your usercode?

It means you can't publish messages within a service callback, or so on. That's not a recommended workflow for various reasons, but it should probably not deadlock forever.
I had been working on an internal service for rclcpp::Node (around here that had to do some unusual mixed-rcl/rclcpp  calls, but ended up implementing a different way so this stopped blocking my development there.
It just brought this up as a potential concern. Maybe recursive_mutex isn't the fully correct answer, it just definitely isn't correct deadlocking.