Deployment strategy testing

Renamed the dotnet.yml workflow file to verify this won't kick off when merged into the "prod" branch
Added the initial Dockerfile

Reviewed and approved


Disable emitDecoratorMetadata to fix crash on load

See https://github.com/AlCalzone/node-zwave-js/issues/749 for more information

I'm trying to adhere to conventional-commits, so I'm going to squash-merge your PRs


Create CACHEDIR.TAG file in pixi directories

Problem description
IMO all .pixi directories should be considered ephemeral (and rattler's cache directories as well) and it doesn't make sense to back them up. For this, some programs (like ruff, pytest, ...) create a CACHEDIR.TAG file as described in https://bford.info/cachedir/.
How about pixi also creates such a file in .pixi/envs?

Pixi already (indirectly) depends on cachedir: https://github.com/prefix-dev/pixi/blob/6c1926ba668f20894f5a160f1b4ab4d07e36b22c/Cargo.lock#L684
So I wasn't quite sure if that is Intentional. It increased my backup size by a few hundred MBs of mostly useless files though, so I would be in favor of marking it as cache. My backup tooling understands the cachedir spec.

Sounds like a good idea! Should we add it to the .pixi directory or just the env subdirectory?

Maybe in line with .gitignore the whole .pixi directory?
Although some people might want to persist .pixi/config.toml in their backups 🤔 (not sure how widely this feature is used though)

i am one of those use the .pixi/config.toml as an exception in the .gitignore. :)
imo. only the envs folder should be in the .gitignore and this gives more flexiblity in future for adding/removing data from the .pixi folder . E.g if a global manifest that is project specific can be placed here.

imo only the envs folder should be in the .gitignore

https://github.com/prefix-dev/pixi/pull/1488#discussion_r1632102556

The .pixi folder can contain much more folders than just envs, only the config.toml could make sense to be added to git. So I still wouldn't only add the envs folder.
@vigneshmanick, what do you put in the config.toml that you add to multiple projects?

nothing specific to multiple projects, mostly it's these following
change-ps1
pinning-strategy
pypi-config

The .pixi folder can contain much more folders than just envs, only the config.toml could make sense to be added to git. So I still wouldn't only add the envs folder.
@vigneshmanick, what do you put in the config.toml that you add to multiple projects?

Should we then maybe break currents standards by moving the config.toml to a seperate config folder, and exclude that folder?


Consider implementing this as a repo2docker build backend

This is an awesome project!
Recently, @manics has done a lot of work in allowing alternative backends to repo2docker. https://github.com/manics/repo2podman is the canonical second implementation, using podman. Would love for this to also use that interface, and fix issues we need to upstream.

Are you still interested in this, @andersy005?


Add hajimehoshi/ebiten to list of game-engines

Thank you for contributing! Please confirm this pull request meets the following requirements:

[x] I followed the contributing guidelines: https://github.com/github/explore/blob/master/CONTRIBUTING.md
[x] I have no affiliation with the project I am suggesting (as a maintainer, creator, contractor, or employee).

Which change are you proposing?

[x] Suggesting edits to an existing topic or collection
[ ] Curating a new topic or collection
[ ] Something that does not neatly fit into the binary options above

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[ ] Image (and my file is *.png, square, dimensions 288x288)
[x] Content (and my changes are in index.md)

I believe hajimehoshi's game library hajimehoshi/ebiten should be added to the list above. It is awesome for developing games in go :-)
More info here: https://ebiten.org/
Please let me know if there are any questions.

Thanks so much for your first contribution!  You rock, @kyeett!


streams are not broken at passable crossings

In my current dev db, no streams are broken at passable crossings - either assessed or modelled.
Stats for these crossings are of course not very important - but they do get populated and will be incorrect if streams are not segmented at crossing.

It does look like this is by design in the Makefile - streams are only broken at barriers. Not sure if it is an issue that is worth looking into more at this point.

fixed


Application get stuck in slash screen after prelaunch

After prelaunch the samples applications get stuck in slash screen (and my real life application too). I’ve already describe this and some relates issues in #595 but it looks it get unnoticed :-(.

Could you post a simple snippet of code of what you are doing?

I’m using the Tiles (and Toast)" without any changes. Replicate the issue like this:
• Launch this sample with Debug -> Other debug targets -> Debug Universal Windows App Launch.
• In Lifecycle Events select Suspend.
• Wait at least 10 seconds.
• In Lifecycle Event select Resume.
• Application is now stuck in splash screen.

I cannot replicate this. Also, Prelaunch can (at this time) only be invoked by WACK. How are you concluding that this is a Prelaunch issue?

No, you could use Visual Studio 2015 to launch the application in prelaunch mode. Again, use the menu Debug -> Other debug targets -> Debug Universal Windows App Launch.
Here is an article about it:
https://blogs.msdn.microsoft.com/visualstudioalm/2015/11/30/debug-uwp-prelaunch-with-vs2015/
You also need to suspend and resume the app with the instruction I wrote above to see the problem.

This is now resolved.

Hi Jerry.  I have the same problem as pekspro.    I am using Template 10 source that I pulled down this morning (I needed the fix for #488) and I just added your prelaunch (#612) change.  The good news is that the problem no longer happens in Visual Studio when testing prelaunch (Debug App Prelaunch > Suspend > Resume).  Nice work!  However, my app is still failing the WACK prelaunch test.   I would love to know exactly what that prelaunch WACK Test does.

Me, too, Karen. Driving me up the wall! I need to ping the Wack team and get them to walk me through what it is exactly doing.

You rock!  Thanks.  I learned about the bootstrapper code in the process, but you figured it out the solution before I did.  FYI, I did figure out that overriding OnPrelaunchAsync in my App.xaml.cs and setting "continueStartup = false" would get the Visual Studio test to work (the splash screen would not be stuck).  I mention this in case it's helpful.  On the positive side, my app (Visual Timers) has been using template 10 since September and has been in the store for awhile. FYI - If it wasn't for Template 10, I would have given up developing apps after this last reincarnation of the platform (I have been here since Windows phone 7). The Visual Studio built-in project templates for uwp are not what they need to be.  Thank you sooooo much for creating Template 10.

I can also confirm that this now seems to be solved :-). I’m tested my application in debug mode and through WACK and everything seems to be fine! I’m even override OnPrelaunchAsync and set runOnStartSync to true and everything was still fine. I’m very grateful for this.

More good news.  I figured out why my app was failing the WACK prelaunch test.  See issue #668


remote-ssh: jupyter server not starting for Python Interactive Window

I am using remote-SSH to connect to an Azure Ubuntu 18.04 VM.
I want to execute a python script in Python Interactive Window.
VSCode is stuck at "Starting Jupyter Server" with "Python Extension: Getting jupyter server options ..." being the last log item in the developer console.
Steps to Reproduce:
Ubuntu Setup:

create Ubuntu 18.04 VM
add sudoer user
install Anaconda3-2019.03 in /opt/anaconda
conda create --name azureml python=3.7 pylint
conda activate azureml
try to execute any line in python script (.py file) with "run selection/line in Python Interactive Window"

Version: 1.35.0-insider (user setup)
Commit: 6ac87465f297a9068bf767f45d6f372fc5697de9
Date: 2019-05-17T17:48:07.036Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17134

I am also getting the same problem.

I'll second this. It used to work till couple of days ago..

Did anyone ever figure this out?  I am having the same problem.

@rogerjbos Insiders build 1.35 had an issue with remote development using webviews (which is what the python interactive window uses)
The tracking issue is here:
https://github.com/microsoft/vscode-remote-release/issues/376
Seems like a fix might just have been put in.

Thanks Ian.  I just updated and tested it and it works.


Change Set to implement Hash directly to reduce memory usage.

I thought it might be a good idea to have a Set implementation that uses less memory (by not storing a nil value in each Entry).
A simple performance test shows an advantage (although primarily the advantage should be in less memory used):
s = Set(Int32).new
1000.times do
  (0...100000).each do |v|
    s.add v
  end
end
puts s.length

Crystal 0.7.4 [42efdbf] (Wed Jun 24 00:55:53 UTC 2015)
$ crystal build --release perf_set.cr
$ time ./perf_set
100000

real	0m0.820s
user	0m0.813s
sys	0m0.008s

Crystal master (e19dd68d3151128834e27992f2b84774e242738a)
$ bin/crystal build --release perf_set.cr
Using compiled compiler at .build/crystal
$ time ./perf_set
100000

real	0m0.770s
user	0m0.759s
sys	0m0.008s

The parts of hash.cr that were used were copied directly and modified as necessary to remove the value.

@mrjbq7 This is an excellent observation!
Now, wouldn't it be really cool if you didn't have to do these kind of optimizations by hand, and we had a smarter compiler?
In fact, several days ago @waj made me the same comment: do nil instance variables occupy space in the final object? And I told him that yes, because we represent nil as i1, the smallest integer (1 bit). But it was a comment made far from our computers so we probably forgot about it. So now that you bring this subject again, I searched for "llvm empty type" and it turns out there is such thing: an empty struct!
So, there are actually two things here:

