Topping E30 II

Hi, today I tested with a topping E30 II USB DAC and here it doesn't seem to work. I'm getting restart loops with the following error:
" /app/ifi-tidal-release/bin/tidal_connect_application: error while loading shared libraries: libsystemd.so.0: ELF load command alignment not page-aligned"
The config loaded is this, so the DAC is found (Card name is really "II" as shown:
Tidal Connect - https://github.com/GioF71/tidal-connect.git - entrypoint.sh version 0.1.7
tidal-connect    | Tidal Connect - https://github.com/GioF71/tidal-connect.git - common.sh version 0.1.5
tidal-connect    | FRIENDLY_NAME=MoodeHiFi
tidal-connect    | MODEL_NAME=USB-Audio - E30 II
tidal-connect    | MQA_CODEC=false
tidal-connect    | MQA_PASSTHROUGH=false
tidal-connect    | CARD_NAME=II
tidal-connect    | CARD_INDEX=
tidal-connect    | CARD_DEVICE=
tidal-connect    | CARD_FORMAT=
tidal-connect    | CREATED_ASOUND_CARD_NAME=
tidal-connect    | ENABLE_SOFTVOLUME=yes
tidal-connect    | ENABLE_GENERATED_TONE=yes
tidal-connect    | ASOUND_FILE_PREFIX=
tidal-connect    | FORCE_PLAYBACK_DEVICE=
tidal-connect    | SLEEP_TIME_SEC=3
tidal-connect    | RESTART_ON_FAIL=1
tidal-connect    | RESTART_WAIT_SEC=10
tidal-connect    | CLIENT_ID=
tidal-connect    | LOG_LEVEL=3
tidal-connect    | File [asound.conf] has not been provided
tidal-connect    | File /etc/asound.conf does not exist.
tidal-connect    | Entering write_asound_if_needed ...
tidal-connect    | Specified CARD_NAME=[II]
tidal-connect    | Found audio device [II] as index [0]
tidal-connect    | Entering write_audio_config with card_index=[0] ...
tidal-connect    | Creating sound configuration file (card_index=[0], softvol=[yes]) ...
tidal-connect    | check_master=[numid=5,iface=MIXER,name='Master']
tidal-connect    | Cannot enable softvolume, a 'Master' control already exists for the device at index [0]
tidal-connect    | Building asound.conf without softvolume ...
tidal-connect    | Sound configuration file created
tidal-connect    | Completed write_audio_config
tidal-connect    | Completed write_asound_if_needed.
tidal-connect    | pcm.!default {
tidal-connect    |   type plug
tidal-connect    |   slave.pcm {
tidal-connect    |     type hw
tidal-connect    |     card 0
tidal-connect    |   }
tidal-connect    | }

Hello, are you using a Raspberry Pi5?
Another user had the same issue as yours here and he solved it (follow this link).
Let me know if this helps!

Jep, thats a pi5, pi4 works just fine. Will try it.
Many thanks!
Josef
Gesendet von Outlook für Androidhttps://aka.ms/AAb9ysg

From: Giovanni Fulco @.>
Sent: Wednesday, June 19, 2024 12:27:51 PM
To: GioF71/tidal-connect @.>
Cc: Josh @.>; Author @.>
Subject: Re: [GioF71/tidal-connect] Topping E30 II (Issue #183)
Hello, are you using a Raspberry Pi5?
Another user had the same issue as yours herehttps://github.com/GioF71/tidal-connect/issues/173 and he solved it (follow this linkhttps://forums.raspberrypi.com/viewtopic.php?t=358453#p2149491).
Let me know if this helps!
—
Reply to this email directly, view it on GitHubhttps://github.com/GioF71/tidal-connect/issues/183#issuecomment-2178330124, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBOXNB7QI26PQTHYMQCVYLZIFMKPAVCNFSM6AAAAABJRWYOQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGMZTAMJSGQ.
You are receiving this because you authored the thread.Message ID: @.***>

Hi Giovanni,
The described fix worked indeed. It’s rather a workaround though, the issue got reported back in Oct 23 here: https://github.com/raspberrypi/bookworm-feedback/issues/120
Hope they will fix it, did an apt-get upgrade before modifying the config.txt- but the bug seems to be still there.
You might want to update your readme.md regarding this.
On a Pi5:
sudo vi /boot/firmware/config.txt
Add the following line in # General settings:
kernel=kernel8.img
Then reboot.
Many thanks once again!
Josef
From: Giovanni Fulco @.>
Sent: Wednesday, 19 June 2024 12:28
To: GioF71/tidal-connect @.>
Cc: Josef Aschauer @.>; Author @.>
Subject: Re: [GioF71/tidal-connect] Topping E30 II (Issue #183)
Hello, are you using a Raspberry Pi5?
Another user had the same issue as yours herehttps://github.com/GioF71/tidal-connect/issues/173 and he solved it (follow this linkhttps://forums.raspberrypi.com/viewtopic.php?t=358453#p2149491).
Let me know if this helps!
—
Reply to this email directly, view it on GitHubhttps://github.com/GioF71/tidal-connect/issues/183#issuecomment-2178330124, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBOXNB7QI26PQTHYMQCVYLZIFMKPAVCNFSM6AAAAABJRWYOQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGMZTAMJSGQ.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

Oh - is this normal?
tidal-connect    | Starting TIDAL Connect ...
tidal-connect    | STARTING TidalConnect services, version: 1.1.3
tidal-connect    | ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to ope                                                                                n slave
tidal-connect    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards                                                                                .pcm.rear
tidal-connect    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards                                                                                .pcm.center_lfe
tidal-connect    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards                                                                                .pcm.side
tidal-connect    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards                                                                                .pcm.hdmi
tidal-connect    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards                                                                                .pcm.hdmi
tidal-connect    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards                                                                                .pcm.modem
tidal-connect    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards                                                                                .pcm.modem
tidal-connect    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards                                                                                .pcm.phoneline
tidal-connect    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards                                                                                .pcm.phoneline
tidal-connect    | Cannot connect to server socket err = No such file or directo                                                                                ry
tidal-connect    | Cannot connect to server request channel
tidal-connect    | jack server is not running or cannot be started
tidal-connect    | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for                                                                                -1, skipping unlock
tidal-connect    | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for                                                                                -1, skipping unlock
tidal-connect    | STARTED TidalConnect services.
From: Giovanni Fulco @.>
Sent: Wednesday, 19 June 2024 12:28
To: GioF71/tidal-connect @.>
Cc: Josef Aschauer @.>; Author @.>
Subject: Re: [GioF71/tidal-connect] Topping E30 II (Issue #183)
Hello, are you using a Raspberry Pi5?
Another user had the same issue as yours herehttps://github.com/GioF71/tidal-connect/issues/173 and he solved it (follow this linkhttps://forums.raspberrypi.com/viewtopic.php?t=358453#p2149491).
Let me know if this helps!
—
Reply to this email directly, view it on GitHubhttps://github.com/GioF71/tidal-connect/issues/183#issuecomment-2178330124, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBOXNB7QI26PQTHYMQCVYLZIFMKPAVCNFSM6AAAAABJRWYOQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGMZTAMJSGQ.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

You might want to update your readme.md regarding this.

Yes, in fact I was thinking of doing that. Thank you for preparing the content!

Oh - is this normal? tidal-connect | Starting TIDAL Connect ... tidal-connect | STARTING TidalConnect services, version: 1.1.3 tidal-connect | ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to ope n slave tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.rear tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.center_lfe tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.side tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | Cannot connect to server socket err = No such file or directo ry tidal-connect | Cannot connect to server request channel tidal-connect | jack server is not running or cannot be started tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | STARTED TidalConnect services. From: Giovanni Fulco @.> Sent: Wednesday, 19 June 2024 12:28 To: GioF71/tidal-connect @.> Cc: Josef Aschauer @.>; Author @.> Subject: Re: [GioF71/tidal-connect] Topping E30 II (Issue #183) Hello, are you using a Raspberry Pi5? Another user had the same issue as yours here<#173> and he solved it (follow this linkhttps://forums.raspberrypi.com/viewtopic.php?t=358453#p2149491). Let me know if this helps! — Reply to this email directly, view it on GitHub<#183 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBOXNB7QI26PQTHYMQCVYLZIFMKPAVCNFSM6AAAAABJRWYOQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGMZTAMJSGQ. You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>
Looks quite good all things considered (it's really old an unmaintained software...).
Does it play?

Cannot switch on my receiver before 5pm but the service seems to play with this warning:
[2024-06-19 13:23:41.486] [tisoc] [warning] [PlaybackControllerImpl.cpp:472] Illegal state:1
tidal-connect    | [2024-06-19 13:23:44.778] [tisoc] [warning] [logger.cpp:22] [audio_worker.cpp:321] Attempting to initialize a decoder without initial data!
tidal-connect    | [2024-06-19 13:24:04.071] [tisoc] [warning] [PlaybackControllerImpl.cpp:472] Illegal state:0
tidal-connect    | [2024-06-19 13:24:04] [info] asio async_shutdown error: asio.misc:2 (End of file)
From: Giovanni Fulco @.>
Sent: Wednesday, 19 June 2024 14:33
To: GioF71/tidal-connect @.>
Cc: Josef Aschauer @.>; Author @.>
Subject: Re: [GioF71/tidal-connect] Topping E30 II (Issue #183)
Oh - is this normal? tidal-connect | Starting TIDAL Connect ... tidal-connect | STARTING TidalConnect services, version: 1.1.3 tidal-connect | ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to ope n slave tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.rear tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.center_lfe tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.side tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | Cannot connect to server socket err = No such file or directo ry tidal-connect | Cannot connect to server request channel tidal-connect | jack server is not running or cannot be started tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | STARTED TidalConnect services. From: Giovanni Fulco @.> Sent: Wednesday, 19 June 2024 12:28 To: GioF71/tidal-connect @.> Cc: Josef Aschauer @.>; Author @.> Subject: Re: [GioF71/tidal-connect] Topping E30 II (Issue #183https://github.com/GioF71/tidal-connect/issues/183) Hello, are you using a Raspberry Pi5? Another user had the same issue as yours here<#173https://github.com/GioF71/tidal-connect/issues/173> and he solved it (follow this linkhttps://forums.raspberrypi.com/viewtopic.php?t=358453#p2149491). Let me know if this helps! — Reply to this email directly, view it on GitHub<#183 (comment)https://github.com/GioF71/tidal-connect/issues/183#issuecomment-2178330124>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBOXNB7QI26PQTHYMQCVYLZIFMKPAVCNFSM6AAAAABJRWYOQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGMZTAMJSGQ. You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>Looks quite good all things considered (it's really old an unmaintained software...).
Does it play?
—
Reply to this email directly, view it on GitHubhttps://github.com/GioF71/tidal-connect/issues/183#issuecomment-2178589459, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBOXNCVWURKPK7GIHHJE53ZIF265AVCNFSM6AAAAABJRWYOQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGU4DSNBVHE.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

Just tested - plays perfect it seems😊
From: Giovanni Fulco @.>
Sent: Wednesday, 19 June 2024 14:33
To: GioF71/tidal-connect @.>
Cc: Josef Aschauer @.>; Author @.>
Subject: Re: [GioF71/tidal-connect] Topping E30 II (Issue #183)
Oh - is this normal? tidal-connect | Starting TIDAL Connect ... tidal-connect | STARTING TidalConnect services, version: 1.1.3 tidal-connect | ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to ope n slave tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.rear tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.center_lfe tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.side tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.hdmi tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.modem tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards .pcm.phoneline tidal-connect | Cannot connect to server socket err = No such file or directo ry tidal-connect | Cannot connect to server request channel tidal-connect | jack server is not running or cannot be started tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock tidal-connect | STARTED TidalConnect services. From: Giovanni Fulco @.> Sent: Wednesday, 19 June 2024 12:28 To: GioF71/tidal-connect @.> Cc: Josef Aschauer @.>; Author @.> Subject: Re: [GioF71/tidal-connect] Topping E30 II (Issue #183https://github.com/GioF71/tidal-connect/issues/183) Hello, are you using a Raspberry Pi5? Another user had the same issue as yours here<#173https://github.com/GioF71/tidal-connect/issues/173> and he solved it (follow this linkhttps://forums.raspberrypi.com/viewtopic.php?t=358453#p2149491). Let me know if this helps! — Reply to this email directly, view it on GitHub<#183 (comment)https://github.com/GioF71/tidal-connect/issues/183#issuecomment-2178330124>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBOXNB7QI26PQTHYMQCVYLZIFMKPAVCNFSM6AAAAABJRWYOQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGMZTAMJSGQ. You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>Looks quite good all things considered (it's really old an unmaintained software...).
Does it play?
—
Reply to this email directly, view it on GitHubhttps://github.com/GioF71/tidal-connect/issues/183#issuecomment-2178589459, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBOXNCVWURKPK7GIHHJE53ZIF265AVCNFSM6AAAAABJRWYOQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGU4DSNBVHE.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

Looks ok... closing this! Please comment here and/or open another issue if necessary.
Cheers


CommandParameter should be included in the transfer

I hacked it by replacing the storing of the ICommand in the Dictionary to keeping a reference to the original ToolbarItem instead.
readonly Dictionary<UIBarButtonItem, ToolbarItem> _buttonCommands = new Dictionary<UIBarButtonItem, ToolbarItem>();

In ViewWillAppear, replace the original adding to the dictionary line with:
_buttonCommands.Add(button,tool);
Then change this method to:
void ToolClicked(object sender, EventArgs args)
{
       var tool = sender as UIBarButtonItem;
       var command = _buttonCommands[tool].Command;
       command.Execute(_buttonCommands[tool].CommandParameter);
}

Seems to work ok.
FYI, thank you for this sample.  It was invaluable for learning how to work with native iOS through Xamarin.Forms... especially for this iOS newbie.

Thanks. If you would like to submit a pull request with that improvement, then I'd be happy to accept it into the sample.

Thanks! Your PR was merged.


Removes generated secret after completion of user pipelinerun

for git clone, we create a secret with credentials for accessing
repo which used to be on cluster even after completion of pipeline.
this removes the secret after completion of user pipeline during
cleanup.
Closes #253
Signed-off-by: Shivam Mukhade<EMAIL_ADDRESS>
Changes

Submitter Checklist

[x] ♽  Run make test lint before submitting a PR (ie: via pre-push github hook no need to waste CPU cycle on CI
[ ] 📖 If you are adding a user facing feature or make a change of the behaviour, please make sure to document it
[ ] 🧪 100% coverage is not a target but most of the time we would rather have a unit test if you make a code change.
[ ] 🎁 If that's something that is possible to do please make sure to check if we can add a e2e test.
[ ] 🔎 If there is a flakyness in the CI tests then make sure to get the flakyness fixed before merging or if that's not possible there is a good reason to bypass it.

See the developer guide for a bit more details.

Codecov Report

Merging #393 (030d091) into main (34bc00f) will decrease coverage by 0.17%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##             main     #393      +/-   ##
==========================================
- Coverage   70.63%   70.46%   -0.18%
==========================================
  Files          50       50
  Lines        2581     2600      +19
==========================================
+ Hits         1823     1832       +9
- Misses        579      589      +10
  Partials      179      179

Impacted Files
Coverage Δ

pkg/kubeinteraction/kubeinteraction.go
0.00% <ø> (ø)

pkg/kubeinteraction/secrets.go
48.97% <30.00%> (-6.03%)
:arrow_down:

pkg/pipelineascode/pipelineascode.go
60.36% <40.00%> (-0.39%)
:arrow_down:

pkg/consoleui/interface.go
0.00% <0.00%> (ø)

pkg/formatting/age.go
77.77% <0.00%> (+8.54%)
:arrow_up:

pkg/sort/pipelinerun.go
77.77% <0.00%> (+14.14%)
:arrow_up:

Continue to review full report at Codecov.

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

I think secrets has a pretty good coverage, we may add some tests checking the secrets that was created get auto deleted.

thanks 🙇🏻


Update README.md for the data capture codelab

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Description
Update README.md for the data capture codelab
Alternative(s) considered
NA
Type
Documentation
Screenshots (if applicable)
Checklist

[x] I have read and acknowledged the Code of conduct.
[x] I have read the Contributing page.
[x] I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
[x] I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
[x] I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
[x] I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
[x] I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

@williamito @omarismail94

Thanks both @omarismail94 and @williamito - ptal!

LGTM.
Apologies for the CLA error, I had the wrong default email address set for web-based edits and I don't think there's a way for me to fix it after the fact. You will probably need to request an override, or let me know how I can help.

@williamito this should be fixable - can you try following the details of the failed check, it'll lead you to a page with a link to sign the cla using your personal email. thanks!

@omarismail94 by the way this is all @williamito 's work. he did all the writing. all credits to him.


Rewrite classes to use composition with mixins

Currently some services don't support all methods inherited from BaseService (e.g.: the messages endpoint is a read-only endpoint).
A service class should be composed by only the pieces it needs and not inherits everything.

could look something like this (with JSDoc) http://terryweiss.github.io/docstrap/themes/cosmo/base.html#base
use ES6 syntax?
https://github.com/ericelliott/stampit
https://github.com/uhop/dcl


Error parsing TXT Hostname (for wildcard)

Caddy v2.2.0
OS : "Ubuntu 20.04.1 LTS (Focal Fossa)"
built from source using
xcaddy build --with github.com/caddy-dns/digitalocean
Now with caddy list-modules, I can see dns.providers.digitalocean in the list.
section of my Caddyfile
*.foo.bar {
   tls {
                dns digitalocean DO_AUTH_KEY
        }
   reverse_proxy * localhost:6000
}

Upon 'starting' the caddy or 'reloading' for that matter, (systemctl reload caddy)
I noticed that the plugin creates a TXT record in DigitalOcean as expected,
but the Hostname is _acme-challenge.foo.bar.foo.bar (Yes foo.bar twice appended to the end.)
I have *.foo.bar directed towards my server IP in addition to the auto-created TXT record.
What I aim to achieve :
I would like all request to anything.foo.bar be coming to my app running at localhost:6000 of my server.

Sep 29 21:47:55 ip-xxx-xx-x-xxx caddy[107299]: {"level":"info","ts":1601416075.4779391,"logger":"tls.issuance.acme.acme_client","msg":"trying to solve challenge","identifier":"*.foo.bar","challenge_type":"dns-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
Sep 29 21:49:59 ip-xxx-xx-x-xxx caddy[107299]: {"level":"error","ts":1601416199.1840057,"logger":"tls.obtain","msg":"will retry","error":"[*.foo.bar] Obtain: [*.foo.bar] solving challenges: waiting for solver *certmagic.DNS01Solver to be ready: timed out waiting for record to fully propagate; verify DNS provider configuration is correct - last error: <nil> (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/15856118/158773406) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)","attempt":9,"retrying_in":1800,"elapsed":6525.578472893,"max_duration":2592000}
Sep 29 22:20:00 ip-xxx-xx-x-xxx caddy[107299]: {"level":"info","ts":1601418000.9284205,"logger":"tls.issuance.acme.acme_client","msg":"trying to solve challenge","identifier":"*.foo.bar","challenge_type":"dns-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
Sep 29 22:22:04 ip-xxx-xx-x-xxx caddy[107299]: {"level":"error","ts":1601418124.8804,"logger":"tls.obtain","msg":"will retry","error":"[*.foo.bar] Obtain: [*.foo.bar] solving challenges: waiting for solver *certmagic.DNS01Solver to be ready: timed out waiting for record to fully propagate; verify DNS provider configuration is correct - last error: <nil> (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/15856118/158786846) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)","attempt":10,"retrying_in":3600,"elapsed":8451.274867278,"max_duration":2592000}
Sep 29 23:22:06 ip-xxx-xx-x-xxx caddy[107299]: {"level":"info","ts":1601421726.4575117,"logger":"tls.issuance.acme.acme_client","msg":"trying to solve challenge","identifier":"*.foo.bar","challenge_type":"dns-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
Sep 29 23:24:10 ip-xxx-xx-x-xxx caddy[107299]: {"level":"error","ts":1601421850.054532,"logger":"tls.obtain","msg":"will retry","error":"[*.foo.bar] Obtain: [*.foo.bar] solving challenges: waiting for solver *certmagic.DNS01Solver to be ready: timed out waiting for record to fully propagate; verify DNS provider configuration is correct - last error: <nil> (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/15856118/158809342) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)","attempt":11,"retrying_in":10800,"elapsed":12176.448999569,"max_duration":2592000}
Sep 30 02:24:11 ip-xxx-xx-x-xxx caddy[107299]: {"level":"info","ts":1601432651.6319113,"logger":"tls.issuance.acme.acme_client","msg":"trying to solve challenge","identifier":"*.foo.bar","challenge_type":"dns-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
Sep 30 02:26:16 ip-xxx-xx-x-xxx caddy[107299]: {"level":"error","ts":1601432776.6587107,"logger":"tls.obtain","msg":"will retry","error":"[*.foo.bar] Obtain: [*.foo.bar] solving challenges: waiting for solver *certmagic.DNS01Solver to be ready: timed out waiting for record to fully propagate; verify DNS provider configuration is correct - last error: <nil> (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/15856118/158888193) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)","attempt":12,"retrying_in":21600,"elapsed":23103.053177846,"max_duration":2592000}
Sep 30 08:26:18 ip-xxx-xx-x-xxx caddy[107299]: {"level":"info","ts":1601454378.4603336,"logger":"tls.issuance.acme.acme_client","msg":"trying to solve challenge","identifier":"*.foo.bar","challenge_type":"dns-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
Sep 30 08:28:24 ip-xxx-xx-x-xxx caddy[107299]: {"level":"error","ts":1601454504.1608217,"logger":"tls.obtain","msg":"will retry","error":"[*.foo.bar] Obtain: [*.foo.bar] solving challenges: waiting for solver *certmagic.DNS01Solver to be ready: timed out waiting for record to fully propagate; verify DNS provider configuration is correct - last error: <nil> (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/15856118/159049369) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)","attempt":13,"retrying_in":21600,"elapsed":44830.555289102,"max_duration":2592000}

my tls part of curl localhost:2019/config/
"tls": {
    "automation": {
      "policies": [
        {
          "issuer": {
            "challenges": {
              "dns": {
                "provider": {
                  "auth_token": "xxxx",
                  "name": "digitalocean"
                }
              }
            },
            "email"<EMAIL_ADDRESS>            "module": "acme"
          },
          "subjects": [
            "*.foo.bar"
          ]
        },
        {
          "issuer": {
            "email"<EMAIL_ADDRESS>            "module": "acme"
          }
        }
      ]
    }
  }

What am I doing wrong? Please help!!
Thanks in advance :)

I'm guessing this has something to do with https://github.com/libdns/digitalocean/pull/3

Might be related to https://github.com/libdns/dnspod/issues/2

Might be related to https://github.com/libdns/dnspod/issues/2

this issue is already fixed, but someone have to modify the go.mod files in both of this repo and caddy-dns/digitalocean for the fix to take effect

Any update on this issue? I'm in the same case, I need a wildcard certificate and I get the following errors:
2022/03/01 12:22:14.726	ERROR	tls.obtain	could not get certificate from issuer	{"identifier": "*.mydomain.com", "issuer": "acme.zerossl.com-v2-DV90", "error": "[*.mydomain.com] solving challenges: waiting for solver certmagic.solverWrapper to be ready: timed out waiting for record to fully propagate; verify DNS provider configuration is correct - last error: <nil> (order=https://acme.zerossl.com/v2/DV90/order/G6OqXZ5BuGGOM6Czs7Ta3A) (ca=https://acme.zerossl.com/v2/DV90)"}
2022/03/01 12:22:14.726	ERROR	tls.obtain	will retry	{"error": "[*.mydomain.com] Obtain: [*.mydomain.com] solving challenges: waiting for solver certmagic.solverWrapper to be ready: timed out waiting for record to fully propagate; verify DNS provider configuration is correct - last error: <nil> (order=https://acme.zerossl.com/v2/DV90/order/G6OqXZ5BuGGOM6Czs7Ta3A) (ca=https://acme.zerossl.com/v2/DV90)", "attempt": 1, "retrying_in": 60, "elapsed":<PHONE_NUMBER>23, "max_duration": 2592000}


⚠ ClamAV has degraded performance

In cb0e945, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 71 ms

Resolved: ClamAV performance has improved in 88b84c1.


Fix typo.

Thank you! Merged in: https://github.com/jonathanslenders/python-prompt-toolkit/commit/41fc7aa173d32b23cf016bae900e03061cc4b95d


Prevent TypeError on model.predict when using string labels

Hello!
Pull Request overview

Prevent TypeError on model.predict when using string labels.
Added a test case to show correct behaviour.

Details
When training with string labels (which is not strictly recommended, but possible), then model.predict broke as of the latest version. See the following script to reproduce:
Reproduction
from datasets import Dataset, load_dataset
from setfit import SetFitModel, SetFitTrainer

dataset = Dataset.from_dict(
    {"text": ["positive sentence", "negative sentence"], "label": ["positive", "negative"]}
)
model = SetFitModel.from_pretrained("sentence-transformers/paraphrase-albert-small-v2")
trainer = SetFitTrainer(
    model=model,
    train_dataset=dataset,
    eval_dataset=dataset,
    num_iterations=1,
)
trainer.train()
# This used to fail due to "TypeError: can't convert np.ndarray of type numpy.str_.
# The only supported types are: float64, float32, float16, complex64, complex128, int64, int32, int16, int8, uint8, and bool."
model.predict(["another positive sentence"])

This resulted in
Traceback (most recent call last):
  File "[sic]demo_string_issue.py", line 17, in <module>
    model.predict(["another positive sentence"])
  File "[sic]src\setfit\modeling.py", line 419, in predict
    outputs = torch.from_numpy(outputs)
TypeError: can't convert np.ndarray of type numpy.str_. The only supported types are: float64, float32, float16, complex64, complex128, int64, int32, int16, int8, uint8, and bool.

See also #329, which shows this same issue, but for evaluate (which calls predict behind the scenes).
Why do we get this error?
Consider the following lines in the predict method:
https://github.com/huggingface/setfit/blob/0420165a14431809a63ffc36f2342b6ed8190d0c/src/setfit/modeling.py#L414-L421
And consider the scenario with the (default) non-differentiable head and as_numpy=False. In this case, we reach line 419 and call torch.from_numpy. However, outputs has dtype <U8, where the U indicates that the type is a unicode string. There is no Torch tensor equivalent of this type, and thus we get the error shown above.
The fix
The fix is simply to prevent calling torch.from_numpy if the head outputs a numpy array with strings.
Note
The issue from #329 isn't exactly fixed, calling evaluate using string labels still fails, as the evaluate library does not support string labels in its accuracy metric. This can be counteracted by supplying a different metric, e.g. a function, that computes some metric with support of strings.

Tom Aarsen

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Test failures are unrelated, solved by #332.


Added checkpointing howto

This HOWTO showcases loading and saving models from checkpoints.

Should this be more "interesting" as in the imagenet example?

Codecov Report

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

@@           Coverage Diff           @@
##           master     #278   +/-   ##
=======================================
  Coverage   79.39%   79.39%
=======================================
  Files          34       34
  Lines        2252     2252
=======================================
  Hits         1788     1788
  Misses        464      464

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 b937bc9...375a8f9. Read the comment docs.

I think it's perfect that this is "uninteresting". Does this work though? I don't think you've imported checkpoints

Awesome, look good! Can you add a link from docs/howtos.rst? You can find more details on how to test docs locally in docs/README.md

After running make html and building the files in _build/html I don't see any changes in the howtos.rst. What should I be looking for?

You should change howto.rst to point to your new howto
On Mon, May 25, 2020, 6:37 PM Roland Gavrilescu<EMAIL_ADDRESS>wrote:

After running make html and building the files in _build/html I don't see
any changes in the howtos.rst. What should I be looking for?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/google/flax/pull/278#issuecomment-633646296, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAJFUTHGY3F5SZ4MQB4UN3RTKNETANCNFSM4NHIIZGQ
.

Thanks!


The plugin is too opinionated to be compatible with lib mode

I found the plugin is too opinionated to be compatible with lib mode while I am developing a tools lib for cesium. I just use it for testing in demo but it breaks the whole project.
I submit a issue to mark the problem.

There is no need to use the plugin in lib mode.
Actually, just set the CESIUM_BASE_URL correctly and remember to external cesium.
I am so dependent on the plugin that have forgot the vanilla usage 🤣 ...


First release of package

Major features in this release:

trait_pivot_wider() + tests + associated documentation
Brief README.Rmd + .md + associated GH action to render (not currently working completely - suspect it might be an issue of local vs remote branches?)
Codecoverage GH action
Documentation for test data so it doesn't throw warnings in check

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@ea89849). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #1   +/-   ##
=========================================
  Coverage          ?   32.00%
=========================================
  Files             ?        2
  Lines             ?       25
  Branches          ?        0
=========================================
  Hits              ?        8
  Misses            ?       17
  Partials          ?        0

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 ea89849...7b6a239. Read the comment docs.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@ea89849). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #1   +/-   ##
=========================================
  Coverage          ?   20.00%
=========================================
  Files             ?        3
  Lines             ?       40
  Branches          ?        0
=========================================
  Hits              ?        8
  Misses            ?       32
  Partials          ?        0

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 ea89849...7d9eaeb. Read the comment docs.

Readme is still an issue but doesn't really affect package structure! Closing this for now and moving on to other features until I can figure out GH actions and automated rendering


Feature request: set a cell 's background color

Question
As the title says ,  when I want to set a cell's background color ,  which method should I can use ?
write_with_format must set a data for a cell , but the cell that I want to change  it's background color  already had a data .
  worksheet.write_with_format(4, 0, 3.00, &decimal_format)?;

when I use the method write_blank, I just got a blank cell without the data .
Please help me ,Thanks!

when I want to set a cell's background color , which method should I can use ?

There isn't currently a way to do that. All of the current methods require that you set the data and format at the same time with one of the write_*_with_format() methods. However, it was/is planned to add methods that write the formatting separately from the data.
For the simple case of just adding cell data I can add that very soon. However, there is also the case where the user might want to merge the new format with the existing cell format. That will need a little bit more work/time.
If you are interested in the first/simpler use case I can add it and you can try it out.

That's great! I like to try it . In some case, I also need to read xlsx file and modify it. But in rust I  seems have to use two different crates rather then in Python that use openpyxl lib. em..... what ever , it's a good crate to use , and faster!

It is now possible (on main) to set a cell format separately from the data. Something like this:
use rust_xlsxwriter::{Format, Workbook, XlsxError};

fn main() -> Result<(), XlsxError> {
    // Create a new Excel file object.
    let mut workbook = Workbook::new();

    // Add a worksheet to the workbook.
    let worksheet = workbook.add_worksheet();

    // Add a format.
    let decimal_format = Format::new()
        .set_num_format("0.000")
        .set_background_color("#6495ED");

    // Write some data.
    worksheet.write(4, 0, 3)?;

    // Set the format.
    worksheet.set_cell_format(4, 0, &decimal_format)?;

    workbook.save("worksheet.xlsx")?;

    Ok(())
}

Output:

I'll roll this into a release in the next few days.

This is now upstream in v0.74.0.


Migrate to C.longlong where required

See https://github.com/Senzing/g2-sdk-go/issues/102

Pull requests:

https://github.com/Senzing/g2-sdk-go-base/pull/117


Feature Suggestion: Go to implementation

VSCode Version: 1.4.0
OS Version: OS X 10.11.6

Steps to Reproduce:

Press f12 on a function that is an interface type.
Editor will go to declaration of the function on the interface, rather than the implementation (as expected).

In Visual Studio (with resharper) this is a nice feature.

Side note, this is actually available in Visual Studio 2015 Update 1 without resharper. I believe a default shortcut of Ctrl+F12 was added in Update 2.

This would be really handy to navigate vscode's source faster, currently I have to use view references and navigate to the implementation in the peek view.

As I can see, tsserver has added support of this feature on their side (https://github.com/Microsoft/TypeScript/pull/10482), so why we still don't have it in vs code?

Thanks for pointing this out @kkovalevskiy! I've reassigned this and am very excited about the possibility of being able to use it soon 😉

@Tyriar Taking this back because it shouldn't be a TypeScript only solution but implemented in the spirit of other language features, like go to definition, find referenced etc

@mjbvz I have reopened this because it takes aways the Find References keyboard shortcut

Sorry, actually none-sense. I was confused with another extension I have

Just tested and it is not working. It still routed to the declaration file.

I also have problems here, going to declaration on another package works and I get to the d.ts file, but going to implementation I only get "No implementation found"

@FredrikFolkesson Please open new issues for any problems related to go to implementation. Include a small project and a list of  repo steps so that we can investigate
Thanks

Has a new issue been opened yet? The issue is still occurring

Sorry if I post here but I'm getting mad about this topic.
I can't stand the fact that visual studio code is not able to jump to the definition in a case like this:
foo = funtion(){
this.init();
}
foo.prototype.init = function(){
// code
}
if I press F12, Alt F12, Ctrl F12, Shift F12, Ctrl F12 or whatever on "this.init()" Visual Studio Code is not able to jump to the foo.prototype.init method.
Where am I wrong? In Visual Studio 2015 this works, also it works on sublime.
Thanks in advance

@mjbvz is this just a limitation of tsserver that it doesn't check the prototype? Does VS2015 use some other system?
// this.init() go to def doesn't works
var foo = function() {
	this.init();
};
foo.prototype.init = function() {
	// code
};

// this.init() go to def works
class Foo {
	constructor() {
		this.init();
	}

	init() {
	}
}

VS2015 used a different JavaScript analysis engine, not one the from typescript that we use and that VS2017 uses. That engine could handle some cases better than we can, but also had some performance issue and to my knowledge was not being actively maintained.
However the case that @3x1010 provided looks like bug in TS.  For the code:
function foo() {
	this.init();
}

foo.prototype.init = function () { /*...*/}

const a = new foo();
a.init()

Go to definition does work on a.init but not on this.init. I've opened https://github.com/Microsoft/TypeScript/issues/18171 to track this


Possible error in MR test

The decomposition function for MR, rewrite() reads:
fn rewrite(candidate: &BigUint) -> (u64, BigUint) {
    let mut d = candidate - 1_u32;
    let mut trials = 0;

    while d.is_odd() {
        d >>= 1;
        trials += 1;
    }

    (trials, d)
}

It seems that it should be while d.is_even() instead (otherwise it always returns trials = 0, and perhaps that's why miller_rabin() sets trials to at least 5), but if I make that change is_prime_tests() fails. The strange thing is that those tests fail because the MR test fails, but the Lucas test still passes - but that may be an effect of #16? I am not sure how those test numbers were obtained, perhaps you can shed some light on it.

Another strange moment is the following line in miller_rabin():
for _ in 1..trials - 1 {

trials here is such that candidate = odd_number * 2^trials (or at least it should be in a MR test; miller_rabin() sets it to at least 5, which obscures the bug). But with the limit set this way, test only goes up to odd_number * 2^(trials-1), so one check is skipped. As a result some of the strong pseudoprimes from https://oeis.org/A001262 are classified as primes (the first one being 3277, if force setting of trials to 5 is removed).


Array.liftFrom with length constraint

This is because constraints like apply to the input. In this case the input is string | Array.
The error message is wrong, though. It should say Bounded expression string | Array must be exactly one of number, string, Array or Date or something similar, so I'll tweak that.
In this case, the actual input is string | string[].
This can be solved by piping the string[] to a type that validates it is between length 2 and 4.

This error looks correct on the latest version so it seems like it's either your custom wrapper or an older version causing it to revert to Function.


Could not find a declaration file for module 'num2persian'.

the types of this module doesn't declared
so we can't use this package in our type-script projects

the types of this module doesn't declared so we can't use this package in our type-script projects

create type file (.d.ts) like num2persion.d.ts in types or src/types directory and place this declaration in it:
declare module 'num2persian';
now TypeScript should recognize the module 'num2persian' and the warning should disappear

Hi! I'm not using TypeScript in my project, but I’m still getting this error:
import Num2persian from "num2persian";
My program runs fine despite this error, but I’d like to know why it’s showing up or how to stop it. Thanks!


Add a Meta menu link under Admin>Apply that lists all of the categories the team label submissions with (right now its only Screening Statuses)

Closing this since it overlaps with #971


Typescript support

could you please add typescript support?

I am also hoping for a TypeScript implementation. I'm trying to implement it myself but, being a TypeScript newbie, I'm having a hard time.

Hi, sorry, I've got no experience with Typescript, so this won't be possible anytime soon. Unless someone submits an impeccable pull request I guess.


Installation fails on Windows 11

Hi!
I was using scream on my Windows 10 machine and it worked great. However, now I have a new PC that uses Windows 11 and I am not able to install scream anymore. This here is the output when I execute the .bat file with administrator privileges.

Device node created. Install is complete when drivers are installed...
Updating drivers for *Scream from C:\Users\Me\Downloads\Scream4.0\Install\driver\x64\Scream.inf.
devcon-x64 failed.

Is there anything I can do to make this work?
Thank you :)

I have the same problem.

It's erroring out because the certificate is expired. I worked around it on mine by setting my clock to 2022 before installing.

It's erroring out because the certificate is expired. I worked around it on mine by setting my clock to 2022 before installing.

Thank you very much, this helped! The error was a bit misleading though, as it didn't say that there was an issue with the certificate.
I will close this ticket. As a quick fix a hint in the documentation would be great :)


Assigning a function to sol::state object fails to compile in msvc. Any workaround?

The following fails to compile in msvc:
sol::state lua;
lua["foo"] = []() {};

It seems to be related to this function in sol.hpp (18235):
template <bool is_yielding, typename R, typename... A, typename Fx, typename... Args>
		void select_convertible(types<R(A...)>, lua_State* L, Fx&& fx, Args&&... args) {
			using dFx = std::decay_t<meta::unwrap_unqualified_t<Fx>>;
			using fx_ptr_t = R (*)(A...);
			constexpr bool is_convertible = std::is_convertible_v<dFx, fx_ptr_t>;
			if constexpr (is_convertible) {
				fx_ptr_t fxptr = detail::unwrap(std::forward<Fx>(fx));
				select<is_yielding>(L, std::move(fxptr), std::forward<Args>(args)...);
			}
			else {
				using F = function_detail::functor_function<dFx, false, true>;
				select_set_fx<is_yielding, false, F>(L, std::forward<Fx>(fx), std::forward<Args>(args)...);
			}
		}

Part of the build output:

error C2131: expression did not evaluate to a constant
[...]/sol.hpp(18240): note: failure was caused by non-constant arguments or reference to a non-constant symbol
[...]/sol.hpp(18240): note: see usage of 'std::is_convertible'

I assume it's a msvc bug (?)

Possible workarounds:
lua["foo"] = +[]() {};

void foo() {}

/* ... */

lua["foo"] = &foo;

I can't get it to compile on VS 2022 with C++20 (I'm assuming it is a C++20 problem, because I used to compile the same code just fine on an old project/setup that was using C++17)


MKL not supported For Mac Osx

By following the steps in ReadMe.md we can end up with the error
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/neon/backends/mklEngine/mklEngine.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
while using python3.
ReadMe.md can be updated with the info that MKL is not supported For Mac Osx so while using python3 people should use -b cpu or -b gpu parameters(default is mkl).

@ZE0TRON Currently neon with Intel Architecture optimizations (w/ Intel MKL Integration) do not support MacOS -- although Intel Math Kernel Library (MKL) already supports MacOS.
The reason you saw the above was because neon by default download Linux MKL, while MacOS MKL is available from a similar URL https://github.com/01org/mkl-dnn/releases/download/v0.11/mklml_mac_2<IP_ADDRESS>71007.tgz  (you can change prepare_mkl.sh or download_mkl.sh) but compiling on MacOS that supports Clang OpenMP is probably the hurdle


Can't run demo project

Greatings!
I am getting following exception when I try to run demo project on android:
FATAL EXCEPTION: main
Process: com.sh1r0.caffe_android_demo, PID: 4572
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.sh1r0.caffe_android_demo-1/base.apk",
zip file "/data/app/com.sh1r0.caffe_android_demo-1/split_lib_slice_0_apk.apk",
zip file "/data/app/com.sh1r0.caffe_android_demo-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.sh1r0.caffe_android_demo-1/split_lib_slice_2_apk.apk",
zip file "/data/app/com.sh1r0.caffe_android_demo-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.sh1r0.caffe_android_demo-1/split_lib_slice_4_apk.apk",
zip file "/data/app/com.sh1r0.caffe_android_demo-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.sh1r0.caffe_android_demo-1/split_lib_slice_6_apk.apk",
zip file "/data/app/com.sh1r0.caffe_android_demo-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.sh1r0.caffe_android_demo-1/split_lib_slice_8_apk.apk",
zip file "/data/app/com.sh1r0.caffe_android_demo-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.sh1r0.caffe_android_demo-1/lib/x86,
/vendor/lib, /system/lib]]] couldn't find "libcaffe.so"
                       at java.lang.Runtime.loadLibrary(Runtime.java:367)
                       at java.lang.System.loadLibrary(System.java:1076)
                       at com.sh1r0.caffe_android_demo.MainActivity.<clinit>(MainActivity.java:57)
                       at java.lang.Class.newInstance(Native Method)
                       at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
                       at android.app.ActivityThread.-wrap11(ActivityThread.java)
                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
                       at android.os.Handler.dispatchMessage(Handler.java:102)
                       at android.os.Looper.loop(Looper.java:148)
                       at android.app.ActivityThread.main(ActivityThread.java:5417)
                       at java.lang.reflect.Method.invoke(Native Method)
                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

I was builded project as as described here and already checked all similar issues but not successfully. I was running app on lollipop 5.1 API 21 and marshmallow 6.0 API 23 also I tried to push manually that file and added into app/build.gradle this:
splits {
        abi {
            enable true
            reset()
            include 'x86', 'armeabi-v7a'
            universalApk true
        }
    }

But still got error.
Os - Parrot Os(based on debian);
Cmake version 3.7.2
Also I would like to know how exactly I can build for older devices with API below 23 ?
Regards!

What's your target abi?

@sh1r0 armeabi-v7a

Have you build caffe-android-lib with ANDROID_ABI="armeabi-v7a-hard-softfp with NEON"? Currently, only libs for abi x86_64 and arm64-v8a are pre-built and included in this project.

@sh1r0 Sorry for a silly question, how exactly I can do this? I tried to create Application.mk in the folder app/src/main/jni with
APP_ABI := armeabi armeabi-v7a x86 x86_64 mips
but still get an error

@KirilaMenski caffe-android-lib is not integrated in this demo project, please refer to https://github.com/sh1r0/caffe-android-lib#build for building instructions.

@sh1r0 I was alreaddy installed it but still not working. Anyway thanks for the help

@KirilaMenski Did you get any errors when building caffe-android-lib?

@sh1r0 Nope it was building perfectly

Hi @KirilaMenski, please refer to the latest commit of caffe-android-lib (https://github.com/sh1r0/caffe-android-lib/commit/b9b0ba7deae5e0c298af9ffe78feec1c0567ee91), I've added docker support for building the project.

Close as inactivity.


Remove redirected files

Fixes #1954
@mairaw I trust the report is correct and removed the offending files. Let me know if you need additional checks before you merge this.

I'm trusting that who did the redirects did that correctly 😄 but might be good to double check.

I'm trusting that who did the redirects did that correctly

Yeah ... well tbh ... I don't feel good about throwing you under the bus if things go badly either! :grinning:
Let's WIP so I can take a closer look. I'll ping ya later on it.

"It's as I said, Mister Spock. Inventory registers every torpedo." - Montgomery 'Scotty' Scott (James Doohan) Star Trek VI: The Undiscovered Country ©1991 Paramount Pictures
All torpedos ... er ... redirect topics ... accounted for. We're good. :+1:


Layout/AccessModifierIndentation requires odd indentations

To make Layout/AccessModifierIndentation to pass, I need to write code with odd indentation levels.

Expected behavior
I don't expect any violations for the snippets below.
Actual behavior
There are violations.
Steps to reproduce the problem
Example 1
Existing code
RSpec.describe Params do

  klass = Class.new(Params) do
    attr_reader :params

    private def export # this is where the violation happens
      super.select { |k, _| k.to_s.start_with?("f") }
    end
  end

  # ...
end

Code that satisfies Layout/AccessModifierIndentation

RSpec.describe Params do

  klass = Class.new(Params) do
    attr_reader :params

            private

    def export
      super.select { |k, _| k.to_s.start_with?("f") }
    end
  end

  # ...
end

Example 2
Actual code
RSpec.describe "..." do
  let(:action) do
    Class.new do
      include Hanami::Action

      prepend(Module.new {
        def _run_before_callbacks(params)
        end
        private :_run_before_callbacks
      })
    end.new
  end

# ...
end

Code that satisfies Layout/AccessModifierIndentation, BUT it leads to a violation of Layout/IndentationConsistency
RSpec.describe "..." do
  let(:action) do
    Class.new do
      include Hanami::Action

      prepend(Module.new {
        def _run_before_callbacks(params)
        end
                private :_run_before_callbacks
      })
    end.new
  end

# ...
end

RuboCop version
$ rubocop -V
0.57.0 (using Parser <IP_ADDRESS>, running on ruby 2.4.3 x86_64-darwin16)

//cc @brandonweiss

@brandonweiss Thanks for getting back.

AFAIK these meta-programming examples are the only ones where I get the Layout/AccessModifierIndentation violations.
I don't have any configuration for Layout/AccessModifierIndentation and Style/AccessModifierDeclarations. For now they are disabled via configuration file because of these failures.

To use the EnforcedStyle: inline for Style/AccessModifierDeclarations isn't possible because the team style is to use private inline, but as a group modifier. The examples posted here are an exception.

Anyway, even enabling the inline style, I still get a Layout/AccessModifierIndentation violation for the cases posted here.

@jodosha I'm confused as to what you mean… when you say you “don’t have any configuration” for those cops, do you mean like, now you don't, because you disabled them? Or do you mean before you didn't have an explicit configuration set? Because if the cops are enabled then they are “configured” with the defaults. So you were using the defaults?
I’m not sure what “the team style is to use private inline, but as a group modifier” means? Can you explain and give an example?

@brandonweiss Let me explain: by upgrading to 0.57.0 there are "implicit" settings that the rubocop gem ships. So I tried with default settings, and got the failures described by this ticket.
Because we use Rubocop in our CI, in order to avoid build failures, I disabled these two cops in our local .rubocop.yml.

I’m not sure what “the team style is to use private inline, but as a group modifier” means? Can you explain and give an example?

The default team style is:
class Foo
  def call(input)
  end

  private

  def a_private_method
  end
end

I mentioned this, because it prevents us to Style/AccessModifierDeclarations with inline.

I just ran into this as well. For me, this occurs with:
Layout/AccessModifierIndentation:
  EnforcedStyle: outdent

Style/AccessModifierDeclarations:
  Enabled: false

The code where issues occur is for meta programmed methods (changing a parent class / module method access or for methods defined via alias_method). The team uses group style normally, but for these single methods the modifier is indented to be inline with regular method code b/c it is not defining the start of a group:
module SomeModule
  include AnotherModule

  alias_method :another_name, :orig_name
  module_function :another_name # violation happens here

protected

  def any_protected_method
    # ...
  end
end

I ran into this as well now with the inverse of @cupakromer :
Layout/AccessModifierIndentation:
  EnforcedStyle: indent

Style/AccessModifierDeclarations:
  EnforcedStyle: inline

This incorrectly outdents:
                    doc.to_xml
                  end

-                 private def root_xpath
-                   r = self.class.root_xpath
-                   raise "#{self.class}.root_xpath is not defined!" unless r
-                   r
-                 end
+    private def root_xpath
+      r = self.class.root_xpath
+      raise "#{self.class}.root_xpath is not defined!" unless r
+      r
+    end

And this one

 module MyModule
   class MyClass
-    private def prepare_transaction(tb, record)
-      tb.set_metadata(settlement: record.id)
+  private def prepare_transaction(tb, record)
+    tb.set_metadata(settlement: record.id)

I tried to fix this in #6573. Can you double check if that fixes the issue for you?

That means it's working, right?

That means it's working, right?

Yep! For my case. Thank you.


Error on typings

Hey there,
Since this morning I got an error when I start my project after updating my node modules
ERROR  ERROR in /var/www/node_modules/vue-apollo/types/vue-apollo.d.ts(13,28):
Cannot find module 'apollo-client/util/Observable'.
Seems like Observable is now inside lib/util
Thanks in advance

Same for me :-(

Same for me :-(

Great thing not being alone ! I'll keep you updated, hope somebody has an answer

Same for me :-(

If you are using yarn you can fix this temporary with : "resolutions": {     "apollo-client": "2.6.8"   }

I've been getting this error recently as well and it's preventing deployments to Amplify.
`/node_modules/vue-apollo/types/vue-apollo.d.ts
13:28 Cannot find module 'apollo-client/util/Observable'.
11 | } from 'apollo-client'
12 | import { FetchResult } from 'apollo-link'

13 | import { Observable } from 'apollo-client/util/Observable'
|                            ^
14 | import { ApolloProvider, VueApolloComponent } from './apollo-provider'
15 | import {
16 |   VueApolloQueryDefinition,
Version: typescript 3.8.3`

This morning I performed an install and the file structure has reverted back so the src folder is no longer there.

rm -Rf node_modules && rm package-lock.json && npm install fixed it for me

You can fix it and serve a PR


Gradle dependency causes AndroidManifest errors

After I install this dependency, I'm getting some AndroidManifest issues (Android 1.2.2 - Gradle tools 1.2.3).
Error:(11, 9) Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:11:9
Error:(13, 9) Attribute application@theme value=(@style/AppTheme) from AndroidManifest.xml:13:9
is also present at com.github.Todd-Davies:ProgressWheel:1.0:14:9 value=(@android:style/Theme.NoTitleBar)
Suggestion: add 'tools:replace="android:theme"' to  element at AndroidManifest.xml:8:5 to override

Also, I think this is fixed by putting:
tools:replace="android:theme, android:icon"
as the first line in the application tag in AndroidManifest, however, a dependency shouldn't cause manifest problems - might need to replace the progress wheel manifest

Hi I have the same issue and tools:replace="android:theme, android:icon" in the application of of the manifest didn't help.

Added tools:replace="android:theme,android:icon" in the application tag of my AndroidManifest, but this cause the app ic_launcher icon to be the one of the library.

Same issue here :(

same goes here

Same issue here.

Same here :disappointed:

Same here...

@Todd-Davies I'm experiencing same issue. Can you please let me know if you have got a solution?


tunnel.go from k8s package seems to be broken

One of the imports from "https://github.com/gruntwork-io/terratest/blob/master/modules/k8s/tunnel.go" is "k8s.io/kubernetes/pkg/kubectl/generate". But the "generate" package seems to be moved to staging by kubernetes folks and this dependent package is not coming while building terratest code in our project. This has broken the terratest. Can you provide any solution for this?

I am looking into this now. Can you try switching the terratest reference in your dep Gopkg.toml to branch = "yori-fix-more-dep-issues" and see if that works for you?

Hi Yori,
We are facing below issue after using your branch -
[[constraint]]
branch = "yori-fix-more-dep-issues"
name = "github.com/gruntwork-io/terratest"
[[constraint]]
branch = "release-1.12"
name = "k8s.io/api"
[[constraint]]
branch = "release-1.12"
name = "k8s.io/apimachinery"
[[constraint]]
branch = "release-9.0"
name = "k8s.io/client-go"

region-override: Could not introduce github.com/gruntwork-io/terratest@region-override, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
rileykarson-gcp-oslogin: Could not introduce github.com/gruntwork-io/terratest@rileykarson-gcp-oslogin, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
terraform12: Could not introduce github.com/gruntwork-io/terratest@terraform12, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
upgrade12: Could not introduce github.com/gruntwork-io/terratest@upgrade12, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
use-my-ssh-keys: Could not introduce github.com/gruntwork-io/terratest@use-my-ssh-keys, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
yori-fix-more-dep-issues: Could not introduce github.com/gruntwork-io/terratest@yori-fix-more-dep-issues, as it has a dependency on k8s.io/api with constraint a33c8200050fc0751848276811abf3fc029b3133, which has no overlap with existing constraint release-1.12 from (root)
yori-temp: Could not introduce github.com/gruntwork-io/terratest@yori-temp, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
yori-temp-2: Could not introduce github.com/gruntwork-io/terratest@yori-temp-2, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
yori-temp-72: Could not introduce github.com/gruntwork-io/terratest@yori-temp-72, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
yori-temp-75: Could not introduce github.com/gruntwork-io/terratest@yori-temp-75, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.

If you look at the error log, you will see:
yori-fix-more-dep-issues: Could not introduce github.com/gruntwork-io/terratest@yori-fix-more-dep-issues, as it has a dependency on k8s.io/api with constraint a33c8200050fc0751848276811abf3fc029b3133, which has no overlap with existing constraint release-1.12 from (root)

This is saying that the specific version of k8s.io/api specified by terratest is incompatible with the constraints your project is setting (which is to use branch release-1.12). You need to remove all the other k8s related constraints you have in your Gopkg.toml. Those are all pulled in as transitive rules from terratest.

FYI https://github.com/gruntwork-io/terratest/releases/tag/v0.18.2 has been released with the changes in yori-fix-more-dep-issues.
I'll keep this open until I have confirmation from either of you that the new version has resolved your issues!

Tried as per your suggestion but still facing below issues, Now i kept only teratest in the .toml file
[[constraint]]
branch = "yori-fix-more-dep-issues"
name = "github.com/gruntwork-io/terratest"
pull-request-340: Could not introduce github.com/gruntwork-io/terratest@pull-request-340, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
pull-request-343: Could not introduce github.com/gruntwork-io/terratest@pull-request-343, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
pull-request-344: Could not introduce github.com/gruntwork-io/terratest@pull-request-344, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
region-override: Could not introduce github.com/gruntwork-io/terratest@region-override, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
rileykarson-gcp-oslogin: Could not introduce github.com/gruntwork-io/terratest@rileykarson-gcp-oslogin, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
terraform12: Could not introduce github.com/gruntwork-io/terratest@terraform12, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
upgrade12: Could not introduce github.com/gruntwork-io/terratest@upgrade12, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
use-my-ssh-keys: Could not introduce github.com/gruntwork-io/terratest@use-my-ssh-keys, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
yori-fix-more-dep-issues: Could not introduce github.com/gruntwork-io/terratest@yori-fix-more-dep-issues, as it has a dependency on k8s.io/api with constraint a33c8200050fc0751848276811abf3fc029b3133, which does not allow the currently selected version of kubernetes-1.9.9-beta.0
yori-temp: Could not introduce github.com/gruntwork-io/terratest@yori-temp, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
yori-temp-2: Could not introduce github.com/gruntwork-io/terratest@yori-temp-2, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
yori-temp-72: Could not introduce github.com/gruntwork-io/terratest@yori-temp-72, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.
yori-temp-75: Could not introduce github.com/gruntwork-io/terratest@yori-temp-75, as it is not allowed by constraint yori-fix-more-dep-issues from project k8stests.

Can you share your entire Gopkg.toml file? I'll try to reproduce and figure out your issues. Something is still pulling in k8s.io/api as a transitive dependency...

I am also having this problem using go modules. It was working perfectly using just the Terraform module but once I added K8s it fails to download the dependancies
package test

import (
	"testing"

	"github.com/gruntwork-io/terratest/modules/k8s"
	"github.com/gruntwork-io/terratest/modules/terraform"
	"github.com/stretchr/testify/assert"
)

export GO111MODULE=on
go mod init example.com/test
go test > go-mod.log 2>&1

go-mod.log
I tried your patch but it still failed
go get -v github.com/gruntwork-io/terratest/modules/k8s@98a6957 > go-mod-98a6957.log 2>&1

go-mod-98a6957.log

FYI we don't support go modules yet. See and track https://github.com/gruntwork-io/terratest/issues/345

And https://github.com/gruntwork-io/terratest/pull/264 for the relevant discussion on why we are waiting for Go 1.13.

Thanks heaps sorry I was struggling getting dep to work as it turns out my work network was blocking it 😔so I was finally was able to get dep setup and working correctly and all my k8s tests are now running correctly using v0.18.3.
Sorry again and thanks for all your tolling.
[[constraint]]
  name = "github.com/gruntwork-io/terratest"
  version = "0.18.3"

Understandable. dep has been difficult to work with the Kubernetes packages since they don't officially support it so I have had to hard code the transitive dependencies. Once we are ready to migrate to go modules, all of this should be significantly easier.

I'm having the same issue. However,I'm not even importing k8s modules.
All I'm doing is
go get  github.com/gruntwork-io/terratest/modules/terraform
go get  github.com/gruntwork-io/terratest/modules/test-structure
It is throwing the error
package k8s.io/kubernetes/pkg/kubectl/generate: cannot find package "k8s.io/kubernetes/pkg/kubectl/generate"

This is because the terratest code is referencing the kubernetes libraries and go is not able to independently compile the individual packages (it tries to compile the whole repo). Right now you have to use dep if you want to use terratest.

We are no longer dependent on kubernetes core for tunnel.go. This should no longer be a problem starting with v0.19.2


initial implementation of conda history parsing

@marimeireles I had to rebase the PR because we pushed some of the files from the other PR to master already.
What's missing in this PR are functions to modify the history.
The history records all actions that conda / mamba did on a specific prefix such as installing or removing a package.
One needs to distinguish packages that are installed on user request (those are the "specs"), and just installed packages.
What we need now is to have a function where we can pass in new specs (packages that were asked to be installed, removed or neutered), and where we can give a list of newly installed and newly deleted packages and then write them out to the History file in the same format as conda does:
==> 2020-04-24 15:06:47 <==
# cmd: /home/wolfv/miniconda3/bin/mamba install pytorch -c defaults
# conda version: 4.8.3
+conda-forge/linux-64::ninja-1.10.0-hc9558a2_0
+defaults/linux-64::_pytorch_select-0.2-gpu_0
+defaults/linux-64::blas-1.0-mkl
+defaults/linux-64::cudatoolkit-10.1.243-h6bb024c_0
+defaults/linux-64::cudnn-7.6.5-cuda10.1_0
+defaults/linux-64::intel-openmp-2020.0-166
+defaults/linux-64::mkl-2020.0-166
+defaults/linux-64::mkl-service-2.3.0-py37he904b0f_0
+defaults/linux-64::pytorch-1.4.0-cuda101py37h02f0884_0
# update specs: ['pytorch']

The interface can probably look something like:
History
{
...

add_entry(const std::vector<std::string>& update_specs, const std::vector<std::string>& remove_specs, ..., )
{
}

}

Ah the cmake of the experiment has to add two files (if you are using explicit C++ files now):
	${CMAKE_SOURCE_DIR}/../src/history.cpp
	${CMAKE_SOURCE_DIR}/../src/match_spec.cpp
	${CMAKE_SOURCE_DIR}/../src/url.cpp

@marimeireles I just merged the branch so you can also work from master on the missing bits :)


Graphs not rendering expressions

I ran into an issue similar to this before, but now I don't have a fix for it.
I hadn't taken a look at Promdash for a while and when I took a look today, none of the graphs had any metrics. This made sense to me because a lot of exporter ports had changed so I tried updating one of the graphs with the new ports. Still nothing. Tried cloning the Dashboard. Still nothing. Tried creating a new dashboard with the same expressions. Still nothing.
I know the expressions are right because they work in the server graph creator and the exporters are all healthy, so it must be something with Promdash.
I took a look at the JSON of my dashboard and the only thing that seems like it would matter is the serverID, but I don't know what this corresponds to or if I can change it.
Any ideas?

The ServerID corresponds to the list in the "Servers" tab – check that that list is correct? There have also been issues with trailing slashes in the past. What version are you using?
Also, try the breakout link next to the expression (not the widget permalink), it should take you to your Prometheus and this might give a hint as to what is wrong.

Checking for errors in the dev console is also helpful for diagnosing.

Building PromDash from the latest Docker image, it does manage to query, but the expression dialog looks screwed up (scrollbar and broken autocomplete HTML element):

@stuartnelson3 do you have any context on these? Probably part of the bootstrap 3.3.5 update?

(I opened a new issue for that: https://github.com/prometheus/promdash/issues/453)

Thanks for the quick responses! This is why I love Prometheus :)
I don't know what version I'm using. Whatever was the latest docker tag 8 weeks ago.
@matthiasr it looks like on the Servers tab the only server there has a Name of "1". Where would serverID be getting '13' from?
The breakout link works and shows the graph I want.
Expression json:
{
            "id": 0,
            "serverID": 13,
            "axisID": 1,
            "expression": "sum(rate(node_cpu{job='node',instance='<IP_ADDRESS>:33141',mode='system'}[1m])) * 100 / count(count by (cpu)(node_cpu{job='node',instance='<IP_ADDRESS>:33141'}))"
          },

Ok, if the breakout view shows the graph you want, then we know already it's no problem related to the server ID.
Any JavaScript errors visible in the browser's debug console?

@juliusv a whole bunch of these errors:
Mixed Content: The page at 'https://monitoring.company.org/load-testing-clone' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://<IP_ADDRESS>:9090/api/query_range?end=0&expr=sum(rate(node_cpu%7Bjob…Bjob%3D%27node%27,instance%3D%27<IP_ADDRESS>:33141%27%7D))&range=1800&step=9'. This request has been blocked; the content must be served over HTTPS.

I have ssl being terminated at my ELB.

Ah, damn. So you need to either terminate both PromDash and Prometheus servers with HTTPS or both HTTP. See also: https://developer.mozilla.org/en-US/docs/Security/MixedContent/How_to_fix_website_with_mixed_content
There's nothing really that PromDash can do otherwise, as it's a browser-enforced security mechanism.

You could also give this a try: http://wiki.sln.suny.edu/display/SLNKB/Enabling+mixed+content+in+Mozilla+Firefox

@juliusv alright, so does that mean specifying my SSL certs in my nginx backend as well as the ELB?

You need to make your Prometheus reachable over SSL. I take it your setup is
Internet -> ELB (SSL termination) -> nginx (vhost routing)?
I think you don't need SSL in nginx. Just add a location or vhost in nginx
to proxy to :9090. In other words, make Prometheus available
at https://monitoring-pronetheus.company.org/ or
https://monitoring.company.org/-/prometheus/ and change the PromDash server
URL to point at that.
I'm not sure what the auth situation is in this case.

@matthiasr that worked! I had the server name as the public IP before. Changed it to https://monitoring-prometheus.company.org/ and updated the expressions to use the new server.
Thanks!


Schema versioning and programmatic upgrade with flyway

Currently, all the necessary schema migrations are kept in one file. Instead of this approach, we should consider breaking down each SQL statements into their respective files and use a framework like liquibase to do SQL migration. With this approach, any new changes that have to be introduced to the SQL entities could be versioned and could be applied on top of an existing database depending upon how far behind the existing database from the latest version.

Thanks @raju-saravanan for addressing this issue.


From missing modules cell output, create a link to install python modules in the current kernel

Currently we can create some confusion when we have a notebook or the interactive window open and a different python selected in VSCode, especially since we name our kernels the same as interpreters. One mitigation for this could be to allow users to install missing python modules directly from our UI. For module not found results we could have a link in the output to install those modules into the current kernel environment for that notebook.

Dupe of https://github.com/microsoft/vscode-python/issues/4580


[Mapping] Start initial migration for Locations model

Description

Open for discussion!

Create a model for storing Locations with multiple levels of specificity as discussed previously. I will add the cleaned up db/schema.rb file once before merging.

Why do we need to store different broken down levels of regions for each location?
The main reason for wanting to store explicit levels (country/state/subdivision/city) is for efficient filtering and also strict compliance before storing anything (e.g. never storing belong state level on sensitive samples).

Why do we have these particular 4 levels + coordinates?
This was a simplification of all the types of potential administrative levels (https://wiki.openstreetmap.org/wiki/Key:place#Relationship_with_admin_level) and also the geosearch providers will return these levels in almost all cases, so we are offloading most of the burden of categorization onto their APIs. These will not be perfect categorizations for every location but they should work well enough for our uses.

Why not have additional columns country_id/state_id/subdivision_id/etc. referencing other entries in the table?
If the user added a new entry for MyCountry|MyState|MySubdivision|MyCity, you'd need to do a query to fill in MyCountry with the existing country entry id if any, or disambiguate between two subdivisions named MySubdivision for the sake of assigning the right unique ID. I don't think these additional columns would yield much benefit over composite queries over country_name|state_name|etc, but I could be convinced otherwise..

How will you query between ambiguous names, e.g. 31 counties in the U.S. named Washington County?
We will assume that 'taxonomically' there are no duplicates with identical upwards lineages. E.g. that there are not multiple Washington Counties in the same state and country. So queries will need to specify their ancestors.

Why set the fields to default empty string and not null?
This simplifies some queries because "!=" queries would not return null values, even though you might expect them to logically.

Is there not a unique place identifier like OpenStreetMaps (OSM) IDs that we can store?
Unfortunately OSM IDs are not stable so we should not rely on them ("the element node 1 represents has changed many times: tree in Germany (v13), buoy in the Atlantic Ocean (v15), memorial stone in London (v17), bike rental in Edinburgh (v19)"). Also depending on the geosearch API, we may get unique IDs from the API, but I would rather not couple ourselves to a particular geosearch provider in that way. https://help.openstreetmap.org/questions/66577/how-often-the-osm_id-was-unsolicitedly-changed-what-the-risk-before-2020 and https://gis.stackexchange.com/questions/279755/can-i-depend-on-the-country-city-ids-of-osm

How will we associate these with the actual Metadata/MetadataFields/Samples?
Open to suggestions but I plan to special-case MetadataField base_type #3 and have the Metadatum entry have a "location_id" pointer value.

Test and Reproduce

Pull the branch, run docker-compose run web "rake db:migrate", see the migration run. Reload and make sure the app works. Run docker exec -ti idseq-web_web rails console development or similar. Type Location.all in the console and see #<ActiveRecord::Relation []>.

I agree with storing country_name in each location, instead of having a country_id pointer. Less complicated queries.
Regarding "How will you query between ambiguous names", it is a little sad. There totally might be multiple subdivisions in Washington named Washington County. I think we can rely on the lat/long to be unique. Maybe assume the lat/long is unique but the taxonomic lineage might not be?
Also, would it make sense to store a pointer in location back to sample_id? Or maybe have a many-to-one relationship between samples and locations? I'm not sure if that will make the querying easier, but it might be nice to have a direct way of knowing which samples have a given location.

For what purpose will this table be queried and what are the queries going to look like? In which cases is a new row going to be inserted into this table?

Also depending on the geosearch API, we may get unique IDs from the API, but I would rather not couple ourselves to a particular geosearch provider in that way.

If we are populate this table directly from some API in a one-to-one way, it would be nice to the have the external ID for traceability. I would just name the column apiname_id.

@MarkAZhang Actually I was going to hope that the lineage is unique, but there could be an additional constraint on the lat/lon (although that might be too specific if the data sources change). There are indeed no Washington Counties in the same state https://en.wikipedia.org/wiki/Washington_County
For querying I think yes we should have a many-to-one relationship for samples to locations so I think I will make a location_samples table (either here or later).

For what purpose will this table be queried and what are the queries going to look like? In which cases is a new row going to be inserted into this table?

Discussed offline with @cdebourcy . This table is for storing all our locations and we plan to have one entry per unique location. So "Uganda" would look like country_name=Uganda and the fields below it blank. Queries could look like "show me samples where the state is California" or "show me all the Location entries for this group of samples". Insertions will happen whenever someone selects an entry from the geosearcher results that we don't already have stored (based on matching each level).

^ going to add/rename a few columns based on these comments

If we are populate this table directly from some API in a one-to-one way, it would be nice to the have the external ID for traceability. I would just name the column apiname_id.

That sounds good to me. I will add it


[BuildSystem] Add support for a base environment.

This allows clients to have exact control over the environment used when
launching subprocesses, as well as individual control on a per-task basis
over whether or not that environment should be inherited or replaced by an
individual task.

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test


speedup server tests

https://github.com/siliconcompiler/siliconcompiler/actions/runs/9518802101

https://github.com/siliconcompiler/siliconcompiler/actions/runs/9519011599


Avoid inefficient usage of arraylist

Hi,
We find that there are ten ArrayList objects which are not manipulated by random access. Due to the memory reallocation triggered in the successive insertions, the time complexity of add method of ArrayList is amortized O(1). We notice that these objects are only used for traversal and the retrieval for the first or the last element.
This functionality can be implemented by LinkedList. Moreover, the insertion of LinkedList is strictly O(1) time complexity because no memory reallocation occurs.
We discovered this inefficient usage of containers by our tool Ditto. The patch is submitted. Could you please check and accept it? We have tested the patch on our PC. The patched program works well.
Bests
Ditto

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

这个场景LinkedList代替ArrayList不合适。


CSP Header Issues

Describe the bug
We're still having CSP header problems. This could be both on an app level (within our FE codebase) or an Azure level. Or both.
Impact on ReportStream
Errors thrown in production, scripts not loading properly.
Not properly tracking our website analytics.
Steps to reproduce
Steps to reproduce the behavior:

Go to https://reportstream.cdc.gov/
Open dev console
Scream

Suggestions from Joseph:

Update the CSP headers to allow Azure App Insights weird URL js.monitor.azure. . . . (make a ticket for devops)
Seems like Google Analytics is misconfigured in its settings on which domains are allowed, or we need to look into GA4 documentation to make the scripts work

Dev ops ticket here


ModuleNotFoundError: No module named axesusers

I've made the adjustments to my django settings file and am getting this message.  I do not see any reference anywhere to this module.  Any ideas?

Hi @skuflow! What are the adjustments you have made? What is the full error message? Have you tried searching for the error text in your project?

That’s the error.  I followed the setup steps here:
https://django-axes.readthedocs.io/en/latest/2_installation.html
axesuser is not in our code base.
Sent from my phone

On Dec 21, 2019, at 3:11 AM, Aleksi Häkli<EMAIL_ADDRESS>wrote:

Hi @skuflow! What are the adjustments you have made? What is the full error message? Have you tried searching for the error text in your project?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Have you checked your INSTALLED_APPS list for missing commas or typos?

Missing comma.   Thanks!
Sent from my phone

On Dec 22, 2019, at 1:31 PM, Aleksi Häkli<EMAIL_ADDRESS>wrote:

Have you checked your INSTALLED_APPS list for missing commas or typos?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Nice, closing the issue!


⚠ Bofrost.be has degraded performance

In 754d8cc, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1209 ms

Resolved: Bofrost.be performance has improved in 26d0685.


Removing legacy migrations

Summary
For next upcoming major release lines, we should consider removing legacy migrations in the codebase.
We should evaluate which migrations can be removed.
For now, the params migrations are what immediately come to mind for ibc core and apps.

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged/assigned
[ ] Estimate provided

Added tentatively to v10 milestone


Refactored the format in StarRocks.g4 and AstBuilder

What type of PR is this：

[ ] bug
[ ] feature
[ ] enhancement
[x] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

run starrocks_fe_unittest

[FE PR Coverage check]
:disappointed: fail : 169 / 221 (76.47%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/analysis/AlterClause.java
0
1
00.00%

:large_blue_circle:
com/starrocks/sql/ast/AstVisitor.java
1
3
33.33%

:large_blue_circle:
com/starrocks/sql/StatementPlanner.java
5
8
62.50%

:large_blue_circle:
com/starrocks/sql/parser/AstBuilder.java
152
196
77.55%

:large_blue_circle:
com/starrocks/sql/analyzer/AlterTableStatementAnalyzer.java
7
9
77.78%

:large_blue_circle:
com/starrocks/analysis/DropIndexClause.java
1
1
100.00%

:large_blue_circle:
com/starrocks/analysis/CreateIndexClause.java
3
3
100.00%

starrocks_fe_unittest

starrocks_fe_unittest

run starrocks_fe_unittest

[FE PR Coverage check]
:disappointed: fail : 189 / 250 (75.60%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/analysis/AlterClause.java
0
1
00.00%

:large_blue_circle:
com/starrocks/sql/ast/AstVisitor.java
1
6
16.67%

:large_blue_circle:
com/starrocks/analysis/AlterTableStmt.java
2
3
66.67%

:large_blue_circle:
com/starrocks/analysis/AlterSystemStmt.java
3
4
75.00%

:large_blue_circle:
com/starrocks/sql/parser/AstBuilder.java
167
218
76.61%

:large_blue_circle:
com/starrocks/sql/analyzer/AlterTableStatementAnalyzer.java
8
10
80.00%

:large_blue_circle:
com/starrocks/analysis/DropIndexClause.java
1
1
100.00%

:large_blue_circle:
com/starrocks/analysis/CreateIndexClause.java
3
3
100.00%

:large_blue_circle:
com/starrocks/sql/StatementPlanner.java
4
4
100.00%


Add JSDocs Explanation to the Spline Curve Prop

Minor update, simply explaining how to use the curve prop on Spline component to avoid confusion moving forward (I was the one who was confused lol).
Making users aware the curve needs to be imported via d3-shape

Thanks @itsonlyjames


[Bug] compatibility test for the nightly Ray image fails

Why are these changes needed?

Use HTTP request to verify serve deployment after the cluster recovers from a failure to fix https://github.com/ray-project/ray/issues/34799.

For Ray 2.1.0, containers require tens of seconds to become "READY" after the Pod is running. In addition, the serve deployment takes few seconds to be ready to serve requests after all containers are "READY".

With #1036, the worker Pods will not crash after the GCS server process is killed. Hence, the output of test_detached_actor_2.py may be different based on the actor is assigned to the head or a worker. test_detached_actor_1.py calls increment() twice, and test_detached_actor_2.py calls increment() once. Hence, if the actor is scheduled on a worker, the output of test_detached_actor_2.py should be 3. On the other hand, the output should be 1 if it is scheduled on the head Pod.

Set num-cpus: 0 to prevent the actor from scheduling on the head.
Update the assert function in test_detached_actor_2.py (assert(val == 3)).
Delete ray_namespace.

Update rayStartParams in ray-service.yaml.template. Worker Pod with node-ip-address: $$MY_POD_IP cannot connect to the head (See https://github.com/ray-project/kuberay/issues/805 for more details.)

Connect to GCS (ray.init()) rather than Ray client (10001) (#848).

[Update] When I use ray.init() instead of Ray client, the tests become very unstable.

(Bug? Ray 2.1.0) In some cases, HTTPProxy will not be created on the head Pod after the cluster recovers from a failure.
Experiments for 73b37b159c749377550775114b171a946734ece4
#!/bin/bash
for i in {1..25}
do
  RAY_IMAGE=rayproject/ray:2.1.0 python3 tests/compatibility-test.py RayFTTestCase 2>&1 | tee log_$i.txt
done

Run RayFTTestCase 25 times on my devbox.

test_detached_actor never fails.

test_ray_serve fails 6 times.

test_ray_serve_1.py * 5
^[[2m^[[36m(ServeController pid=643)^[[0m INFO 2023-04-28 01:32:33,683 controller 643 http_state.py:132 - Starting HTTP proxy with name 'SERVE_CONTROLLER_ACTOR:SERVE_PROXY_ACTOR-c82ea22161ab30914ebd453cc3bd00e7e2088203b1506c26dc98116c' on node 'c82ea22161ab30914ebd453cc3bd00e7e2088203b1506c26dc98116c' listening on '<IP_ADDRESS>:8000'
^[[2m^[[36m(ServeController pid=643)^[[0m INFO 2023-04-28 01:32:33,716 controller 643 http_state.py:132 - Starting HTTP proxy with name 'SERVE_CONTROLLER_ACTOR:SERVE_PROXY_ACTOR-cc6e7b1793a1f6e801f67f310ef39428d54e15c3ca140fcc193795fd' on node 'cc6e7b1793a1f6e801f67f310ef39428d54e15c3ca140fcc193795fd' listening on '<IP_ADDRESS>:8000'
^[[2m^[[36m(ServeController pid=643)^[[0m INFO 2023-04-28 01:32:33,725 controller 643 http_state.py:132 - Starting HTTP proxy with name 'SERVE_CONTROLLER_ACTOR:SERVE_PROXY_ACTOR-438634dbcfb7ea6edd2cc3fef2feaf02ae2df4c6198e7a17a3155f72' on node '438634dbcfb7ea6edd2cc3fef2feaf02ae2df4c6198e7a17a3155f72' listening on '<IP_ADDRESS>:8000'
^[[2m^[[36m(HTTPProxyActor pid=700)^[[0m INFO:     Started server process [700]
Traceback (most recent call last):
  File "/home/ray/anaconda3/lib/python3.7/site-packages/ray/serve/_private/api.py", line 241, in serve_start
    timeout=HTTP_PROXY_TIMEOUT,
  File "/home/ray/anaconda3/lib/python3.7/site-packages/ray/_private/client_mode_hook.py", line 104, in wrapper
    return getattr(ray, func.__name__)(*args, **kwargs)
  File "/home/ray/anaconda3/lib/python3.7/site-packages/ray/util/client/api.py", line 42, in get
    return self.worker.get(vals, timeout=timeout)
  File "/home/ray/anaconda3/lib/python3.7/site-packages/ray/util/client/worker.py", line 434, in get
    res = self._get(to_get, op_timeout)
  File "/home/ray/anaconda3/lib/python3.7/site-packages/ray/util/client/worker.py", line 462, in _get
    raise err
ray.exceptions.GetTimeoutError: Get timed out: some object(s) not ready.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "samples/test_ray_serve_1.py", line 15, in <module>
    handle = serve.run(MyModelDeployment.bind(msg="Hello world!"))
  File "/home/ray/anaconda3/lib/python3.7/site-packages/ray/serve/api.py", line 483, in run
    http_options={"host": host, "port": port, "location": "EveryNode"},
  File "/home/ray/anaconda3/lib/python3.7/site-packages/ray/serve/_private/api.py", line 245, in serve_start
    f"HTTP proxies not available after {HTTP_PROXY_TIMEOUT}s."
TimeoutError: HTTP proxies not available after 60s.
command terminated with exit code 1

test_ray_serve_2.py * 1
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ray/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/ray/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py", line 786, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/ray/anaconda3/lib/python3.7/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='<IP_ADDRESS>', port=8000): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fcabbf355d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "samples/test_ray_serve_2.py", line 23, in <module>
    retry_with_timeout(send_req, 180)
  File "samples/test_ray_serve_2.py", line 14, in retry_with_timeout
    raise err
  File "samples/test_ray_serve_2.py", line 9, in retry_with_timeout
    return func()
  File "samples/test_ray_serve_2.py", line 17, in send_req
    response = requests.get('http://<IP_ADDRESS>:8000', timeout=10)
  File "/home/ray/anaconda3/lib/python3.7/site-packages/requests/api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "/home/ray/anaconda3/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/ray/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ray/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/ray/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=8000): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fcabbf355d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
command terminated with exit code 1

The test_ray_serve_1.py's error message is from the link. The reason seems to be failing to get HTTPProxy actors which is similar to my observation above "(Bug? Ray 2.1.0) In some cases, HTTPProxy will not be created on the head Pod after the cluster recovers from a failure.". I will file an issue later, but the check seems to be legacy code.
Related issue number
Closes #1053
#848
Closes https://github.com/ray-project/ray/issues/34799
Checks

[ ] I've made sure the tests are passing.
Testing Strategy

[x] Unit tests
[x] Manual tests
[ ] This PR is not tested :(

cc @architkulkarni
test_ray_serve becomes much more flaky after #1036 because:
(1) In most cases, test_detached_actor and test_ray_serve will schedule tasks / actors on head Pod. However, this is not what we really want to test.
(2) Without #1036, all Pods in the cluster will crash (head Pod crashes once, each worker Pod crashes twice). With #1036, only head Pod will crash.
This PR relieves the flakiness, but it is still flaky. See the section "Experiments for https://github.com/ray-project/kuberay/commit/73b37b159c749377550775114b171a946734ece4" for more details. In GitHub Actions, it passes twice consecutively without any retry. That's why I think this PR is ready to review.

https://github.com/ray-project/kuberay/actions/runs/4828054257/attempts/1
https://github.com/ray-project/kuberay/actions/runs/4828054257?pr=1055


Update TodoReview.py

add filepaths arg for checking only some files

I might be missing something, but how is this different than the current paths argument? https://github.com/jonathandelgado/SublimeTodoReview#arguments

In the current version paths is dirpaths in Engine.
And according to TodoReviewCommand.run, we can

check current file,
check current opened files,
check files in project (window.folders())
check files in the FOLDERS in settings.include_paths

However, I need to check some specific files only. My project has many random named huge logs/reports so I want only check some config files and source files. The easiest way is to update my in-house sublime package to filter files before run_command('todo_review').

Yeah, this is what the args.path option is for. https://github.com/jonathandelgado/SublimeTodoReview/blob/master/TodoReview.py#L151
This is the same argument that we use when you right click something on the tree to only search a specific file/folder, this should do what you want.

thanks

I have tested and if I provide file paths (not dir path) to paths, TodoReview will fail since loop boday in os.walk() will never be reached.