redis client connections

Hi,
We have django-health-check installed on our Django website.
INSTALLED_APPS += [
...
    "health_check",
    "health_check.db",
    "health_check.contrib.celery",
...

There are db and celery checks.
Last week, I set up external monitoring so every 5 minutes the health check is contacted. The checks were all passing.
After 5 days, an outage. It appears that every health check opens a connection to the redis memorystore and does not close it. There were 44,000 open connections to redis. It can crash the app.
What is unknown, is whether this bug is specific to django-health-check, and doesn't affect the rest of the website, or if it has uncovered a problem of the website itself that could show up later with many visitors.
Usually databases have connection pooling that limits the number of connections. What about celery and redis?
Do you believe this would be a "general website issue", and not caused by django-health-check?
I disabled the frequent health checks. The client connections stabilized again, and stopped increasing.

Hey @sdarwin !
I would imagine we (both REVSYS and other django-health-check users) would have run into this with the celery check if it was in this library.  I spun through the code looking for any spot where it might be opening an ancillary connection to check on anything and I'm not spotting anything.
The redis check does open a connection, but in a context block that should drop the connection when it's done.
Also if the timing and days you mentioned were just estimates it would have opened 1440ish connections in that time frame and not 44k so I think something else is going on.  I have seen this issue before with Celery itself but I don't think it's health check related.  Easy way to test would be to remove the celery check for awhile and see if you redis connection count continues to rise.

See screenshot.
July 5 through July 10, increasing.
Then a maintenance event cleared all connections.  Returned to creating client connections until monitoring was disabled this morning, and it levels off, flatline.
5 minutes wasn't exactly right.   I created nagios checks (every 5 minutes) AND prometheus, which seems to default to 10 seconds!  That was the problem, at 10 seconds it would account for the 44k.
Will keep it this way until next week.   And then attempt to reintroduce nagios (5 minutes), without prometheus, since that must be a factor.


[#118468337] Add more approved buyer domains

Adds more approved buyer domains as listed on the spreadsheet of approved domains.
Alphabetised so that duplicates are easy to catch.
>> Chore on Pivotal

👍


Propagate changes into poseidon377

The status of this is that poseidon-parameters is now rewritten to use const generics, and compiles on the target embedded platform. There are individual todos in PR https://github.com/penumbra-zone/poseidon377/pull/53 tracking the next steps, which are to propagate those changes to poseidon-parameters through the remaining crates in the poseidon377 workspace.

done in https://github.com/penumbra-zone/poseidon377/pull/53
released in https://crates.io/crates/poseidon377/1.0.0


Error: Corpus_dir/vocab.json not found

Hi @jidasheng
I have been trying to run your implementation of the BiLSTM-CRF a couple of times but I keep getting an error.
On my terminal I executed
>$ python -m bi_lstm_crf corpus_dir --model_dir "model xxx"
and got the following error (See attached image below for full details)
ValueError: "corpus_dir/vocab.json" file does not exist
I've also tried >$ python3 -m bi_lstm_crf corpus_dir --model_dir "model xxx" but the same error persists.
I have not modified anything in the code and when I check inside "sample_corpus" the file "vocab.json" is there.
I am new to BiLSTM-CRF code but I have read the paper [2] and a few others on NER using BiLSTM-CRF. Is there something wrong that I'm doing? Please advise. Thanks!

Resolved

Could I ask how you solved this problem?


Unorganized view in email

Describe the bug
When I copy paste the mjml in live mjml editor, it works fine. https://mjml.io/try-it-live/By7xntAmH
But when I use google api's to send the email, the columns are unorganized, I mean they don't stack side by side but they rather position themselves one beneath the other. https://drive.google.com/file/d/1Zkv7VgbG53wu9anU6Q7GaWwB9Qdnak7U/view?usp=sharing
Any help on this would be appreciated.

Hi,
They most likely alter the HTML when sent, to confirm try to test with https://putsmail.com to confirm

Hi,
They most likely alter the HTML when sent, to confirm try to test with https://putsmail.com to confirm

Hey @iRyusa you were spot on with this, can you please suggest me how to overcome this issue since I'm bound to use Google APIs.

There's nothing we can do on MJML side to prevent this, you should open a ticket on google support if they have a way to send raw HTML.


beautiful accent colors and inline labels

Its super easy to generate new colors for the labels that bootstrap provides as a user of bootstrap so it might not be needed to include additional. What is the thoughts of the creators here? Should bootstrap provide the minimum it has today? Otherwise there is a lot of stunning colors in the variables.less files which you can create beautiful labels with,  pink, purple, orange etc.

I might be interpreting your question correctly, but Bootstrap's labels are basically just the CSS class '.label', which does all the work that makes it label-like. You can attach any additional background-color (or a gradient background, or whatever suits your fancy) on top of it to further customize it; that's what the various .label-x classes do. So you can just apply background-color: @pink; in LESS, and it'll turn it into a pink label.
I clearly can't speak for the creators, but like most things in Bootstrap, the default ones it provides today are for convenience purposes, as well as setting a standard that developers can adhere to.

Yes, @rizqidjamaluddin is correct. We provide the base ones for consistency across the toolkit and have made it easy enough to extend. If you'd like those other colors, it should be pretty easy to add them yourself. We've chosen not to add them to avoid overwhelming folks and creating non-semantic classes for each color.

@rizqidjamaluddin  i know it's as easy as that, but do all developers know? I think the documentation could embrace how easy it is to extend bootstrap rather than just be happy with the defaults.
For example mention how to extend stuff in the LESS documentation (or even create its own page for it) and point to it from each component. (How to create own button colors, how to create own labels, alerts, etc etc).

That's a fair issue; in some ways, the documentation isn't perfectly clean and we're expected to dig in with firebug or a console to see how to properly do things. But for LESS variables, it's pretty straightforward; Bootstrap lists us the variables, and it requires just basic knowledge of LESS to make use of them.
I do agree that more extensive documentation, probably down to a per-class basis, would be useful. It may not be a priority, though.


Some TCP Monitors Fail after updateing docker-ce to 5:26.1.4-1~debian.11~bullseye

⚠ Please verify that this question has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
I have TCP monitors that start failing after an upgrade to docker-ce 5:26.1.4-1~debian.11~bullseye. These same monitors work fine on docker-ce 5:25.0.5-1~debian.11~bullseye and if I force a downgrade back to 5:25.0.5-1~debian.11~bullseye, the monitors start working again. Other monitor types (ping, HTTP) against the same host work without issue across versions.
From within the container, running:
/app # nc -v synology.subdomain.example.com 6690
returns:
synology.subdomain.example.com (<IP_ADDRESS>:6690) open
So it seems the port is accessible and up.
📝 Error Message(s) or Log
No response
🐻 Uptime-Kuma Version
1.23.13
💻 Operating System and Arch
Debian GNU/Linux 11 (bullseye)
🌐 Browser
Firefox
🖥 Deployment Environment

Runtime: 26.1.4-1
Database: embedded mariadb
Filesystem used to store the database on:
number of monitors: 30

embedded mariadb is not a supported database backend in the 1.X series. What version of the software are you running?
what is logged?
how have you deployed uptime Kuma?
according to https://docs.docker.com/engine/release-notes/26.0/ docker is currently at v26, I am assuming this is what you mean by the version string. If you are still on v5, please update.


Add enableha=true to load balancer config

1.3 will introduce a new field within loadbalancerconfig to enable ha aptly named enableha.
We should enable this for releases 1.3 and beyond. But if this field is in a 1.2 deployment then the config will be invalid.
Some sed-fu should be applied to make this work.

If you are using vds v6.6, it's just as simple as running
gkectl prepare network --config=config.yaml
to enable MAC learning for the portgroups used by lb.


gems: bump keccak and secp256k1

bump keccak to 1.3.0; rename ::SHA3 to ::Keccak

ref https://github.com/q9f/keccak.rb/pull/16

bump rbsecp256k1 to 5.1.0 to address M1 silicon issues

ref https://github.com/etscrivner/rbsecp256k1/pull/55

Codecov Report

Merging #10 (25fce6c) into main (38da71a) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #10   +/-   ##
=======================================
  Coverage   97.67%   97.67%
=======================================
  Files           7        7
  Lines         129      129
=======================================
  Hits          126      126
  Misses          3        3

Impacted Files
Coverage Δ

lib/eth/utils.rb
93.10% <100.00%> (ø)

Continue to review full report at Codecov.

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


fix: unset PRJ_ROOT to prevent impure behavior

When the PRJ_ROOT environment variable is set, treefmt will use it to populate the --tree-root option.
Also, both --tree-root and --tree-root-file options must not be set at the same time, otherwise leading to:
treefmt: error: --tree-root and --tree-root-file can't be used together

As the tree-fmt module is explicitly setting --tree-root-file, I don't see a justification to let PRJ_ROOT leak in this script.

To give a bit more context, I faced this issue while using devshell which automatically sets the $PRJ_ROOT environment variable.
The combination of devshell and treefmt-nix thus leads to the aforementioned error message.

cc https://github.com/numtide/treefmt-nix/issues/219
I think the flake-parts module may still be broken after this, cf. https://github.com/numtide/treefmt-nix/blob/c9f97032be6816fa234f24803b8ae79dc7753a91/flake-module.nix#L43-L50.

Or maybe not? projectRoot is only used for the check.
Anyway I was thinking that making projectRootFile optional might be a good idea too.

Well, I don't know where this should be fix.
But the formatting script, as it is generated right now, should definitely ignore the PRJ_ROOT variable. At best, the latter is not set and thus ignored, but at worst, it generates the error.
Of course, there might be a cleaner solution.

Right. The potential alternative, I guess, is to make projectRootFile optional and omit --tree-root-file when PRJ_ROOT is set. Not sure what would be best.
(This needs rebasing, by the way, I think.)

The potential alternative, I guess, is to make projectRootFile optional and omit --tree-root-file when PRJ_ROOT is set. Not sure what would be best.

I don't see why we would want impure environment variables leaking through to treefmt? Isn't it possible that PRJ_ROOT could end up being set to some arbitrary value that is unrelated to what was configured in the treefmt-nix flake module? The environment shouldn't be able to override something explicitly configured in a module and defined in the wrapper script.

Well, I think searching for the project root is kind of inherently impure to begin with. But sure, that’s fair enough. (projectRoot being an option that’s only used for the flake check, rather than setting --tree-root similarly to projectRootFile, is pretty confusing in itself, but that’s another matter.)

This is a bug in treefmt. Env vars should not take precedence over CLI args.

https://github.com/alecthomas/kong/issues/446

I'll merge this for now


"Defaults for new clients" still not working

Bug description
Here is my environments for the wireguard-ui:
    environment:
      - BIND_ADDRESS=<IP_ADDRESS>:8000
      - SENDGRID_API_KEY
      - EMAIL_FROM_ADDRESS
      - EMAIL_FROM_NAME
      - SESSION_SECRET
      - WGUI_USERNAME=admin
      - WGUI_PASSWORD=password
      - WG_CONF_TEMPLATE
      - WGUI_MANAGE_START=true
      - WGUI_MANAGE_RESTART=true
      - WGUI_PERSISTENT_KEEPALIVE=15
      - WGUI_SERVER_INTERFACE_ADDRESSES=<IP_ADDRESS>/24
      - WGUI_SERVER_POST_UP_SCRIPT=iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
      - WGUI_SERVER_POST_DOWN_SCRIPT=iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE
      - WGUI_DEFAULT_CLIENT_ALLOWED_IPS=<IP_ADDRESS>/0,<IP_ADDRESS>/24
      - WGUI_DEFAULT_CLIENT_EXTRA_ALLOWED_IPS=<IP_ADDRESS>/24

And here is new client window:

As you can see vaue of the WGUI_DEFAULT_CLIENT_EXTRA_ALLOWED_IPS does not applied.
Related issues

https://github.com/ngoduykhanh/wireguard-ui/issues/409

Hi @thumpco ! Maybe you have found a solution?

Yes. B I think I posted in another thread but the issue was I had disabled host networking on the container, which was blocking wireguard-ui from being able to read the stats from the hosts wg0 iface.

Yes. I think I posted in another thread but the issue was I had disabled host networking on the container, which was blocking wireguard-ui from being able to read the stats from the hosts wg0 iface.


LOLE should not be bigger than Black-out hours

Issue
In this scenario there is extra electricity demand (from electric heaters for households space heating) and the interconnector capacity is set to 0 MW.
Blackouts: 2224 h/yr
Loss of load: 0 h/yr
I would expect the following outcome:
Interconnector capacity 0 MW: LOL = Blackouts
Interconnector capacity > 0 MW: LOL > Blackouts
The HV network load chart displays the shortage of supply

The security of supply chart shows that peak power demand < dispatchable production capacity

Possible cause
I had a discussion about this with @jorisberkhout. We suspect that the lole_demand that goes into the loss_of_load_expectation differs from the merit demand. @antw do you have any ideas?

We suspect that the lole_demand that goes into the loss_of_load_expectation differs from the merit demand.

There's a slight difference in the two:

Merit: 629.7B
Q(lole_demand): 619.1B

The difference is quite small, so I'm not sure that it could account for such a large difference between LOLE and blackout hours. I'll investigate.

The lole_demand could be changed to more closely match Merit demand like so:
- V(GRAPH(), final_demand_for_electricity) + QUERY_PRESENT(-> { V(energy_power_hv_network_loss, demand) })
+ GRAPH(final_demand_for_electricity) + GRAPH(electricity_losses_if_export_is_zero)

The obvious issue I see is that the LOLE calculation maps Q(lole_demand) to the total_demand curve. That was fine in the past, but no longer makes sense now that demand is made up of many different components, resulting in a demand curve whose shape is significantly different to total_demand.
Blackout hours is calculated using the real merit curve – made up of all the separate consumers. If I change LOLE to also use the same curve, LOLE seems to be fixed at 1525hr/year regardless of the capacity of the interconector.

Blackout hours is calculated using the real merit curve – made up of all the separate consumers. If I change LOLE to also use the same curve, LOLE seems to be fixed at 1525hr/year regardless of the capacity of the interconnector.

That sounds like a better approach than the current method. I am surprised however that LOLE is 1525hr/year and not 2224hr/year (which is black-out hours with not interconnector).

I am surprised however that LOLE is 1525hr/year and not 2224hr/year (which is black-out hours with not interconnector).

This isn't the way I understand the LOLE calculation as it is today; it may be that it's time for it to be revamped? Here's what the LOLE calculation does:

Create a demand curve.
Subtract from the demand curve the production of some (but not all?) always-on producers.
Calculate the capacity of dispatchable converters.
Count the number of hours where the dispatchable capacity (step 3) is lower than than the demand curve (step 2).

There are a couple of things which stand out to me as strange or wrong:

The demand curve created in step 1 uses the total_demand profile instead of the real Merit demand. This made sense before "dynamic-everything!" and the network calculation, but not anymore.
19 always-ons are not subtracted from the demand curve in step 2.
The same 19 converters are (wrongly?) part of the "dispatchable_production" group, which means that their maximum capacity is included as part of step 3.

If I fix all three of the above issues the LOLE remains fixed at 2224hr/year regardless of how large the interconnector is. Blackout hours fall as the interconnector capacity increases, eventually reaching zero. Is that the expected behaviour? That doesn't seem consistent with the description in the original post:

I would expect the following outcome:
Interconnector capacity 0 MW: LOL = Blackouts
Interconnector capacity > 0 MW: LOL < Blackouts

@jorisberkhout: Do you have any ideas about the 19 always-ons?

The "dispatchable" always-on producers are:

agriculture_chp_engine_biogas
agriculture_chp_engine_network_gas
agriculture_chp_supercritical_wood_pellets
buildings_chp_engine_biogas
buildings_collective_chp_network_gas
buildings_collective_chp_wood_pellets
energy_chp_supercritical_waste_mix
energy_power_geothermal
energy_power_supercritical_waste_mix
households_collective_chp_biogas
households_collective_chp_network_gas
households_collective_chp_wood_pellets
households_space_heater_micro_chp_network_gas
households_water_heater_fuel_cell_chp_network_gas
households_water_heater_micro_chp_network_gas
industry_chp_combined_cycle_gas_power_fuelmix
industry_chp_engine_gas_power_fuelmix
industry_chp_turbine_gas_power_fuelmix
industry_chp_ultra_supercritical_coal

That doesn't seem consistent with the description in the original post:

My mistake.... That should have been a "> "... I corrected this.

Is that the expected behaviour?

That description completely matches my expectation

That description completely matches my expectation

Great! I'd still like to understand what the situation is with the 19 always-ons before we push ahead with this change but at least we now know why the LOLE was wrong.

Great! I'd still like to understand what the situation is with the 19 always-ons before we push ahead with this change, but at least we now know why the LOLE was wrong.

Thanks for giving me the time to react to this 😄
The main thing that has been missing from the conversation is that the way we incorrectly (!) describe must-run CHPs is key in the LOLE implementation.
But first a small step back: The LOLE describes for how many hours in the year the local dispatchable production is unable to fulfil demand. So, after subtracting volatiles (wind, solar, hydro) from the demand. How big is the peak and do we have enough dispatchable capacity to match that peak?
The must-run CHPs in real life will be part of the dispatchable capacity because they either:

are already running (because they're making heat)
they are not running (because there is not need for heat at this point) but could still run if there is need for electricity

That second case is not modelled correctly in the ETM. Must-run profiles describe when a must-run CHP is running but (incorrectly) also dictates when it is not running. So, subtracting the electricity production from the must-run CHPs from the demand profile would treat these CHPs as if they were volatile producers and would completely ignore their potential to produce electricity even/especially if their profile is zero in that hour.

The demand curve created in step 1 uses the total_demand profile instead of the real Merit demand. This made sense before "dynamic-everything!" and the network calculation, but not anymore.

This is wrong and should be corrected.

19 always-ons are not subtracted from the demand curve in step 2.
The same 19 converters are (wrongly?) part of the "dispatchable_production" group, which means that their maximum capacity is included as part of step 3.

This is intended behaviour and should arguably also be done for the black-out hours calculation.
Do you agree with my conclusions @jorisberkhout @AlexanderWirtz?

Do you agree with my conclusions @jorisberkhout @AlexanderWirtz?

I do!

Re-opening this also in light of the recent discussions on keeping Merit on at all times.

@ChaelKruip a big question I am left with after reading this isssue is whether the demand curve was replaced by the merit demand curve. I do not know how to check for this.
Also, on looking at your last post: I am not sure I agree anymore. I say we should calculate LOLE as blackout hours without imports. Sure, we do not yet account for must-run CHPs that could be available in hours they are not producing power in the blackout hours calculation, but so be it. We should fix the way CHPs function, not create a confusing implementation of LOLE and blackout hours calculation.
After all this time of calculating blackout hours the way we do, I do not see any harm in calculating LOLE in a consistent way.
@mabijkerk and @ChaelKruip do you agree?


events on styled components are typed as any

In this example, Button is the return of styled.button

Yeah, it’s definitely an issue with react-polymorphic-box and I vaguely remember that TypeScript 4 had something on its roadmap to resolve the situation…

This should be fixed on the language level of TypeScript, as far as I know: https://github.com/microsoft/TypeScript/pull/31023

@kripod ah nice, thanks for chiming in. I wasn't sure if this was directly related to react-polymorphic-box or not.
I also created this, which could be related: https://github.com/christianalfoni/stitches/issues/44


Box: Add design guidelines and update documentation

Update Box docs to new style, add BOILERPLATE.docs.js for people to copy paste
Test Plan
Of note: there are a few layout issues that will be batter addressed in a follow up PR

New comments:

Props table: props not properly linked: alignItems, column, dangerouslySetInlineStyle (maybe linked to best practices? dangerlusly vs div? I know do/don't mentions it, maybe an example could help make it more explicit), justifyContent, margin (to auto margin?),
-for those Flex-related props, should we link them to 'Related'?

General observations:

fit doesn't have any description not example.
role doesn't have any description not example
userSelect could have an example, it's pretty abstract as per the description
we have responsive 1. columns, 2. margin/marginStart/marginEnd/marginTop/marginBottom,  3. padding/paddingX/paddingY. However, there's only one variant for responsive padding? Should we document all cases?


Allow backtraces to cross thread boundaries

Fixes #4066
When a thread is spawned we store the ID of the spawning thread as well as a backtrace to the spawn location. When there's an error we can traverse upwards, displaying a backtrace up to the main thread.
For instance, with the following program:
extern "C" {
    fn unknown();
}

fn bad() {
    unsafe { unknown() }
}

fn main() {
    std::thread::spawn(bad);
}

Whereas previously we would see:
error: unsupported operation: can't call foreign function `unknown` on OS `linux`
 --> tests/temp.rs:6:14
  |
6 |     unsafe { unknown() }
  |              ^^^^^^^^^ can't call foreign function `unknown` on OS `linux`
  |
  = help: if this is a basic API commonly used on this target, please report an issue with Miri
  = help: however, note that Miri does not aim to support every FFI function out there; for instance, we will not support APIs for things such as GUIs, scripting languages, or databases
  = note: BACKTRACE on thread `unnamed-1`:
  = note: inside `bad` at tests/temp.rs:6:14: 6:23

note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

error: aborting due to 1 previous error

We now have:
error: unsupported operation: can't call foreign function `unknown` on OS `linux`
  --> tests/temp.rs:6:14
   |
6  |     unsafe { unknown() }
   |              ^^^^^^^^^ can't call foreign function `unknown` on OS `linux`
   |
   = help: if this is a basic API commonly used on this target, please report an issue with Miri
   = help: however, note that Miri does not aim to support every FFI function out there; for instance, we will not support APIs for things such as GUIs, scripting languages, or databases
   = note: BACKTRACE on thread `unnamed-1`:
   = note: inside `bad` at tests/temp.rs:6:14: 6:23
   = note: thread `unnamed-1` was spawned by thread `main`
   = note: inside `std::sys::pal::unix::thread::Thread::new` at /home/reimu/.rustup/toolchains/miri/lib/rustlib/src/rust/library/std/src/sys/pal/unix/thread.rs:84:19: 84:86
   = note: inside `std::thread::Builder::spawn_unchecked_::<'_, fn() {bad}, ()>` at /home/reimu/.rustup/toolchains/miri/lib/rustlib/src/rust/library/std/src/thread/mod.rs:600:30: 600:64
   = note: inside `std::thread::Builder::spawn_unchecked::<fn() {bad}, ()>` at /home/reimu/.rustup/toolchains/miri/lib/rustlib/src/rust/library/std/src/thread/mod.rs:467:32: 467:62
   = note: inside `std::thread::Builder::spawn::<fn() {bad}, ()>` at /home/reimu/.rustup/toolchains/miri/lib/rustlib/src/rust/library/std/src/thread/mod.rs:400:18: 400:41
   = note: inside `std::thread::spawn::<fn() {bad}, ()>` at /home/reimu/.rustup/toolchains/miri/lib/rustlib/src/rust/library/std/src/thread/mod.rs:730:5: 730:28
note: inside `main`
  --> tests/temp.rs:10:5
   |
10 |     std::thread::spawn(bad);
   |     ^^^^^^^^^^^^^^^^^^^^^^^

note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

error: aborting due to 1 previous error

You'll need to bless the windows tests, too. It should suffice to pass --target with a windows target, no windows host needed

I have some nits.

@rustbot author
Please post @rustbot ready when the PR is ready for the next round of review.


Moving the "how to contribute" part to it's own file

Signed-off-by:Phillip Kruger<EMAIL_ADDRESS>As discussed here: https://groups.google.com/forum/#!topic/microprofile/-o0Mqv4I2IY
Moved the "How to contribute" to it's own file

I would like to keep it in the root readme, It's a short section and contains all important links which were before included in root readme.

Ok cool. Closing


[Python APIView] weird rendering of enum kwarg

api_version should be Union[str, ApiVersion]. Instead it's being returned as:

Sphinx docs here. It appears its catching the beginning of the ..admonition section

@iscai-msft Is this still an issue in latest reviews?

This should be fixed in 0.2.6

This should be fixed. Please reopen if that is not the case.


Hign CPU usage when chrome open a page with canvas

VSCode Version: 1.20.1
OS Version:  macOS 10.13.3

Steps to Reproduce:

open Code
open Chrome tab with whatever site with canvas running

then type some text in Code, I can feel some delay when I type, and the CPU usage will get higher and higher, the machine gets heated, the fan spins faster,  and when I close the tab with canvas, I feel no delay when I type in Code, I also test it with some other text editors (Sublime Text, Atom ...), they all works fine.

Does this issue occur when all extensions are disabled?: Yes/No
Yes

What version of Chrome are you using? @CNSKnight can you run htop when this happens and share what processes have high CPU?

@RMacfarlane
on macOS, when it happens, Code Helper and Chrome Helper take most CPU usage, Code Helper takes a little more than what Chrome helper takes
and this also happens on my Windows 10 machine
and it is more WEIRD ?!?! 😳
to reproduce this situation:
open a Chrome tab, go to http://brm.io/matter-js/demo/#sprites or any canvas website
open Code, stay in not maximum size,
then Alt + Tab to Chrome, play with the canvas site for about 5 seconds
then Alt + Tab to Code
then click the maximum size button on Code's window, and then try to type in Code, it gets stuck for a few seconds, AND when this happens, I try to open the Task Manager to see what's happening, but right after I open the Task Manager, Code gets no stuck...
Chrome version:  64.0.3282.140
Code version: 1.20.1

@littlee I cannot reproduce with the exact same Chrome version and Code version. I am also on macOS 10.13.3.
Is this slow-down occurring for you only when you use Chrome as a web browser? What happens when you open  http://brm.io/matter-js/demo/#sprites in Firefox or Safari? Is Code somehow slowed down?
(Other than sharing the same resources -- CPU, memory, GPU -- I don't see how Chrome should affect a running instance of Code).


Improve/text template with icon

Any guide if I want to add new command? Which places should I consider?

A command information looks like this:
"cmd_name": {
  "description": {
    "vi": "description_in_vietnamese",
    "en": "description_in_english"
  },
  "required_param_number": number_of_required_parameters_to_the_command.
}

For example:

!join --> required_param_number = 0 (no parameters)
!vote 1 --> required_param_number = 1 (must have to vote 1 player)
!ship 1 2 --> required_param_number = 2 (must have to ship 2 players)


Update CONTRIBUTING.md

The Contributing.md has an incorrect link to the CLA.

coverage: 50.119%. remained the same
when pulling fa6a63398147858e4a49148ec27906d0ffbd6f76 on update-contributing
into 0be15b9a485b1a3aad503d8b46f820a63cf34085 on main.


Getting Started / Slapp Example

This isn't an issue and more of a general question as I was looking through past questions and on the web and couldn't find anything. I'm trying to find a tutorial / an example slack app that uses the features of this package, but it seems that every  app I find relies on BeepBoop which no longer exists, I was wondering if anyone would able to provide any  suggestions.

For Bolt v1, we created a new Getting Started guide on the documentation site that goes through creating a basic Slack app with Bolt. Hopefully this feels the need, but if there's anything missing feel free to open a new ticket.


Code demos day 2: mlr2 -> mlr3

[x] Compare Classifiers

[x] Logistic Regression (no mlr in here)

[x] Generative Classifiers

Done.
Rendered pdfs:
code_demo_genclass.pdf
code_demo_cmpclass.pdf
code_demo_logreg.pdf (should not have changed)

:+1: Thx


Auto return URI not working behind reversed proxy

Hi all,
We hare using Django hosted behind a reversed proxy (NGINX on windows).
I love using Django Auth ADFS since it works perfectly with our Azure AD!
When we brought the project to production we ran into an error with the return URI.
This one was created by this lib itself, but was wrong, since our reversed proxy (nginx on windows) has a different address then waitress we use to host.
We had to manually change the return URI int he code to make it work, realising how wrong this is.
In the settings, we see a deprecated setting 'Return URI' as it automatically resolves.
Can this be brought back as an optional setting? When the setting is left empty (not used) the lib creates its own return URI, otherwise the one from the settings is used?
This would help us alot.
Thank you!

Hi,
does this comment help you?
https://github.com/snok/django-auth-adfs/issues/69#issuecomment-464359711


Describe what you want
A factory API that allows creating testing data easily.
Example API inspired by Laravel Eloquent Factories:
// Generates 5 users in a 'verified' state with the password set as 'secret'.
// Each of these users will have 10 associated posts.
const users = await database
    .factory(users)
    .count(5)
    .state('verified')
    .has(database.factory(posts).count(10))
    .set({
        password: 'secret',
    });

Closing in favor of #733.


semantic.js better localizable

I have to translate some messages (from semantic.js) that are displayed to the enduser in multiple languages. I'm trying to do this via overriding settings, but not all texts are available via settings.
A good example is "$.fn.dropdown.settings.messages", this is the optimum.
But in "$.fn.search.settings" and I'm sure also different components there is no way yet.
Would be nice if all text's were available via settings, thats all. Maybe for next minor version?

It works very well. For further question, I haven't met such kind of scenario. If I did, I will keep you posted. Thanks a lot, and great job!

You can override localized texts per init or globally. If you need a single component to be translated to multiple languages simply modify settings.messages on init.


Questions on the full set of forces

Hello, When will the full set of forces be released?

Hello! We plan to release the full set of forces by the middle of December. Sorry for the inconvenience.


add a check for single commit PRs

Grant Application Checklist

[x] The initial PR contains only one commit (squash if needed before submitting your PR).

Not at all! Just a cosmetic thing


tflint: 0.13.1 -> 0.13.2

Motivation for this change
Changelog: https://github.com/terraform-linters/tflint/releases/tag/v0.13.2
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[X] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

Notify maintainers
cc @

@GrahamcOfBorg build tflint


Improve the network connection monitor reporting

Task/Issue URL: https://app.asana.com/0/72649045549333/1202005414608865/f
Description
We expected Android to call the onAvailable and onLost callbacks in order. Meaning when there is a network switch, eg. from WIFI to CELL, Android would call onLost(WIFI) and then onAvailable(CELL).
However that's not happening. Android can (in the example above) call onAvailable(CELL) when the WIFI signal is getting lost, and then onLost(WIFI) when it's definitely lost.
This was messing with our implementation because we never bother tracking what network was available or lost, we just assumed they'd be called in order.
The consequence of that was that we would report currentNetwork as NO_NETWORK when that was not the case.
Steps to test this PR
Test network connectivity

[ ] install form this branch
[ ] enable AppTP
[ ] ensure you're on WIFI
[ ] filter logcat by NetworkTypeCollector
[ ] change to CELLULAR network (no need turn off WIFI)
[ ] verify currentNetwork changes to CELLULAR and it is AVAILABLE
[ ] verify previousNetwork changes to WIFI and it is LOST
[ ] change back to WIFI
[ ] verify currentNetwork changes to WIFI AVAILABLE and previousNetwork to CELLULAR AVAILABLE
[ ] verify Lost of previously switched connection appears after that

Current dependencies on/for this PR:

develop

PR #1827   (this PR)

PR #1828

This comment was auto-generated by Graphite.


Serial port drop down not working

They drop down menu for the serial port selection is not currently working. I'm running on Mac OSX so my serial ports are connected to /dev/cu.*, not COM3, but even when I update the 'ports' search, I'm unable to select anything from the drop down.

The drop down menu is showing only connected COM ports so probably this is why it doesn't work. Unfortunetly i don't have Mac OS X to check this code on it.

I checked on Ubuntu and there is only one change need to be done in line 80.
Where:
ports = ['COM%s' % (i + 1) for i in range(256)]
Needs to be changed to:
ports = ['/dev/ttyS%s' % (i + 1) for i in range(256)]
And then everything should work fine.
So only thing which need to be verified is how Mac OSX create a name for serial port. In Windows is COM(x), on Linux /dev/ttyS(x).


Wrong Code

Sorry to be like weird but this is the right code for the console inject
@echo off
echo Injecting...
smi.exe inject -p 1v1_LOL -a 1v1.lol.cheat.dll -n Loading -c Loader -m Load
timeout t 5 NOBREAK  nul

Sorry to be like weird but this is the right code for the console inject
@echo off echo Injecting... smi.exe inject -p 1v1_LOL -a 1v1.lol.cheat.dll -n Loading -c Loader -m Load timeout t 5 NOBREAK nul

Remember to wrap the DLL name in quotes ("1v1.lol.cheat.dll"), and it isn't that hard for someone to change the file name to the one that's in the script in the readme, unless they lack braincells.


Clean Jupyter Cache

This PR includes the following changes:

Adds cache clean commands (juptyter lab clean && jlpm cache clean) to remove vulnerable npm packages
Changes the npm version spec since the latest version 7.11.0 has a bug that prevents builds from completing successfully

screenshot from local testing that shows the vulnerable ssri and y18n packages removed.

the failed GitHub check is expected


Remove logging jars from uber jar in alluxio-client

Alluxio Version:
1.8.x
Describe the bug
Logging jars in the client should be removed/shaded.
To Reproduce
N/A
Expected behavior
N/A
Urgency
High

removing is different from shading - which one do we want, and why does it need to be done (please add information to the issue description)


Ensure the global trace_state is restored on errors in loops

This is an attempted fix for https://github.com/google/jax/issues/2507

Fixes #2507


Basic structure has been created in pull request #26. We still have to create the HTTP server with the root endpoint. Soon to be done.

Created HTTP server serving GraphQL. Currently we only have the about query, however the structure has been set as well as all the necessary plumbing to start developing in GraphQL.

Closed by: dc2bf2371b02231054b64ab5901e9bdc447888ef


Use of uninitialized value in re_yylex()

Use of uninitialized value in re_yylex()
Git HEAD: 1818e5a326f3c22a71ba59a524a8d99b359a6c24
Payload
Command: yara yara_uouv_re_yylex.yar /usr/bin/strings
MSAN:
==19144==WARNING: MemorySanitizer: use-of-uninitialized-value
  #0 0x4ed83e in re_yylex XYZ/yara/libyara/re_lexer.l:332:7
  #1 0x5c0637 in re_yyparse XYZ/yara/libyara/re_grammar.c:1263:16
  #2 0x4f7483 in yr_parse_re_string XYZ/yara/libyara/re_lexer.l:616:3
  #3 0x5b8428 in yr_parser_reduce_string_declaration XYZ/yara/libyara/parser.c:529:31
  #4 0x56634b in yara_yyparse XYZ/yara/libyara/grammar.y:529:26
  #5 0x4bf49b in yr_lex_parse_rules_file XYZ/yara/libyara/lexer.l:822:3
  #6 0x49bae4 in yr_compiler_add_file XYZ/yara/libyara/compiler.c:357:12
  #7 0x4977ea in main XYZ/yara/yara.c:1137:17
  #8 0x7f02bc27682f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
  #9 0x41b608 in _start (/usr/local/bin/yara+0x41b608)

SUMMARY: MemorySanitizer: use-of-uninitialized-value XYZ/yara/libyara/re_lexer.l:332:7 in re_yylex

@fumfel I think this issue should be solved with the latest commit. I'm not able to verify it because MemorySanitizer doesn't seem to work with Mac OS X and I don't have a Linux machine around. Could you check if it works fine now?

@plusvic In a484e862bf404cb785806db8449e87aa39028c11 problem solved :+1:


Stuck when running cargo miri test

I've found that there are times when running cargo miri test, it gets stuck without any information.
Not sure if it's related with rustc/cargo/miri's version, or something else potentially.
I've tried this crate named adler (https://github.com/jonas-schievink/adler):
git clone https://github.com/jonas-schievink/adler
cd adler
# this works well:
cargo test
# this would be stucked:
cargo miri test

Another crate aho-corasick (https://github.com/BurntSushi/aho-corasick), it would stuck at: tests::regression_case_insensitive_prefilter ...
The output is as follows:
Running unittests src/lib.rs (target/miri/x86_64-unknown-linux-gnu/debug/deps/aho_corasick-578e16ba3e218519)

running 163 tests
test nfa::contiguous::tests::swar ... ok
test packed::pattern::tests::equals_different_lengths ... ok
test packed::pattern::tests::equals_mismatch ... ok
test packed::pattern::tests::equals_yes ... ok
test packed::pattern::tests::prefix ... ok
test packed::tests::search_default_leftmost_first ... FAILED
test packed::tests::search_default_leftmost_longest ... FAILED
......
test tests::regression_case_insensitive_prefilter ...

Then there is no response for a long time.
My cargo version is: cargo 1.77.0-nightly (1ae631085 2024-01-17)

I'm pretty sure Miri is not "stuck" in any sense here; the interpreter is just really slow compared to even a debug build. For this reason, it's common to use cfg(miri) to adjust the amount of work that tests to when compiled/run by Miri. But not all crates do that, and instead run a subset of their test suite under Miri in CI or something like that.

I can attest to this. For aho-corasick's tests::regression_case_insensitive_prefilter, it passed in 2071.56s, which is around 35 minutes.

The slowdown is unbounded, currently because of a problem with the provenance GC: https://github.com/rust-lang/miri/issues/3209
But before that, the slowdown was unbounded due to accumulating garbage :p
I'm going to close this; we already have a lot of issues which are various versions of "Miri is slow" and this one is just another as far as I can tell.
If you want to be doubly sure, you can set MIRI_LOG which contains logging of the interpreter's execution of MIR, or you can use -Zmiri-report-progress which is documented in the README, or you can use -Zmiri-measureme to collect a profile of what Rust code is being executed; we have a ctrl-c handler which will finalize the measureme file.


TEX feedback / suggestions

After quickly playing around with TEX (Type Explorer) UI, a few usability comments / suggestions (most hopefully minor):

[ ] Is the "Load types from" config necessary via the UI?  I was assuming this (or at least a default) could be picked up from a properties or somewhere similar, presumably that's what the asset search is doing (?)  Fine to have an override, but would be nice to have one load-up-able by default -- in either case, the override would ideally be a panel that can be hidden to save screen real estate (+ what's there being vertically narrowed: lots of empty space around it at the moment)
[ ] For clarity, I'd suggest renaming the diagram types to "Entity Inheritance" and "Entity Neighborhood" as both are entity-centric perspectives.  (Also note the American rather than British spelling, as I believe our overall style guidelines are to stick to American spellings? 🤷♂ )
[ ] Would be great to be able to have an (ideally type-ahead) search capability to find the type I'm interested in, rather than needing to navigate via the drop-down boxes; at a minimum (also related to screen real-estate), would be good to have the drop-downs for the type selection stash-able / hide-able, as once you're into navigating the diagram itself they're hardly used but always taking up space on the screen
[ ] I'd love to see more stylistics applied to the property pane on the left to distinguish various pieces without needing descriptive wording: for example, use a larger font size and bold to show just the entity type name, without needing to preface it with "Type selected is ..."  The description could then simply be printed immediately below it, without prefixing with "Description:"
[ ] Also related to screen real-estate, would be great to be able to collapse (show / hide) this properties pane, to allow maximal focus and navigation on the diagram when navigating around it
[ ] Probably more of a question for the overall UI framework, but the multiple scrollbars that are embedded in various parts of the page quickly become a minor nuisance to navigation when everything doesn't fit without needing to scroll

Thanks @cmgrote - initial responses as follows:

default - I think it is worth looking at this in the wider context - could be that we want to integrate with other UI components or drive from a common properties file - but on the other hand, if a user wants to see the 'whole' type system then they probably want to configure for a server that has an in-memory or graph repository, in which case it may need to be very clear (to the user) that type explorer is connecting to their currently configured default. The type explorer should also allow a user to examine what types a particular repository understands; so specifying the server explicitly may be a desirable 'step' that the user should consciously make. Independently of any of the above, I will look at real estate too - a scarce resource!
I agree - will rename them - the current names were adopted in our storyboards before we went more heavily entity-centric. Additionally I am considering doing a refactor/rename of some of the code as well - with a view to possible integration (maybe) with REX - it needs to be clearer that TEX is dealing with Types. Will adopt US-English as that is general across the rest of Egeria.
I will look at collapsing the type selectors.
I will try to stylise the details pane - in fact I have done something similar already for REX.
Less sure about collapsing the whole details pane - but will see what I can do
Scrolling is a major bane at the moment - particularly as I have not found a way of auto-scrolling a diagram - e.g. the "Entity Inheritance" diagram. The prototype always scrolled to center the selected type but I cannot find a way of achieving that from inside a web cpt. I would still like to get auto-scroll working because it minimises the number of times the user needs to scroll the diagram - which at least partially improves/avoids the multi-scrollbar problem you noted. I also dislike the multiple scrollbar effect, as we have at the moment with both overall (window) scroll bars and scroll bars on the individual diagrams. This isn't easy to solve (imho) due to the real estate issue. I can try (again) to save some real estate in the Entity Neighborhood diagram, but the Entity Inheritance diagram will  likely never fit completely in the browser window, so will always need scrolling.

Many thanks for the thoughtful feedback. I am currently engaged on other things, but will try to refresh TEX as soon as I can in line with the above.

One other thing that I want to record here is that I want to add the TypeDefGUID to the details panel for a type. I find it very useful - e.g. when posting an instance create to Postman - and always have to dig into the types archive. It would be a helpful addition to TEX.

First PR for this issue is PR 1548
More to come!

Diagrams names updated in PR #2006

Keep open

Keep open...

Keep open - getting to it eventually!

I think these are all fixed in the p-s UI apart from the collapse of the whole details section which I'm not in favour of due to the need for an additional icon/button and user step to expand it (or re-expand it). Going to close this and we can open fresh issues if we want to make further changes.


Miele Integration not loading

The problem
I am unable to find a similar error report and I am unable to fix it on my own (see log below).
I did install the integration using HACS.
Error message in the integration: Not loaded
Version of miele integration having the issue?
0.1.13
Version of Home Assistant Core having the issue?
2023.5.4
Anything in the logs that might be useful for us?
This error originated from a custom integration.

Logger: homeassistant.setup
Source: custom_components/miele/__init__.py:401
Integration: miele (documentation, issues)
First occurred: 13:02:19 (1 occurrences)
Last logged: 13:02:19

Error during setup of component miele
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 257, in _async_setup_component
    result = await task
  File "/config/custom_components/miele/__init__.py", line 401, in async_setup
    cache = config[DOMAIN].get(
KeyError: 'miele'

Additional information
No response

You are using https://github.com/HomeAssistant-Mods/home-assistant-miele . Not this integration.


feat: purity analysis for MemberAccess

Closes #212
Summary of Changes

@lukarade Is this PR still needed?

@lukarade Is this PR still needed?

No, this was actually incorporated in #223 and hence can be closed.


Client component: Error: Cannot read properties of undefined (reading '_context')

What version of this package are you using?
2.3.0-canary.3
What operating system, Node.js, and npm version?

MacOS
Node.js: v18.14.0
npm: 9.3.1

What happened?
I was checking https://github.com/aralroca/next-translate-plugin/pull/22 because I was getting hydration errors when using translations in client components. By coincidence @aralroca had just commented that it should be fixed in 2.3.0-canary.3, so I decided to try it out. Then I got this error:
Error: Cannot read properties of undefined (reading '_context')

I created a repository:
https://github.com/amosbastian/nx-next-translate
npm i
npx nx serve web

What did you expect to happen?
I expected it to run
Are you willing to submit a pull request to fix this bug?
I could if necessary

Thanks to share, probably is about appDir detection in monorepo, that we changed to support to work with pages folder and app folder together to facilitate migration. I'm going to take a look!

I'm also having some trouble with redirecting from / to /en (default locale), (request.nextUrl.pathname in middleware.ts is equal to /sign-in when it should be /en/sign-in). I think this is caused by the nextTranslate plugin in next.config.js removing the locale. If so, then how do you recommend always redirecting to the default locale if no locale is included (something like shown [here])?


[BUG] retrieve logs from log analytics workspace failed without any error, empty table returned.

Library name and version
Azure.Identity 1.8.2, Azure.Monitor.Query 1.1.0
Describe the bug
I use the Azure.Monitor.Query to query the logs from log analytics workspace with "DefaultAzureCredential" or "EnvironmentCredential", by setting up the environment variables "AZURE_TENANT_ID", "AZURE_CLIENT_ID" and "AZURE_CLIENT_SECRET", it work perfectly on the laptop. here is the code:
`internal class DataRetriever
{
LogsQueryClient client;
string workspaceId;
public DataRetriever(string workspaceId) {
this.workspaceId = workspaceId;
var uri = new Uri("https://api.loganalytics.azure.cn");
        client = new LogsQueryClient(
            uri,
            new DefaultAzureCredential( new DefaultAzureCredentialOptions
            {
                AuthorityHost = AzureAuthorityHosts.AzureChina
            })
            );
    }

    public async Task<LogsQueryResult> QueryAsync(string table, DateTimeOffset date, int offset)
    {
        var timeRange = new QueryTimeRange(date, date.AddMinutes(offset));
        var response = await client.QueryWorkspaceAsync(
            workspaceId,
            table,
            timeRange
            );
        return response.Value;
    }
}`

if i run the code above in the docker container, the method "QueryAsync" return a table without any record, the point is no error throwed out.
Expected behavior
the logs from lag analytics workspace should be returned, otherwise detailed error should be throwed out.
Actual behavior
if the code run inside the container, no records returned and no errors.
Reproduction Steps
Setting update the environment variables such as "AZURE_TENANT_ID", "AZURE_CLIENT_ID" and "AZURE_CLIENT_SECRET", and run the code again in the container should be able to see no records returned and no exception throwed out.
`internal class DataRetriever
{
LogsQueryClient client;
string workspaceId;
public DataRetriever(string workspaceId) {
this.workspaceId = workspaceId;
var uri = new Uri("https://api.loganalytics.azure.cn");
        client = new LogsQueryClient(
            uri,
            new DefaultAzureCredential( new DefaultAzureCredentialOptions
            {
                AuthorityHost = AzureAuthorityHosts.AzureChina
            })
            );
    }

    public async Task<LogsQueryResult> QueryAsync(string table, DateTimeOffset date, int offset)
    {
        var timeRange = new QueryTimeRange(date, date.AddMinutes(offset));
        var response = await client.QueryWorkspaceAsync(
            workspaceId,
            table,
            timeRange
            );
        return response.Value;
    }
}`

Environment
No response

Hi @dingjianrui, could you please verify that you see the expected table results in the Azure Portal on the browser? You can navigate to your Workspace -> Logs -> Custom Logs -> table. Thank you.

Ping @dingjianrui. Please see the question above. ☝


Manage Docroot

Add the ability to manage the docroot folder within this module.
This will allow for setting the correct SELinux flags, but there will have to be explicit documentation that the Apache module manage_docroot will have to be set to false.

Closed via #13 .


Document.Body.AppendChild(element) translates as (Bridge.get(Bridge.global).document.body.appendChild(element))

Pretty sure this should work--

using Bridge;
using Bridge.Html5;

/// <summary>
/// Creates a simple class
/// </summary>

class ConsoleWriter
    {
        Element element;

        public ConsoleWriter (Element element, bool newStream = true)
        {
            this.element = element;
            if (newStream)
                Document.Body.AppendChild(element);
        }

        public void Write (object value)
        {
            element.AppendChild(new SpanElement { InnerHTML = value.ToString().Replace("\n", "<br />").Replace("\r", "") });
        }

        public void Write (string value, params object[] format)
        {
            Write(string.Format(value, format));
        }
    }
    public static class App
    {
        static ConsoleWriter writer = new ConsoleWriter(new PreElement());

        [Ready]
        public static void Main()
        {
            writer.Write("Hello World");
        }
}

http://live.bridge.net/#ee9aa9c6e52db4f2df41

Thanks for posting this issue. We are investigating.

Well, I guess you worry about Bridge.get(...) thing, but it is done intentionally fixing #660. @vladsch, maybe, wrapping in Bridge.get(...) could be avoided for some classes like Bridge.global?
Anyways, there is a different problem that makes your test case not working. Actually, two problems.

Document.Body is accessed before it is ready.
static ConsoleWriter writer = new ConsoleWriter(new PreElement());
Static fields are being instantiated before Document is ready.

The solution is:
public static class App
{
    //static ConsoleWriter writer = new ConsoleWriter(new PreElement());

    static ConsoleWriter writer;

    [Ready]
    public static void Main()
    {
        App.writer = new ConsoleWriter(new PreElement());
        writer.Write("Hello World");
    }
}

There is a recursion in this method.

public void Write(string value, params object[] format)
{
    Write(string.Format(value, format));
}

.Write(string) calls itself.
A quick solution would be:
Write(string.Format(value, format) as object);
just to get your test case working.

Well, I guess you worry about Bridge.get(...) thing, but it is done intentionally fixing #660. @vladsch, maybe, wrapping in Bridge.get(...) could be avoided for some classes like Bridge.global?

Vladimir created Avoid Bridge.get for core classes issue and already fixed it.


Faster cheaper travis builds without sudo.

Coverage remained the same at 99.616% when pulling 471c9459034d09c7ae297ec1904d816adbb7c5c5 on mikepurvis:patch-1 into 59b6193549be318b5cbb4b337b5d8e3c583edf1e on pavlov99:master.

Thank you!


Feature 2: Playlist

This Python program allows users to manage a playlist by adding songs and playing them in the order they were added. It also provides an option to shuffle the playlist.
Features:
Add Songs: Users can add songs to a playlist.
Play Songs: Songs are played in the order they were added.
Shuffle Option: Users can opt to shuffle the playlist for random playback.

I can work on this


[CLI] Use std base64 within init command

The init command has the responsibility of decoding the password from a string to a raw byte representation.
At the moment, this is done by using the builtin encoding.
Obviously, this is not the best choice since other non-go clients cannot make use of the same encoding. Better moving to base64 standard encoding.

Go uses ASCII encoding by default for its built-in []byte() function. Clients should use the same encoding to be able to convert special characters which are not in the base64 alphabet, like *, $, etc.


[Bug] [dinky-admin] When create a directory, resources fullname is error

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
When create a directory, if the pid of the resource is negative, the resources fullname is error.
Examples are as follows：
create a directory:config

the fullname is /config:

the code is:

What you expected to happen
the fullname is /dw/dirtest/config
How to reproduce
When create a directory, if the pid of the resource is negative, the resources fullname is error.
Anything else
No response
Version
1.1.0
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Fixed.


Fetch the nonce from the entrypoint

Currently we use a hardcoded nonce we increment. However this means that the client can easily get out of sync on chain.

This was fixed as part of #143


[FlatList] Flatlist BUG

RN：0.44
data structure :

control interface :

Interface effect :

Implementation code :

This is the case now
I render the items I want to delete in the interface, and then click the delete button to delete them
The implemented code is on top
Now is I using key to delete object data for this and will be copied to the flatlist bound data there but after doing so that flatlist directly display the white screen of the original data without but did not trigger a new renderItem even if the forceUpdate is not any effect

Hey, thanks for providing samples of your code. May I ask that you post them in plain text? Even better, if you can reproduce this using Snack that would be very helpful.

Also, can you edit the title to describe the actual bug you're encountering?

Closing this issue as we haven't heard back from the author.


Should cpp-coveralls give up if there is no defined token ?

Currently cpp-coveralls will still send data to coveralls even when no token is defined, which causes coveralls to reject the send (as it cannot associate it with a project).
I think cpp-coveralls should throw an exception just before it would send the report if there is no coveralls token defined, maybe this functionality could be hidden behind a flag.
This is because it took me a while to realise I needed to set a token, I would much prefer for it to throw an exception and explain how to resolve it.
I am happy to do this work if upstream will accept it.

@mkfifo Yeah, if you'd like, please feel free to do so.

@eddyxu are you happy for it to always give up if no token is found, or do you want it hidden behind a flag?
I would much prefer for it to always give up.

I'd prefer to raise Exception if no token was found. Most of the user should use travis-ci, so they are not affected. While for others, like you, it might be better to fix it other than hide it.

Awesome, I will get onto that shortly.
@eddyxu how are travis-ci users not affected by this?

@mkfifo  My mistake. Still in work now.  What I meant is that this token is required from coveralls.io, thus we should failure at the beginning when we find it is not set.

This has been added to pull request #81 which deals with issue #80 and this issue #82

for now I have rolled back the fix for issue #82 as it needs a little more work first

I have now re-pushed and updated PR #81
I also had to change the testing file

For travis you does not have to set repo token.

@moteus how does that work?

REFERENCING A REPOSITORY

@moteus thanks for that, I couldn't get that to work but maybe I was doing something incorrect.
In that case we do NOT want my code to raise an exception if no token is found, we only want that behavior in the case of running within a non-travis-ci environment.
This also changes my updates to the README file.

In that case I have removed the code that raises this error from my main master branch and pushed it into old-master

PR #81 now no longer includes anything touching this issue.

I would still like cpp-coveralls to issue an error IF there is no token, but as pointed out a token is only required in certain contexts and I think it is hard for cpp-coveralls to work out which context it is in.
I also still cannot seem to get travis-ci and coveralls.io behaving nicely together...

I would like to know how travis and cpp-coveralls work without any setup, I am using the free travis.
The instructions in coveralls.io tell me:
First, if you are using Travis CI , make sure it's building correctly. If you're using Travis Pro, add the following lines to a .coveralls.yml file in your repository's root:
service_name: travis-pro
repo_token: TOKEN_GOES_HERE

I tried having a travis.yml matching the one given in [1] with no other travis setup mentioning coveralls but I did not see the build updates make it to coveralls.
For example my project linear_hash has a travis.yml matching the example [2], my travis page is [3] and my coveralls page is [4]
The commit currently missing on coveralls.io (but that is present on github and travis) is [5]
I can see that the travis build has completed, but the coveralls page has NOT yet updated.
Am I missing some setup in travis.ci for automated coveralls.io population?
Do I have to wait longer?, as generally my coverall.io jobs appear immediately.
[1] https://github.com/eddyxu/cpp-coveralls#linux
[2] https://github.com/mkfifo/linear_hash/blob/master/.travis.yml
[3] https://travis-ci.org/mkfifo/linear_hash/builds/59188736
[4] https://coveralls.io/r/mkfifo/linear_hash?branch=master
[5] https://github.com/mkfifo/linear_hash/commit/fc534596d2bebec149a706d860e57da9d318eeaa

@mkfifo It seems that it requires either service_job_id, which is TRAVIS_JOB_ID, or a repo token.

We can reference a repository in one of two ways:

service_job_id String and service_name String
repo_token String

Sorry, I have not closely followed coveralls.io for a while...
Are you working on this right now? Otherwise, I can fix this shortly

@eddyxu thanks but that doesn't seem to be working for me, assuming the job id is automatically setup.
If you compare [1] to [2] that job is completely missing from coverall.io
So I am wondering what I need to do to have this automatically work?
As for the pull request what this means is I can have my code throw an exception if both the service_jobs_id AND the repo_token are not defined.
[1] https://travis-ci.org/mkfifo/linear_hash/builds/59188736
[2] https://coveralls.io/r/mkfifo/linear_hash?branch=master

There is actually a result for your travis job  on coveralls.io
https://coveralls.io/jobs/5536318
Could you try to run it with --verbose

@eddyxu thanks for that, I am not seeing it on [1]
Running cpp-coverals with --verbose I get [2]
[1] https://coveralls.io/r/mkfifo/linear_hash?branch=master
[2] https://travis-ci.org/mkfifo/linear_hash/builds/59193237

@mkfifo  Take a look of https://coveralls.io/r/mkfifo/linear_hash?page=3
Build #12 11 and such are actually the results of the recent build. I am not sure whether it is a coveralls.io issue...

@eddyxu thanks for that, if you look at [1] you can see the job number is "Job #11.1" and for [2] it is "Job #12.1" so whatever is generating this field is wrong:
{u'url': u'https://coveralls.io/jobs/5536318', u'message': u'Job #11.1'}

[1] https://travis-ci.org/mkfifo/linear_hash/builds/59188736#L328
[2] https://travis-ci.org/mkfifo/linear_hash/builds/59193237#L330

Which I think is the result of the final print(result) in report.py post_report
def post_report(coverage):
    """Post coverage report to coveralls.io."""
    response = requests.post(URL, files={'json_file': json.dumps(coverage)})
    try:
        result = response.json()
    except ValueError:
        result = {'error': 'Failure to submit data. '
                  'Response [%(status)s]: %(text)s' % {
                      'status': response.status_code,
                      'text': response.text}}
    print(result)
    if 'error' in result:
        return result['error']
    return 0

Which makes me suspect a coveralls.io bug

@moteus @eddyxu I have address the concerns around breaking the existing travis workflow and made a PR #84 which will raise an exception only if it cannot find the repo token and if it also cannot find the travis job id.
My issue reported above is still outstanding but I suspect that is a coverall.io bug.

This issue was resolved in PR #84
The issue I was having is a bug with coveralls.io, unsure how to report it, but it doesn't change cpp-coveralls.


Unable to create scratch orgs with multiple sf and sfdx versions. Receiving error: The request to create a scratch org failed with error code: C-1033

Note
Before you submit your issue, make sure that:

You're using the latest version of Salesforce CLI.
You've searched both open and closed issues for related posts.
You've used the doctor command to diagnose common issues.
You understand that GitHub Issues don't adhere to any agreement or SLA.

If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

Within our GH Actions and experienced locally by several team members, we are unable to create scratch orgs and receive a failure of : The request to create a scratch org failed with error code: C-1033
We are also using 2 concurrent jobs to test creating a scratch org with the "sf" and "sfdx"  scratch org creation commands
Steps To Reproduce

IMPORTANT
Provide a repository that's configured to reproduce the issue. If you are unable to provide a repo, please explain why not. The more info we have from the start, the faster we can resolve your issue.
We may close your issue if you don't include proper instructions.

Generate a project with sf project generate or fork dreamhouse-lwc.
Provide detailed step-by-step instructions on how to reproduce the issue.

We have setup a public github repository to troubleshoot.
The last failed job is here: https://github.com/jdschleicher/sf-sfdx-cli-version-troubleshooting/actions/runs/5893082972
The CLI version can be changed here: https://github.com/jdschleicher/sf-sfdx-cli-version-troubleshooting/settings/variables/actions
We have also discovered if we use a developer edition devhub we do not experience the issues
Expected result

create scratch org
Actual result

{   "code": 1,   "context": "EnvCreateScratch",   "commandName": "EnvCreateScratch",   "data": {     "username"<EMAIL_ADDRESS>    "orgId": "00Dt0000000LAyREAW",     "scratchOrgInfoId": "2SROE00000002de4AA"   },   "message": "The request to create a scratch org failed with error code: C-1033.",   "name": "SfError",   "status": 1,   "stack": "SfError: The request to create a scratch org failed with error code: C-1033.\n    at checkScratchOrgInfoForErrors (/opt/hostedtoolcache/node/18.14.2/x64/lib/node_modules/@salesforce/cli/node_modules/@salesforce/core/lib/org/scratchOrgErrorCodes.js:66:15)\n    at async pollForScratchOrgInfo (/opt/hostedtoolcache/node/18.14.2/x64/lib/node_modules/@salesforce/cli/node_modules/@salesforce/core/lib/org/scratchOrgInfoApi.js:303:16)\n    at async scratchOrgCreate (/opt/hostedtoolcache/node/18.14.2/x64/lib/node_modules/@salesforce/cli/node_modules/@salesforce/core/lib/org/scratchOrgCreate.js:160:17)\n    at async EnvCreateScratch.run (/opt/hostedtoolcache/node/18.14.2/x64/lib/node_modules/@salesforce/cli/node_modules/@salesforce/plugin-org/lib/commands/org/create/scratch.js:39:72)\n    at async EnvCreateScratch._run (/opt/hostedtoolcache/node/18.14.2/x64/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/command.js:117:22)\n    at async Config.runCommand (/opt/hostedtoolcache/node/18.14.2/x64/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/config/config.js:329:25)\n    at async run (/opt/hostedtoolcache/node/18.14.2/x64/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/main.js:89:16)",   "exitCode": 1,   "warnings": [] }

System Information

{
  "cliVersion"<EMAIL_ADDRESS>  "architecture": "linux-x64",
  "nodeVersion": "node-v18.17.0",
  "osVersion": "Linux 5.15.0-1042-azure",
  "shell": "bash",
  "rootPath": "/usr/local/lib/node_modules/@salesforce/cli",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 2.3.6 (core)",
    "@oclif/plugin-commands 2.2.21 (core)",
    "@oclif/plugin-help 5.2.[16](https://github.com/jdschleicher/sf-sfdx-cli-version-troubleshooting/actions/runs/5893258460/job/15987028213#step:3:17) (core)",
    "@oclif/plugin-not-found 2.3.36 (core)",
    "@oclif/plugin-plugins 3.2.0 (core)",
    "@oclif/plugin-search 0.0.22 (core)",
    "@oclif/plugin-update 3.1.30 (core)",
    "@oclif/plugin-version 1.3.8 (core)",
    "@oclif/plugin-warn-if-update-available 2.0.46 (core)",
    "@oclif/plugin-which 2.2.29 (core)",
    "@salesforce/cli 2.4.10 (core)",
    "apex 2.3.10 (core)",
    "auth 2.8.12 (core)",
    "data 2.5.5 (core)",
    "deploy-retrieve 1.[17](https://github.com/jdschleicher/sf-sfdx-cli-version-troubleshooting/actions/runs/5893258460/job/15987028213#step:3:18).2 (core)",
    "info 2.6.38 (core)",
    "limits 2.3.29 (core)",
    "login 1.2.25 (core)",
    "org 2.9.30 (core)",
    "schema 2.3.[22](https://github.com/jdschleicher/sf-sfdx-cli-version-troubleshooting/actions/runs/5893258460/job/15987028213#step:3:23) (core)",
    "settings 1.4.[24](https://github.com/jdschleicher/sf-sfdx-cli-version-troubleshooting/actions/runs/5893258460/job/15987028213#step:3:25) (core)",
    "sobject 0.2.2 (core)",
    "source 2.10.30 (core)",
    "telemetry 2.2.5 (core)",
    "templates 55.5.9 (core)",
    "trust 2.5.4 (core)",
    "user 2.3.[28](https://github.com/jdschleicher/sf-sfdx-cli-version-troubleshooting/actions/runs/5893258460/job/15987028213#step:3:29) (core)"
  ]
}

Additional information

still seeing issue with latest ( that's what we started with as well)

I have a dev team that is reporting similar issues.  Still trying to get details now.

Same issue here.

rerunning test workflows now : https://github.com/jdschleicher/sf-sfdx-cli-version-troubleshooting/actions/runs/5893258460

we have also submitted a help desk case with salesforce

Hey, sorry for the late reply.
@jdschleicher @jprichter @ImJohnMDaniel what's the instance of your hub?
@jdschleicher that json response includes a record, do you see more info in your hub?
sf data get record --where Id=<record-id> --target-org <hub-username> --sobject ScratchOrgInfo

hey hey @cristiand391  thank you. See below for scratchorginfo :

{
  "status": 0,
  "result": {
    "attributes": {
      "type": "ScratchOrgInfo",
      "url": "/services/data/v58.0/sobjects/ScratchOrgInfo/2SROE00000002de4AA"
    },
    "Id": "2SROE00000002de4AA",
    "OwnerId": "005t0000001kkZ1AAI",
    "IsDeleted": false,
    "Name": "00019195",
    "CreatedDate": "2023-08-17T15:48:26.000+0000",
    "CreatedById": "005t0000001kkZ1AAI",
    "LastModifiedDate": "2023-08-17T15:49:41.000+0000",
    "LastModifiedById": "005t00000015dbUAAQ",
    "SystemModstamp": "2023-08-17T15:49:41.000+0000",
    "LastViewedDate": "2023-08-17T15:49:41.000+0000",
    "LastReferencedDate": "2023-08-17T15:49:41.000+0000",
    "Edition": "Developer",
    "Username": null,
    "AdminEmail": null,
    "OrgName": "Dreamhouse",
    "DurationDays": 1,
    "ConnectedAppConsumerKey": "PlatformCLI",
    "ConnectedAppCallbackUrl": "http://localhost:1717/OauthRedirect",
    "Namespace": null,
    "Features": "Walkthroughs;EnableSetPasswordInApi",
    "Country": null,
    "Language": null,
    "Instance": null,
    "Package2AncestorIds": null,
    "SourceOrg": null,
    "HasSampleData": false,
    "Release": "Current",
    "SignupUsername"<EMAIL_ADDRESS>    "Status": "Error",
    "ErrorCode": "C-1033",
    "ScratchOrg": null,
    "SignupInstance": null,
    "AuthCode": null,
    "SignupCountry": "US",
    "SignupLanguage": "en_US",
    "SignupEmail"<EMAIL_ADDRESS>    "SignupTrialDays": 1,
    "LoginUrl": null,
    "Description": null,
    "ExpirationDate": "2023-08-18",
    "LastLoginDate": null,
    "DeletedBy": null,
    "DeletedDate": null
  },
  "warnings": []
}

and hub instance?
sf data query -q 'select InstanceName from Organization' -o <hub-username>
I don't any current incident but we can ask signup folks.

thank you @cristiand391

{
  "status": 0,
  "result": {
    "records": [
      {
        "attributes": {
          "type": "Organization",
          "url": "/services/data/v58.0/sobjects/Organization/00Dt0000000LAyREAW"
        },
        "InstanceName": "NA291"
      }
    ],
    "totalSize": 1,
    "done": true
  },
  "warnings": []
}

@cristiand391, our DevHubs are on NA107 and NA217.

@jdschleicher @jprichter @ImJohnMDaniel sorry for the late reply, they said they don't see any error for those instancse but  they got the Summer '23 patch 17.1 around August 16 which seems related.
I'll try to get more details on Monday, but opening a case might help getting more attention.

thank you @cristiand391  still receiving same error as of 1:45 PM EST 8/19

@jdschleicher - your DevHub is NA291.   That is currently running "Summer '23 Patch 17.1".  All of the DevHubs that I am having problems with are on instances where they are running "Summer '23 Patch 17.1".  Where I don't have problems are DevHubs running "Summer '23 Patch 17.2" or higher.  There is a scheduled database maintenance window later this evening on these instances that are running into issues.  My plan is to check tomorrow, after the maintenance window, and see if the instance has been upgraded to patch 17.2, and then try this again.

many thanks @ImJohnMDaniel that sounds like a plan

The maintenance window came and went. The affected orgs were not updated to "Summer '23 Patch 17.2" or higher. The problem persists when attempting to create scratch orgs from devhubs on those instances.
My personal devhub is on NA129 which is on Summer '23 Patch 17.2 and I can create scratch orgs from there without issue.

@cristiand391 -- I am seeing the same things that @jprichter is seeing.  Are you able to find out when instances like NA107, NA215, and NA291 will be getting upgraded to Summer '23 Patch 17.2 or higher?  It certainly was not last night 😉

Anyone have any feedback from Salesforce on this issue?

negative @ptc-tsweet , we have a case in, completely blocked. been open for a 5 days

Asked again, no public KI or update on status page but there's an ongoing investigation about this.

We also have a case open with Salesforce. The response to this issue from Salesforce has been embarrassing. Incredible that such basic tooling is left completely broken for such a large and important population of their customers for so many days.

Hi, we are working on fixing this issue, can someone please try to see if it's still reproducible?

@etroiani  -- I just tried on NA107 and got the same error

Can you please provide more detailed info such as Scratch Org Ids Request ( those Ids are starting with 2SR ) for each Instance? Thank you! ( we will need to use those for our search in logs )

@etroiani -- getting data ready now.  I am sending it directly to Milly Millbanks now via email

Can anyone please do a test now? Thank you,

@etroiani -- Just tested.  NA107 and NA215 are both working.

ok, can we also get customers on the other pods confirming testing and confirming the output of their tests? Thanks again!

@etroiani @cristiand391
working here as well. What learnings can we share with our Customers to provide confidence going forward?


Semantic HTML elements.

As a web developer
I want to add semantic HTML elements
So that elements clearly describe its meaning to both the developer and the browser.

Replaced variety of div elements with semantic elements instead for better readability and accessibility. Also removed trailing slashes and stray end tags to avoid bad interactions with unquoted attribute values, and to help accessibility with screen readers. Tidied up indentation for better readability.


HBASE-23269 Hbase crashed due to two versions of regionservers when rolling upgrading

HBASE-23269 Hbase crashed due to two versions of regionservers when rolling upgrading. JianzhenXu

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m  0s
Docker mode activated.

-1 :x:
patch
0m 10s
https://github.com/apache/hbase/pull/895 does not apply to branch-1.4. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.

Subsystem
Report/Notes

GITHUB PR
https://github.com/apache/hbase/pull/895

JIRA Issue
HBASE-23269

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-895/1/console

versions
git=2.17.1

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@liuml07 Hi, Now I'm developing directly on the branch-1.4  of fork to my github, and then propose a pr, which is still error。How can i do it?

@apurtell Hi, I coding at branch-1.4 branch of forked  in my github, and propose a pr to apache branch-1.4, but also prompt version issue。How can i do it? The problem is same in #844'

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m  0s
Docker mode activated.

-1 :x:
patch
0m  9s
https://github.com/apache/hbase/pull/895 does not apply to branch-1.4. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.

Subsystem
Report/Notes

GITHUB PR
https://github.com/apache/hbase/pull/895

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-895/2/console

versions
git=2.17.1

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m  0s
Docker mode activated.

-1 :x:
patch
0m  9s
https://github.com/apache/hbase/pull/895 does not apply to branch-1.4. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.

Subsystem
Report/Notes

GITHUB PR
https://github.com/apache/hbase/pull/895

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-895/3/console

versions
git=2.17.1

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

I'm not sure about the root cause of error. I think it's suggested to file patches against master branch, even if you want to patch in another branch. When this patch is first committed to the master branch, the committer can backport to branch-1.4.


report error(such as dependency dll can't be found) in the dry run mode?

Hi, when I run the command:
F:\code\codeblocks64-abc\lib\codeblocks\plugins>..\..\..\bin\copypedeps.exe -r -d -v libhelp_plugin.dll ..\..\..\bin

I got the result like below:
libhelp_plugin.dll -> ..\..\..\bin\libhelp_plugin.dll

This means libhelp_plugin.dll will be copied to the destination folder.
But in-fact, the dependency dlls of this libhelp_plugin.dll are not found in the PATH, so I think we need to find a way to report the missing dll errors?
Thanks.

Good point. It should at least be properly documented that copypedeps looks in the PATH to determine what to copy, and there should be proper errors.
The intial goal was to have pedeps as a library and maybe the accompanying utilities where written a bit too simple.


add a log file containing all log messages

This provide more debugging information even in the case where the tool was invoked without any custom log level.

:+1: thanks for confirming


Live API Based AQI Checker

Type of change

[X] Added new project
[X] Bug fix
[X] New features
[X] Enhanced documentation

Changes proposed in this pull request

Project name : LIve API Based AQI with GUI

API Used : Air Visual API

Short description : The Live Air Quality Index Viewer is a Python desktop app with a Tkinter interface. Users can quickly check the real-time Air Quality Index using the AirVisual API. Input your city or specify city, state, and country for comprehensive data. This user-friendly tool dynamically recognizes location details. Ideal for health-conscious individuals concerned about air quality's impact.

Checklist

[X] The code is Python 3 compatible
[X] I have added relevant comments in my file to make code understandable
[X] I have added my project in a folder which includes all the necessary files

@PythonicBoat @Mrinank-Bhowmick would be great to hear any reviews

@Mrinank-Bhowmick
hey, any updates/review on the PR?

Looks good 👍


Update service.yaml

ui.service.additionalPorts causes failure in chart rendering, since no new line is added.
 - port: 8080
   targetPort: http
   protocol: TCP
   name: http
     - name: authenticated
   port: 8081
   protocol: TCP
   targetPort: 8081

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 80.902%

Totals

Change from base Build<PHONE_NUMBER>5:
0.0%

Covered Lines:
6422

Relevant Lines:
7938

💛  - Coveralls


Not Getting GeoPix menu

Describe the bug
I downloaded the zip file and extracted it to my desktop. When I try to open the GeoPix_2.0 file I get the message "Error loading network. File may be truncated." This also just opens a touchdesigner file and not the geopix screen. I get the same error when trying the unextracted zip file in my downloads.
To Reproduce
Steps to reproduce the behavior:

GeoPix-main
GP
GeoPix_2.0
See error

Expected behavior
The GeoPix menu screen to open.
Desktop (please complete the following information):

OS: Windows 10

Did you download the zip file from the code download button?
If so, try downloading the releases package instead and let me know if that works for you.
GitHub is currently undergoing some unexpected maintenance related to file size so that's the goto for now until it's sorted.

You can also download via the GitHub client, and that should work but the green zip download button specifically is not working for a little while.

It works now, I used the initial release

great! will have the repo download button fixed soon enough. thanks for the detailed report


Address reviewer comments

Reference Issues/PRs
Address comments for #15991

@reshamas, could you please merge my PR? I'd rather not to open a new PR... there are so many already.... Thanks!

@reshamas, I'm closing this and open a new PR directly on sklearn. I understand you are a bit busy now... :)


Remove std::thread raw usage replacing it with TaskScheduler.

Relates-to: OLPEDGE-456
Signed-off-by: Andrei Popescu<EMAIL_ADDRESS>

Not needed anymore as task handled by #84.
Closing PR.


Error no module named sklearn

The logp notebook throws an error trying to import what I think is scikit-learn

@jgmeyerucsd Do you have scikit-learn installed?

I tried a different conda enviroment (fastai) and it worked - the first environment must not have had it installed

You can install it yourself in any environment by running
conda install scikit-learn
from the command line.


feat: gas estimation, owner sorting, override multisend

@banteg happy to review these prs. Assign to me the next time.


404: Requested entity was not found.

Hey, I always get a 404 error when I try to send it out. It does not work immediately after the permission has been granted, nor later when the session is over.
{
  error: {
    code: 404,
    message: 'Requested entity was not found.',
    status: 'NOT_FOUND'
  }
}

This is my payload:
{
        "customPushMessage": {
                "target": {
                        "intent": "<global intent>",
                        "userId": "<updateUserId>"
                },
                "userNotification": {
                        "title": "my title"
                }
        },
        "isInSandbox": true
}

My service account seems to work. No NO_PERMISSION errors, no errors in the API metrics google.actions.v2.ActionsFulfillment.SendToConversation
Things I tried to narrow down the error:
1.) Changed the intent name -> PERMISSION_DENIED
2.) Changed isInSandbox to false -> no effect
3.) Changed userId to an invalid value -> INVALID_ARGUMENT
4.) Changed userId to an "old" value -> NOT_FOUND
5.) In another project similar code worked. I created a new project and tried it again, without success.
The action and the service account belong to a G SUITE account. I test it as an ALPHA tester with a "normal" Google account on my Pixel 2.
Does anyone have an idea?
What does this error exactly mean?

I forgot to mention that the Action is in German and that's also the solution I found in the meantime.
Adding locale: 'de' solved it.
{
        "customPushMessage": {
                "target": {
                        "intent": "<global intent>",
                        "userId": "<updateUserId>",
                        "locale": "de",
                },
                "userNotification": {
                        "title": "my title"
                }
        },
        "isInSandbox": true
}


Debugging issue (csp P2)

ERROR 1

Backend not currently running^

recieve the error that states: (TypeError: Failed to fetch)

- viewed in sources that the problem is in the fetch command. added a breakpoint to ensure that was the issue. Realised the issue was with the fetch command.  first thing to check is to ensure that the backend is currently running. Discovered it is not and after running it we see the alert in the screenshot below saying the question has been received.

ERROR 2
recreating an error where for some reason the questions weren't creating.

shows that there is an error with the backend because it is underlining the fetch request and the console.error line.
- Decided to check the network to see if there is anything listed there.
-

network shows this error message in the screenshot above. Decided to look at my API to see where this error message is listed.

realised that I changed the character count requirement to 10 characters so after decreasing the required character count as shown below to 5 characters.

after changing the the character count and rerunning the backend refreshed the frontend webpage and tried again and viewed the response.

As shown above the question is now being received and stored in the SQL database.

Good at creating a scenario for debugging.   I would liked to see a bit more on backend data, particularly after API calls to Model.


Recent update not working in Internet Explorer

After the recent update to v1.0.0, it appears that this module is failing in Internet Explorer. I'm still not sure why or what the final fix would be. Has anyone else seen this?

Yup, same here. The issue seems to be in prismic-richtext, this is what I'm getting on the console:
SyntaxError: Expected identifier, string or number at ./node_modules/prismic-richtext/dist/prismic-richtext.min.js

mmh, that's weird. I actually did a PR on prismic-richtext that was supposed to get rid of that kind of issues. See here: https://github.com/prismicio/prismic-richtext/commit/ab1228f89bc714b93c7515ac1072dd18e672e9ae#diff-11e9f7f953edc64ba14b0cc350ae7b9d
I may take some time to investigate next week but any help would be greatly appreciated

Hey guys,
try updating the package to 1.0.1 and you should be good to go!

Thanks @hypervillain! We'll give it a shot next week!

We got same issue on IE11, upgraded to 1.0.1 and now webpack build gets error below (webpack v4).
TypeError: Cannot read property 'normalModuleFactory' of undefined

`compiler.hooks.normalModuleFactory.tap(pluginName, nmf => {
^

Perfect, I'll close the issue. Tell me how it goes!

The update fixed it for us.


Fix design flaw in writeAccess

There is a design flaw in method VirtualSMCKeystore::writeValueByName.
The value is updated only when writeAccess return SmcSuccess, and the new value is not sent to writeAccess at all. However, there are cases when the plugin needs to check the new value before accepting it.
This pull request fixes it by sending new value as a parameter in writeAccess

Hi,
There is an update method for that, if you need to inspect the new value. It also returns the smc result code, so every other plugins use it this way. Do you still need writeAccess in particular?
Vit

Thank you very much!

"Also, allocating memory and evaluating ACPI objects might lock, so it is not ver safe to use from key methods"
I'm not good at this (don't know mutexes, atomics or spinlocks at all). Can you tell me what should I do?

Basically you should setup a separate IOWorkLoop to gather sensor data on a timer basis from ACPI. You store this data to a global variable, and then guard the access to its data via a spinlock. So reading and writing to the variable happen within the IOSimpleLock critical section. We should have the sample code in SMCLightSensor, which you can use as a reference.

Actually I call SKBV to write new keyboard backlight value, not reading. The sample code in SMCLightSensor is to read lux value

Should I split the code which evaluate ACPI into a separate method and use IOCommandGate to run it?

For this it is not much different from classical queuing. You can make a circular buffer (an array) and write the data you need to write to acpi from the key handler. And then have a separate thread to handle read this data and submit it to acpi. Yes, using a command gate is most reasonable, but you still need to spinlock the circular buffer or use lock-free implementations.


Recent Items is gone form Jump List

Adding custom items to the jump list seems to have removed the recent items jump list feature.
Can this be a setting OR have both?

I didn't see that happening for me. Weird. You on an updated version of Windows 10?

See #17  also

Hmm.. Works as expected on 2004, "broken" on 1809.

@tbasallo hmmm is right :) Not sure why that is. And I'm on 1909 where it works fine too

Broken on 1909, too. I disabled the extension and deleted CustomDestinations file, then the jump list went back to normal. After re-enabling the extension, I just have my pinned projects and the presentation mode options, no recents.


CouchbaseLiteException while adding data

Exception: com.couchbase.lite.CouchbaseLiteException        at com.couchbase.lite.store.SQLiteStore.add(SourceFile:1468)        at com.couchbase.lite.Database.put(SourceFile:1996)        at com.couchbase.lite.Database.putRevision(SourceFile:1943)        at com.couchbase.lite.Database.putRevision(SourceFile:1934)        at com.couchbase.lite.Document.putProperties(SourceFile:526)        at com.couchbase.lite.UnsavedRevision.save(SourceFile:118)        at com.couchbase.lite.Document.update(SourceFile:380)        at couchbase.CouchBaseDBHelper.updateDoc(SourceFile:203)        at couchbase.CouchBaseDBHelper.addTask(SourceFile:139)        at com.pharmeasy.logistic.local.LocalRepoImpl.saveTasks(SourceFile:80)        at com.pharmeasy.logistic.local.LocalRepoImpl$$Lambda$0.subscribe(Unknown Source)        at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(SourceFile:40)        at io.reactivex.Observable.subscribe(SourceFile:10981)        at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(SourceFile:96)        at io.reactivex.internal.schedulers.ScheduledDirectTask.call(SourceFile:38)        at io.reactivex.internal.schedulers.ScheduledDirectTask.call(SourceFile:26)        at java.util.concurrent.FutureTask.run(FutureTask.java:237)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)        at java.lang.Thread.run(Thread.java:818)
Any ideas? On Version 1.4.0

@betaCode95 Can you provide reproducible steps? Normally CouchbaseLiteException has status code and message; could you share that as well? Thanks!

@betaCode95, any more info on this?

Currently, this is the only thing that is getting reported. It happens while inserting data into Couchbase, and occurs sometimes, when this exception is thrown data is not getting thrown. I am actually trying to insert an object which has an XML format with various unusual characters, I am not getting this exception all the time though


package pandas-gbq

A lot of our ad hoc notebooks could be replaced with browser-based ones, if we could access google bigquery 👍

pangas-gbq is a noarch package on conda-forge meaning you can actually install it to be used in a browser-based notebook. Did you see issues with it?

I might be doing things wrong, but here are the steps i took:
docker run -it mambaorg/micromamba
# Inside docker container
micromamba create --name emscripten python=3.8 -c https://repo.mamba.pm/emscripten-forge -c https://repo.mamba.pm/conda-forge
micromamba activate emscripten
micromamba install pandas-gbq -c https://repo.mamba.pm/emscripten-forge -c https://repo.mamba.pm/conda-forge
python
# Inside python prompt
import pandas as pd
import pandas_gbq

And it throws an error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/envs/emscripten/lib/python3.8/site-packages/pandas_gbq/__init__.py", line 1, in <module>
    from .gbq import to_gbq, read_gbq  # noqa
  File "/opt/conda/envs/emscripten/lib/python3.8/site-packages/pandas_gbq/gbq.py", line 14, in <module>
    from pandas.compat import lzip, bytes_to_str
ImportError: cannot import name 'lzip' from 'pandas.compat' (/opt/conda/envs/emscripten/lib/python3.8/site-packages/pandas/compat/__init__.py)

Also happens for python version 3.10.
I never actually spun up the emscripten based jupyterlite environment. In a pyodide environment over at https://jupyterlite.readthedocs.io/en/latest/_static/lab/index.html i get the following output when trying to install this
import piplite
await piplite.install("pandas-gbq", keep_going=True)
(...)
ValueError: Can't find a pure Python 3 wheel for: 'pyarrow<10.0dev,>=3.0.0', 'pyarrow<10.0dev,>=3.0.0', 'pyarrow<10.0dev,>=3.0.0', 'grpcio<2.0dev,>=1.47.0', 'google-crc32c<2.0dev,>=1.0'
See: https://pyodide.org/en/stable/usage/faq.html#micropip-can-t-find-a-pure-python-wheel

These errors might all exist outside of this project, so my motivation for posting it here, is that i'm really excited by the idea of a conda emscripten arch target, as a way to expand the supported python packages, and this is the one blocker at the moment for us to adopt the browser-based notebooks at work.

I might be doing things wrong, but here are the steps i took:

It looks like you are not setting the target platform correctly for the micromamba environment. It needs to be an emscripten-32 platform
Note that you can easily build an emscripten env for usage in jupyterlite using the xeus-python kernel: https://xeus-python-kernel.readthedocs.io/en/latest/configuration.html
No need to run the micromamba commands yourself, xeus-python will make sure to build the env and include it in the kernel so you can import your packages there.

I just tried with
micromamba install pandas-gbq -c https://repo.mamba.pm/emscripten-forge -c https://repo.mamba.pm/conda-forge

and it gives me:
                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

https://repo.mamba.pm/conda-forge/emscripten-32     93.0 B @  46.0 B/s 404 failed  2.0s
https://repo.mamba.pm/emscripten-forge/emscripte..  15.1kB @   7.5kB/s  2.0s
https://repo.mamba.pm/emscripten-forge/noarch      330.0 B @ 152.0 B/s  2.2s
https://repo.mamba.pm/conda-forge/noarch             9.7MB @   3.5MB/s  2.8s
Encountered problems while solving:
  - nothing provides protobuf >=3.0.0 needed by google-api-core-1.0.0-py_0

So it is not yet installable indeed. Let's see if we can get protobuf in.

Thanks for identifying that protobuf is what is needed here, and for pointing out how i can get a working jupyter lite environment up and running.

So protobuf should be available via https://github.com/emscripten-forge/recipes/pull/454 now.
Maybe it means pandas-gbq can be packaged now.

hola necesito ayuda con este error
ModuleNotFoundError: No module named 'google.cloud._helpers'

hola necesito ayuda con este error
ModuleNotFoundError: No module named 'google.cloud._helpers'
solo estoy tratando de importar la libreria pandas-gbq con buildozer para hacer mi apk pero me tira ese error

An app build with bulldozer is usually for android. But here we build for wasm.
This seems the appropriate repo https://github.com/kivy/buildozer
Una aplicación construida con Buildozer es generalmente para Android. Pero aquí estamos construyendo para WASM.
Este parece ser el repositorio apropiado: https://github.com/kivy/buildozer

Maybe it means pandas-gbq can be packaged now

pandas-gbq is noarch on conda-forge, now that protobuf is packaged on emscripten-forge it should be already installable unless another dependency is required, but let's track those dependencies in specific package request issues if needed.
Closing as unrelevant anymore :)