Make nil instance variables not occupy space in an object.
Make Set a struct. Because Set is immutable (it creates a hash but later doesn't modify that hash reference, just the hash itself) it could perfectly be a struct. This is what structs are for: create lightweight wrappers around other objects, so you don't allocate extra memory.

However, for point 2 some days ago I changed Set to a struct and run the havlak benchmark and it turned out to be slower that way, I don't know why. But today I try it and in fact it turns out to be faster, so I must have been doing something wrong...
Well, as you can see, I just made two commits for each of the points above. And because point 1 is a general optimization to the code generated by the compiler, everyone wins! Even the compiler!
The time it takes to compile the compiler went from 16.6s / 8.74s down to 14.85s / 6.78s . There are two times because one is the first run where nothing is cached, the second is the one using cached information from the previous compilation.
Time for the havlak benchmark went from 12.45s to 11.13s, and I'm sure the memory usage went down to but I didn't measure it.
In short: BIG THANKS!! These are the kind of remarks/comments that the language needs :-)
And, of course, the time for your snippet is now faster, from 3.03s to 2.5s (I tried with 4000 iterations, it's better to see these differences with bigger numbers).
Small note: you don't need to compile the compiler to try changes in the standard library. If you use the bin/crystal wrapper, that will use the "new" (current directory) std.

@mrjbq7 I guess we can close this pull request?

@asterite Wow, awesome quick fix!  It's always frustrating to duplicate code - I didn't know the optimizations worked the way you describe - so very cool.  Thanks for the explanation!


how to deploy this locally with ollama UIs like Open WebUI and Lobe Chat ?

I do not think there is currently an API for this.

Hi, so we don't currently have support for deploying locally. Although our APIs should be compatible with any OpenAI compatible api. So one could setup vLLMs for example locally with some modification of the code.


Add pov exercise

One of the three remaining exercises as specified in #171.

@ErikSchierboom I added some really nitpick comments, but I'll merge these changes as soon as the Travis CI build finishes.


Fix: broken link CONTRIBUTING.md

Updated broken link of Contibution.md from readme file to CONTRIBUTING.md

LGTM


Dramatic reduction in the number of proxies

Hello, drastic proxy reduction. Previously, there was parsing on a 60k proxy, now on 600. I think it's a 503 error when parsing blackhatproxy

I just ran the getProxies and got 34k proxies. No geo location filter


Step "open the notebook" has doubts

@saraao commented on Thu Feb 28 2019
第一次阅读时无法理解“工作区页”是什么。可否截图更大些并指出哪里是工作区页部分（像视频中那样截图，或像英文版网页https://docs.microsoft.com/en-us/azure/machine-learning/service/quickstart-get-started那样截图）。

文档详细信息
⚠ 请勿编辑此部分。 docs.microsoft.com ➟ GitHub 问题链接必须具有此部分。

ID: 5ae9c8cf-5f68-9baa-1660-118208034381
Version Independent ID: 48d350ca-0ef8-3500-57ae-a5ec6c36ac79
Content: 通过 Azure 门户快速入门 - Azure Machine Learning service
Content Source: articles/machine-learning/service/quickstart-get-started.md
Service: machine-learning
GitHub Login: @hning86
Microsoft Alias: haining

Hi team,
I'm moving this here since the user is making suggestions on the original documentation
Rought translation:

I can't understand what the "workspace page" is when I first read it. Can I take a larger screenshot and indicate where is the workspace page section (like the screenshot in the video, or like the English page https://docs.microsoft.com/en-us/azure/machine-learning/service/quickstart-get -started like screenshot).

@CeciAc Thanks for the feedback! We are currently investigating and will update you shortly.

@CeciAc Hi CeciAc, the customer is asking using the following big screenshot of the original document:

to replace the following one:

I have no access to fix it, could you do it?
Regards,
Yutong

Thanks, Yutong
I'll check this with the loc team
Kind regards,
Microsoft DOCS International Team


OCPP: evcc unable to charge wants to unplug replug car always (EN+ firmware)

Describe the bug
evcc is now unworkable when your ocpp evse decides to jump to finishing status upon plugging in
Prior to 0.130.0 evcc was quite happy to break ocpp spec and jump from Finishing back to SuspendedEVSE state (IE tell the evse to start charging!)
This happens even if the mode is set to min + solar or it's off (no solar) - I spent almost 1/2 hour trying to evcc into a working state this morning!
Only way to get going now seems to be to restart both the evse & evcc & unplug replug car! & make sure evcc is in min+solar or fast mode before plugging the car in! And not do this too quickly either otherwise evcc crashed see
[ocpp  ] TRACE 2024/08/28 08:23:02 send SN10052307203612: [2,"1810363461","ChangeConfiguration",{"key":"WebSocketPingInterval","value":"30"}]
[ocpp  ] TRACE 2024/08/28 08:23:02 recv SN10052307203612: [3,"1810363461",{"status":"NotSupported"}]
panic: send on closed channel

goroutine 52 [running]:
github.com/evcc-io/evcc/charger.(*OCPP).configure.func1(0x0?, {0x0, 0x0})
	github.com/evcc-io/evcc/charger/ocpp.go:375 +0xc0
github.com/lorenzodonini/ocpp-go/ocpp1%2e6.(*centralSystem).ChangeConfiguration.func1({0x344b480?, 0x40014a63b0?}, {0x0?, 0x0?})
	github.com/lorenzodonini/ocpp-go@v0.18.0/ocpp1.6/central_system.go:78 +0x54
created by github.com/lorenzodonini/ocpp-go/ocpp1%2e6.(*centralSystem).handleIncomingConfirmation in goroutine 87
	github.com/lorenzodonini/ocpp-go@v0.18.0/ocpp1.6/central_system.go:545 +0xc8

Note this evse can't be set to free vend mode as this disables ocpp!
I have tried other combos to try and get going

unplug replug car with evcc enabled for charging - no go ends in finishing state
unplug car, turn off evse, turn on evse, plug car in no go ends in finishing state
restart evcc in enabled mode - doesn't even boot up timeout for ocpp configure

relying upon vendors to fix issues is really a non starter, my only real option is evcc isn't fixed is to implement ocpp in node red and just connect this to evcc.
Steps to reproduce

unplug car
plug car back in
evcc still wants to unplug and plug car back in
jump to 1 evcc still wants to unplug and replug car in!

Linux
Version
0.130.6

The final reason why it jumps to "Finishing" state is an internal timeout of the charger waiting for a transaction to be started after vehicle connection (Available->Preparing) either by the user (RFID or Autostart) or by CS (RemoteStartTransaction).
remotestart: true is set here so evcc SHOULD have started a new transaction but did not do this, at least not in time.
So we need to find out why. Charger signaling itself looks good so far.
What have you set for interval in evcc configuration?
This value might be just too large for the internal transaction timeout trap.
Can you please try to reduce it to interval: 10s and try again?
Additionally please attach the output of evcc charger --diagnose so that we can see all internal configuration settings of the charger.

@premultiply interval was set to 30 seconds, Found 10 seconds was too bouncy but this was quite some time ago when I did the initial setup. I have changed it to 10 can see how this goes tomorrow.

Here is the logs of the evse connecting something might be in here to show why it's saying asking for auth but of course it's charging.
The other weird thing is why is the evse sending the MeterValues and DataTransfer messages twice every 10 seconds. if somehow this wasn't doubled up it may help the issue of the evse deciding to disconnect and being very unstable from 0.130 onwards
[ocpp  ] DEBUG 2024/08/29 08:49:32 charge point connected: SN10052307203612
[ocpp  ] TRACE 2024/08/29 08:49:32 send SN10052307203612: [2,"1159558247","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[ocpp  ] TRACE 2024/08/29 08:49:32 recv SN10052307203612: [3,"1159558247",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/08/29 08:49:34 send SN10052307203612: [2,"2717001353","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[ocpp  ] TRACE 2024/08/29 08:49:34 recv SN10052307203612: [3,"2717001353",{"status":"Accepted"}]
[site  ] DEBUG 2024/08/29 08:49:35 ----
[lp-1  ] ERROR 2024/08/29 08:49:35 charge power: timeout
[ocpp  ] TRACE 2024/08/29 08:49:36 send SN10052307203612: [2,"1015783284","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[lp-1  ] ERROR 2024/08/29 08:49:36 charge currents: timeout
[circuit-main] DEBUG 2024/08/29 08:49:36 power: -527.9W
[circuit-main] DEBUG 2024/08/29 08:49:36 current: 0A
[site  ] DEBUG 2024/08/29 08:49:36 pv power: 1806W
[site  ] DEBUG 2024/08/29 08:49:36 grid meter: -528W
[site  ] DEBUG 2024/08/29 08:49:36 site power: -528W
[lp-1  ] ERROR 2024/08/29 08:49:36 charge voltages: timeout
[lp-1  ] ERROR 2024/08/29 08:49:36 charge total import: timeout
[lp-1  ] DEBUG 2024/08/29 08:49:36 charger status: B
[lp-1  ] DEBUG 2024/08/29 08:49:36 pv charge current: min 6A > 2.3A (-528W @ 1p, battery: false)
[ocpp  ] TRACE 2024/08/29 08:49:36 recv SN10052307203612: [3,"1015783284",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/08/29 08:49:36 send SN10052307203612: [2,"1537393320","SetChargingProfile",{"connectorId":1,"csChargingProfiles":{"chargingProfileId":3,"stackLevel":5,"chargingProfilePurpose":"TxDefaultProfile","chargingProfileKind":"Absolute","chargingSchedule":{"startSchedule":"2024-08-28T22:49:36Z","chargingRateUnit":"A","chargingSchedulePeriod":[{"startPeriod":0,"limit":6}]}}}]
[ocpp  ] TRACE 2024/08/29 08:49:37 recv SN10052307203612: [3,"1537393320",{"status":"Accepted"}]
[lp-1  ] DEBUG 2024/08/29 08:49:37 max charge current: 6A
[ocpp  ] TRACE 2024/08/29 08:49:37 send SN10052307203612: [2,"276879150","SetChargingProfile",{"connectorId":1,"csChargingProfiles":{"chargingProfileId":3,"stackLevel":5,"chargingProfilePurpose":"TxDefaultProfile","chargingProfileKind":"Absolute","chargingSchedule":{"startSchedule":"2024-08-28T22:49:37Z","chargingRateUnit":"A","chargingSchedulePeriod":[{"startPeriod":0,"limit":6}]}}}]
[ocpp  ] TRACE 2024/08/29 08:49:38 recv SN10052307203612: [3,"276879150",{"status":"Accepted"}]
[lp-1  ] DEBUG 2024/08/29 08:49:38 charger enable
[ocpp  ] TRACE 2024/08/29 08:49:38 send SN10052307203612: [2,"1076851147","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[lp-1  ] DEBUG 2024/08/29 08:49:38 wake-up timer: start
[ocpp  ] TRACE 2024/08/29 08:49:39 recv SN10052307203612: [3,"1076851147",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/08/29 08:49:40 send SN10052307203612: [2,"3495524807","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[ocpp  ] TRACE 2024/08/29 08:49:40 recv SN10052307203612: [3,"3495524807",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/08/29 08:49:40 recv SN10052307203612: [2,"7","BootNotification",{"chargePointModel":"23","chargePointSerialNumber":"SN10052307203612","chargePointVendor":"EN+","firmwareVersion":"1.3.53"}]
[ocpp  ] TRACE 2024/08/29 08:49:40 send SN10052307203612: [3,"7",{"currentTime":"2024-08-28T22:49:40Z","interval":60,"status":"Accepted"}]
[ocpp  ] TRACE 2024/08/29 08:49:41 recv SN10052307203612: [2,"8","DataTransfer",{"vendorId":"EN+","messageId":"gatewayInfo","data":"{\"SN\":\"SN10052307203612\",\"fwVer\":\"V43.0.552\",\"gateCode\":107,\"measureType\":1,\"disconnectReason\":4,\"maxCurr\":320,\"phase\":1,\"sdCardStatus\":0}"}]
[ocpp  ] TRACE 2024/08/29 08:49:41 send SN10052307203612: [3,"8",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/08/29 08:49:41 recv SN10052307203612: [2,"offline-1","StopTransaction",{"meterStop":32,"transactionId":2,"transactionData":[{"sampledValue":[{"measurand":"Energy.Active.Import.Register","context":"Transaction.End","value":"0.032","unit":"kWh"}],"timestamp":"2024-08-28T22:48:24Z"}],"timestamp":"2024-08-28T22:48:24Z","idTag":"evcc","reason":"SoftReset"}]
[ocpp  ] TRACE 2024/08/29 08:49:41 send SN10052307203612: [3,"offline-1",{"idTagInfo":{"status":"Accepted"}}]
[ocpp  ] TRACE 2024/08/29 08:49:42 recv SN10052307203612: [2,"9","StatusNotification",{"connectorId":0,"status":"Preparing","errorCode":"NoError","timestamp":"2024-08-28T22:49:41Z","vendorId":"EN+","info":"{\"reason\":\"plugInGun\",\"cpv\":0,\"rv\":0}"}]
[ocpp  ] TRACE 2024/08/29 08:49:42 send SN10052307203612: [3,"9",{}]
[ocpp  ] TRACE 2024/08/29 08:49:42 recv SN10052307203612: [2,"10","Heartbeat",{}]
[ocpp  ] TRACE 2024/08/29 08:49:42 send SN10052307203612: [3,"10",{"currentTime":"2024-08-28T22:49:42Z"}]
[ocpp  ] TRACE 2024/08/29 08:49:43 recv SN10052307203612: [2,"11","StatusNotification",{"connectorId":1,"status":"Preparing","errorCode":"NoError","timestamp":"2024-08-28T22:49:41Z","vendorId":"EN+","info":"{\"reason\":\"plugInGun\",\"cpv\":0,\"rv\":0}"}]
[ocpp  ] TRACE 2024/08/29 08:49:43 send SN10052307203612: [3,"11",{}]
[ocpp  ] TRACE 2024/08/29 08:49:43 recv SN10052307203612: [2,"offline-6","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"1970-01-01T00:00:23Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Trigger"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.0"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"0.0","context":"Trigger"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"0.0","context":"Trigger"},{"measurand":"Power.Active.Import","unit":"W","value":"0.0","context":"Trigger"}]}],"transactionId":2}]
[ocpp  ] TRACE 2024/08/29 08:49:43 send SN10052307203612: [3,"offline-6",{}]
[site  ] DEBUG 2024/08/29 08:49:45 ----
[lp-1  ] DEBUG 2024/08/29 08:49:45 charge power: 0W
[lp-1  ] DEBUG 2024/08/29 08:49:45 charge currents: [0 0 0]A
[circuit-main] DEBUG 2024/08/29 08:49:45 power: -514.3W
[circuit-main] DEBUG 2024/08/29 08:49:45 current: 0A
[site  ] DEBUG 2024/08/29 08:49:45 pv power: 1810W
[site  ] DEBUG 2024/08/29 08:49:45 grid meter: -514W
[site  ] DEBUG 2024/08/29 08:49:45 site power: -514W
[lp-1  ] DEBUG 2024/08/29 08:49:45 charge voltages: [247 0 0]V
[lp-1  ] DEBUG 2024/08/29 08:49:45 detected connected phases: 1p
[lp-1  ] DEBUG 2024/08/29 08:49:45 charge total import: 0.032kWh
[ocpp  ] TRACE 2024/08/29 08:49:45 send SN10052307203612: [2,"2767437662","RemoteStartTransaction",{"connectorId":1,"idTag":"evcc"}]
[ocpp  ] TRACE 2024/08/29 08:49:46 recv SN10052307203612: [3,"2767437662",{"status":"Accepted"}]
[lp-1  ] DEBUG 2024/08/29 08:49:46 charger status: B
[lp-1  ] DEBUG 2024/08/29 08:49:46 pv charge current: min 6A > 2.24A (-514W @ 1p, battery: false)
[ocpp  ] TRACE 2024/08/29 08:49:47 recv SN10052307203612: [2,"12","StartTransaction",{"connectorId":1,"idTag":"evcc","meterStart":0,"timestamp":"2024-08-28T22:49:44Z"}]
[ocpp  ] TRACE 2024/08/29 08:49:47 send SN10052307203612: [3,"12",{"idTagInfo":{"status":"Accepted"},"transactionId":3}]
[ocpp  ] TRACE 2024/08/29 08:49:48 recv SN10052307203612: [2,"13","StatusNotification",{"connectorId":1,"status":"SuspendedEV","errorCode":"NoError","timestamp":"2024-08-28T22:49:45Z","vendorId":"EN+","info":"{\"reason\":\"plugInGun\",\"cpv\":0,\"rv\":0}"}]
[ocpp  ] TRACE 2024/08/29 08:49:48 send SN10052307203612: [3,"13",{}]
[ocpp  ] TRACE 2024/08/29 08:49:48 recv SN10052307203612: [2,"14","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-08-28T22:49:46Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Sample.Periodic"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.0"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"245.8","context":"Sample.Periodic"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"0.0","context":"Sample.Periodic"},{"measurand":"Power.Active.Import","unit":"W","value":"0.0","context":"Sample.Periodic"}]}],"transactionId":3}]
[ocpp  ] TRACE 2024/08/29 08:49:48 send SN10052307203612: [3,"14",{}]
[ocpp  ] TRACE 2024/08/29 08:49:49 recv SN10052307203612: [2,"15","DataTransfer",{"vendorId":"EN+","messageId":"cpChargingParameterRpt","data":"{\"duty\":100,\"cpVolt\":925,\"transactionId\":3,\"totalPowerFactor\":256,\"aPhasesPowerFactor\":0,\"bPhasesPowerFactor\":6,\"cPhasesPowerFactor\":0,\"ccVolt\":256,\"offset0\":2015,\"offset1\":2018,\"leakcurr\":0,\"AMBTemp\":275,\"lockStatus\":1,\"ctCurrent\":9}"}]
[ocpp  ] TRACE 2024/08/29 08:49:49 send SN10052307203612: [3,"15",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/08/29 08:49:51 recv SN10052307203612: [2,"16","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-08-28T22:49:50Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Sample.Periodic"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.0"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"245.4","context":"Sample.Periodic"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"0.0","context":"Sample.Periodic"},{"measurand":"Power.Active.Import","unit":"W","value":"0.0","context":"Sample.Periodic"}]}],"transactionId":3}]
[ocpp  ] TRACE 2024/08/29 08:49:51 send SN10052307203612: [3,"16",{}]
[ocpp  ] TRACE 2024/08/29 08:49:52 recv SN10052307203612: [2,"17","StatusNotification",{"connectorId":1,"status":"Charging","errorCode":"NoError","timestamp":"2024-08-28T22:49:49Z","vendorId":"EN+","info":"{\"reason\":\"plugInGun\",\"cpv\":0,\"rv\":0}"}]
[ocpp  ] TRACE 2024/08/29 08:49:52 send SN10052307203612: [3,"17",{}]
[ocpp  ] TRACE 2024/08/29 08:49:52 recv SN10052307203612: [2,"18","DataTransfer",{"vendorId":"EN+","messageId":"cpChargingParameterRpt","data":"{\"duty\":100,\"cpVolt\":612,\"transactionId\":3,\"totalPowerFactor\":250,\"aPhasesPowerFactor\":0,\"bPhasesPowerFactor\":6,\"cPhasesPowerFactor\":1,\"ccVolt\":250,\"offset0\":2015,\"offset1\":2018,\"leakcurr\":0,\"AMBTemp\":275,\"lockStatus\":1,\"ctCurrent\":12}"}]
[ocpp  ] TRACE 2024/08/29 08:49:52 send SN10052307203612: [3,"18",{"status":"Accepted"}]
[site  ] DEBUG 2024/08/29 08:49:55 ----
[lp-1  ] DEBUG 2024/08/29 08:49:55 charge power: 0W
[lp-1  ] DEBUG 2024/08/29 08:49:55 charge currents: [0 0 0]A
[circuit-main] DEBUG 2024/08/29 08:49:55 power: -596.83W
[circuit-main] DEBUG 2024/08/29 08:49:55 current: 0A
[site  ] DEBUG 2024/08/29 08:49:55 pv power: 1809W
[site  ] DEBUG 2024/08/29 08:49:55 grid meter: -597W
[site  ] DEBUG 2024/08/29 08:49:55 site power: -597W
[lp-1  ] DEBUG 2024/08/29 08:49:55 charge voltages: [245 0 0]V
[lp-1  ] DEBUG 2024/08/29 08:49:55 detected connected phases: 1p
[lp-1  ] DEBUG 2024/08/29 08:49:55 charge total import: 0.000kWh
[lp-1  ] DEBUG 2024/08/29 08:49:55 charger status: C
[lp-1  ] DEBUG 2024/08/29 08:49:55 charge start energy: 0.000kWh
[lp-1  ] INFO 2024/08/29 08:49:55 start charging ->
[lp-1  ] DEBUG 2024/08/29 08:49:55 wake-up timer: stop
[lp-1  ] DEBUG 2024/08/29 08:49:55 charger vehicle id: evcc
[lp-1  ] DEBUG 2024/08/29 08:49:55 soc estimated: 48.00% (vehicle: 48.00%)
[lp-1  ] DEBUG 2024/08/29 08:49:55 vehicle soc: 48%
[lp-1  ] DEBUG 2024/08/29 08:49:55 vehicle range: 201km
[lp-1  ] DEBUG 2024/08/29 08:49:55 pv charge current: min 6A > 4.59A (-597W @ 1p, battery: false)
[ocpp  ] TRACE 2024/08/29 08:49:58 recv SN10052307203612: [2,"19","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-08-28T22:49:56Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Sample.Periodic"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.6"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"245.6","context":"Sample.Periodic"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"0.0","context":"Sample.Periodic"},{"measurand":"Power.Active.Import","unit":"W","value":"152.0","context":"Sample.Periodic"}]}],"transactionId":3}]
[ocpp  ] TRACE 2024/08/29 08:49:58 send SN10052307203612: [3,"19",{}]
[ocpp  ] TRACE 2024/08/29 08:49:59 recv SN10052307203612: [2,"20","DataTransfer",{"vendorId":"EN+","messageId":"cpChargingParameterRpt","data":"{\"duty\":100,\"cpVolt\":615,\"transactionId\":3,\"totalPowerFactor\":250,\"aPhasesPowerFactor\":0,\"bPhasesPowerFactor\":6,\"cPhasesPowerFactor\":1,\"ccVolt\":250,\"offset0\":2015,\"offset1\":2018,\"leakcurr\":10,\"AMBTemp\":275,\"lockStatus\":1,\"ctCurrent\":15}"}]
[ocpp  ] TRACE 2024/08/29 08:49:59 send SN10052307203612: [3,"20",{"status":"Accepted"}]
[site  ] DEBUG 2024/08/29 08:50:05 ----
[lp-1  ] DEBUG 2024/08/29 08:50:05 charge power: 152W
[lp-1  ] DEBUG 2024/08/29 08:50:05 charge currents: [0.6 0 0]A
[circuit-main] DEBUG 2024/08/29 08:50:05 power: 847.59W
[circuit-main] DEBUG 2024/08/29 08:50:05 current: 0A
[site  ] DEBUG 2024/08/29 08:50:05 pv power: 1819W
[site  ] DEBUG 2024/08/29 08:50:05 grid meter: 848W
[site  ] DEBUG 2024/08/29 08:50:05 site power: 848W
[lp-1  ] DEBUG 2024/08/29 08:50:05 charge voltages: [246 0 0]V
[lp-1  ] DEBUG 2024/08/29 08:50:05 detected connected phases: 1p
[lp-1  ] DEBUG 2024/08/29 08:50:05 charge total import: 0.000kWh
[lp-1  ] DEBUG 2024/08/29 08:50:05 charger status: C
[lp-1  ] DEBUG 2024/08/29 08:50:05 soc estimated: 48.00% (vehicle: 48.00%)
[lp-1  ] DEBUG 2024/08/29 08:50:05 vehicle soc: 48%
[lp-1  ] DEBUG 2024/08/29 08:50:05 vehicle range: 201km
[lp-1  ] DEBUG 2024/08/29 08:50:05 pv charge current: min 6A > 0A (848W @ 1p, battery: false)
[ocpp  ] TRACE 2024/08/29 08:50:06 send SN10052307203612: [2,"1785123224","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[ocpp  ] TRACE 2024/08/29 08:50:06 recv SN10052307203612: [3,"1785123224",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/08/29 08:50:07 recv SN10052307203612: [2,"21","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-08-28T22:50:05Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Trigger"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.6"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"245.6","context":"Trigger"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"0.0","context":"Trigger"},{"measurand":"Power.Active.Import","unit":"W","value":"152.0","context":"Trigger"}]}],"transactionId":3}]
[ocpp  ] TRACE 2024/08/29 08:50:07 send SN10052307203612: [3,"21",{}]
[ocpp  ] TRACE 2024/08/29 08:50:07 recv SN10052307203612: [2,"22","DataTransfer",{"vendorId":"EN+","messageId":"cpChargingParameterRpt","data":"{\"duty\":100,\"cpVolt\":615,\"transactionId\":3,\"totalPowerFactor\":250,\"aPhasesPowerFactor\":0,\"bPhasesPowerFactor\":6,\"cPhasesPowerFactor\":1,\"ccVolt\":250,\"offset0\":2015,\"offset1\":2018,\"leakcurr\":20,\"AMBTemp\":275,\"lockStatus\":1,\"ctCurrent\":12}"}]
[ocpp  ] TRACE 2024/08/29 08:50:07 send SN10052307203612: [3,"22",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/08/29 08:50:08 recv SN10052307203612: [2,"23","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-08-28T22:50:07Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Sample.Periodic"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"6.1"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"243.4","context":"Sample.Periodic"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"0.0","context":"Sample.Periodic"},{"measurand":"Power.Active.Import","unit":"W","value":"1504.0","context":"Sample.Periodic"}]}],"transactionId":3}]
[ocpp  ] TRACE 2024/08/29 08:50:08 send SN10052307203612: [3,"23",{}]
[ocpp  ] TRACE 2024/08/29 08:50:09 recv SN10052307203612: [2,"24","DataTransfer",{"vendorId":"EN+","messageId":"cpChargingParameterRpt","data":"{\"duty\":100,\"cpVolt\":615,\"transactionId\":3,\"totalPowerFactor\":250,\"aPhasesPowerFactor\":0,\"bPhasesPowerFactor\":6,\"cPhasesPowerFactor\":1,\"ccVolt\":250,\"offset0\":2015,\"offset1\":2018,\"leakcurr\":20,\"AMBTemp\":275,\"lockStatus\":1,\"ctCurrent\":12}"}]
[ocpp  ] TRACE 2024/08/29 08:50:09 send SN10052307203612: [3,"24",{"status":"Accepted"}]
[site  ] DEBUG 2024/08/29 08:50:15 ----
[lp-1  ] DEBUG 2024/08/29 08:50:15 charge power: 1504W

