luci-app-fwknopd: fix for qrencode >= v3.4.0.

Starting with qrencode v3.4.0, the XML prolog is prepended to the SVG
output which causes an XML parse error.  To address this, strip any XML
prolog from the generated output.
Also, as a precaution, explicitly set the qrencode output type to SVG to
to protect against a change in defaults.

@LordReg needs rebase; also needs more testers (that's the main delay).

@cshoredaniel rebased.  The luci fwknopd page is completely broken when running with qrencode >=v3.4.0 since qrencode prepends the XML prolog before the SVG:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg width="4.76cm" height="4.76cm" viewBox="0 0 45 45" preserveAspectRatio="none" version="1.1" xmlns="http://www.w3.org/2000/svg">

This patch just tries to remove ^<?xml.*?>\n which is safe for any version of qrencode.

Thanks for the rebase; I understand the logic, I'm just worry about unintended side effects, but I guess we'll try it since otherwise it's broken anyway.

I guess you can't exactly save that to file without writing to flash (hence the SVG XML) where as qrencode is assuming you are writing to a file.

This is also very old we have now qrencode version 4.0.2 If there is still an issue please reopen or rebase


Missing Thank You / Donation overlay text in the Download page

Description
The Download page used to display an overlay with thanks and a Donation button after the user clicked on a download link.

Now such overlay is no longer displayed.
It seems to me this is an unwanted side effect of the "Download page simplification" PR https://github.com/qgis/QGIS-Website/pull/1046.
Looking at the qgis-donations bot activity https://github.com/qgis-donations, such side effect may be responsible for the decrease in donations reported by the qgis-donations bot after the 9th of September (when the "Download page simplification" was merged).

See also the thread at https://lists.osgeo.org/pipermail/qgis-community-team/2022-November/006083.html.
Page URL: https://qgis.org/en/site/forusers/download.html

The issue is caused by the change in the names of the classes for the download buttons and links, while the JavaScript function at https://github.com/qgis/QGIS-Website/blob/4a6d80034926ce530bb23289ada22aa1a6884310/themes/qgis-theme/languageswitch.html#L110-L113 was incorrectly not changed accordigly.
Changing it with something like:
            $('a.btn.btn-large.btn-success').click(function(){
                $('#thankyou').show();
                return true;
            });
            $('a.secondary-download-link').click(function(){
                $('#thankyou').show();
                return true;
            });

would fix the issue and let the overlay with thanks and a Donation button display after the user clicked on a download link in the main download page for primary and secondary links for Windows (excluding OSGeo4W Network Installer) and macOS.

thanks @agiudiceandrea for reporting this IMO important bug. I would rather add the reference class to template. Will open a PR

For the record I initially reported this at https://lists.osgeo.org/pipermail/qgis-community-team/2022-November/006082.html I agree, very very important.


Store tar1090 data for replay

We would like to have ADS-B position replays available.

Can they be stored from local tar1090 process running?
Possibly instead or in addition, write up to FlightAware or FlightRadar24
Maybe check with either service if that works for them and how to do it properly
Best if replays are instantly available but may be restricted in how the records are written if not immediately

I just forked a tar1090 instance where we can initially investigate this,
and invited you.  If you have a tar1090 instance running, could you see if
the /?replay url has that 30 minute lag I mentioned, or is it always up to
date?  My raspi is being used for other things at the moment...
On Fri, Mar 29, 2024 at 10:11 PM Harper Mann @.***>
wrote:

Assigned #5 https://github.com/eastham/adsb_actions/issues/5 to @eastham
https://github.com/eastham.
—
Reply to this email directly, view it on GitHub
https://github.com/eastham/adsb_actions/issues/5#event-12299657732, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAC4UPHXGYULQ4T7ZI2EI6LY2ZCQRAVCNFSM6AAAAABFPIQQX6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGI4TSNRVG43TGMQ
.
You are receiving this because you were assigned.Message ID:
@.***>

Sure, will doHarper Mann510-599-2075 cellOn Mar 30, 2024, at 9:15 AM, eastham @.***> wrote:
I just forked a tar1090 instance where we can initially investigate this,
and invited you.  If you have a tar1090 instance running, could you see if
the /?replay url has that 30 minute lag I mentioned, or is it always up to
date?  My raspi is being used for other things at the moment...
On Fri, Mar 29, 2024 at 10:11 PM Harper Mann @.***>
wrote:

Assigned #5 https://github.com/eastham/adsb_actions/issues/5 to @eastham

https://github.com/eastham.

—

Reply to this email directly, view it on GitHub

https://github.com/eastham/adsb_actions/issues/5#event-12299657732, or

unsubscribe

https://github.com/notifications/unsubscribe-auth/AAC4UPHXGYULQ4T7ZI2EI6LY2ZCQRAVCNFSM6AAAAABFPIQQX6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGI4TSNRVG43TGMQ

.

You are receiving this because you were assigned.Message ID:

@.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.***>

Replay setup is in the README.md under the destroy SD card section.  Here is another howto: https://wiki.oarc.uk/flight:adsb-server-writeup.  Not working yet on mine but working on it.  Looks like it needs nginx, not default lighthttp. It creates files,
-rw-r--r-- 1 readsb nogroup   25 Mar 30 10:26 blob_65.zstl
-rw-r--r-- 1 readsb nogroup   25 Mar 30 10:26 blob_66.zstl
-rw-r--r-- 1 readsb nogroup   25 Mar 30 10:27 blob_67.zstl
root@rpi4:/var/globe_history/internal_state#
But haven't figure out how to display them.  Switching to nginx

Hmm, all I did was turn on the destroy sd card thing and it worked, I
think.  Definitely nothing complicated needed.
On Sat, Mar 30, 2024, 10:29 AM Harper Mann @.***> wrote:

Replay setup is in the README.md under the destroy SD card section. Here
is another howto: https://wiki.oarc.uk/flight:adsb-server-writeup. Not
working yet on mine but working on it. Looks like it needs nginx, not
default lighthttp. It creates files,
-rw-r--r-- 1 readsb nogroup 25 Mar 30 10:26 blob_65.zstl
-rw-r--r-- 1 readsb nogroup 25 Mar 30 10:26 blob_66.zstl
-rw-r--r-- 1 readsb nogroup 25 Mar 30 10:27 blob_67.zstl
@.***:/var/globe_history/internal_state#
But haven't figure out how to display them. Switching to nginx
—
Reply to this email directly, view it on GitHub
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2028337770,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAC4UPCBF6QDN5OCEEFTJK3Y23Y6JAVCNFSM6AAAAABFPIQQX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRYGMZTONZXGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

I got it working and there is no lag.  Also, not immediately filling up the micro-sd.  May have taken a complicated route but I'll document.
BTW: we're leaving Monday for a 3 week RV trip to see the big eclipse.  Running around a bit the next two days.

I think what we agreed on for this one: use the "Search" window on the right hand side of the display if we need to pull up short-term history for a given aircraft.  This seems to work fine.  So all that's left here is to add it to the training for people working in the tower.

From a discussion with HP, we will create a script to check time and / or new files in the tar1090 save directory and put status into the  Linux Node Exporter so we can record problems and post alerts as needed.  Need to create a rule in Prom after we get the info in the dB.

Would it be easier for the script that monitors the files to also be a
native prom client?
On Tue, Jul 16, 2024 at 12:20 PM Harper Mann @.***>
wrote:

From a discussion with HP, we will create a script to check time and / or
new files in the tar1090 save directory and put status into the Linux Node
Exporter so we can record problems and post alerts as needed. Need to
create a rule in Prom after we get the info in the dB.
—
Reply to this email directly, view it on GitHub
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231670901,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAC4UPFE7NNBXZGQPO5LVO3ZMVXBRAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGY3TAOJQGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

Good thought.  Here is a filestat exporter I'm setting up on my tar1090 dB
directory to verify it works.  It'll allow an alert if files haven't been
updated in a some setpoint time.
https://github.com/michael-doubez/filestat_exporter.
Given the priority of these files, we should back them up, probably to
google drive or something.  Do we have drive mounted for other things?
Harper Mann
510-599-2075 mobile
On Tue, Jul 16, 2024 at 12:31 PM Paul Eastham @.***>
wrote:

Would it be easier for the script that monitors the files to also be a
native prom client?
On Tue, Jul 16, 2024 at 12:20 PM Harper Mann @.***>
wrote:

From a discussion with HP, we will create a script to check time and /
or
new files in the tar1090 save directory and put status into the Linux
Node
Exporter so we can record problems and post alerts as needed. Need to
create a rule in Prom after we get the info in the dB.
—
Reply to this email directly, view it on GitHub
<
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231670901>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAC4UPFE7NNBXZGQPO5LVO3ZMVXBRAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGY3TAOJQGE>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231686367,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AATOAZBSRI3BVEM5KZ4SWQTZMVYHXAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGY4DMMZWG4
.
You are receiving this because you were assigned.Message ID:
@.***>

Oh come to think of it, we need gdrive to store airrband recordings.
Harper Mann
510-599-2075 mobile
On Tue, Jul 16, 2024 at 1:10 PM Harper Mann @.***> wrote:

Good thought.  Here is a filestat exporter I'm setting up on my tar1090 dB
directory to verify it works.  It'll allow an alert if files haven't been
updated in a some setpoint time.
https://github.com/michael-doubez/filestat_exporter.
Given the priority of these files, we should back them up, probably to
google drive or something.  Do we have drive mounted for other things?
Harper Mann
510-599-2075 mobile
On Tue, Jul 16, 2024 at 12:31 PM Paul Eastham @.***>
wrote:

Would it be easier for the script that monitors the files to also be a
native prom client?
On Tue, Jul 16, 2024 at 12:20 PM Harper Mann @.***>
wrote:

From a discussion with HP, we will create a script to check time and /
or
new files in the tar1090 save directory and put status into the Linux
Node
Exporter so we can record problems and post alerts as needed. Need to
create a rule in Prom after we get the info in the dB.
—
Reply to this email directly, view it on GitHub
<
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231670901>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAC4UPFE7NNBXZGQPO5LVO3ZMVXBRAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGY3TAOJQGE>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231686367,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AATOAZBSRI3BVEM5KZ4SWQTZMVYHXAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGY4DMMZWG4
.
You are receiving this because you were assigned.Message ID:
@.***>

Hmm, I'm not sure if that exporter will work, since the files that are
being written to are constantly changing (it starts writing a new set of
files every day).
How about something like this?
https://www.robustperception.io/monitoring-directory-sizes-with-the-textfile-collector/
Regarding storage / backups, that was partly my motivation for having the
two redundant ADS-B boxes -- they will have their own (slightly-different)
copy of the data, should be close enough.   gdrive backup would be great
too -- unless you know of an easy way to do it though, I'm worried we have
more work ahead of us than calendar time...
On Tue, Jul 16, 2024 at 1:11 PM Harper Mann @.***>
wrote:

Oh come to think of it, we need gdrive to store airrband recordings.
Harper Mann
510-599-2075 mobile
On Tue, Jul 16, 2024 at 1:10 PM Harper Mann @.***> wrote:

Good thought. Here is a filestat exporter I'm setting up on my tar1090
dB
directory to verify it works. It'll allow an alert if files haven't been
updated in a some setpoint time.
https://github.com/michael-doubez/filestat_exporter.
Given the priority of these files, we should back them up, probably to
google drive or something. Do we have drive mounted for other things?
Harper Mann
510-599-2075 mobile
On Tue, Jul 16, 2024 at 12:31 PM Paul Eastham @.***>
wrote:

Would it be easier for the script that monitors the files to also be a
native prom client?
On Tue, Jul 16, 2024 at 12:20 PM Harper Mann @.***>
wrote:

From a discussion with HP, we will create a script to check time and
/
or
new files in the tar1090 save directory and put status into the Linux
Node
Exporter so we can record problems and post alerts as needed. Need to
create a rule in Prom after we get the info in the dB.
—
Reply to this email directly, view it on GitHub
<

https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231670901>,

or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/AAC4UPFE7NNBXZGQPO5LVO3ZMVXBRAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGY3TAOJQGE>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231686367>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AATOAZBSRI3BVEM5KZ4SWQTZMVYHXAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGY4DMMZWG4>

.
You are receiving this because you were assigned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231746392,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAC4UPG2P3TOK4PTZZNUSSTZMV477AVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRG42DMMZZGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

I think filestats is easier than du to alert from and I got it working.
Here's a graph of 2 files in /var/run/tar1090 whose names don't change. The
plot is seconds old.  We can alert on > 90 seconds or longer.
[image: image.png]
Harper Mann
510-599-2075 mobile
On Tue, Jul 16, 2024 at 1:30 PM Paul Eastham @.***>
wrote:

Hmm, I'm not sure if that exporter will work, since the files that are
being written to are constantly changing (it starts writing a new set of
files every day).
How about something like this?
https://www.robustperception.io/monitoring-directory-sizes-with-the-textfile-collector/
Regarding storage / backups, that was partly my motivation for having the
two redundant ADS-B boxes -- they will have their own (slightly-different)
copy of the data, should be close enough. gdrive backup would be great
too -- unless you know of an easy way to do it though, I'm worried we have
more work ahead of us than calendar time...
On Tue, Jul 16, 2024 at 1:11 PM Harper Mann @.***>
wrote:

Oh come to think of it, we need gdrive to store airrband recordings.
Harper Mann
510-599-2075 mobile
On Tue, Jul 16, 2024 at 1:10 PM Harper Mann @.***> wrote:

Good thought. Here is a filestat exporter I'm setting up on my tar1090
dB
directory to verify it works. It'll allow an alert if files haven't
been
updated in a some setpoint time.
https://github.com/michael-doubez/filestat_exporter.
Given the priority of these files, we should back them up, probably to
google drive or something. Do we have drive mounted for other things?
Harper Mann
510-599-2075 mobile
On Tue, Jul 16, 2024 at 12:31 PM Paul Eastham @.***>
wrote:

Would it be easier for the script that monitors the files to also be
a
native prom client?
On Tue, Jul 16, 2024 at 12:20 PM Harper Mann @.***>
wrote:

From a discussion with HP, we will create a script to check time
and
/
or
new files in the tar1090 save directory and put status into the
Linux
Node
Exporter so we can record problems and post alerts as needed. Need
to
create a rule in Prom after we get the info in the dB.
—
Reply to this email directly, view it on GitHub
<

https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231670901>,

or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/AAC4UPFE7NNBXZGQPO5LVO3ZMVXBRAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGY3TAOJQGE>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231686367>,

or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/AATOAZBSRI3BVEM5KZ4SWQTZMVYHXAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGY4DMMZWG4>

.
You are receiving this because you were assigned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231746392>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAC4UPG2P3TOK4PTZZNUSSTZMV477AVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRG42DMMZZGI>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231775052,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AATOAZDKZN3UIQLVQMPFIHLZMV7GXAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRG43TKMBVGI
.
You are receiving this because you were assigned.Message ID:
@.***>

(image doesn't seem to attach via github)

Yep, email image no but paste yes

Ok, I see what you are doing.  Makes sense!  Not sure exactly what that
file does, but hopefully it is a good proxy for health...
On Tue, Jul 16, 2024 at 3:48 PM Harper Mann @.***>
wrote:

Yep, email image no but paste yes
—
Reply to this email directly, view it on GitHub
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231944460,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAC4UPCATQM3CQIH2JL74OTZMWPMTAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRHE2DINBWGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

We will need to move the only scanner to the fail-over host when it fail
happens.  It's fine to write local files but if the whole ssd borks, we'd
lose them, so I want to copy to gdrive.
Gdrive works fine.  Here's how I did it with rclone.
https://ostechnix.com/how-to-mount-google-drive-locally-as-virtual-file-system-in-linux/
It's on my @.*** google account.  I'll try it on
@.***   We'd need to talk directory size and likely
need to purchase some unless the buringman.org account has space already.
We could write directly to gdrive with ffmpeg for recording files.  Do you
think our internet is reliable enough for that?   The gdrive can be mounted
from more than one host (of course) so we can fail-over-easy.
Otherwise, we could have ffmpeg write to a local directory and run rsync on
a cron to copy the files to gdrive, verify, then purge the local recording
to keep from running out of local disk space.
Harper Mann
510-599-2075 mobile
On Tue, Jul 16, 2024 at 4:03 PM Paul Eastham @.***>
wrote:

Ok, I see what you are doing. Makes sense! Not sure exactly what that
file does, but hopefully it is a good proxy for health...
On Tue, Jul 16, 2024 at 3:48 PM Harper Mann @.***>
wrote:

Yep, email image no but paste yes
—
Reply to this email directly, view it on GitHub
<
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231944460>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAC4UPCATQM3CQIH2JL74OTZMWPMTAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRHE2DINBWGA>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2231956431,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AATOAZFZMXUBB7D66YPXPE3ZMWRCLAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRHE2TMNBTGE
.
You are receiving this because you were assigned.Message ID:
@.***>

Cool, I didn't know you could mount google drive like that.  The
burningman.org account should have plenty of space -- looks like there is
no pre-set limit, and I just uploaded that 13 GB SD Card image with no
problem...
Regarding writing directly to it: even if the internet is fast, I am not
sure I'd want to rely on Google Drive for reliable / low-latency writes (I
worked with some of the people who built that thing -- it wasn't pretty).
The danger is that it wedges the whole thing and makes it unusable or
unstable.
I'd be fine manually copying this stuff over every few evenings, but if you
feel rsync won't be too painful to get going, that could work too.
Definitely would want to do it off-hours.  You're the expert here...

Message ID: @.***>

I came to the same thought; direct to gdrive is less reliable. Let’s write airband recordings local then rsync on cron. Rsync is simple.  😎. Let’s check it but I don’t think we’ll need to wait for evenings. It’s not that much data we’re talking each recording is about 55 mb per hour.  I’ll try adding rsync to the record script so when it closes the current recording on the hour, it’ll fork rsync to pick up the newest file. Never more than an hour without backup. Harper Mann510-599-2075 cellOn Jul 17, 2024, at 11:04 AM, Paul Eastham @.***> wrote:
Cool, I didn't know you could mount google drive like that.  The
burningman.org account should have plenty of space -- looks like there is
no pre-set limit, and I just uploaded that 13 GB SD Card image with no
problem...
Regarding writing directly to it: even if the internet is fast, I am not
sure I'd want to rely on Google Drive for reliable / low-latency writes (I
worked with some of the people who built that thing -- it wasn't pretty).
The danger is that it wedges the whole thing and makes it unusable or
unstable.
I'd be fine manually copying this stuff over every few evenings, but if you
feel rsync won't be too painful to get going, that could work too.
Definitely would want to do it off-hours.  You're the expert here...

Message ID: @.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.***>

Hit a snag.  I don't have access to https://console.cloud.google.com/apis/ on the burningman.org account which is where tokens are set up for access from the command line to gdrive.  Do we have a service account or some such that has access to the APIs?  I can add enough storage on my regular<EMAIL_ADDRESS>google account if it's complicated to use an org one.

Hmm, yeah, I don't have access either.
How much storage do you think we need all told? The ADS-B data is only
150MB.

The Airband recording data is running 55mb / hour so like 1.5 gb / day and
something like 10 gb for 7 days.   Not that much.   Maybe 30 gb would cover
everything?
Harper Mann
510-599-2075 mobile
On Thu, Jul 18, 2024 at 2:57 PM Paul Eastham @.***>
wrote:

Hmm, yeah, I don't have access either.
How much storage do you think we need all told? The ADS-B data is only
150MB.
—
Reply to this email directly, view it on GitHub
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2237690054,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AATOAZGZQKMYUEO7AONVAXTZNA26BAVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXGY4TAMBVGQ
.
You are receiving this because you were assigned.Message ID:
@.***>

Could be half that, we only need to record 12 hours a day when the airport
is open.
Regardless, I've got that much room in my personal account, do you want to
use that?

Either way, yours or mine.  Let's set it up on the production host next
Weds when we meet up.
Harper Mann
510-599-2075 mobile
On Thu, Jul 18, 2024 at 3:22 PM Paul Eastham @.***>
wrote:

Could be half that, we only need to record 12 hours a day when the airport
is open.
Regardless, I've got that much room in my personal account, do you want to
use that?
—
Reply to this email directly, view it on GitHub
https://github.com/eastham/adsb_actions/issues/5#issuecomment-2237721453,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AATOAZA7XZLRFD4Z54Z5UZDZNA533AVCNFSM6AAAAABK7GRCS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXG4ZDCNBVGM
.
You are receiving this because you were assigned.Message ID:
@.***>


Adjust the container of Sirius Logo

PR Reference:
https://github.com/proximax-foundry/web-explorer-vuejs/pull/157
Screenshots:


Correct dx-graphics-hlsl-to-load.md

Remove duplicate appearance of Texture2DArray in Offset parameter table.
Remove space in "Texture 2D".
Modified text given that the sampleIndex parameter is mandatory for multi-sampled Textures.

Hi, it looks like the CLA hasn't been signed yet (please see comment in the thread above). If you could sign that, then the button will appear on this end for me to complete the PR. Thanks! :)

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


Updated PMs to send on all anonymous votes, and to PM when vote removed

These changes will send a private message when someone votes on an anonymous poll, regardless if the live count is enabled or not. They will also send a private message under the same conditions if the vote is withdrawn.
Resolves #84

Now possibly resolves #68 as well, if that root cause was members leaving the server after the vote was cast.


Error in the reflection in Grover's algorithm

Describe the Issue
There is an error in the reflection oracle of Grover's algorithm. Let |s> denote the equal superposition state, then the reflection oracle can be expressed as $U_s=2|s><s|-1$ or $U_s=H^n U_0 H^n$ where $U_0=2|0><0|-1$. The textbook chapter misuses these two forms.
Expected Solution
As suggested in the relevant pull request.
Anything else we should know?

#447


Object.Values error - not supported in Node.js 6.5.x on Windows?

Hi, I'm very excited about this project as it potentially will save me from implementing the same thing for my local Unifi home network.
I'm trying to test this code using node.js on my Win10 laptop before deploying to a NAS. I see this error when trying to run. I've cleaned the node.js cache, done a full reinstall and the error still persists. any ideas?
A cursory search shows  node.js 6.5.x does not support Object.values?
https://stackoverflow.com/questions/40421825/how-to-use-object-values-on-server-side-in-node-js

<EMAIL_ADDRESS>start C:\Users\mattj\OneDrive\Documents\GitHub\unifi-parental
node index.js

TypeError: Object.values is not a function
at Server.spdy.createServer.listen (C:\Users\mattj\OneDrive\Documents\GitHub\unifi-parental\index.js:283:20)
at Server.g (events.js:292:16)
at emitNone (events.js:86:13)
at Server.emit (events.js:185:7)
at Server.emit (C:\Users\mattj\OneDrive\Documents\GitHub\unifi-parental\node_modules\spdy\lib\spdy\server.js:237:40)
at emitListeningNT (net.js:1284:10)
at _combinedTickCallback (internal/process/next_tick.js:77:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:389:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      C:\Users\mattj\AppData\Roaming\npm-cache_logs\2018-12-30T16_27_38_219Z-debug.log
https://stackoverflow.com/questions/40421825/how-to-use-object-values-on-server-side-in-node-js

It looks like you are using a pretty old version of NodeJS. This code needs at least v7.10.x or later. There are two LTS at the moment, v8.x and v10.x - see https://github.com/nodejs/Release#release-schedule
You could probably replace the Object.values(...) call with a Object.keys(data).map( k => data[k]).forEach(...) but I haven't tested it.


Misleading split statistics for code subsegments

Background
The statistics report generated at the end of the split operation is very helpful! I have been using it to track overall disassembly progress. Originally I kept all segments at the top level, but calculating vram for each asm segment (especially as I moved them around) ended up taking a lot of time, so I switched to using a single code segment instead.
Problem
When I define unnamed bin segments:
- [..., bin]
- name: foo
   type: asm
   start: ...
   vram: ...
- [..., bin]

these segments are counted as "unk" and included in the unknown bin files section of the report statistics.
However, when I define them as subsegments of a code segment:
  - type: code
    start: ...
    vram: ...
    subsegments:
      - [..., bin]
      - [..., asm, foo]
      - [..., bin]

the segments are instead counted as code. I would have expected the bin subsegments to still be counted as unknown despite being nested within a code segment.
Questions

Should bin subsegments be counted as unknown during statistics collection?
Is there a better way to keep track of overall disassembly progress? I'm new to using splat so I might have missed something here. 😄

If this makes sense as a change, I'd be happy to create a PR for it. It looks like do_scan would need to be updated to account for this.

Hi, thanks for the well-written and thought-out issue. I'm glad you like the statistics stuff. To be honest, after adding it a long time ago, I have barely paid attention to it..so it's nice to see someone find it useful!
I think it would make sense to consider any explicitly named bin segment "known" and unnamed ones be unknown. Would this work for your setup? Also, the idea that things inside a "code" subsegment are just blindly treated as code seems a bit wrong too, yeah.. I'd be happy to take a PR for either/both of those changes.
As for tracking overall disassembly progress, I'm not sure. We have mapfile_parser's progress utility for tracking decompilation progress, but disassembly itself, I haven't seen people doing that.

Thanks for sharing information about mapfile_parser! I've been looking at a binary and would like to decompile it eventually, but I figured doing a disassembly first would be a good intermediary milestone. To that end, I've been using the statistics out of splat to track progress. I will be taking a closer look at mapfile_parser if and when I ever get to that next stage, though 😄
I opened a PR with first draft solution around the changes you mentioned. There's some interesting caveats with the approach around how to best include subsegments in the statistics report. Happy to incorporate any feedback!

Sorry for taking so long to merge it @forestbelton - hope you're all set on this now :)

Thank you so much for this excellent tool!


Debug win32

There is an infrequent crash on Win32.  This is some logging I was using to investigate it.  It also modifies the failing test to check for allocation failure.

Using Admin to force this in, so that other PRs will have the changes to Contention.  If there are concerns with this PR, add review comments here, and I'll raise a subsequent PR to address them.


disable benchmark on travis

tile for testing cannot be downloaded anymore

@hjanetzek does the request need an API key now?

Yup https://github.com/tangrams/tangram-es/pull/1332


Stream destroy command is not deleting apps

As a user, I issued stream all destroy --force command to force cleanup existing streams. However, I see apps that were part of streams still running in PCF. The route seems to have successfully cleaned up, though.
shell:
dataflow:>stream list
╔═══════════╤═════════════════╤══════════╗
║Stream Name│Stream Definition│  Status  ║
╠═══════════╪═════════════════╪══════════╣
║r4         │time | log       │undeployed║
║r4111      │time | log       │undeployed║
║r41112     │time | log       │undeployed║
║sab-bazz   │time | log       │deployed  ║
║sab-timer  │time | log       │deployed  ║
╚═══════════╧═════════════════╧══════════╝

dataflow:>stream all destroy --force
Destroyed all streams
dataflow:>stream list
╔═══════════╤═════════════════╤══════╗
║Stream Name│Stream Definition│Status║
╚═══════════╧═════════════════╧══════╝

cf cli:
name                                        requested state   instances   memory   disk   urls
sabby-test-dataflow-server-sab-timer-log    started           1/1         1G       1G
sabby-test-dataflow-server-sab-timer-time   started           1/1         1G       1G

This seems to have been addressed via the recent changes from CFJC snapshots (probably connection pooling related).


SqlConnector: Refactor emtpy table method

Instead of dropping foreign keys and add them after truncate we should drop the entire table and recreate it. Doctrine may provide an easy way to get the DDL for a table.

Duplicate issue. See #34


[BUG] "ValueError: The capacity of hashtable is not sufficient." in examples/backbone.py with version 2.1.0

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Hi, I'm trying to get familiar with torchsparse 2.1.0, so I've ran the examples/backbone.py. I've changed the code so that the batch dimension is in the first dimension as mentioned in the docs.
import numpy as np
import torch
from torch import nn

from torchsparse import SparseTensor
from torchsparse.backbones import SparseResNet21D, SparseResUNet42
from torchsparse.utils.quantize import sparse_quantize

@torch.no_grad()
def main() -> None:
    device = 'cuda:0' if torch.cuda.is_available() else 'cpu'

    for backbone in [SparseResNet21D, SparseResUNet42]:
        print(f'{backbone.__name__}:')
        model: nn.Module = backbone(in_channels=4, width_multiplier=1.0)
        model = model.to(device).eval()

        # generate data
        input_size, voxel_size = 1000, 0.2
        inputs = np.random.uniform(-100, 100, size=(input_size, 4))
        pcs, feats = inputs[:, :3], inputs
        pcs -= np.min(pcs, axis=0, keepdims=True)
        pcs, indices = sparse_quantize(pcs, voxel_size, return_index=True)
        coords = np.zeros((pcs.shape[0], 4))
        coords[:, -3:] = pcs[:, :3]
        coords[:, 0] = 0
        coords = torch.as_tensor(coords, dtype=torch.int)
        feats = torch.as_tensor(feats[indices], dtype=torch.float)
        input = SparseTensor(coords=coords, feats=feats).to(device)

        # forward
        outputs = model(input)

        # print feature shapes
        for k, output in enumerate(outputs):
            print(f'output[{k}].F.shape = {output.feats.shape}')

if __name__ == '__main__':
    main()

But when I run the code, I get an error that hashtable is not sufficient (as the following). It does not occur if I set the number of points to 100 (by changing input_size to 100) from 1000. Could you help me with this? I figure this must be a bug, cause 1000 points is heavily used in the literature. Thanks in advance :)
SparseResNet21D:
/home/ds/anaconda3/envs/gca-lightning/lib/python3.10/site-packages/torch/nn/modules/module.py:1130: UserWarning: __floordiv__ is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor
division, use torch.div(a, b, rounding_mode='floor').
  return forward_call(*input, **kwargs)
Traceback (most recent call last):
  File "/home/ds/gca-outdoor-deploy/torch_sparse_example.py", line 41, in <module>
    main()
  File "/home/ds/anaconda3/envs/gca-lightning/lib/python3.10/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "/home/ds/gca-outdoor-deploy/torch_sparse_example.py", line 33, in main
    outputs = model(input)
  File "/home/ds/anaconda3/envs/gca-lightning/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "torchsparse/backbones/resnet.pyx", line 53, in torchsparse.backbones.resnet.SparseResNet.forward
  File "/home/ds/anaconda3/envs/gca-lightning/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/ds/anaconda3/envs/gca-lightning/lib/python3.10/site-packages/torch/nn/modules/container.py", line 139, in forward
    input = module(input)
  File "/home/ds/anaconda3/envs/gca-lightning/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/ds/anaconda3/envs/gca-lightning/lib/python3.10/site-packages/torch/nn/modules/container.py", line 139, in forward
    input = module(input)
  File "/home/ds/anaconda3/envs/gca-lightning/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "torchsparse/nn/modules/conv.pyx", line 99, in torchsparse.nn.modules.conv.Conv3d.forward
  File "torchsparse/nn/functional/conv/conv.pyx", line 89, in torchsparse.nn.functional.conv.conv.conv3d
  File "torchsparse/nn/functional/conv/kmap/build_kmap.pyx", line 83, in torchsparse.nn.functional.conv.kmap.build_kmap.build_kernel_map
  File "torchsparse/nn/functional/conv/kmap/func/hashmap_on_the_fly.pyx", line 63, in torchsparse.nn.functional.conv.kmap.func.hashmap_on_the_fly.build_kmap_implicit_GEMM_hashmap_on_the_fly
ValueError: The capacity of hashtable is not sufficient.

Expected Behavior
No response
Environment
- GCC:8.4.0
- NVCC:11.2
- PyTorch: 1.12.1+cu113
- PyTorch CUDA: 11.3
- TorchSparse: 2.1.0+torch112cu113

Anything else?
No response

One odd thing is that SparseResUNet42 seems to occur no errors while SparseResNet21D does...

Hi @96lives,
Thanks for pointing out the issue. You may set the kmap_mode to hashmap using the following code snippet:
import torchsparse.nn.functional as F
F.set_kmap_mode("hashmap")

After this modification the error should go away. Our default hashmap construction method (hashmap_on_the_fly) is designed for large-scale inputs. The hashmap mode is slightly slower but is expected to also work well for small inputs. In fact, if the problem only has 1000 input points, sparse convolution does not provide a big advantage over point-based primitives.
Besides, SparseResNet21D is a detection backbone which uses kernel_size=3, stride=2 downsampling layers. These layers will dilate the activated regions in the input (we follow the definition of SpConv). SparseResUNet42, in contrast, is a segmentation backbone which only uses kernel_size=2, stride=2 downsampling layers. The activated regions will not dilate after each downsampling layer. So this is why you probably will see "insufficient hashtable capacity" when running SparseResNet21D because we currently construct the hash tables based on initial input sizes in hashmap_on_the_fly.
Best,
Haotian

Thanks! It does work


revise Additional Synonyms 322-314

I notice in the xml file that you have not systematically quoted the complete m s. reading before each section. It would be desirable to do so in the present round of editing, going from the bottom up.
322 Synonyms of Bracelet on The Upper Arm I
you should not capitalize "the" in headings
320 Synonyms of Wild Cinnamon
1 tamālapattra, tilaka, ṅa paḍaṅ-paḍiṅ.
I don't know where you get the meaning 'wild cinnamon'. Why not 'Forhead Mark'? Can you find paḍaṅ-paḍiṅ in any Javanese dictionary? What about paṇḍaṅ-paṇḍiṅ? Any connectioon with OJED paṇḍəṅ? If none of that leads anywhere, maybe we should think of a loanword from Skt. puṇḍra? See parallels below.
See my discussion of the term tamālapattrabhū in st. IV of C. 217 (pp. 363, 364, 369) in
Griffiths, Arlo & William Aelred Southworth. 2007. “Études du corpus des inscriptions du Campā, I: La stèle d’installation de Śrī Satyadeveśvara: une nouvelle inscription du Campā trouvée à Phước Thiện.” JA 295 (2): 349–81. [DOI: 10.2143/JA.295.2.2033242].
Though I don't think you need to cite this, you may want to read the whole article just for your own edification. It is available on my HAL page.
AK.02.06.123ab tamālapatratilakacitrakāṇi viśeṣakam |
AbhCM tilake tamālapattracitrapuṇḍraviśeṣakāḥ || 653 ||
AbhRM tilakaṃ tamālapattraṃ citrakam uktaṃ viśeṣakaḥ puṇḍram |
319 Synonyms of Garden
1 ākrīḍa, udyāna, ṅa taman.
^4917. ākrīḍa] em., atripi J1 J2, atripī J2, lac. J3 (larger gap)
Another case of p/ḍ variation.
Split the words in the parallels at the places marked by _
AK 2.4.3ab: pumān_ākrīḍa udyānaṁ rājñaḥ sādhāraṇaṁ vanam |
AbhCM 1112cd: ākrīḍaḥ punar_udyānaṁ rājñāṁ tv antaḥpurocitam |
318 Synonyms of Forest
1 vana, vipina, kānana, araṇya, ṅa alas.
AK.02.04.001ab aṭavyaraṇyaṃ vipinaṃ gahanaṃ kānanaṃ vanam |
AbhCM kāntāraṃ vipinaṃ kakṣaḥ syāt ṣaṇḍaṃ kānanaṃ vanam || 1110 ||
AbhRM araṇyam aṭavī sattraṃ kāntāraṃ kānanaṃ vanam | vipinaṃ gahanaṃ ceti nātibhinnārtham iṣyate || 210 ||
317 Synonyms of Pond
1 sarah, sara, sarasī, ṅa talaga.
Actually we expect kāsāra. But because that word doesn't exist in OJ, and because OJ sara = Skt. saras, maybe the author got confused? Nevertheless, it could be imagined that sara is to be emended to kāsara.
AK.01.12.028cd padmākaras taṭāko 'strī kāsāraḥ sarasī saraḥ ||
AbhCM padmākaras taḍāgaḥ syāt kāsāraḥ sarasī saraḥ || 1094 ||
AbhRM veśantaḥ palvalaṃ tallaṃ kāsāraḥ sarasī saraḥ |
316 Synonyms of Trifoliate Leaf
1 varha, pattra, dala, parṇa , cha[J2:45r]dana, palāśa, chada, ṅa tiga rvan.
^4916. ṅa tiga rvan] J2, ṅa rvan EdLC, ...]ṅa rvan J1, lac. J3 (larger gap)
The word tridala is use in the Tigaron inscription (the one from Candi Kimpulan that hyou studied in 2015!) as synonym of tiga ron, and I find one kośa that includes tridala:
Pañcatattvaprakāśa
jaṭī vaṭo jaṭāpādo nyagrodhaḥ plakṣa āśritaḥ |
kadruḥ palāśastridalaḥ kiṃśuko vakrapuṣpakaḥ || 155 ||
Still, I don't think think that we should have tiga here, so I suggest rejecting the J2 reading.
Remove space after parṇa.
AK.02.04.014ab patraṃ palāśaṃ chadanaṃ dalaṃ parṇaṃ chadaḥ pumān |
AbhCM pattraṃ palāśaṃ chadanaṃ barhaṃ parṇaṃ chadaṃ dalam |
AbhRM varhaṃ parṇaṃ dalaṃ pattraṃ palāśaṃ chadanaṃ chadaḥ |
315 Synonyms of Pinwheel Flower
1 haritālaka, ṅa maṇḍakaki.
^4910. maṇḍakaki] EdLC, paṇḍaka[... J1, paṇḍakaki J2, lac. J3 (larger gap)
If you can find any botanical resource allowing to match the botanical identifications of the Sanskrit and the Javanese terms, then you can remove the highlighting. According to OJED, the spelling paṇḍakaki with p is to be preferred, and I think you should accept p, although m is also attested in other latish texts like Navaruci (anaṅgāvak: maṇḍakaki).
AK.02.09.103cd piñjaraṃ pītanaṃ tālamālaṃ ca haritālake ||
AbhCM  saugandhikaḥ śukapuccho haritālaṃ tu piñjaram |
314 Synonyms of Beady Grass
1 kuśa, darbha, ṅa alalaṅ.
I am not sure you need 'Beady' in the heading.
AK.02.04.166ab astrī kuśaṃ kutho darbhaḥ pavitram atha kattṛṇam |
AbhCM darbhaḥ kuśaḥ kutho barhiḥ pavitram atha tejanaḥ |
AbhRM ghāsas tu yavasaḥ prokto barhir darbhaḥ kuthaḥ kuśaḥ |
In both AbhRM and AbhCM, the word haritālī comes in the next stanza. Maybe this is an argument in support of the emendation in your section 315.

I notice in the xml file that you have not systematically quoted the complete m s. reading before each section. It would be desirable to do so in the present round of editing, going from the bottom up.

Could you clarify that, please, Pak? I'm still unsure of what you mean. Thank you.

Why not 'Forhead Mark'?

It's clearer now, as in verse 126 we encounter "aṇḍəṅ-aṇḍəṅ," the Javanese or Old Javanese term for a skin blemish, and there it also mentions "tilaka." Perhaps "paḍaṅ-paḍiṅ" is another way to describe the mark, specifically on the forehead. I have come to the conclusion that "paḍaṅ-paḍiṅ" refers to wild cinnamon, primarily because "tamālapattra" and "tilaka" are listed as Indian names for Wild Cinnamon in Quattrochi (p. 956–957). However, I will consider the option you suggested and include my previous interpretation in the comments of the translation, along with your interpretation on "tamālapattrabhū."

Still, I don't think think that we should have tiga here, so I suggest rejecting the J2 reading.

So, do you think it is just 'leaf' in heading?
The word tridala in Tigaron and in Pañcatattvaprakāśa will be mentioned in the comments in my future translation.

I mean that for some <div>, you integrally quote the ms. readings in <!-- -->, as e.g. in lines 13575-13578 and 13595-13596, while (I notice only now) you generally don't do so in Additional Synonyms. I think it might be useful to do so systematically before each <div> though it will make your file substantially heavier and my make the file more difficult to process to html (though I think the impact on processing time will be limited). In any case, it will be a lot of work to to it now for all <div>, so maybe you can just do it step by step, whenever you think of it during the present and next rounds of revision. You may look at the xml file for Svayambhu to see what I am doing in that case.

Please correct my typo Forhead >> Forehead. I think the common sem,antic element for the Skt. words in 146 is "Birthmark" or (even less specific) "Bodily mark". Interesting that aṇḍəṅ-aṇḍəṅ is not yet recorded with the reqwuired meaning in OJED, while andheng-andheng is sastra.org gives what we need. It seems quite certain to me that in 320, the intended meaning must be "Forehead mark", so paḍaṅ-paḍiṅ (or maybe paḍəṅ-paḍəṅ?) must somehow be related at least in meaning to aṇḍəṅ-aṇḍəṅ and may even derive from the same base-word (in which case you should edit edit paṇḍəṅ-paṇḍəṅ).

Yes, just "Leaf" I suppose. It is mysterious why J2 inserted tiga.


Adding Affiliate Strings to Code

Hi Jeff,
Hope you can help me.
I've set up a jrox affiliate script on my site that works through the paypal api.
I've tested their code with the simple paypal form and it works fine but I would really prefer to keep the cart on my site.
Problem is I have no idea where to put the additional code?
Here is the form code I used that worked.

This little seperate snippet above is what I believe the button needs to have adding to it to track the sale through the affiliate system but where can I add it in the cart script?
Any help would be apprciated! thanks!
Armando.

Thanks Jeff,
Yeah the script that works is this one below, I've tested it and it
works great but I cant use it with the cart because I don't know where
to add the last two lines of code. I think its the last two lines that
are giving me the issue?
/

/
/*
*/
Thanks,
Armando
On 07/10/2011 16:59, Jeff Harrell wrote:

Hey Armando,
I'm not too familiar with the jrox script, but if it's just the notify_url parameter which needs to be set then that's already in there. Have you tested it and it's not working? If it's not, it may be that they are doing something else with their JavaScript that's not getting picked up.
Also, I noticed a few subscription parameters in there which are probably getting filtered out by the Mini Cart. I'll submit a change which fixes that.

--
Armando Coletta | Managing Director | Fantastic Media Ltd | 07762 567 789
<EMAIL_ADDRESS><EMAIL_ADDRESS>|
http://www.bluebroadcaster.com
http://twitter.com/BlueBroadcaster |
http://uk.linkedin.com/in/proximitymarketing
This electronic message contains information from Fantastic Media Ltd
which may be privileged or confidential. The information is intended to
be for the use of the individual (s) or entity named above. If you are
not the intended recipient please be aware that any disclosure, copying,
forwarding or any distribution of any kind or use of this information is
prohibited. If you have received this message in error then please
notify us by telephone or email to the numbers and address above
immediately.

Hi Jeff,
Did you do the change on this yet?
"Also, I noticed a few subscription parameters in there which are probably getting filtered out by the Mini Cart. I'll submit a change which fixes that."
Thanks
Armando.

Thanks Jeff,
Yeah the script that works is this one below, I've tested it and it
works great but I cant use it with the cart because I don't know where
to add the last two lines of code. I think its the last two lines that
are giving me the issue?
/

/
/*
*/
Thanks,
Armando
On 07/10/2011 16:59, Jeff Harrell wrote:

Hey Armando,
I'm not too familiar with the jrox script, but if it's just the notify_url parameter which needs to be set then that's already in there. Have you tested it and it's not working? If it's not, it may be that they are doing something else with their JavaScript that's not getting picked up.
Also, I noticed a few subscription parameters in there which are probably getting filtered out by the Mini Cart. I'll submit a change which fixes that.

--
Armando Coletta | Managing Director | Fantastic Media Ltd | 07762 567 789
<EMAIL_ADDRESS><EMAIL_ADDRESS>|
http://www.bluebroadcaster.com
http://twitter.com/BlueBroadcaster |
http://uk.linkedin.com/in/proximitymarketing
This electronic message contains information from Fantastic Media Ltd
which may be privileged or confidential. The information is intended to
be for the use of the individual (s) or entity named above. If you are
not the intended recipient please be aware that any disclosure, copying,
forwarding or any distribution of any kind or use of this information is
prohibited. If you have received this message in error then please
notify us by telephone or email to the numbers and address above
immediately.

Hey Armando. Sorry about the delay. I just committed a fix for this which removes the filter I was using to parse out what I thought was PayPal-specific properties. This should allow the subscriptions parameters through (as well as anything else that's in the form).
This should solve the issue, but feel free to reopen it if it doesn't.


Channel Master: Adding channels should be possible from shapes or any node

Looks like now, is only possible to add nodes from transforms

Actually is possible to do it, but need to have the node with the current channel selected.


updated aboutus

Codecov Report

Merging #36 (35a3566) into master (bdb2df7) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #36   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

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 bdb2df7...35a3566. Read the comment docs.


Handle Dart SDK change to extension types

This is to make sure code generation doesn't break when we move JS types to extension types. Moving all of the types defined in web.dart to extension types will be handled in a future change.
Updates analyzer dep to 6.3.0 to get the latest extension type changes.

Friendly ping now that https://dart-review.googlesource.com/c/sdk/+/332860 has merged. :)


[ERROR] Unexpected moveset [Mud Slap, Rock                   Slide] for #75 Graveler

I have got this error today

#4323


Simplify catalog e2e tests

Simplify catalog e2e tests by:

Removing NODOCKER option
Removing testing on MacOS

This is blocked by https://github.com/GoogleContainerTools/kpt/issues/824 and https://github.com/GoogleContainerTools/kpt/issues/944

@prachirp Can you please add size and priority.


Deployment Script WhatIf output

Bicep version
0.23.1
Describe the bug
The whatif feature shows the deploymentScript content each time when we run whatif, what creates additional noise in the output
To Reproduce
Steps to reproduce the behavior:

Create the template with PowerShell Script in deploymentScript resource and run New-AzDeployment -WhatIf -template
Additional context
Is there any way to exclude the script content from the output?

What are the values for cleanupPreference and retentionInterval? Deployment Scripts clean themselves up (either immediately or after a specific time window, depending on settings) so you may in fact be creating a new Deployment Script on each execution.

I will collect the info and let you know

@alex-frankel
cleanupPreference: 'OnSuccess'
retentionInterval: 'PT1H'
Is it possible just to disable the output of deploymentScript if I use whatif?

This is not possible today, but is something we can look into. @sydkar FYI on this one. I'm going to change the title to match the feature request.


Adding nx-deploy-it plugin results in error

Describe the bug
When I follow the installation instructions precisely (either from the README or from https://medium.com/dev-thought/introducing-nx-deployit-e5cfe89b810c), I get an error _https://medium.com/dev-thought/introducing-nx-deployit-e5cfe89b810c_
To Reproduce
Steps to reproduce the behavior:
1 Install pulumi (version 2.25) and azure CLI, login to Azure (not sure if this step is necessary, but did it anyway)
2. Run npx create-nx-workspace@latest advanced-deployments --preset="angular-nest" --appName="i-love-iac" --style="scss"
3. Run npx nx add @dev-thought/nx-deploy-it

Select both projects (i-love-iac and api)
Chose Azure with switzerlandnorth (others wouldn't work either)

Exits with an error Can not find generated pulumi package.json, only adding @dev-thought/nx-deploy-it dependency to package.json, nothing more

Expected behavior
I would expect the plugin to be installed and configure the pulumi deployment files
Logs
Here's the output from the nx add:
PS C:\prog\projects\inftec\testing\advanced-deployments> npx nx add @dev-thought/nx-deploy-it
ℹ Using package manager: npm
✔ Found compatible package version<EMAIL_ADDRESS>✔ Package information loaded.
✔ Package successfully installed.
    We found 2 supported applications.
√ Please select the applications you want to setup. If you don't select one, you will skip this process and you can do it later again. · i-love-iac (angular), api (nestjs)

√ provider · Azure
√ The Azure location to deploy into: · switzerlandnorth
Can not find generated pulumi package.json
PS C:\prog\projects\inftec\testing\advanced-deployments>

It exits with Can not find generated pulumi package.json
Application type:
[x] Angular
[x] NestJS
Provider:
[] AWS
[x] Azure
[] Google Cloud Platform
nx-deploy-it version
2.0.0
Version of nx: 12.0.8
Additional context
I've looked at https://github.com/Dev-Thought/nx-deploy-it-examples and saw that it has the 'infrastructure' sub folders in the app folders.
I've also seen where the error is output: https://github.com/Dev-Thought/nx-plugins/blob/fc36f07a973f9899cb966023e874b8b8a765d6fa/libs/nx-deploy-it/src/schematics/init/schematic.ts#L68
But I don't understand why it's not working...

btw, I've also tried with version 1.4.0 of the nx-deploy-it plugin as this is the one used int he examples. But that version would result in an error Cannot read property 'toString' of null.
Am I missing some prerequisites that are not documented properly?

Ok, I looked deeper into the code and found the following problems (btw, I'm running on Windows 64bit...)

pulumi-npm: The way the bin is registered on my machine will execute the ./src/pulumi-wrapper.js in the src folder, i.e. __dirname will be ...pulumi-npm/src. However, the binary is installed to ...pulumi-npm/tools/.... Currently, the wrapper will expect tools to be within src and it will fail. Can be easily reconstructed with npm pulumi which will result in an error
The way the pulumi binaray is resolved in https://github.com/Dev-Thought/nx-plugins/blob/fc36f07a973f9899cb966023e874b8b8a765d6fa/libs/nx-deploy-it/src/utils/workspace.ts#L23 does not work on Windows. On windows, the correct file name will be pulumi.cmd and not pulumi. Obviously, there is no proper error handling when the command is called, resulting in nothing being executed and obviously it won't create the infrastructure/package.json either, resulting in the error message I was experiencing when following the instructions

With pulumi.cmd it is working for you?

The generation of the infrastructure is woking with the two manual fixes described above (pulumi-npm tools path and .cmd extension).
However, I ran in another issue when executing npx ng run api:deploy. I was creating the nx workspace with the latest version 12.0.8 and I guess there is a breaking change here: https://github.com/Dev-Thought/nx-plugins/blob/master/libs/nx-deploy-it/src/utils/workspace.ts#L83
It looks like the 12.0.8 version of @nrwl/tao/src/shared/workspace.js does not allow for path to be undefined, eventually resulting in an error The "path" argument must be of type string. Received undefined
See https://github.com/nrwl/nx/blob/master/packages/tao/src/shared/workspace.ts#L258 (if this.root is undefined, it won't work. And in this case, the value will come from the invocation in nx-deploy-it referenced above...
I guess nx-deploy-it doesn't support nx 12.0 yet?

also having the same problem. getting the "Can not find generated pulumi package.json" when I try to deploy on AWS. Is there a patch or workaround for this to work? Is there a manual guide how to deploy the mono repo if I cant use nx-deploy-it plugin?

Not sure if this is still an issue, will close it as it's gotten quite old...


Create Infrastructure for Charts CI

The infrastructure will consist of:

[x] An autoscaled GKE cluster for running jobs, running the latest
[ ] Jenkins instance that monitors PRs on this repo and runs them through a predefined pipeline of tests
[x] A GCS bucket for storing the the chart tarballs

Where are we going to maintain the Jenkins pipeline from?  Jenkins file in this repo??

Yep that is the current plan.

Closing this as we will leverage the main Kubernetes CI infra.


Collected value is not increased and remains frozen? But in scrape target it's increasing.

What did you do?
Entered the expression node_cpu_seconds_total{mode="idle"} and chose to display it as a graph with 2 days range for visibility.
What did you expect to see?
All the lines going up, since the values are increasing in the scrape target.
What did you see instead? Under which circumstances?
That one of the values has frozen, the green line. It remains flat, but should increase.

It remains flat, but should increase since the target is increasing.
One moment its
# TYPE node_cpu_seconds_total counter
node_cpu_seconds_total{cpu="0",mode="system"}<PHONE_NUMBER>5
node_cpu_seconds_total{cpu="0",mode="irq"} 2770.546875
node_cpu_seconds_total{cpu="0",mode="idle"} 33307868
node_cpu_seconds_total{cpu="0",mode="user"} 54002.421875

And then
# TYPE node_cpu_seconds_total counter
node_cpu_seconds_total{cpu="0",mode="system"}<PHONE_NUMBER>75
node_cpu_seconds_total{cpu="0",mode="irq"} 2770.546875
node_cpu_seconds_total{cpu="0",mode="idle"} 33307904
node_cpu_seconds_total{cpu="0",mode="user"} 54002.421875

Idle went from 33307868 to 33307904, so it is increasing.
System information
Linux 6.1.0-17-amd64 x86_64
Prometheus version
prometheus, version 2.52.0 (branch: HEAD, revision: 879d80922a227c37df502e7315fad8ceb10a986d)
  build user:       root@1b4f4c206e41
  build date:       20240508-21:56:43
  go version:       go1.22.3
  platform:         linux/amd64
  tags:             netgo,builtinassets,stringlabels

Prometheus configuration file
No response
Alertmanager version
No response
Alertmanager configuration file
No response
Logs
No response

Perhaps the increase is negligible, making the graph appear flat due to the large range. Could you apply an increase() function to it, zoom in for a closer look or query the prom API directly? Also, your /metrics display approximately 33M values, but the green line is situated around 15M. Are you certain it's the same target/series?

@machine424 I must have looked at the wrong /metrics (there are a few of them I collect from).
The value is stuck in the feed too, so the issue is there and not in Prometheus.
My bad, closing this.


allowing for disabling segment-backup-job for vanilla k8s enablement

/cc @sabre1041

Closing with helm chart GA deprication 👋🏼


Minor improvements

Codecov Report

Merging #38 (a3788ba) into main (0aef328) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Current head a3788ba differs from pull request most recent head 0ebf254. Consider uploading reports for the commit 0ebf254 to get more accurate results

@@            Coverage Diff            @@
##               main      #38   +/-   ##
=========================================
  Coverage     96.40%   96.40%
  Complexity      369      369
=========================================
  Files            23       23
  Lines          1057     1057
=========================================
  Hits           1019     1019
  Misses           38       38

Impacted Files
Coverage Δ

src/Token/Token.php
100.00% <100.00%> (ø)

src/Token/Tokenizer.php
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Return code always 0

Hello :wave:
The return code always appears to be 0 for the command line tool:
(base) $ bgpkit-parser https://data.ris.ripe.net/rrc00/2023.04/updates.20230401.0231.gz
[2023-05-02T09:26:36Z ERROR bgpkit_parser::parser::iters] Custom { kind: InvalidInput, error: "invalid gzip header" }
(base) $ echo $?
0

Is there any chance to return other than a 0 error code when there's 404 or anything?
Thanks

Hey @digizeph
Thank you very much for such a quick turnaround. I installed the new version, and indeed it returns the error code 1 on 404 and 0 when a file exists.
Once again, thank you, great work and much appreciated :pray:


Fix race condition in the merge iterator close method

If the close happens when next is being called, it can result in a race
condition where the current iterator gets set to nil after the initial
check.
This also fixes the finalizer so it runs the close method in a goroutine
instead of running it by itself. This is because all finalizers run on
the same goroutine so a close that takes a long time can cause a backup
for all finalizers. This also removes the redundant call to
runtime.SetFinalizer from the finalizer itself because a finalizer,
when called, has already cleared itself.

[x] Rebased/mergable
[ ] Tests pass
[x] CHANGELOG.md updated

@rbetts this will need to be merged and backported to 1.4. Do you want me to backport this to 1.3 too?


CDEvents Whitepaper incorrect link

The CDEvents whitepaper contains a link to Continuous Deployment Pipeline Events which should link to here. Instead it links to the CI events spec.
Ie. Link is https://github.com/cdfoundation/sig-events/blob/main/vocabulary-draft/continuous-integration-pipeline-events.md
But should be https://github.com/cdfoundation/sig-events/blob/main/vocabulary-draft/continuous-deployment-pipeline-events.md

Tagging @afrittoli as it seems they are the owner.
LMK where I make this change and I'm happy to create a PR.

Thank you @agardnerIT, nice catch.
We just updated the whitepaper and we'll be publishing the updated PDF to the website once it's finalised.

Our company is hosting an open source workshop to help developers with their first contributions to an open source project! If no one else would like to work on this before May 16-17 then we would love to help with this issue. Thanks!

Hi, I will work on this shortly as part of the workshop of May 16 - 17.


Apache Spark on scala 2.11

Geomesa uses scala 2.11 though a default spark cluster has 2.10.

closed #10


#1 - Filename is not the right one

The filename is not correct:
It takes the CKLogging.h Header File but not the right file where the function Log is called from.
Expected:
[05.12.2024 15:10:48] [INFORMATION] [Test.cpp:5] This is a test log message
Actual:
[05.12.2024 15:10:48] [INFORMATION] [CKLogging.h:27] This is a test log message

Temporary Fixed with:
-> Commit: Commit #4
-> Added a Makro ( Unfortunately, in every file to implement... )
-> Better Fix is planned in the Future!


feat: add styles utility method to wrapper

fix #172

Looks good to me as well. We just need to make sure it's document it properly

@cexbrayat @dobromir-hristov can you guys take a look at this discussion: https://github.com/vuejs/vue-test-utils-next/issues/172
I see some potential pitfalls people may run into with this (only working on inline styles). We had this feature in V1 and removed it for this exact reason, I think - I am not sure we should repeat our mistakes 🤔  especially when there is a great plugin system which you could use to add this in. @HerringtonDarkholme may have some input too.

I have no strong opinion here :) I agree with @HerringtonDarkholme that it would be a nice addition, and thought about adding it myself when I was writing tests with attributes('style'). But I totally understand that it might not be worth extending our API, and that it can be confusing that it only works with certain styles. If it was removed from v1, it makes sense to not include it in v2. If it is a popular demand, we still have time to include it in 2.x, whereas it will be harder to remove if we include it now.

I don't really have a strong opinion, honestly. Happy to include - we should update the docs repo, and make sure it's clear this won't return styles from <style>.
I can do that this weekend and merge this then.

I'm actually leaning towards having this as a plugin, mostly because some concerns I raised here https://github.com/vuejs/vue-test-utils-next/issues/172#issuecomment-672902133, and also as @cexbrayat mentioned, because there is no way back once we introduce a (potentially) misleading method – AFAIK, one can only detect inline styles when running in jsdom. Having a plugin means we can always port it to core if we feel it makes sense and people want it.
That being said, jest-dom features a toHaveStyle (source) helper. Maybe we could recommend this one as we're doing right now with toBeVisible/toBeEmpty assertions?

Hm... again I don't have a strong opinion. I don't really like to be too tied to a specific testing engine (say Jest) though. I am more concerned about the many, many edge cases this introduces and the inevitable issues/PRs people will make to try and get this function to do what they want.

Then let's make an example repo for plugin authors to use and list the good ones somewhere :)
Similar to how jest has things?

Yes sounds good - this can be the first plugin!


Remove the home menu item and make the logo behave as the home item

Whatever makes Klimek happy.
cursing intensifies

Hi, one minor grip: the reddish background does not look good. The original orange was fine, there is no need to make more apparent that the logo is clickable by making the underground of different colour. Could you please fix that?

Ah, taken back. I have noticed that it indicates on which page you are. Closing again.


Prepare release 2.0.0-beta2

What does this PR do?
This PR prepares release 2.0.0-beta2, it contains merge of develop branch into release/2.0.0 branch + commit to update version and changelog.
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report

Merging #1547 (65f83b2) into release/2.0.0 (c92a870) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

@@                Coverage Diff                @@
##           release/2.0.0    #1547      +/-   ##
=================================================
- Coverage          83.49%   83.37%   -0.12%
=================================================
  Files                438      438
  Lines              14854    14877      +23
  Branches            2237     2246       +9
=================================================
+ Hits               12402    12403       +1
- Misses              1874     1884      +10
- Partials             578      590      +12

Impacted Files
Coverage Δ

...android/api/storage/FeatureStorageConfiguration.kt
100.00% <100.00%> (ø)

...in/com/datadog/android/core/internal/SdkFeature.kt
91.09% <100.00%> (+0.56%)
:arrow_up:

...core/internal/data/upload/v2/DataUploadRunnable.kt
100.00% <100.00%> (ø)

...ore/internal/data/upload/v2/DataUploadScheduler.kt
100.00% <100.00%> (ø)

...d/core/internal/persistence/ConsentAwareStorage.kt
98.75% <100.00%> (ø)

...droid/rum/internal/domain/scope/RumSessionScope.kt
95.40% <100.00%> (+1.22%)
:arrow_up:

...oid/rum/tracking/NavigationViewTrackingStrategy.kt
86.49% <100.00%> (+0.98%)
:arrow_up:

...oid/sessionreplay/internal/SessionReplayFeature.kt
100.00% <100.00%> (ø)

...lay/internal/domain/SessionReplayRequestFactory.kt
98.08% <100.00%> (ø)

... and 15 files with indirect coverage changes


nd_light: Fix use after free bug in neighbor solicitation.

This fixes a “use after free” bug (#643) in nd_light. The bug only surfaced when using the Solarflare driver but is indeed unrelated. I want to highlight a pattern that I think is close to a whole class of bugs:
 function nd_light:stop ()
    packet.free(self._next_hop.packet)
+   self._next_hop.packet = nil
    packet.free(self._sna.packet)
+   self._sna.packet = nil
 end

So what I did here previously (I wrote the bug in the first place) is to free “static” packets when the app is stopped. In itself this is important as to not leak memory. The nd_light app specifically launches a timer that will send self._next_hop.packet periodically. What happens when you start nd_light and stop it right away? The timer gets activated, the packet is freed, the timer runs, attempts to clone a packet which was already freed: wham, segmentation fault.
As a response I added explicit statements unbinding the slots that hold pointers to freed packets. I think this is an important lesson learned: Do not keep invalid pointers around. If you free a packet held in a variable that can be accessed outside the lexical scope (for instance an object slot), null it right away. That way you will get a meaningful error message instead of a segmentation fault.

This fixes a bug so I am merging it.
However, I disagree on the plan for handling this class of error. My position is that timers in apps should be implemented locally inside the app and not with a global timer whose lifetime is independent of the app instance.
This is the timer implementation that makes sense to me, potentially with some library support:
local deadline
function push ()
   if deadline == nil or deadline <= engine.now() then
      ... timer code ...
      deadline = (deadline or engine.now()) + conf.interval
   end
   ... other push method app logic ...
end

This is simple and local and has no risk of the timer callback outliving the app.

Or?


opening a vim terminal buffer breaks tab switching

Steps to reproduce:

Open several text buffers.
Open a terminal buffer in a new window.
Switch between buffers using ^N or ^P until you get to the terminal buffer

When the terminal buffer is encountered no further cycling through buffers is possible until the terminal is switched into terminal normal mode.  This has to be done every time the terminal buffer is encountered when switching.  This gets tedious very quickly if you regularly keep a terminal buffer open.
Maybe terminal buffers should be hidden from the tabs?

This is not an issue with vim-buftabline- I found the solution here:
https://vi.stackexchange.com/questions/16708/switching-buffers-in-vi-while-skipping-any-terminal-in-vi-8-1

This is not an issue with vim-buftabline- I found the solution here:
https://vi.stackexchange.com/questions/16708/switching-buffers-in-vi-while-skipping-any-terminal-in-vi-8-1

Just now getting to take a look at this (since you answered yourself so quickly), and indeed, this has to do with Buftabline only insofar as you would get these issues if you set up the mappings suggested by the quick intro in the Buftabline README. But Buftabline itself intentionally includes no buffer management, by design, and so addressing this issue isn’t in its purview.


🐞 Error installation via stable PPA

Describe the bug
Error while installing full system, via PPA, the issue seems to be in the package coppelia-simulation, the version CoppeliaSim_Edu_V4_6_0_rev10_Ubuntu20_04 does not exists anymore the url is down, maybe it should be modified to the new available version V4_6_0_rev14_Ubuntu20_04.

Thanks, it is fixed. I will need to find a way to make sure this never breaks outside of our control. ...


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-k8s-22-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 824

Questions ?
Please refer to the Backport tool documentation


fix(curriculum): enhance width calculation expressions

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #55821
Summary of Updates
Enhancements to Collision Detection and Width Calculations
These updates enhance the flexibility of collision detection rules and width calculations, allowing for a wider range of expression formats.
Key Changes
Step 84: Half Width Calculation

Previous Limitation:

Only recognized straightforward expressions like:player.position.x >= platform.position.x - player.width / 2

New Capabilities:

Supports various formats, including:player.position.x >= platform.position.x - (player.width / 2)
player.position.x >= platform.position.x - player.width * 0.5
player.position.x >= platform.position.x - (0.5 * player.width)

Step 85: One-Third Width Calculation

Previous Limitation:

Recognized only:player.position.x <= platform.position.x + platform.width - player.width / 3

New Capabilities:

Handles multiple expressions, such as:player.position.x <= platform.position.x + platform.width - (player.width / 3)
player.position.x <= platform.position.x + platform.width - player.width * 1/3
player.position.x <= platform.position.x + platform.width - (1/3 * player.width)

Step 88: Additional Variants for One-Third Width

Previous Limitation:

Limited to specific formats for one-third width calculations.

New Capabilities:

Accommodates various representations including:player.position.x <= platform.position.x + platform.width - player.width / 3
player.position.x <= platform.position.x + platform.width - (player.width / 3)
player.position.x <= platform.position.x + platform.width - player.width * 1/3
player.position.x <= platform.position.x + platform.width - (1/3 * player.width)

Step 89: Final Calculation Adjustment

Previous Limitation:

Expression for comparing player’s x position and platform's dimensions did not account for all valid formats.

New Capabilities:

Now accommodates various valid expressions, including:player.position.x <= platform.position.x + platform.width - player.width / 3
player.position.x <= platform.position.x + platform.width - (player.width / 3)
player.position.x <= platform.position.x + platform.width - player.width * 1/3
player.position.x <= platform.position.x + platform.width - (1/3 * player.width)

Examples of Code That Works Now

Half Width Calculation:

Before:player.position.x >= platform.position.x - player.width / 2

Now:player.position.x >= platform.position.x - (player.width / 2)
player.position.x >= platform.position.x - player.width * 0.5
player.position.x >= platform.position.x - (0.5 * player.width)

One-Third Width Calculation:

Before:player.position.x <= platform.position.x + platform.width - player.width / 3

Now:player.position.x <= platform.position.x + platform.width - (player.width / 3)
player.position.x <= platform.position.x + platform.width - player.width * 1/3
player.position.x <= platform.position.x + platform.width - (1/3 * player.width)

These updates ensure that the code now accommodates a broader range of calculations and formats, making it more flexible and versatile.

Hey @Sembauke, I just want to make sure we are on the same page, do you mean something like this ?
Original Code
assert.match(code, /const\s+collisionDetectionRules\s*=\s*\[\s*player\.position\.y\s*\+\s*player\.height\s*<=\s*platform\.position\.y\s*,\s*player\.position\.y\s*\+\s*player\.height\s*\+\s*player\.velocity\.y\s*>=\s*platform\.position\.y\s*,\s*player\.position\.x\s*>=\s*platform\.position\.x\s*-\s*(?:\(\s*player\.width\s*\/\s*2\s*\)|player\.width\s*\/\s*2|player\.width\s*\*\s*0\.5|\(\s*player\.width\s*\*\s*0\.5\s*\)|0\.5\s*\*\s*player\.width|\(\s*0\.5\s*\*\s*player\.width\s*\))\s*,?\s*]\s*;?/);

Refactored Code
const yHeightCheck = /player\.position\.y\s*\+\s*player\.height\s*<=\s*platform\.position\.y/;
const yVelocityCheck = /player\.position\.y\s*\+\s*player\.height\s*\+\s*player\.velocity\.y\s*>=\s*platform\.position\.y/;
const xHalfWidthCheck = /player\.position\.x\s*>=\s*platform\.position\.x\s*-\s*(?:\(\s*player\.width\s*\/\s*2\s*\)|player\.width\s*\/\s*2|player\.width\s*\*\s*0\.5|\(\s*player\.width\s*\*\s*0\.5\s*\)|0\.5\s*\*\s*player\.width|\(\s*0\.5\s*\*\s*player\.width\s*\))/;

const regexPattern = new RegExp(
  `const\\s+collisionDetectionRules\\s*=\\s*\\[\\s*${yHeightCheck.source}\\s*,\\s*${yVelocityCheck.source}\\s*,\\s*${xHalfWidthCheck.source}\\s*,?\\s*\\]\\s*;?`
);

assert.match(code, regexPattern);

Yes, that is exactly what I mean!

@Sembauke
Done!

Hi @TofikE124 could you take a look at these conflicts?


[V2] Some first bugs i encountered

Current Behavior

If you want to delete an image, and another user is on the image edit/view page or you have it open on another tab , the page will crash
You cannot edit a file

Expected Behavior

the image should be deleted
the file should be edited

Steps to Reproduce
explained in current Behavior
Panel Version
v2 early access (v1 i guess)
Daemon Version
v2 early access (v1 i guess)
Wings Version

Games and/or Images Affected
No response
Docker Image
No response
Error Logs
No response
Is there an existing issue for this?

[X] I have searched the existing issues before opening this issue.
[X] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
[X] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.

The file editing has been fixed here https://github.com/Moonlight-Panel/MoonlightDaemon/pull/2

Fixed in https://github.com/Moonlight-Panel/Moonlight/pull/380


Diameter of Binary Tree in C++

Description
The diameter of a binary tree is the number of nodes on the longest path between two end nodes.
Motivation
To help learn this important program of binary trees.
I would like to add a C++ program to find Diameter of Binary Tree under GSSoC'21 .
Kindly assign this issue to me.

Hello,  @SrishtiSingh2001 @aaadddiii @anubhavitis @veenit1802 @dheerajkotwani  I think this is an important question and this should definitely be added in the Algo-Tree and I will start working on it as soon as I get assigned!! as I am a part of GSSoC'21, so I would like to implement this in c++.

Please /assign
I will work on it in c++

I will work on it in C++. Kindly assign me this issue.. I am part of GSSoC'21.

I want to work on in Python. So please assign me this issue @plazzy99

I would like to work on this issue in Java. Kindly assign it to me @raksha009 .

Issue exists at #291


How to validate webhooks!!

I submitted my app for review. They rejected it saying that the shop/redact webhook should return status 401 if the request isn't made from Shopify.
Please guide me through it.
app.post('/webhooks/shop/redact',async (req,res)=>{
res.status(200).send({message:'Updated'})
})

Can someone fro Shopify confirm either of these work?
I'm confused why the template would have broken implementation.
Update:  https://github.com/Shopify/shopify-api-js/blob/3de67ce34d9a85707d00462d9414c2f38fce4f07/docs/reference/utils/validateHmac.md
This seems to be an invalid approach since this method looks for query params and not header, as specified in the webhook specs.
The middleware suggested further up also breaks over changes to shopify API.
I've finally landed on something that works with this middleware:
import crypto from "crypto";
// get SHOPIFY_API_SECRET from env variables
const SHOPIFY_API_SECRET = process.env.SHOPIFY_API_SECRET;

export default async function validateWebhookRequest(req, res, next) {
    try {
        // get raw body data
        const rawBody = req.rawBody;

        // get HMAC header from request
        const hmacHeader = req.get('X-Shopify-Hmac-SHA256');
        // create hmac object
        const hmac = crypto.createHmac('sha256', SHOPIFY_API_SECRET);

        // create hmac hash from raw body
        const hash = hmac.update(rawBody, 'utf8').digest('base64');

        // compare our hash with Shopify's hash
        if (hash === hmacHeader) {
            console.log('hmac success');
            res.status(200);
            next();
        } else {
            console.log('hmac failed');
            return res.status(401).json({succeeded: false, message: "Not Authorized"}).send();
        }
    } catch (error) {
        console.log('error in hmac validation');
        console.log(error);
        return res.status(401).json({succeeded: false, message: "Error caught"}).send();
    }
}

Thanks to GPT 4 for helping me out of this mess.

app.post('/webhooks/shop/redact',async (req,res)=>{
res.status(200).send({message:'Updated'})
})

Hi Sir/Maam I am new to Shopify App Development, I had devloped my app, and add all the required Webhooks.
But when I submit the App on Shopify Partner Dashboad --> All Apps --> AppName --> Distribution -->
Shopify App Store listing
Attention Draft
Help merchants discover your app and how it can help them build their businesses.
When you’re ready, submit the app for review. Review wait times vary, but we’ll email you about your submission.
                                           **Manage Submission**

After Clicking "Manage Submission" I filled the little requirements and then I am stuck in
             **Run an automated check for common errors**

Check is in progress. You can leave this page while it's running, if it takes more than a few minutes.
Configured mandatory compliancewebhooks. (Ok working)
Implement an HMAC Signature to verify webhooks. (X Not working)
Used a Valid TLS certificate. (Ok working)
I am stuck in Implement an HMAC Signature to verify webhooks. (X Not working), please someone guide me, it will be more thankful.

Sir I am using Remix framework for Shopify App Development. In which we are using either loader or action function for the post or I think there is no middle ware in Remix. Kindly assist me on this, it will be more thankful.

me too

Has anyone been able to resolve this issue.