Correction on the 10 second interval, evcc is too bouncy once solar was above the minimum 6amps, will try 15 seconds
restart evcc with interval setting changed and back to square 1 had to do the following to get working again

turn off evse
unplug car
restart evcc
turn on evse
wait till evcc said disconnected don't plug in car too quick
plug in car

Also evcc has a warning about interval less and 30 seconds can lead to issues, 30 seconds worked pretty well it didn't need to be any quicker, the ocpp stuff shouldn't be doing commands for connection etc.. on the interval schedule.
Or could just go back to 0.129.0 and it was perfect 🤷

So is it working now with the reduced interval or not?
Log looks fine to me now.

No I had to do the whole 6 step process in previous comment to get it working again and that is with a 15 second interval.

Today the interval at 15 seconds I'm getting
[lp-1 ] WARN 2024/08/30 13:43:18 charger logic error: current mismatch (got 16.2A measured, expected 14A)

it's oscillating because the interval is really too quick to get stable power measurements between the evse grid meter and solar inverter and if a household load switches on/off and a major adjustment is required in the evse for solar tracking this occurs.
Lowering the interval to fix this isn't really a solution

evcc is too bouncy once solar was above the minimum 6amps, will try 15 seconds

Sounds like your car consumes reactive power.

Lowering the interval to fix this isn't really a solution

It shouldn't be. In this case: please contact vendor how charger can start session if it can't be started immediately.
Also: it's totally unclear to me why this should have worked on 129. We were also using RemoteStart then and only did this in the regular intervals.

Today the interval at 15 seconds I'm getting

The log doesn't show any of that.
What it shows is this, so there is still a different issue that needs be fixed:

charge power: timeout

Since there are more problems with this charger that do not seem contributable to evcc (https://github.com/evcc-io/evcc/issues/15552) I'm closing here. If there's an actual issue with evcc feel free to reopen.

@andig there were a lot less problems before 0.130.0. I have gone back to 0.129.0 just turn EVSE on off and it started working no funny unplugging car etc required.


Start animation when element is scrolled or is visible in viewport

Hi, I am trying to call the animation when the element is scrolled to or is visible in the viewport. Is there any way to achieve this?

I have the same problem and can't find a solution. Javascript detecting the windows scroll position doesn't seen to work. Are there any solutions?

You have to use a scroll spy - I made this one for a separate project. It's not bulletproof, but it's pretty good. You could use it like this:
<h1 [countUp]="myEndVal"  appScrollSpy [inView]="true" [emitTrueOnce]="true" (scrollSpy)="setCountUp()"></h1>

Then in your component:
setCountUp() {
  this.myEndVal = 345; // whatever number you want to count to
}

This is what it's doing: the scroll spy directive is using the option inView - it emits when the element is in view, the event (scrollSpy) is handled by a setCountUp() method - all it does is set a value to myEndVal. The countUp directive automatically defers animation until you set an end val.

Going to go ahead and close this, hopefully the scroll spy solves your issues


GitHub action to build and push the docker image

This is the first attempt at a GitHub action that builds and pushes the Docker image to the bcgov GitHub container repository. This would also address issue bcgov/von-network/issues/145

Created bcgov/von-network/pull/146 so we may not need to merge this here.


Container unable to resolve class in a Job class

Laravel Version
11.4.0
PHP Version
8.3.6
Database Driver & Version
No response
Description
In a new Laravel application, a singleton class registered within the AppServiceProvider is not resolved inside the constructor of a Job class. While the singleton resolves successfully in web.php, it fails within the job class.
Steps To Reproduce
Test class.
public function __construct($config = array())
{
    $this->config = $config;
}

Registering as singleton in app/Providers/AppServiceProvider.php
$this->app->singleton(Test::class, function () {
    return new Test(['foo' => 'bar']);
});

Testing the / route and it works in web.php.
Route::get('/', function (Test $test) {
    dump($test);
});

Now instead of dump, I dispatch the job and it gives the following exception:
Too few arguments to function App\Jobs\TestJob::__construct(), 0 passed in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bus/Dispatchable.php on line 19 and exactly 1 expected
Route::get('/', function () {
    \App\Jobs\TestJob::dispatch();
});

app/Jobs/TestJob.php
public function __construct(Test $test)
{
    $this->test = $test;
}

Hi there,
Thanks for reporting the problem you are encountering, but it looks like this is a question which may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repository you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.


Adds coverage reports

Coveralls report 15% coverage on my fork. We should decide whether or not to include the badge in the README file.

Changes Unknown when pulling 09494fd6604ebd21a7331fac25e8ffa6882e576e on michelole:master into ** on cogroo:master**.


PYI015 covers parts of PYI052

flake8-pyi

Y015
Only simple default values are allowed for assignments. Similar to Y011, but for assignments rather than parameter annotations.

Y052
Y052 disallows assignments to constant values where the assignment does not have a type annotation. For example, x = 0 in the global namespace is ambiguous in a stub, as there are four different types that could be inferred for the variable x: int, Final[int], Literal[0], or Final[Literal[0]]. Enum members are excluded from this check, as are various special assignments such as all and match_args.

ruff seems to include Y52 in Y15 but does not exclude enums.
in pyi file:
from enum import Enum

class _NoDefault(Enum):
    no_default = ...

no_default: Final = _NoDefault.no_default  # noqa: PYI015
NoDefault = Literal[_NoDefault.no_default]

xref https://github.com/pandas-dev/pandas/pull/53062#discussion_r1185161948

👍 I think the best solution here is to implement Y052, and fix Y015 such that they're non-overlapping (as in flake8-pyi).

@charliermarsh I would like to work on this issue, can you point me to some code pointers and I can work on it.

@sladyn98 I briefly looked into this. The pylint implementation of Y052 and Y015 appear together, it probably makes sense structure things similarly and place it near the ruff implementation of Y015.

Closed by https://github.com/charliermarsh/ruff/pull/4293.


docs(yard): time slice yard callback for perf

Using the new secret React scheduler. Test it for yourself. It actually works nicely for inputs, not that impactful for the slider (but that's an edge case).
Thoughts?

I think https://github.com/uber-web/baseui/pull/2027 is way to go (at least in the near future). Closing this.


Random warnings when using with pChart

I've installed the 7.2 Thread Safe (TS) x86 DLL from the PECL site into the bundled PHP from XAMPP for Windows. It is running on a Windows 10 Enterprise x64 machine.
C:\>php -v
PHP 7.2.1 (cli) (built: Jan  4 2018 04:29:12) ( ZTS MSVC15 (Visual C++ 2017) x86 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies

C:\>php --ri timecop

timecop

timecop => enabled
Version => 1.2.10

Directive => Local Value => Master Value
timecop.func_override => 1 => 1
timecop.sync_request_time => 1 => 1

It works really well for all HTML output, but as soon as I have multiple Graphs on my site (using pChart from here: [https://github.com/bozhinov/pChart2.0-for-PHP7]) i get randomly the following output instead of an image:

Warning:  Unknown: timecop couldn't create method datetime::timecop_orig___construct because already exists. in Unknown on line 0

Warning:  Unknown: timecop couldn't create method datetime::timecop_orig_createfromformat because already exists. in Unknown on line 0

Warning:  Unknown: timecop couldn't create method datetimeimmutable::timecop_orig___construct because already exists. in Unknown on line 0

Warning:  Unknown: timecop couldn't create method datetimeimmutable::timecop_orig_createfromformat because already exists. in Unknown on line 0

Warning:  Unknown: timecop couldn't find method datetime::timecop_orig___construct. in Unknown on line 0

Warning:  Unknown: timecop couldn't find method datetime::timecop_orig_createfromformat. in Unknown on line 0

Warning:  Unknown: timecop couldn't find method datetimeimmutable::timecop_orig___construct. in Unknown on line 0

Warning:  Unknown: timecop couldn't find method datetimeimmutable::timecop_orig_createfromformat. in Unknown on line 0

To simulate the problem I took one of the example files from pChart (not using any timecop functions), removed the output command (otherwise you get only an ugly error from Firefox that the image is invalid) and reloaded it very quickly in the browser (just hammering on the F5-Key). The above error message then randomly appears on the screen (I got lucky to stop pressing F5 to see the message).

Seeing similar things on my local build - if the requests come in one at a time there aren't problems, but as soon as lots of requests hit at the same time it blows up.

Should be fixed by PR #45


Translated chapters 1-4 of the Rust tour in Romanian 🇷🇴

I will reread every chapter and fix the addressing mistakes.

Looks good.

Would you like me to open 3 other PRs for chapters 2-4?

Would you like me to open 3 other PRs for chapters 2-4?

No, this looks good. Please send the PR to upstream and post a link to it.

I will read the chapters again and rewrite some parts, thank you!

https://github.com/richardanaya/tour_of_rust/pull/455

I suggest adding the Romanian flag 🇷🇴 (copy paste) to the upstream pull request title.

@RaresCon please make the suggested changes to each chapter and submit with each one a pull request to upstream.

@RaresCon please make the suggested changes to each chapter and submit with each one a pull request to upstream.

Will do as fast as possible.

@RaresCon Please select a timeslot for the interview https://doodle.com/meeting/participate/id/eZ8gOOEb.

Chapter_1 PR is on upstream.

Please set to resolve the discussions that we can close.

Chapter 2 PR is on upstream. I hope to resolve Chapter 3 and 4 by Monday.

Chapter 3 PR is on upstream. Chapter 4 is coming up.


[BUG] Connect-PnPOnline fails in v1.6 and the latest nightly build in PowerShell 7

Reporting an Issue or Missing Feature
Issue
Expected behavior
Connect-PnPOnline should connect to the site in the -Url parameter
Actual behavior
Whenever using the cmdlet (whether using stored credentials, or the -Interactive parameter), I get the error:
"Connect-PnPOnline: Could not load file or assembly 'Microsoft.Identity.Client, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'. Could not find or load a specific file. (0x80131621)"
Steps to reproduce behavior
Connect-PnPOnline -Url $mysite -Credentials $cred
or
Connect-PnPOnline -Url $mysite -Interactive
What is the version of the Cmdlet module you are running?

1.6.0
1.6.10

Which operating system/environment are you running PnP PowerShell on?

[x] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

@arielkropp - This command is used thousand of times everyday, so it must have been at a point in time. No issues now.

@veronicageek - It seems this was an error due to having the Az modules installed as well; removing all Az modules resolved the error;
I'm still not sure why though - I was not importing any of the Az modules into a script.

@arielkropp @veronicageek I had the same issue while having Az.Accounts module version 2.2.8 installed. Upgrading Az.Accounts to the latest version (2.4.0) fixed the issue for me


Fix hiding of sensitive data in requests

The previous implementation does not correctly handle:

prefixes in json
suffixes in forms & json
case sensitivity in forms & json
nested values in json

These changes should fix the above issues.

And make the Travis green

Tests are only failing on Python 2.7. Once rebased, hopefully, Travis will be green too.

Rebased, let's hope that the tests will be nice and green :-)


dapr init not working on windows 11

In what area(s)?

/area docs

What version of Dapr?
latest  i-e 1.11.2

1.1.x

Expected Behavior
dapr init should work okay as in case of ubuntu
Actual Behavior
dapr init
Making the jump to hyperspace...
Container images will be pulled from Docker Hub
Installing runtime version 1.11.2
Downloading binaries and setting up components...
error moving daprd binary to path: exec: "powershell": executable file not found in %!P(MISSING)ATH%!(NOVERB)
as CMD is running in administrative mode and I also check for powershell but same error
Steps to Reproduce the Problem
Follow the install guide in windows 11.

I'm facing the same issue. Is there anyone looking at it?


Bandit throwing error on Python 3.7

Describe the bug
Bandit throwing error on Python 3.7.X
When I try to run Bandit (bandit==1.7.4) using Python version 3.7.X , I get an error "Error: Process completed with exit code 1."
Running the scanner on Python 3.8 and above works just fine but not 3.7. We know that the latest bandit no longer supported python 3.6 and below.
Error Message:
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/stevedore/_cache.py", line 159, in _get_data_for_path
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/.cache/python-entrypoints/a1cb74cb84264c966888fa7a9c801bef153d99daa5096a7a254c6e987[46](https://github.com/ExxonMobil/Goats/actions/runs/3186807840/jobs/5197763724#step:4:47)324b3'

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/runpy.py", line 142, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/bandit/__init__.py", line 7, in <module>
    from bandit.core import config  # noqa
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/bandit/core/__init__.py", line 5, in <module>
    from bandit.core import config  # noqa
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/bandit/core/config.py", line 15, in <module>
    from bandit.core import extension_loader
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 109, in <module>
    MANAGER = Manager()
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 21, in __init__
    self.load_formatters(formatters_namespace)
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/bandit/core/extension_loader.py", line 29, in load_formatters
    verify_requirements=False,
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/stevedore/extension.py", line 136, in __init__
    verify_requirements)
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/stevedore/extension.py", line 218, in _load_plugins
    for ep in self.list_entry_points():
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/stevedore/extension.py", line 207, in list_entry_points
    eps = list(_cache.get_group_all(self.namespace))
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/stevedore/_cache.py", line 179, in get_group_all
    data = self._get_data_for_path(path)
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/stevedore/_cache.py", line 1[62](https://github.com/ExxonMobil/Goats/actions/runs/3186807840/jobs/5197763724#step:4:63), in _get_data_for_path
    data = _build_cacheable_data(path)
  File "/opt/hostedtoolcache/Python/3.7.9/x[64](https://github.com/ExxonMobil/Goats/actions/runs/3186807840/jobs/5197763724#step:4:65)/lib/python3.7/site-packages/stevedore/_cache.py", line 110, in _build_cacheable_data
    for name, group_data in real_groups.items():
AttributeError: 'EntryPoints' object has no attribute 'items'
Error: Process completed with exit code 1.

Any idea what's up?
Reproduction steps
1.Run bandit on Python 3.7

Expected behavior
Scanning completed and show all the findings
Bandit version
1.7.4 (Default)
Python version
3.7
Additional context
No response

Hi @muaz-jasman, this seems to be the same issue as reported in #951. I already opened a pull request #952 to fix this.

Problem fixed in stevedore 3.5.2
@muaz-jasman please close this issue if you don't reproduce it with Python 3.7 + stevedore 3.5.2.

Noted as fixed in stevedore 3.5.2


Provide Windows binaries on PyPI

I'm on Windows and I don't know how to build packages. I'd like to run pip install jaxlib and have it work.
I saw there's discussion on #438, but that ticket was about supporting Windows. It seems that Windows is partially supported now, so this is a separate ticket for providing a Windows binary on PyPI.

+1

+1

Will this ticket cover conda installs on windows as well?

+1

Here are a few precompiled Windows wheels for jaxlib (unsupported)
https://github.com/erwincoumans/jax/releases/tag/winwhl-0.1.61

I compiled the latest main-branch jaxlib on Windows with surprisingly no problems at all.

Bazel 4.1
Python 3.9.6
CUDA 11.4

I maintain a public windows builder at https://github.com/cloudhan/jax-windows-builder via Github Actions
Disclaimer: I am a Microsoft empolyee but this builder is not an effort from Microsoft.

@cloudhan Amazing. Thank you for providing this!

I just wanted to chime in here and say that while its great that someone has created a github repo with windows wheels, we are still constantly getting error reports from users who can't install our python library on windows because there is no jaxlib wheels on PyPI.
I know that it might not be a priority, but considering theres an Open Source fork already that does it, maybe it's worth prioritising. I am noticing this issue across many of Googles open source ML libraries where there is either no Windows wheels or no Arm64 wheels on Linux.
This means all down stream libraries that try to use Google ML libraries essentially have no windows or arm64 linux (think Docker Containers on Apple Silicon) support out of the box.
To work around this, we either compile our own and provide pre-built wheels into the container build process or use a bootstrapping tool which detects unsupported platforms and provides instructions on how to install these third party forks.

Good news! We just shipped experimental jaxlib CPU-only wheels on pypi for JAX 0.4.13 for Python version 3.9-3.11. It will probably take a few releases to mature fully and for us to shake out all the bugs, so please report problems.
We'd like to thank everyone from the community that has helped get us to this point! (e.g @cloudhan @mlxd and I'm sure there are others I'm forgetting.)
JAX on Windows is a community-supported effort, but we now have regular CI testing and we're hoping to release CPU-only wheels regularly from now on. PRs to make it even better are very welcome!


Allo to disable publication of modules

Disable publication of

apollo-execution
apollo-ksp

I updated Gradle to 8.4 which fails on https://github.com/JetBrains/gradle-intellij-plugin/issues/1469, reverting...


Issue Report: /en-us/change-history

If you need help troubleshooting a problem with the Amazon Ads API, visit the Amazon Ads API service desk. Issues are for reporting documentation bugs and requesting enhancements only.
Describe the bug
When I try to call this API, I frequently receive a 429 too many requests error code. However, I am certain that I am making the API calls at a slow rate. Even when I wait for almost 10 minutes before attempting to call again, I still encounter the 429 error code. I'm unsure how to resolve this issue.
Request Url:  https://advertising-api.amazon.com/history
Request Boyd:
{         "fromDate":<PHONE_NUMBER>000,         "toDate":<PHONE_NUMBER>000,         "count": 200,         "sort": {             "key": "DATE",             "direction": "DESC"         },         "eventTypes": {             "PRODUCT_TARGETING": {                 "filters": [                     "BID_AMOUNT"                 ],                 "eventTypeIds": [                     "224633123219965"                 ],                 "parents": [                     {                         "useProfileIdAdvertiser": true                     }                 ]             }         }
Response:
{         "body": {             "message": "Too Many Requests"         },         "header": {             "server": "Server",             "date": "Tue, 27 Jun 2023 02:03:14 GMT",             "content-type": "application/json",             "content-length": "31",             "connection": "keep-alive",             "x-amz-rid": "5FT3ERKD9A201XBRB775",             "x-amzn-requestid": "10560978-1702-4bea-b8e7-b3899fcfeda0",             "x-amzn-errortype": "TooManyRequestsException",             "x-amz-apigw-id": "HJ93dEztIAMF4QA=",             "x-amzn-trace-id": "Root=1-649a4362-c2ec76b615af2e225362ddf1",             "vary": "Content-Type,Accept-Encoding,User-Agent",             "strict-transport-security": "max-age=47474747; includeSubDomains; preload"         },         "statusCode": 429,         "errorCode": 0     }

Hi @zhanyue24 , this is not expected behavior.
Based on similar recent tickets in our Jira service desk, the engineering team may have resolved this in the last day, so please let us know whether you observe the same behavior now. If the problem persists, please submit an issue to the Amazon Ads API service desk.


add steps on how to update the submodules in the readme

@vpchung Please prefix inline lines of code with 4 spaces (currently 7). For code longer than one line, we can follow Google's recommendation and use codeblocks with the language specified.


can't install on macOS, getting "Error: eloston-chromium: It seems the App source '/Applications/Chromium.app' is not there."

OS/Platform
macOS
Installed
OS/Platform's package manager
Version
n/a, cuz cant install it lol
Have you tested that this is not an upstream issue or an issue with your configuration?

[ ] I have tried reproducing this issue in Chrome and it could not be reproduced there
[ ] I have tried reproducing this issue in vanilla Chromium and it could not be reproduced there
[ ] I have tried reproducing this issue in ungoogled-chromium with a new and empty profile using --user-data-dir command line argument and it could not be reproduced there

Description
can't install on macOS, getting "Error: eloston-chromium: It seems the App source '/Applications/Chromium.app' is not there."
How to Reproduce?

open terminal
paste brew install --cask eloston-chromium
press enter/return

Actual behaviour

Expected behaviour
for the browser to install
Relevant log output
No response
Additional context
No response

CC @Cubik65536

Can you try to uninstall the app and reinstall it with the command? I cannot reproduce this issue on my end.

how do i uninstall it?

brew remove --cask eloston-chromium

uninstalling and reinstalling worked, ty!


RecursionError: maximum recursion depth exceeded

Thanks for your amazing work
Recently i got this error in the default env(base) which has never happened before
I reinstalled serveral time and the networkx version is 2.5
Should i add 'sys.setrecursionlimit(100000)' to a certain file?
or how can i fix it?
$ conda-tree deptree --full
Traceback (most recent call last):
File "/home/UserName/anaconda3/bin/conda-tree", line 10, in
sys.exit(main())
File "/home/UserName/anaconda3/lib/python3.8/site-packages/conda_tree.py", line 321, in main
tree, state = print_dep_tree(g, pk, None, state)
File "/home/UserName/anaconda3/lib/python3.8/site-packages/conda_tree.py", line 134, in print_dep_tree
tree_str, state = print_dep_tree(g, pack, pkg, state)
File "/home/UserName/anaconda3/lib/python3.8/site-packages/conda_tree.py", line 134, in print_dep_tree
tree_str, state = print_dep_tree(g, pack, pkg, state)
File "/home/UserName/anaconda3/lib/python3.8/site-packages/conda_tree.py", line 134, in print_dep_tree
tree_str, state = print_dep_tree(g, pack, pkg, state)
[Previous line repeated 988 more times]
File "/home/UserNameanaconda3/lib/python3.8/site-packages/conda_tree.py", line 66, in print_dep_tree
edges = g.out_edges(pkg) if down_search else g.in_edges(pkg)
File "/home/UserName/anaconda3/lib/python3.8/site-packages/networkx/classes/digraph.py", line 897, in edges
return OutEdgeView(self)
File "/home/UserName/anaconda3/lib/python3.8/site-packages/networkx/classes/reportviews.py", line 994, in init
self._adjdict = G._succ if hasattr(G, "succ") else G._adj
File "/home/UserName/anaconda3/lib/python3.8/site-packages/networkx/classes/digraph.py", line 359, in succ
return AdjacencyView(self._succ)
RecursionError: maximum recursion depth exceeded

No, 'conda-tree deptree' works fine
$ conda tree cycles
beautifulsoup4 -> soupsieve -> beautifulsoup4


remove the constraint of sds request.resource must be in spiffe format

https://github.com/istio/istio/issues/9035
previous in collab-gcp-identity branch, we set constraint that SDS discoveryRequest.ResourceName must be in spiffe format; this isn't necessary since CA uses identity parsed from oauth token; this PR removes this constraint so that SDS could support for envoy bootstrap case(with controlplanesecurity enabled).

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: incfly
If they are not already assigned, you can assign the PR to them by writing /assign @incfly in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

security/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: wattli
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

security/OWNERS [wattli]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


add proxy guide for Deno to advance proxy document

@KnorpelSenf sorry for the latency, I missed this.


Failing to pull docker containers

C:\Users\spull\ideaprojects\datalens>docker compose up
[+] Running 4/4
 ✘ control-api Error                                                                                0.6s
 ✘ datalens Error                                                                                0.6s
 ✘ data-api Error                                                                                0.6s
 ✘ us Error                                                                                0.6s
Error response from daemon: Head "https://ghcr.io/v2/datalens-tech/datalens-data-api/manifests/0.2037.0": denied: denied

Same issue with image datalens-tech/datalens-us:0.92.0

@spullara @dishkakrauch hi, do you still have this error?

@resure yes, I do. Had to manually download image from github to make and load to local repo to make everything work unfortunatelly.

I have the same issue. Mac OS Sonoma 14.0 (Intel-based).
HC=1 docker compose up

[+] Running 7/7
 ✘ data-api Error                                                                                2.0s
 ✘ us Error                                                                                2.0s
 ✘ pg-us Error                                                                                2.0s
 ✘ pg-compeng Error                                                                                2.0s
 ✘ postgres-connection Error                                                                                2.0s
 ✘ control-api Error                                                                                2.0s
 ✘ datalens Error                                                                                2.0s
Error response from daemon: Head "https://ghcr.io/v2/datalens-tech/datalens-control-api/manifests/0.2037.0": denied: denied

Alright, the comment from here resolved the issue. In short:
docker logout ghcr.io
# pull again

Hi, @spullara, @dishkakrauch!
This is normal behavior for Docker. If you have an outdated login, you will not be able to pull from any registry, including open.
So you need to docker logout ghcr.io before try again.


Hi

hi how do you do this

I would delete this soon as this isn't an issue but I suggest you install Theos. Then you'll be able to build this project.


Prune the docker build cache too

Does what it says. At the moment we just let the build cache grow forever.

Closing in favour of #642


Update quickstart.rst

Removed quotes in setup.cfg which caused build to fail.

Can we have these changes merged soon? I hadn't used setuptools before, looked up how to do it yesterday, and thanks to this error the "quickstart" was anything but quick.


style: rename transfer steps

https://hackmd.io/wKy5TKXxQqGvQVIiOdVdUg
In case of Near -> Ethereum transfer back, these 2 steps can also be improved (and combined ?)

‘Await NEAR finality for withdrawal transaction’
‘Sync withdrawal transaction to Ethereum’

Agree.

‘Await NEAR finality for withdrawal transaction’
Maybe remove this step at all? It happens in 2 sec max. Comparing to the next step it's nothing. Also, 3 steps is better than 4.
‘Sync withdrawal transaction to Ethereum’
Maybe change this into 'Wait for withdrawal confirmation on Ethereum (up to 17 hours)'.

Also, the amount of confirmations (Ethereum -> NEAR) and the waiting period in the above step is variable and may change in the future. For sure the numbers are different for different deployments (we need to allow for this).
The best option would be to have an endpoint from the relayers where FE can query an estimate for how long a use should wait. I'll create a separate issue for this.

‘Await NEAR finality for withdrawal transaction’

Maybe remove this step at all? It happens in 2 sec max. Comparing to the next step it's nothing. Also, 3 steps is better than 4.

I'll leave it to @paouvrard whether to implement this or not, but I want to give some context for why a separate step was initially included here.
Each step shown in the UI corresponds to a separate, asynchronous step in the transfer process. Meaning that once there's withdraw data to check ("Convert X to Y"), there's no blocking and waiting for new blocks to be created to get subsequent information.
withdraw / checkWithdraw functionality is quite complicated. Complicating it even more to block and wait for the finality block to be created will complicate it even more.
From a communicating-to-the-user perspective, I also kind of like having this here. It tells advanced users (most of the users of this app?) that NEAR has finality. And it make it feel like NEAR is fast, while the "waiting for Ethereum" part is long 😄


Open a viewcontroller programmatically

How to open a view controller programmatically?

#58

From Left/Right Menu Controller
navigationController?.pushViewController(vc, animated: true)


Typescript error while using smol-toml

I get this error while compiling my code with TypeScript
node_modules/smol-toml/dist/error.d.ts:28:25 - error TS2552: Cannot find name 'ErrorOptions'. Did you mean 'TomlErrorOptions'?

28 type TomlErrorOptions = ErrorOptions & {
                           ~~~~~~~~~~~~

Found 1 error in node_modules/smol-toml/dist/error.d.ts:28

Turns out you need to set your tsconfig.json target option to es2022 or higher to use smol-toml

This is expected; smol-toml does not support Node < 18 (it might work, but there is no support for this). Node 18 fully implements ES2022 and as such it is what your tsconfig should be targeting.
I generally recommend picking up configs from tsconfig/bases which come with the necessary config for given environments. The preset for Node 18 does target ES2022.


Main DB won't initialize

The main db won't initialize under the new settings that replaced the mainsettings model function for a custom setting. The problem may be the init_stores.py, which I noticed has not been updated to reflect the custom settings change. I tried a few things like using the app.get_custom_setting or just commenting out the line of code that references the main settings but that did not work.
The app cannot be installed successfully without fixing this.

@msouff, I haven't tested initializing the db. I will look at that and see if I can get it fixed. Thanks!


Add setting - Add CharacterDrop

Add setting to add in a characterdrop component.
Drop That should attempt to modify the prefabs themselves when this is set.
Don't bother limiting to creatures, why not let rocks have CharacterDrops?

Too specialized.
Would want to do that in a mod on its own. Just adding various components to prefabs.


textAlign and textBaseline are not working

Tried setting textAlign and textBaseline. Does not make any difference
ctx.textAlign ="center";
ctx.textBaseline="middle";

This is expected behavior. Read the README.md of the repo.
Just because it's expected, doesn't mean it's good though...


⚠ Bofrost.es has degraded performance

In c2b040f, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 2646 ms

Resolved: Bofrost.es performance has improved in 5de798d after 7 minutes.


Update submodules. Fix DM bugs in test_basic.py

Updates all the submodules to their current mains. Also updates the tests querying "Tiff" as a storage device to query "tiff" instead in order to get tests passing.

Also, for reference, see acquire-project/acquire-core-libs#4.


Use semantic-release-gitmoji

:tada: This PR is included in version 1.1.1-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Bomb Threat widget - widget.js uses incorrect path to symbols in config file

Running the widget on Web AppBuilder Dev 1.0.
I was getting 'this.config.symbols is undefined' errors when clicking on the map to draw the explosion location.
I modified my local copy of widget.js to replace all 'this.config.symbols' references to 'this.config.bombThreat.symbols' and it worked.

@kerryrobinson thanks for catching that. I'll make the necessary changes to the code.


Account for CR in prepared statements, add tests

Closes https://github.com/cloudflare/workerd/issues/1300
This PR adds \r into the logic that makes sure there is nothing more than whitespace at the end of a prepared statement, otherwise it will throw an error indicating that a prepared statement can only contain one statement.
Accompanying tests have been added to make sure that spaces, CR, LF and CRLF are accepted as whitespace as well that multiple statements are rejected.

@vickykont I think this might be good to merge now -- would you mind re-reviewing?

Users are somewhat regularly still hitting this in the Discord - is there anything left before this can be merged?


Manifest subtitles V

  Boilerplate (own code, improvement/feature/fix)
In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check one of the following options:

I am the original author of this code and I am willing to release it under Unlicense

What is the purpose of your pull request?

Improvement
New feature
Bug fix

Previously in this series: #247, #515, #948, #2686.
The Go case was caught, again, on issue tracker: https://github.com/yt-dlp/yt-dlp/issues/2764#issuecomment-1038542729, https://github.com/yt-dlp/yt-dlp/issues/2818#issuecomment-1046365267. This PR is not expected to resolve the overall tickets, though.
The fix for viu is speculative, as the reporter in the upstream ticket (ytdl-org/youtube-dl#30779) used the direct stream URL instead of the player frontend URL. It is not certain if this will work, as I have no means to test it.
As a side note, the viu extractor contains a somewhat curious FIXME comment, which I did not address here, but I think is worth paying some attention to:
https://github.com/yt-dlp/yt-dlp/blob/4628a3aa751ac0b2161b216662f0e959eb9bd206/yt_dlp/extractor/viu.py#L79-L82

As a side note, the viu extractor contains a somewhat curious FIXME comment, which I did not address here, but I think is worth paying some attention to:

I noticed this comment during #3136 and added the FIXME because I don't have a means of fixing/testing it. The comment is 5+ years old and it is not clear if those formats still even exists or provide any advantage over the current ones. Perhaps @zackmark29 would be interested in checking it out?

The fix for viu is speculative, .... It is not certain if this will work, as I have no means to test it.

Since the change is harmless either way, it's fine

Let me know if you are planning on adding more sites to this. Otherwise, this can be merged immediately

I am not seeing any more candidates for now, so I think it can be merged right away.


Mount volume for database in docker-compose.hornet.yml

Right now the database is only stored within the mongo container, that might not be persisted. It should probably look something like this:
mongo:
  image: mongo
  restart: always
  command: --quiet --logpath /dev/null
  volume:
    - ./data:/data/db

That would probably also require to set the permissions of the folder on the host.

It feels like maybe this should be a very low priority, especially because it's something the user is expected to configure to their needs.


[Feature] Make chrono-tz an optional dependency

Is there an existing issue for this?

[X] I have searched the existing issues

Description
I was looking though a compiled wasm binary using wasm-objdump and I noticed there is a lot of data in the data section related to time zones. In our own code we use chrono-tz  with the filter-by-regex feature to select which time zones are compiled (see here) but this feature is not enabled in the worker crate. I suspect this causes the filter to not work because in the data section of my binary I see time zones that should have been filtered out.
The only place where chrono-tz is used is here:
https://github.com/cloudflare/workers-rs/blob/79ce476af039229f30989594b1167e8fbe058c74/worker/src/cf.rs#L153-L157
This makes me think there's an easy opportunity for some binary size saving by either

adding a (potentially default) feature that enables the chrono-tz dependency and guards this function
enabling the filter-by-regex feature and change the return type of this function to an Option (maybe that's a good idea anyway?).
getting rid of the function altogether is also an option.

I suppose a combination of 1 and 2 is also possible but probably overkill.
What do you think? I'm happy to make a PR.

I'm not sure how much you are saving, have you tried a simple project with it and without it?
That's the clients timezone in many use cases it might be handy, but I guess in most workers its not going to be relevant.
But I agree you have a valid point, the core should be as minimalist as possible, no queues, no r2, no d1, no kv, as much bare as possible and the rest should be enabled as features.
Even if the features enabled by default are all of them to make it easier, one should be able to disable everything that isn't required.

In my worker that also directly depends on and uses code from chrono-tz, a filter on UTC and European time zones saves ~700kb pre-compression, ~100kb gzipped. I haven't tested what the difference is in a smaller project.
I found that making the changes in 1 and not enabling the feature didn't make any difference in binary size (the time zones I'm seeing in my binary are due to an unrelated crate). This means the filter works even though the filter_by_regex feature is not enabled in worker. This creates another problem because the current code panics when parsing fails, which will happen if the time zone is not compiled into the binary.

To understand the benefits of disabling a dependency, its relevant to know how much it implies to a bare project that doesn't use it.
On the other hand, DCE already removes unused functions, and I'm not sure how hard it would be to add what's in its TODO list:

Support DCE for exported global, memory, table.
Remove elements only used by this function (other imports, data, etc).
https://github.com/xtuc/webassemblyjs/tree/master/packages/dce

That would yield a more general and effective solution, still I'm not sure why rustc doesn't do this by itself...
--
In your case I would start with an empty project and only add dependencies at first to check what happens, because it can be macro expansions.
If that's the case, either you can't run away from it, or an approach like DCE is the only solution you have AFAIK.

This is a great, find, thanks!

I found that making the changes in 1 and not enabling the feature didn't make any difference in binary size (the time zones I'm seeing in my binary are due to an unrelated crate). This means the filter works even though the filter_by_regex feature is not enabled in worker.

I'm having trouble following this. I would expect that if your Cargo workspace enabled the feature, then it's enabled and would apply the filter. These two sentences above seem to say different things in that regard.
I will take a look at making this dependency optional though. Makes a lot of sense.

That method also exists: https://github.com/cloudflare/workers-rs/blob/ee2c48783df0f63d82c565c8046fb15698c176c2/worker/src/cf.rs#L162-L165

Thanks @avsaase!
Then problem solved! :)
Sorry, I should have checked!


Themes and editor styles

Hi all
as you know I've been looking at the default list of styles that are available in the editor and working on adding new options to appear in the styles menu. Also how best to include this in all themes and templates with minimal need to add to each template separately unless required for customisation. e.g. I don't want to have to retrofit to all the older themes separately. I'm working on a set of 6 for each type where the variation between each is mostly just the colours e.g. Panel 1- 6, Highlight 1-6 as shown in these two screenshots:

There are others too but this has thrown up a few questions and challenges...

I'd like to add this to the default theme for each project and then just tweak the colours for the newer themes. This will mean that it will work for all themes old and new but requires some changes to the default themes for each project template so that I can use SASS for this. So first question: Ok if I add a SASS structure to \modules\site\parent_templates\site\common\css, \modules\xerte\parent_templates\Nottingham\common_html5\css, and \modules\decision\parent_templates\decision\common\css so that Nottingham themeStyless.css, Site custom.css and Decision styles.css are controlled via SASS and therefore can include _editor_styles and other imported SASS files as needed?

The other main challenge is that some of the styles I would like to add to the editor menu, so that when an author selects some existing text, need a div to be wrapped around the selecting text without removing the p tags that text contains. Unfortunately as far as I can see if I add a div style to the editor styles.js when some text is selected that div replaces rather than wraps the existing p tags. You can see this by selecting some text and then selecting the 'special container' styles from the existing styles menu. I searched around for a solution and did find reference to using wrap:true, but couldn't get that to work and perhaps that only works with a later version of the editor? Or I was doing something wrong. So second question: anyone got a solution for this?

Actually this is really 2b because I did test an option for re-enabling the 'Create Div Container' button in the toolbar and that does work e.g. retains whatever tags are in the existing selection and provides a style dropdown to select. However that style dropdown is populated from the styles with element set as div from styles.js so those styles also appear in the styles menu not just the create div container style menu which would be too confusing and lead to users applying the div style from the styles menu and therefore losing the p tags etc. So 3rd question: if there isn't a solution to 2. is there a way to add styles that only appear in the Create div container style menu and not in the styles menu?

The other challenge that Tom was going to investigate is to how to dynamically populate the correct .css based on the template chosen. That might be a longer term task which is why I'm thinking about including the _editor_styles in the default templates so even if the colours change with the theme chosen at least the list of editor styles remains consistent. @torinfo Did you get any further looking at this?

Any other thoughts/comments about this? Other styles you would like to see added to the styles menu?

Cheers
Ron

@ronm123

It's OK with me. It does make setting up the dev environment a bit more complicated, but it is a really convenient way  to maintain css.

I'll look into that wrap:true thing. If a new version of the editor is needed, I can do that as well.

Don't know…

I have not yet looked into that.

Block quote ?
Code block

@torinfo ok thanks for your comments...

Great I agree but will check with others during our meeting tomorrow - hope you can still make that?
That would definitely be the best option and although I found a few examples of people wanting to do the same thing e.g. wrap a div around selected tags just with a style selection, I couldn't find a definite solution apart from the additional Create Div Container as I mentioned in 3 above.
I might have to leave out the styles that require a div and p tags until we can find a solution. That would be a shame but at the moment I an't get it to work in a way that I;m happy with e.g. for a set of balloon styles.
Ok hopefully discuss when you are back from the conference.
Blockquote is already done - should have mentioned that. But code block there's at least one or two plugins for that we should consider including.

Hopefully speak tomorrow.
Ron

yes. I have used sass for some themes I've done recently & it's a much better way of doing things.

looks great. I can't think of any other styles to add now but I guess it's not too hard to add some as & when we think of useful ones?

@ronm123
ad 4. Done.... with a caveat
See what you think. So, the theme css is loaded last, and has the same issue you mentioned regarding background of body. I included a (static) xerteeditor.css file in the editor/js/vendor/ckeditor folder, where we can override things again, but it's not perfect.
For example, choose the Blue Grey theme, and hover over a link... :-(
But, I think it's definitely an approvement. See editor/js/vendor/ckeditor/config.js for how I did that.

@torinfo looks good! Have also been changing and committing stuff as you will have noticed. Committed the Future Teacher theme and now that you've made the styles dynamic I need to change the editor style colours in some of the newer themes so that the colours match those themes rather than the future teacher colours. I'll do that tomorrow.

@torinfo I've been through all the themes for all the projects and tweaked the editor styles colours for the panels, highlights, and blockquotes and one or two other tweaks too and committed all of that.
Three things outstanding with this I think:

[ ] 1. the wrap:true issue or another solution for adding a div style without removing the existing tags in whatever is selected e.g. p tags. I'd really like to add a set of bubble styles if we can find a solution.
[ ] 2. You mentioned the bluegreay theme and hover over a link - I see the hover effect but I'm not sure what the issue is there?
[ ] 3. You mentioned a style for code block previously - I think a plugin would be a better solution for that?
[ ] 4. The Django theme doesn't currently show the default panel colours (highlights and blockquotes are ok)

@ronm123
Do you still have some links for where you found information about 1. (wrap:true) so I can have a look at that?

@torinfo This isn't the reference I viewed previously but a quick search found this... https://success.mindtouch.com/Legacy/MindTouch_TCS/Administration/Create_inline_styles_(TCS)
Any use?

@ronm123 That link was spot on :-)
It turns out that the wrap:true is an extension, implemented through a plugin. The plugin is called wrapstyle and implemented by mindtouch.
I needed to fix some issues (it was written in 2010) but it seems to do what you want.
I've added a test style called Tom's test (which obviously needs to be removed again).
Let me know what you think, and if it solves your issue for issue 1.

@torinfo That does indeed seem to work! Bizarre that it isn't core functionality but great that you've managed to update it. Will add some balloon styles and remove your Tom's test style as soon as I can.
Cheers
Ron

@torinfo I've added and committed the speech bubble styles for the default themes for each project. This seems to work well but 3 small issues...

[ ] a: I wanted to change the width and height of the styles menu and so tried the following in various places: .cke_combopanel { width:200px !important; }.cke_combopanel { height:300px !important; } but could only get that to work by adding to \editor\js\vendor\ckeditor\skins\moono\editor.css. (which then didn't need !important) I guess that's not ideal but couldn't get it to work anywhere else.
[ ] b: Although the order of the bubble styles in styles.js is correct for some reason Speech Bubble 2 appears in the menu after Speech Bubble 6 and not between 1 and 3. That's very odd and I can't work out why? Also see c. below.
[ ] c: Ideally I wanted the Speech Bubble styles to appear after the Panel and Highlight styles so named them Speech Bubble rather than Bubble but those panel and Highlight styles have changed order now too. Is that a result of the wrapstyle plugin and if so can the order be alphabetical?

I don't think these are major issues and I think the design improvements will make all this very popular but ideally it would be good to resolve these 3 small issues?
Cheers
Ron

@torinfo noticed another issue with wrap style so added to the previous comment/list as item d

@ronm123 I'll look into these.
I don't think the order should have changed by the wrap-style pugin, but I noticed that too. If possible, I'll disable that functionality, and I'll look into d. as well....

This is the issue I see with some themes, such as your modern themes & some UoN themes too:

I'm using up to date develop code

@FayCross @torinfo can we list specific steps to replicate this e.g. specific theme, specific page types etc? Not all of the modern themes have a body or page background colour set but some do like dark blue grey etc and I'm not seeing a problem but probably because there are so many different combinations too.

I am using Modern: Autumn Orange & the plain text page (but it's any page with a text area in)

Do you see this issue too @torinfo ?

@ronm123 @FayCross Yes. I see this also (only checked Modern: Autumn Orange theme)

@FayCross @torinfo I was just going to investigate this but now I've got a far more fundamental issue. Select a plain text page in the editor and no textpane appears:

If I view the console there are quite a few errors...

@ronm123 Oops. That means that I inadvertently committed part of the change for the link button. Let me fix that.

@torinfo I'm guessing that you've worked on the featherlight stuff and added a new or revised plugin called link2 but haven't committed that? e.g. if I remove link2 from the list of extra plugins my install works again and link2 doesn't exist in my list of plugins. Did you forget to add?

@ronm123 Ehmm, kind of. I updated ckeditor to latest version, but already inadvertently committed that. That was not my intention, just now. I'll fix it. if you remove link2 from config.js, the editor works agan, but you will not have any link buttons.
Like I said, I'll fix this

@torinfo @FayCross I think I found and applied a fix for the themes where body background colour is set but now I'm seeing a different problem when viewing LO's where themes are not displaying correctly. I don't think that's due to the change and commits I made but there's definitely a problem with the link2 plugin missing and I think there's a problem with the featherlight code and I think it's one or oter of those issues that is having a knock on effect on LO theme display. Happy to have a quick online screenshare to demo/unpick?

@torinfo yeah I removed link2 from config temporarily and also commented out 1996 and 1997 from xenith because those featherlight bits were breaking things too.
With those things removed I think I've fixed the editor background colours for each of the XOT themes and committed those changes but with the link2 and featherlight lines still enabled in the commits.
I'll check the other template themes next...

@ronm123 I fixed the link2 issue.
What is going wrong with the featherlight changes?

@torinfo those two lines re featherlight were breaking display of LO's. But they aren't now so could that have been associated with the link2 code?
How is the featherlight functionality meant to work? I can see an advanced tab in the link window now which I don't think was there before but are you still working on the rest?

@ronm123 The advanced tab was alwyas hidden (I just commiited a change to hide it again)
The featherlight code is enabled now, and if you know what you're doing, you can just use it in source view
I am still working on the link dialog

@torinfo @FayCross my solution for the themes not displaying body color in the editor window wasn't working after all :-( Actually it appeared as though it was working in the editor but only because the :not was stopping it working in the LO itself too. I've committed a working fix for that now and instead of doing :not just setting .cke_editable background to the themes page background. Simple when you think about it! ;-)

I've just tried this & it's working now. Thanks @ronm123

@torinfo I'm going from memory here but I'm sure we made a change that meant that the ditor styles menu was wide enough to show the full names of the styles. I can definitely achieve that by adding .cke_combopanel { width:200px !important; }.cke_combopanel { height:300px !important; } to the end of  \editor\js\vendor\ckeditor\skins\moono\editor.css. Perhpas that's what I did previously and it has been overwritten by a later update. Should I make and commit that change again or is there a better way to achieve that?
I'm also checking how the font size of the lables in that menu changes with different themes but this can be changed with css in the theme itself so I might set that in the default theme so that it's consistent throughout.

@ronm123 I've just updated the version of ckeditor we use & manually changed the size of the editor styles menu as you mention in comment above. Looking back at old commits I think this was how it's always been done but as you say ideally we shouldn't do it that way as it'll get overwritten by any new updates.
Incidentally - should the block quote themes be styled on the styles menu? They just appear as normal text at the moment (& did before my update too). Was this always the case or has something been overwritten previously that styled them? I can't find anything

@ronm123 I'm going to close this as the editor styles have been in the release for years now. Your last comment mentions a possible issue with editor styles menu width - if you still think this is an issue then probably best to open a new issue as I don't think it will be ever picked up from the end of the comments on this issue


feat: only transform modules under the app path

Current coverage is 100% (diff: 100%)

Merging #27 into master will not change coverage

@@           master   #27   diff @@
===================================
  Files           6     7     +1
  Lines          41    43     +2
  Methods        13    13
  Messages        0     0
  Branches        8     9     +1
===================================
+ Hits           41    43     +2
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update 8df727e...63b31ff


add supported tests matrix

More clearly documenting what OS and Java versions we are currently actively testing against.

Can one of the admins verify this patch?

@Azure/azure-sdk-eng specified client libraries for now. This look good?

@maggiepint I know this is an old PR, but do you still want to resolve the conflict (move the table to near the bottom of the readme) and merge?

/check-enforcer reset

/check-enforcer evaluate

Closing this PR as it is stale. We can reopen it again if we feel it is interesting still.


generated source files should not be in version control

Generated source file must be in the source tree (because of header search paths in 'upstream' dependent projects), but they shouldn't be under version control. Generate a local .gitignore for generated sources?

This is actually fixed for quite a while, generated files can optionally be put into the cmake build directories (as an example, see shader code generation in Oryol).


Split hub/spoke operator to two cmds

/assign pmorie
/assign deads2k

/approve

/lgtm

/lgtm
/approve


Open MySQL Database on AWS to local servers

Open ports on AWS to allow connections to the MySQL Database.
Caution doing this further in development.

MySQL opened for local servers.


Added docs for DRAW_ORDER_REVERSE_LIFETIME constant and minor XR log improvement

Added docs for DRAW_ORDER_REVERSE_LIFETIME constant and minor XR log improvement.
The changes in xr_server.cpp is made to match text_server.cpp which improves readability of the interface name.
XR: Removed interfaceNative mobile
XR: Removed interfaceOpenXR

is changed to:
XR: Removed interface "Native mobile"
XR: Removed interface "OpenXR"

Please rebase your branch, there might be some issue with out of date references with the codespell package

Please rebase your branch, there might be some issue with out of date references with the codespell package (over a month out of date branch)

Done.

Thanks!

Cherry-picked for 4.1.4.


Intuition behind pretraining to find centers

So in the paper it is mentioned that a standard KL annealed VAE is trained to get an initial approximation of the manifold.
Is the initial VAE supposed to have the same Encoder Decoder architectures as the RNF WAE ? In any case since the initializations, parameters etc. could be different how does it guarantee that the initial centers learned are the actual centers which occur during the training of the RNF WAE ?

Yes, it is based on LSTM VAE, but you can also try other VAE variants.
I haven't studied the effects of different VAE upon initialization of the latent manifold. So, to your second question, I don't have a completely clear and solid answer at this moment. However, I can provide an intuitive explanation. First, note that the transformed latent manifold does not need to be the original manifold. All we need is that the two geometric structures are as close to be homeomorphic as possible. The second observation is, homeomorphism is not unique. Therefore, it shouldn't be sensitive to initialization. Every time you have a different initial manifold to work with, you can always find another manifold that is as homeomorphic as possible to the original one.

Thanks, for the answer. Yes I can intuitively understand your two points and I agree.I guess at least it's likely for initialization to not play a role. But do you know if there is a theoretical guarantee for homeomorphism or at least that most topological properties will be preserved ?
I am still not convinced about architecture, so does it mean that whatever architecture the original VAE is based on, should the RNF WAE also have the same architecture ? For eg: can I use cnn-vae for the original VAE, but then use a LSTM encoder decoder for the RNF WAE ?
It would be interesting if that were the case because you could just use a simple VAE for pre-training and clustering and then go on to use more complex architectures for RNF WAE.

@vikigenius Sorry for the late response. I think that is an interesting question. My intuition is that architecture choice does not play a role here, as long as we are learning the same distribution. It is just different ways to parameterize the same distribution family in my opinion. I think I will do some experiments to see whether this is true, maybe after my ICLR 2020 deadline.


Your system (Debian 7, ArchLinux, Windows, etc.):
Debian 5.3.7-1kali1 (2019-10-21) i686

How to reproduce the bug:
Run `thefuck` on shell

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):
Traceback (most recent call last):
  File "/usr/local/bin/thefuck", line 9, in <module>
    from thefuck.entrypoints.main import main
  File "/usr/local/lib/python2.7/dist-packages/thefuck-3.29-py2.7.egg/thefuck/entrypoints/main.py", line 13, in <module>
    from .fix_command import fix_command  # noqa: E402
  File "/usr/local/lib/python2.7/dist-packages/thefuck-3.29-py2.7.egg/thefuck/entrypoints/fix_command.py", line 5, in <module>
    from .. import logs, types, const
  File "/usr/local/lib/python2.7/dist-packages/thefuck-3.29-py2.7.egg/thefuck/types.py", line 10, in <module>
    from .output_readers import get_output
  File "/usr/local/lib/python2.7/dist-packages/thefuck-3.29-py2.7.egg/thefuck/output_readers/__init__.py", line 2, in <module>
    from . import read_log, rerun, shell_logger
  File "/usr/local/lib/python2.7/dist-packages/thefuck-3.29-py2.7.egg/thefuck/output_readers/read_log.py", line 8, in <module>
    from backports.shutil_get_terminal_size import get_terminal_size
ImportError: No module named shutil_get_terminal_size

If the bug only appears with a specific application, the output of that application and its version:
N/A

Anything else you think is relevant:
Occurs when installed through pip, apt or using latest release package.

Are you sure you are using python 3? I'm not sure if python 2.7 is supported, see issue https://github.com/nvbn/thefuck/issues/850

That... might be the issue, yeah. Lemme retest with Py3..
On Saturday, November 2, 2019, Vilhelm Prytz<EMAIL_ADDRESS>wrote:

Are you sure you are using python 3? I'm not sure if python 2.7 is
supported, see issue #850 https://github.com/nvbn/thefuck/issues/850
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nvbn/thefuck/issues/1008?email_source=notifications&email_token=AHE6CQLQBBD2W3QDKTNJ7CLQRXTKTA5CNFSM4JIG2MRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC5E7FI#issuecomment-549080981,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHE6CQLSC4GYFMJAQR72WCLQRXTKTANCNFSM4JIG2MRA
.


No module named 'numba.targets'

Numba version = 0.51.0
No module named 'numba.targets'

How did you install Numba? What is the output of numba -s?

How did you install Numba? What is the output of numba -s?

I use pip install numba

The output of numba -s

The numba.targets module was refactored and is no longer present with release 0.50.0. The functionality is now present in different parts of the Numba code-base. @hahia which part of the functionality previously contained in numba.targets were you looking to use?

Closing this issue due to lack of information. If more information becomes available please add it and reopen the issue. Thanks.


remove unsupported method, fix test failing with webmock, add 2.3.1

CI failure is in RubCop - looks like a old cop needs updating