Remove version: SDCC.SDCC version 3.5.0

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://sourceforge.net/projects/sdcc/files/sdcc-win32/3.5.0/sdcc-3.5.0-setup.exe
Status Code: 200
(Automated message - build 897)

Close with reason: Package still available.;


[Forwardport] Translation for banners are broken on Apps page when autorefresh fires

Forwardport rancher/rancher#23322

Available in latest2

Tested with master-head with UI index set to latest2.
Go to Global Apps page
Wait until backend refresh for catalog fires( refresh time is 1 hour. Waited for 2+ hours)
The Translation of banners was not lost. The catalogs showed the details correctly.


Musical Instruments not working

also Custom formulae arent working, but someone already said that.
We have created a fresh world to test this, but i think the issue might be because instruments are now called musical instruments?

I'll take a look later today.

oh thanks for responding so fast, thank you. Our group is so excited to use this

I can't seem to replicate any sort of errors with the custom formulas. Here's an example where I was able to roll while adding in the number of platinum pieces on a character.

On the other hand, I have a fix now for the tools and will push that out later today.

8677b32 should fix this up.


Add HamsterUIKit in UI

Project URL
https://github.com/ChromieIsDangerous/HamsterUIKit
Description
A simple and elegant UIKit(Chart) for iOS, written in Swift.
Curve and bar Charts.
Protocols are designed based on UIKit(UITableView).
Draw a complex but elegant graph in 10 minutes.
Why it should be included to awesome-ios (optional)
This UIKit is easy to learn if user understand UITableView or UICollectionView
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 / tvOS 10 or later (no sure only support ios10)
[x] Supports Swift 3
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

          1 Error

:no_entry_sign:
Found 7 link issues

Link issues by awesome_bot

Line
Status
Link

267
301
https://github.com/krzysztofzablocki/KZBootstrap redirects tohttps://github.com/krzysztofzablocki/Bootstrap

640
301
https://github.com/krzysztofzablocki/KZLinkedConsole redirects tohttps://github.com/krzysztofzablocki/LinkedConsole

982
301
https://github.com/krzysztofzablocki/KZPropertyMapper redirects tohttps://github.com/krzysztofzablocki/PropertyMapper

1849
301
https://github.com/uacaps/PageMenu redirects tohttps://github.com/PageMenu/PageMenu

2298
301
https://github.com/segiddins/ThisCouldBeUsButYouPlaying redirects tohttps://github.com/neonichu/ThisCouldBeUsButYouPlaying

2347
301
https://github.com/krzysztofzablocki/KZPlayground redirects tohttps://github.com/krzysztofzablocki/Playgrounds

2536
522
http://rypress.com/tutorials/objective-c/index

  Generated by :no_entry_sign: Danger

Nice lib! Especially the protocol based on UITableView. 👏👏👏


tracking-ios: asl_set_query is deprecated (os_log is the replacement).

The solution will not build in XCode with support for iOS>=10 since asl_set_query has been replaced with os_log. Are there any plans to resolve this issue?

To clarify: The issue doesn't prevent building, build generates issues related to deprecating asl in favor of os_log.

Hi @jfischburg-lifemesh, thanks for reporting this. If you'd like to open a PR I'd be happy to support you and merge it.


Regridder: introduce tolerance for tiny overlaps

In GitLab by @Huite on May 7, 2021, 14:45
Concrete example, coordinates that fall within the following bounding box:
w, e, n, s
(115000.0,<PHONE_NUMBER>0000745,<PHONE_NUMBER>000037,<PHONE_NUMBER>000037)
The parts after the decimal in this case lead to extremely small overlaps. Furthermore, a general case can be made that floating precision may, at any point, generate tiny non-zero overlaps. The area weighted methods of the regridder are somewhat robust to this: tiny overlap -> tiny weight -> tiny effect on aggregated result. For a method such as "sum", however, every value counts equally.
A fairly convenient solution would be including a tolerance keyword in the Regridder.__init__ (with a small default value).
-- its interpretation depending on ndim_regrid, 1: length, 2: area, 3: volume (which should be straightforward enough).

The regridder in iMOD Python is deprecated and is planned to be removed in the v1.0 release.
Use the xugrid regridder for single arrays
Or use iMOD Python to regrid entire MODFLOW6 simulations and packages


[d3d9] Need for Speed Carbon crashing at startup in Nvidia driver

In response to #3301 for better tracking of the issue.
The game crashes right on startup on Nvidia with a SIGFPE due to divide by zero inside their spirv compiler. You can look at my gdb output to see the faulting instruction and that the base address of the libraries can be found in proc_map.
I took an apitrace with dxvk by setting handle SIGFPE nostop ignore noprint on the games process via gdb.
Replaying the apitrace doesn't reproduce the crash though.
It all comes down to this:
   0xf0edd213:	subsd  %xmm2,%xmm0
=> 0xf0edd217:	divsd  %xmm0,%xmm1
   0xf0edd21b:	movsd  %xmm1,0x7c(%esp)

f0e00000-f295f000 r-xp 00000000 103:02 4783793                           /usr/lib32/libnvidia-glvkspirv.so.530.30.02

gdb_output.txt
proc_map.txt
core dump:
https://drive.google.com/file/d/1OOlknB5avRgtJ2PI3I4_Ocku0mVV1o6B/view?usp=share_link
Software information
Need for Speed - Carbon DVD version 1.2
System information

GPU: GTX970
Driver: 530.30.02
Wine version: wine-8.3.r0.g575f6f67 ( TkG Staging Esync Fsync )
DXVK version: d11878e

Apitrace file(s)
https://drive.google.com/file/d/1Mp4mpLqY7_P4aEakisewqGL8Tkw_UlG6/view?usp=share_link

Sounds like connected to WINE's msvcr* & friends see2 check bug:
https://github.com/iXit/wine-nine-standalone/issues/80#issuecomment-820648805
If you read a bug, you will see that this even depends how drivers are compiled, so on some might or might not happen. And then read a WINE bug too...
Anyway, both potentionaly affected apps (on some hw or  drivers) ships their own msvcrt or msvct71. So, if that, here quick check should be to override msvcr71 to native.

thanks for the comments
But the main thing is that the Nvidia's spirv compiler should not crash on a FPE that a game enables.
So a workaround to not pass setting the exception enable to the linux side is okey, but in reality it should probably still be fixed on a driver level.
iirc my install is at version 1.2 or so, since its a disc install and I never bothered to patch it more.

Sure, either drivers could workaround it or workarounds could go anywhere for this.
As i see, in proton they added hacks for 2 apps to disable sse2 in msvcr* (probably because this is staying like that for decade plus :D):
https://github.com/ValveSoftware/wine/commits/f497ac98efbb3c924a7ab9630963b88e20385ca4/dlls/msvcrt

In my case run ok with my intel uhd 630 with lastest mesa oibaf

Well yeah, it can't crash in the Nvidia driver if you're using an Intel GPU to run the game...

Well yeah, it can't crash in the Nvidia driver if you're using an Intel GPU to run the game...

is only for add game runs ok on intel igpu (my case), confirm issue could be fault of nvidia driver

So I managed to find a trigger sequence with the Apitrace :frog:
Currently running the 530.41.03 driver, but its the same on older ones too.
Setup
Some steps might not be needed, but it worked for me so I kept it that way. :sweat_smile:
The paths in the files need to be changed to the ones you are using!
Get wine-reload and place it in your debugging directory:
https://gist.githubusercontent.com/rbernon/cdbdc1b0e892f91e7449fcf3dda80bb7/raw/d8cf549bf751d99ed0fe515e36f99ff5c01b7287/WineReload.py
Make a GDB config file (I called it gdb.stuff):
set confirm off
set pagination off
handle SIGUSR1 noprint nostop
handle SIGSYS noprint nostop
source /home/stefan/WineReload.py

Make a script to attach to d3dretrace when you launch it i.e. retrace.sh:
#!/bin/bash
while :
do
gdb -x /home/stefan/gdb.stuff -p $(pgrep d3dretrace)
done

Compile this dxvk branch, which triggers a SIGTRAP on d3d9 device creation:
https://github.com/Riesi/dxvk/tree/SIGTRAP
Trigger-Sequence

Start the attach script with sudo ./retrace.sh
Launch d3dretrace with the apitrace that I posted above. I normally do this by running qapitrace in wine and loading the trace before hand. Make sure to use the 32Bit Apitrace exe!

c                               # go to dxvk SIGTRAP
wine-reload                     # get the symbols
break pthread_create            # break at thread creations
c                               # adding a number doesnt work here
c 3                             # let retrace create its threads
thread apply 1 2 3 set $mxcsr=0x1926  # enable FPEs on retrace threads
c 24                                  # high number to skip all other breakpoints
#voila we crash in the Nvidia spirv compiler

Ok works on wine 8.0 but not on 8.6, so its a wine regression.
will bisect and play a bit to confirm it fully working on dxvk.


[FR]: Insert Property type when a new column is added

Contact Details
<EMAIL_ADDRESS>Present your request
When adding a column into the database view it defaults to text.
I would like it to either save settings from other views, or let me choose the property type when I insert the column.
eg: deadline - date
For which platform do you request this request??
Desktop

Sure, could be a good addition on new column form

With the next version this menu will be refactored.
Now you can choose the type on add column modal, even modify the existing ones from a centralised menu

It's great to be able to configure everything from here, but all the columns appear as if they were text and they are not like that.
Another thing is the design of the window, there is a lot of space in the middle. It is very good that it adapts to the size, but perhaps it could be a little narrower.

I noticed it testing the beta version and was already fixed :)
About the size maybe its too much right now but the idea its to add new functions in the future


Update the operator-sdk to v1.17.0

Which problem is this PR solving?

Update the operator-sdk to version 1.17

@kevinearls please crosslink with the old closed PRs that has all the reviews. It helps to figure out what is the history of this change.


chore(master): release 2.0.0-rc.136

:robot: I have created a release beep boop
2.0.0-rc.136 (2024-12-16)
Bug Fixes

set request in hook context before send request, in case of error (#1016) (e41bdef)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v2.0.0-rc.136
:sunflower:


2.0.0-alpha19: Mapped variables use the key instead of the mapped value in queries

Steps to reproduce:

Create a new variable called Resolution of type map. For example, using the CSV format:

a.10 seconds,"10s"
b.30 seconds,"30s"

Create a Flux query that references this variable

from(bucket: "telegraf")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r._measurement == "cpu")
  |> filter(fn: (r) => r._field == "usage_user")
  |> filter(fn: (r) => r.cpu == "cpu-total")
  |> map(fn: (r) => ({r with _variable: v.Resolution}))

View the results using the Raw Data format

Expected behavior:
The _variable field should display the mapped value (10s)
Actual behavior:
The _variable field shows the key of the variable (a.10 seconds)
Environment info:

System info: Linux 4.15.0-1052-aws x86_64
InfluxDB version: 2.0.0-alpha.19 ce3e2969a 2019-10-30T23:33:54Z

Bug still present in 2.0.0-alpha20 and 2.0.0-alpha21

Duplicate of #17026 - fixed in this PR:
https://github.com/influxdata/influxdb/pull/17072


Latest version of file-icons

File icons v1.7.5 is already out on GitHub, but if you install this plugin using the Atom Settings menu or the apm CLI, it will install v1.7.4. Why is that?

My bad, sorry! Try again. :D


Both error and success notifications are displayed during importation of Data Model in JSON format

Describe the bug
When a user import Data Model in JSON format both error and success notification are displayed at the bottom of the screen and the importation is successful.
To Reproduce
Steps to reproduce the behaviour:

Go to 'Mauro'
Click on 'Import models> icon
Select
Select JSON format and fill other options
Select the <Import Model(s)> CTA
Both error and success notification are displayed

The “Models imported successfully” option should display

Error Message
"headers": {
"normalizedNames": {},
"lazyUpdate": null
},
"status": 404,
"statusText": "OK",
"url": "https://rost6-mauro-james-2021-09.rost6.dev.dataproducts.nhs.uk/nhsd_mauro_test/api/dataModels/18133825-3881-49ab-939c-7f5572def615",
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for https://rost6-mauro-james-2021-09.rost6.dev.dataproducts.nhs.uk/nhsd_mauro_test/api/dataModels/18133825-3881-49ab-939c-7f5572def615: 404 OK",
"error": {
"path": "/api/dataModels/18133825-3881-49ab-939c-7f5572def615",
"resource": "DataModel",
"id": "18133825-3881-49ab-939c-7f5572def615"
}
}
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

@Jayafo these are 2 separate messages to do with 2 separate issues…the error is because you have subscribed catalogues activated and it can’t talk to it, the success is because the model was imported.
the error happened due to the ui refreshing the tree which causes the subscribed catalogues endpoints to be called.
please pay attention to what the messages are and enquire as to what they might mean rather than just opening a bug ticket as this is not a bug.

Reopening for further investigation...

Possibly related to #115

Hello @jamesrwelch please can you reopen this defect as i am getting the same error while importing a Data model in XML format (Defect 338 retest)

XML file to import below
New Data Model XML covid-19_sari-watch_(formerly_chess)_20211111T141450.txt

Thanks, @Jayafo , issue re-opened and we're looking into it

Worth noting I also get a variant of this error when I rename a folder


Example on README broken

Olifant git:(master) stack exec olifant <<< 'sum 4 5' > a.ll

olifant: EncodeException "The serialized GlobalReference Name \"sum\" has type PointerType {pointerReferent = FunctionType {resultType = IntegerType {typeBits = 64}, argumentTypes = [IntegerType {typeBits = 64},IntegerType {typeBits = 64}], isVarArg = False}, pointerAddrSpace = AddrSpace 0} but should have type PointerType {pointerReferent = FunctionType {resultType = PointerType {pointerReferent = IntegerType {typeBits = 64}, pointerAddrSpace = AddrSpace 0}, argumentTypes = [IntegerType {typeBits = 64},IntegerType {typeBits = 64}], isVarArg = False}, pointerAddrSpace = AddrSpace 0}"

@balajirrao Thanks! I had to do the same thing recently here https://github.com/jaseemabid/Olifant/commit/cd37b91c04356fe0b1cccdc35b7603fe95d96f84.

@balajirrao Thanks, your patch fixed it. See  5250139


bootstrap.js TypeError: $ is undefined

My web console shows the subject line error (at line 88) when using jQuery in "no conflict mode" (for example, within a WordPress plugin or theme). The fix is easy enough
...
}( {}, $||jQuery, Popper ));

In the anonymous function params. BS4 did not throw its "jQuery is required" message(s). This is using the un-minified script in Windows Firefox.

Dupe of  #24549, #24417, #24513


Cannot disable "Desktop Notifications" windows 8.1

My Setup
Windows 8.1
Rocket Chat Version 2.4.0
I just upgraded to Version 2.4.0, and I can see in "Preferences --> Messages --> Desktop Notifications are enabled", but I do not see any way to disable them, only button for testing them (and they work).  I'm guessing that I'm missing something obvious here, but I'm lost as to what.

@swvajanyatek You need to set your notification preferences on a per channel basis.

There is also a PR to set a default options RocketChat/Rocket.Chat#4339

so, would I also need to set it for every person/direct message too?  That would obviously be very tedious (and a poor choice for default behavior).

@swvajanyatek That is the current situation, until the pull request mentioned in my previous comment gets merged.

Gotcha.  Thanks for the insight.
On Sun, Mar 12, 2017 at 2:45 PM, Alex Brazier<EMAIL_ADDRESS>wrote:

@swvajanyatek https://github.com/swvajanyatek That is the current
situation, until the pull request mentioned in my previous comment gets
merged.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RocketChat/Rocket.Chat.Electron/issues/381#issuecomment-285965075,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD5_beFUi2SHyDi5l66jY6oHyy5ErX_Vks5rlD1mgaJpZM4MSj20
.


Raycast to entity meshes

My current understanding is that fast-voxel-raycast is used to get the highlighted mesh on tick - what is the recommended way to raycast onto other entities in the ECS (with the mesh component attached)? Thanks!

Hi, there's no set API for this currently. I have this kind of logic in my own game, but I haven't come up with a nice way to abstract it so it would be generally applicable to all game clients.
The rough outline of how I do it is:

get all entities you want to check with e.g. ents.getStatesList(ents.names.mesh)
do a broadphase test to filter out entities whose AABB doesn't overlap with the ray's AABB
for remaining entities check the distance between the entity and the nearest point on the ray to that entity
If multiple hits, return the one closest to the source of the ray

There could be a better way though.
For the broadphase test, similar logic can be found in the collideEntities component, that demonstrates how to quickly test a bunch of AABBs. Each entity's position component has an _extents array, which is in the format expected by the box-intersect library, so if you make a similar extents array for your ray, that library can quickly find the collisions. Note that the _extents arrays are in local coordinates, so the ray's extents should also be local.


Tautomer Query copy constructor is shallow not deep causing segfaults in destructor

Failing Test (for tautomerQueryTestCatch)
TEST_CASE("TAUTOMERQUERY_COPY_CONSTRUCTOR") {
  auto mol = "c1ccccc1"_smiles;
  auto tautomerQuery =
    std::unique_ptr<TautomerQuery>(TautomerQuery::fromMol(*mol));
  auto tautomerQueryCopyConstructed = std::unique_ptr<TautomerQuery>(new TautomerQuery(*tautomerQuery));
}

@jones-gareth @greglandrum
It appears that the template molecule should be a shared ptr as well:
  const std::vector<ROMOL_SPTR> d_tautomers;
  // Template query for substructure search
  const ROMol *const d_templateMolecule;

should be
  const std::vector<ROMOL_SPTR> d_tautomers;
  // Template query for substructure search
  const boost::shared_ptr<const ROMol*> d_templateMolecule;

However, I remember some compilers not liking shared_ptrs to const pointers.
This does have an issue with threading with TautomerQueries though if we are doing recursive queries and really need a full copy.  I would like a way to do a proper deep copy.

Another approach to fixing this which solves the thread safety problem would be keep d_templateMolecule as a naked pointer but to explicitly copy the molecule in the copy constructor for TautomerQuery.

Are the tautomers used as well during the search?

ah, right. It's the tautomers that are used during the query, not the template molecule.
I still think it makes sense to do a deep copy of the whole thing in the copy ctor.

I agree that a deep copy should be made, I’ll update the pr.

Brian Kelley

On Feb 17, 2021, at 2:28 PM, Greg Landrum<EMAIL_ADDRESS>wrote:

ah, right. It's the tautomers that are used during the query, not the template molecule.
I still think it makes sense to do a deep copy of the whole thing in the copy ctor.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Feature - full block history

A history of each block, also destroyed ones.

Hey, thanks for your suggestion!
This was indeed my initial goal, and it remains so. However, achieving this poses many challenges that i will need to address before the full release.
Do you have any ideas on how to display the history of each book? Since this is a server-side mod, we can't easily use custom GUIs (at least not to my knowledge).


Updating the policy on website around subcharts

Updating the policy section of the website around the policy on using cert-manager as a subchart
Signed-off-by: Andrew Kew<EMAIL_ADDRESS>

Link in the policy page is dependent on this PR which adds the content to the helm install page
https://github.com/cert-manager/website/pull/1015

/ok-to-test

/lgtm


Joekteo

It took about 15 hours in total.
*** Grunt, MongoDB, and Node.js required to run page ***


[BUG][opensearch] CrashLoop when keystore secret has no data

Describe the bug
When a keystore secret is configured and it does not have any entries, the shell script incorrectly attempts to import a non-existent file due to fileglobbing.
To Reproduce
Steps to reproduce the behavior:

Create a Kubernetes Secret with no data

apiVersion: v1
kind: Secret
metadata:
  name: opensearch-keystore
type: Opaque
data: {}

Configure a keystore secret

keystore:
  - secretName: opensearch-keystore

Deploy the chart and observe CrashLoop from the keystore init container.  Logs:

Created opensearch keystore in /usr/share/opensearch/config/opensearch.keystore
Adding file /tmp/keystoreSecrets/*/* to keystore key *
ERROR: File [/tmp/keystoreSecrets/*/*] does not exist

Expected behavior
No CrashLoop
Chart Name
opensearch
Screenshots
N/A
Host/Environment (please complete the following information):

Helm Version: 3.11.3
Kubernetes Version: 1.23.17

Additional context
N/A

[Triage] @hobti01 What is the cause/use case of creating an empty keystore? @prudhvigodithi


druid/GHSA-r7pg-v2c8-mfg3 advisory update

The remaining avro dependency that gets flagged with this CVE is a transitive dependency that is part of the hadoop-client-runtime.jar and requires a fix from the upstream maintainers. This advisory relates to the remediation found in the following PR

may require timestamp update


Make moves called by Dancer target properly

This fixes https://github.com/Zarel/Pokemon-Showdown/projects/3#card-23723922 based on the research conducted here.
I don't think it's possible for this code path to be reached when target === null, so the ts-ignore directives hides those errors. If I'm incorrect in that regard, then let me know what the behavior should be and I can implement it.
Also now with unit tests. :)

@scheibo you want to run your fuzz test or whatever on this?

(I wonder if there's a way for it to force a specific ability like Dancer)

@scheibo you want to run your fuzz test or whatever on this?

The fuzz test is part of npm run fulltest, so its technically already been run by Travis. If McLemore wanted more confidence he could run node tools/simulate exhaustive --cycles=5 or something for a while.

(I wonder if there's a way for it to force a specific ability like Dancer)

Not currently, but I had this exact same idea (fixed combinations) when I was originally writing the exhaustive runner and punted. I think my main issue was coming up with a good way of specifying fixed combinations on the command line (there's no technical issue, just a UI/ergonomics one IMO)

$ node tools/simulate.js exhaustive --cycles=5
[gen7customgame] P:5 (959/977) I:12 (108/375) A:20 (0/233) M:12 (1/709) = 406
[gen7doublescustomgame] P:5 (959/977) I:12 (126/375) A:21 (222/233) M:18 (287/709) = 417
[gen6customgame] P:5 (806/829) I:13 (285/312) A:21 (38/191) M:18 (386/620) = 346
[gen6doublescustomgame] P:5 (811/829) I:12 (1/312) A:21 (43/191) M:14 (576/620) = 354
[gen5customgame] P:5 (678/694) I:13 (0/249) A:21 (122/164) M:20 (243/558) = 291
[gen5doublescustomgame] P:5 (675/694) I:13 (8/249) A:21 (117/164) M:20 (2/558) = 298
[gen4customgame] P:5 (506/525) I:12 (145/214) A:21 (57/123) M:19 (234/466) = 225
[gen4doublescustomgame] P:5 (512/525) I:12 (162/214) A:21 (64/123) M:19 (0/466) = 232
[gen3customgame] P:5 (375/392) I:16 (13/117) A:25 (0/76) M:19 (0/353) = 169
[gen3doublescustomgame] P:5 (380/392) I:16 (22/117) A:25 (1/76) M:19 (16/353) = 171
[gen2customgame] P:5 (227/251) I:19 (32/64) A:0 (0/0) M:18 (44/250) = 109
[gen1customgame] P:5 (128/151) I:0 (0/10) A:0 (0/0) M:16 (53/164) = 66

First time using the fuzzer, but I think that means no errors were reported. So, I think my assumption is correct.

node tools/simulate.js exhaustive --cycles=5 --forever --format gen7customgame,gen7doublescustomgame            SIGINT(2) ↵  2007  19:18:35
[gen7customgame] P:5 (959/977) I:12 (98/375) A:20 (0/233) M:14 (585/709) = 407
[gen7doublescustomgame] P:5 (962/977) I:12 (119/375) A:20 (0/233) M:17 (1/709) = 418
[gen7customgame] P:5 (956/977) I:12 (120/375) A:21 (221/233) M:16 (415/709) = 406
[gen7doublescustomgame] P:5 (961/977) I:12 (105/375) A:21 (218/233) M:18 (497/709) = 418
[gen7customgame] P:5 (957/977) I:12 (117/375) A:20 (0/233) M:12 (1/709) = 406
[gen7doublescustomgame] P:5 (956/977) I:12 (109/375) A:21 (209/233) M:15 (1/709) = 418
[gen7customgame] P:5 (954/977) I:12 (100/375) A:21 (219/233) M:16 (52/709) = 407
[gen7doublescustomgame] P:5 (962/977) I:12 (102/375) A:20 (0/233) M:14 (62/709) = 417
[gen7customgame] P:5 (954/977) I:12 (89/375) A:20 (0/233) M:14 (1/709) = 407
[gen7doublescustomgame] P:5 (960/977) I:12 (101/375) A:20 (0/233) M:11 (1/709) = 418
[gen7customgame] P:5 (959/977) I:12 (123/375) A:20 (0/233) M:7 (1/709) = 407
[gen7doublescustomgame] P:5 (960/977) I:12 (109/375) A:20 (0/233) M:18 (406/709) = 416
[gen7customgame] P:5 (959/977) I:12 (103/375) A:21 (218/233) M:13 (1/709) = 407
[gen7doublescustomgame] P:5 (965/977) I:12 (121/375) A:20 (3/233) M:13 (115/709) = 417
[gen7customgame] P:5 (955/977) I:12 (110/375) A:20 (0/233) M:21 (604/709) = 405
[gen7doublescustomgame] P:5 (952/977) I:12 (112/375) A:20 (0/233) M:19 (377/709) = 417
[gen7customgame] P:5 (955/977) I:12 (104/375) A:21 (221/233) M:18 (295/709) = 408
[gen7doublescustomgame] P:5 (958/977) I:12 (101/375) A:21 (221/233) M:15 (3/709) = 418
[gen7customgame] P:5 (955/977) I:12 (116/375) A:20 (0/233) M:15 (1/709) = 407
[gen7doublescustomgame] P:5 (963/977) I:12 (114/375) A:20 (0/233) M:19 (60/709) = 417
[gen7customgame] P:5 (963/977) I:12 (119/375) A:20 (0/233) M:14 (1/709) = 406
[gen7doublescustomgame] P:5 (958/977) I:12 (92/375) A:21 (220/233) M:13 (83/709) = 419
[gen7customgame] P:5 (955/977) I:12 (122/375) A:21 (212/233) M:17 (333/709) = 407
[gen7doublescustomgame] P:5 (950/977) I:12 (81/375) A:21 (210/233) M:17 (405/709) = 418
[gen7customgame] P:5 (958/977) I:12 (105/375) A:21 (220/233) M:20 (473/709) = 406
[gen7doublescustomgame] P:5 (964/977) I:12 (123/375) A:21 (222/233) M:12 (398/709) = 416
[gen7customgame] P:5 (964/977) I:12 (119/375) A:20 (3/233) M:19 (1/709) = 406
[gen7doublescustomgame] P:5 (962/977) I:12 (111/375) A:20 (0/233) M:18 (1/709) = 416
[gen7customgame] P:5 (958/977) I:12 (122/375) A:20 (0/233) M:15 (1/709) = 406
[gen7doublescustomgame] P:5 (965/977) I:12 (125/375) A:20 (2/233) M:17 (1/709) = 415
[gen7customgame] P:5 (956/977) I:12 (117/375) A:20 (0/233) M:19 (279/709) = 405
[gen7doublescustomgame] P:5 (964/977) I:12 (102/375) A:20 (0/233) M:13 (1/709) = 416
[gen7customgame] P:5 (958/977) I:12 (109/375) A:20 (0/233) M:9 (1/709) = 406
[gen7doublescustomgame] P:5 (949/977) I:12 (94/375) A:21 (218/233) M:10 (105/709) = 417
[gen7customgame] P:5 (960/977) I:12 (115/375) A:20 (0/233) M:14 (398/709) = 408
[gen7doublescustomgame] P:5 (960/977) I:12 (108/375) A:20 (0/233) M:17 (43/709) = 417
[gen7customgame] P:5 (960/977) I:12 (119/375) A:20 (0/233) M:16 (64/709) = 406
[gen7doublescustomgame] P:5 (958/977) I:12 (100/375) A:21 (207/233) M:11 (1/709) = 417

Even more fuzzer results. I think it's pretty safe to assume that TypeScript is wronog here.

@jmclemo6  - that is not the type of comment I had in mind. Exhaustive testing provides some confidence, but not proof.
Here's how you prove it:
https://github.com/Zarel/Pokemon-Showdown/blob/7e4ebe44aa3a65453fe9f951120fb08d838748ca/sim/battle.ts#L2196-L2201
and
https://github.com/Zarel/Pokemon-Showdown/blob/7e4ebe44aa3a65453fe9f951120fb08d838748ca/sim/battle.ts#L2162-L2165
are the two places that we could potentially return null for target, which is why Typescript believes target could be null. You can verify this by commenting out those two blocks and seeing the that // @ts-ignore is no longer necessary.
The argument about why or why not Typescript is wrong here stems from whether or not a move called by Dancer could have an adjacentAlly target or meet the condition of the second case. IIUC, Dancer only applies to a limited number of moves: https://bulbapedia.bulbagarden.net/wiki/Dancer_(Ability)#Dance_moves . Can you confirm they all will never result in these two blocks returning null? If so, the // @ts-ignore is valid, but should be updated to something like // @ts-ignore - the Dancer ability can't trigger a move where getTarget would return null, or even better, use ! and provide that comment to explain why its justified.  If you can't confidently reason about how these moves would never trigger the null case, its not safe to lean on 'well, it didn't cause a bunch of simulations I ran to crash'.

Yeah, I had looked at those blocks before. The first can't be triggered because no Dance move has a target of adjacentAlly. For the second block, it can be triggered by a dance move, but the move would then fail, so Dancer wouldn't be triggered.

It might be useful to leave a comment "no Dance move has a target of adjacentAlly" there.


Python 3.6 soon end-of-life

Python 3.6 (mentioned as minimum version) is end-of-life on December 23rd.  Update docs to have minimum version of 3.7.

https://endoflife.date/python


Update default Android API level & build tools to Android 5.1

@Tom-Ski @MobiDevelop @badlogic

@xoppa @MobiDevelop, can we get this merged in for the next release please?

It isn't particularly crucial that we update to the latest api/build tools since we don't utilize any of the features.
It is pretty easy to change the api and build tools on the generated project.
We don't need "bump" type comments on pull requests though, so please avoid doing that.

@bhamodi PRs are usually more likely to get merged, if you include a reason for the change in your description.
Why do you want this to be updated to the latest version? Just changing something to change something is usually not a good idea. Never change a running system. :)

@MobiDevelop - I wouldn't need to send a follow-up comment if I had gotten a response in a respectable time frame.
@nooone - Well this is a very straightforward change...
First of all, even Google recommends to use the latest version of the build tools as seen here.
Secondly, when creating a new project, it doesn't make sense that users get a dialog saying that they are using an API level / build tool version that is more recent than the recommended. It is NOT a good practice to tell your users to use an outdated version of build tools, which is exactly what you are doing when you recommend the outdated version.

As a counterpoint to the "good practice" argument, it IS good practice to
say "if it ain't broke, don't fix it, as it isn't a priority". It doesn't
affect the end user experience at runtime, as 99% of phones are running the
current default API or lower, and most games use LibGDX's API in the back
end anyway, which renders the 'outdated Google APIs' point a bit moot, and
there isn't anything in 5.1 that changes the API in any significant way,
unlike the introduction of ART in 5.0.
On 17 May 2015 07:52, "Baraa Hamodi"<EMAIL_ADDRESS>wrote:

@MobiDevelop https://github.com/MobiDevelop - I wouldn't need to send a
follow-up comment if I had gotten a response in a respectable time frame.
@nooone https://github.com/nooone - Well this is a very straightforward
change...
First of all, even Google recommends to use the latest version of the
build tools as seen here.
http://developer.android.com/tools/revisions/build-tools.html
Secondly, when creating a new project, it doesn't make sense that users
get a dialog saying that they are using an API level / build tool version
that is more recent than the recommended. It is NOT a good practice to tell
your users to use an outdated version of build tools, which is exactly what
you are doing when you recommend the outdated version.
—
Reply to this email directly or view it on GitHub
https://github.com/libgdx/libgdx/pull/3119#issuecomment-102756214.

Ya, I totally understand your argument guys. I know if something isn't broken, we shouldn't fix it. But I wouldn't even classify this as a fix. This is just a normal update so that we don't misguide people to use a lower version of the build tools than the latest version.
My main point is that, this dialog is very misleading and I don't see any reason for us to be recommending an outdated version of the build tools unless we know that the updated version will cause some regressions. I'm not sure why we aren't on the same page about this.

@cdomville - "99% of phones are running the current default API or lower" <- This statistic is not true and I'm not sure where you got that from. According to Google's Android page, 90% of phones are running our current default version or lower.

We'll update when we are ready to update. Hope this is a respectable enough timeframe for response.

Thanks @MobiDevelop.

Hello!
You have a new message, please read http://shopbsme.com/racism.php?q5rvd
<EMAIL_ADDRESS>


Accept pathlib paths across the board

This is an issue in preparation for a patch I will be trying to make.
I want to update Bottle to accept pathlib.Path paths across the board. My plan is to do this in a backwards COMPATIBLE way by adding something like str(inputfile) so that if you pass a native string or unicode, nothing happens but if you pass a pathlib object, it gets converted.
First question: Does this plan make sense? I use this in my tools so that I don't have to think about what is passed and it is explicitly converted
Second question: Where should I be looking? I think the goal should be as much coverage as possible but I would take better over perfect*. Off the top of my head:

lookup paths for SimpleTemplate
Upload handling
(maybe) config options

Anywhere else?
Other thoughts?
*It took the python standard library a few major versions to transition too.

Can you post an example snippet of how this change would look?

Can you post an example snippet of how this change would look?

Sounds fine, but instead of str() I'd suggest to add a (private) _strpath() function that raises TypeError for value types that make no sense. Using str() would render sanity checks in other libraries useless, as for example None would be passed on as a string.

Sounds fine, but instead of str() I'd suggest to add a (private) _strpath() function that raises TypeError for value types that make no sense. Using str() would render sanity checks in other libraries useless, as for example None would be passed on as a string.

re Private method
It makes sense to use a private _strpath() method, but there are some complexities in that. The main issue is that (for some reason) pathlib does not offer its own method to turn a path into a string. The method suggested method in the docs is to use str(). So you cannot look for a certain attribute to call to make it a string. So without directly importing it, you can't do isinstance
This is also further complicated by the fact that (as I found in trying to answer oz123's question below), there are instance checks for base-string. So instead I propose the following. Note that this is NOT done in the if py3k conditional to account for backports
try:
    from pathlib import Path # 3.4+ or backport in python2
except ImportError:
    class Path(object):
        pass # dummy class. We never call it. Only used for instance checks
...

def _strpath(path):
    """Convert pathlib.Path objects"""
    if isinstance(path,Path):
        return str(path)
    return path

Of course, the other option is to import pathlib and just do an instance check but that would break python2. I've seen in other PRs that you are hesitant to break python2 "just because". This is a reason to but it is also pretty minor. And then option 2.5 which is leave this open and don't make changes until we're already broken python2
re example:
Here is an example, but it actually shows the complexity. This is in the FileUpload class
    def save(self, destination, overwrite=False, chunk_size=2 ** 16):
        """ Save file to disk or copy its content to an open file(-like) object.
            If *destination* is a directory, :attr:`filename` is added to the
            path. Existing files are not overwritten by default (IOError).

            :param destination: File path, directory, pathlib.Path, or file(-like) object.
            :param overwrite: If True, replace existing files. (default: False)
            :param chunk_size: Bytes to read at a time. (default: 64kb)
        """
        if isinstance(destination, (basestring,Path)):  # Except file-likes here
            destination = _strpath(destination)
            if os.path.isdir(destination):
                destination = os.path.join(destination, self.filename)
            if not overwrite and os.path.exists(destination):
                raise IOError('File exists.')
            with open(destination, 'wb') as fp:
                self._copy_file(fp, chunk_size)
        else:
            self._copy_file(destination, chunk_size)

So not too bad I guess.
I just need to find all of the examples where this happens.

re Private method
It makes sense to use a private _strpath() method, but there are some complexities in that. The main issue is that (for some reason) pathlib does not offer its own method to turn a path into a string. The method suggested method in the docs is to use str(). So you cannot look for a certain attribute to call to make it a string. So without directly importing it, you can't do isinstance
This is also further complicated by the fact that (as I found in trying to answer oz123's question below), there are instance checks for base-string. So instead I propose the following. Note that this is NOT done in the if py3k conditional to account for backports
try:
    from pathlib import Path # 3.4+ or backport in python2
except ImportError:
    class Path(object):
        pass # dummy class. We never call it. Only used for instance checks
...

def _strpath(path):
    """Convert pathlib.Path objects"""
    if isinstance(path,Path):
        return str(path)
    return path

Of course, the other option is to import pathlib and just do an instance check but that would break python2. I've seen in other PRs that you are hesitant to break python2 "just because". This is a reason to but it is also pretty minor. And then option 2.5 which is leave this open and don't make changes until we're already broken python2
re example:
Here is an example, but it actually shows the complexity. This is in the FileUpload class
    def save(self, destination, overwrite=False, chunk_size=2 ** 16):
        """ Save file to disk or copy its content to an open file(-like) object.
            If *destination* is a directory, :attr:`filename` is added to the
            path. Existing files are not overwritten by default (IOError).

            :param destination: File path, directory, pathlib.Path, or file(-like) object.
            :param overwrite: If True, replace existing files. (default: False)
            :param chunk_size: Bytes to read at a time. (default: 64kb)
        """
        if isinstance(destination, (basestring,Path)):  # Except file-likes here
            destination = _strpath(destination)
            if os.path.isdir(destination):
                destination = os.path.join(destination, self.filename)
            if not overwrite and os.path.exists(destination):
                raise IOError('File exists.')
            with open(destination, 'wb') as fp:
                self._copy_file(fp, chunk_size)
        else:
            self._copy_file(destination, chunk_size)

So not too bad I guess.
I just need to find all of the examples where this happens.

Shoudn't be the instance check against os.PathLike and/or make a test against the __fspath__ attribute.

Shoudn't be the instance check against os.PathLike and/or make a test against the __fspath__ attribute.

That's new in 3.6. So it won't support backported pathlib (which I am fine with) and older python.
What is the minimum Bottle should support? And I again ask, is this the issue to break support? Probably not.

That's new in 3.6. So it won't support backported pathlib (which I am fine with) and older python.
What is the minimum Bottle should support? And I again ask, is this the issue to break support? Probably not.


step

How do you initialize the step interval for every 15 minutes?
step={new Number(15)}
This is returning an object, so it might be a more general jsx question but have searched the web and can't find a solution.
Thanks, D

just: step={15}
in Javascript you almost never ever ever want to use the Object versions of the primitives (Number, String, Boolean)

It has no affect on the outcome of the calendar var Scheduling = React.createClass({
render() {
return (

<BigCalendar
events={events}
min={new Date(new Date(new Date().setHours(8)).setMinutes(0))}
max={new Date(new Date().setHours(19))}
scrollToTime={new Date(new Date().setHours(19))}
startAccessor='startDate'
endAccessor='endDate'
defaultView='day'
view='day'
    onView = {alert("onView")}
    defaultDate={new Date()}
    selectable
    step={15}
    onSelectSlot={(slotInfo) => alert(
      `selected slot: \n\nstart ${slotInfo.start.toLocaleString()} ` +
      `\nend: ${slotInfo.end.toLocaleString()}`
    )}
  />
</div>
)

}


I cant change the font famliy and point size

I want to change the  font style  and point size in QLabel named titleRightInfo.But when I set  any font family or point size, then press the ENTER, it would become back to (Segoe UI, 10)
the titleRightInfo:

the property of titleRightInfo:

try to modify:

it rollback:

why?

Try edit the 'styleSheet' below.


construct-ui Grid is actually... flex?

Construct-ui Grid actually creates CSS using flex:

Uh, not sure what to say about this one...? Should it be called Flex instead? Or change Grid to use CSS display: grid? Leave as is?
Breaking change, here as a note. 1.0.0 branch.

Why does it matter what it’s called? It’s just a name that creates abstraction over the implementation.

As @kczx3 mentioned, it's just an abstraction similar to bootstrap, semantic-ui, ant-design etc. which all use display:flex.


Update "En attendant la PyConFr" conferences

Following #1053:

add 2020-12 videos
2021-03 videos: add peertube and direct links

ping @entwanne.

Thanks!


Bounces week in calendar

Hello,
always at the turn of April and May I have one week which is bounced and calendar don't looks fine.
What casuses it? I don't have any ideas anymore.
Thanks!

Hi, it's not always at the turn of April and May as mentioned @dtokarczyk
The problem is always between first and the second month available in the calendar.

@clauderic @dtokarczyk Hello, problem still exists. Is something solved in this issue?


v2.2.0: Cache path broken for Ubuntu

The devguide docs build passed on main two days ago, on Ubuntu:
https://github.com/python/devguide/actions/runs/10666808924
Here's a devguide docs build of main, failing today:
/home/runner/work/devguide/devguide/"/tmp/scu-uv-cache"/archive-v0/LZw1MOw0z-Porf5QiCanY/sphinx-8.0.2.dist-info/LICENSE.rst:55: WARNING: Inline literal start-string without end-string. [docutils]
/home/runner/work/devguide/devguide/"/tmp/scu-uv-cache"/archive-v0/LZw1MOw0z-Porf5QiCanY/sphinx-8.0.2.dist-info/LICENSE.rst:67: ERROR: Document may not end with a transition. [docutils]

https://github.com/python/devguide/actions/runs/10770128668/job/29862846750#step:5:85
That cache path looks broken, I think it should be an absolute /tmp/scu-uv-cache path instead of a local one. This causes our tooling to check for RST errors in files in the cache, which we don't care about.
Here's a passing build today, but pinning to v2.1.0 of the action:
https://github.com/hugovk/devguide/actions/runs/10770299577

v2.2.1 is tagged

Thanks, confirmed working again with @v2!


Auto import suggestion is not working only on first suggest.

VSCode Version: 1.42.1
OS Version: Mac 10.15.3

Steps to Reproduce:

Type something to import.
Vscode suggest some imports but, the only first suggestion doesn't work auto import. From the second suggestions, it works, but only first suggestion doesn't automatically import when I press enter.
If I remove last alphabet and type it again, then first suggestion works.

My team also get this problem. Not every auto import suggest, but almost 50 ~ 60% of auto import suggest appear this problem.

Does this issue occur when all extensions are disabled?: Yes/No
Yes. I double checked.

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

Auto Suggestion NOt working (#90131)

No, this is totally different. My problem is, import suggestion is working but not working only for the first suggestion.

Also experiencing this. I have to re-trigger the suggestions to get the import paths to show up. Seems like it started happening after the last update.
Version: 1.42.1 (user setup)
Commit: c47d83b293181d9be64f27ff093689e8e7aed054
Date: 2020-02-11T14:45:59.656Z
Electron: 6.1.6
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18363

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

@mjbvz I can't download VS Code insiders. It's download speed is too slow and during download, it failed due to network error.(In chrome and safari) Can you please check? @PachowStudios

@mjbvz I test it and the problem is not solved.

Can you please share an example project that demonstrates this issue


Unable to access storage account from VM when sas is disabled.

Preflight Checklist

[X] I have installed the latest version of Storage Explorer.
[X] I have checked existing resources, including the troubleshooting guide and the release notes.
[X] I have searched for similar issues.

Storage Explorer Version
1.25.1
Regression From
No response
Architecture
i86
Storage Explorer Build Number
20220809
Platform
Windows
OS Version
No response
Bug Description
Unable to connect to storage account via storage explorer and browser in Azure VM  when SAS is disabled. Required roles(storage blob contributor and contributor role) is already added for my identity. We are able to access other storage accounts where SAS is enabled.
Steps to Reproduce

Launch storgae explorer
expand blob containers
unable to expand
error -  "message": "{"message":"AADSTS53000: Device is not in required device state: compliant. Conditional Access policy requires a compliant device, and the device is not compliant. The user must enroll their device with an approved MDM provider like Intune.

Actual Experience
"message": "{"message":"AADSTS53000: Device is not in required device state: compliant. Conditional Access policy requires a compliant device, and the device is not compliant. The user must enroll their device with an approved MDM provider like Intune.
Expected Experience
No response
Additional Context
No response

@Jayapriya-j It sounds like the storage account you're trying to access has disabled local auth (which includes auth based on keys and SAS). This is not a Storage Explorer bug. Your organization may have imposed certain requirements for accessing the storage account, which can include devices requirements. You will need to do as the error message suggests, which is to enroll your machine with your organization using Intune. I suggest contacting your administrator for details on your organization's requirements.

Closing due to inactivity. If this is still a problem, please add a comment with updated information, and we can revisit.


Add 'Last' & 'First' buttons (Suggestion)

Just a suggestion.
Why not add 'Last' and 'First' button, and make them configurable, so the client could activate or deactivate them?

@HakamFostok Thanks for the advice. I will add it in next version.

Hi, I forked the project and did this functionality. It's not configurable though, and it seems that I broke the tests, so I haven't made a PR. If you're interested, here's the commit:
https://github.com/jusdeleon/vuejs-paginate/commit/e5539faa9f63c2463c286f966221cf5affe3a22b

Hi @subzero101 . We are returning the index of the page, just like in an array. So 0 and 9 are returned. Thanks.


Cant show simple world map on screen

Describe the bug
I asked bolt to show a world map on the screen with every continent a different color. It shows just a blank screen. Tried it 10 times. Asked Bolt to solve but never was able to show a map. Simple stuff.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-2w4r5z
Steps to reproduce
just run the app
Expected behavior
show a map.
Screen Recording / Screenshot
just a blank screen
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 100657017,
  "usedJSHeapSize": 84721025,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = ericjanssen
Chat ID = 1d154a31a928

Additional context
No response

Appreciate the feedback! At times, there are programming challenges that are too complex for AI to solve, and interacting with more complicated libraries (such as displaying a map with functionality) may require manual intervention and consulting the official documentation, as described here: #2310. If there are specific error messages you are receiving, you can try pasting those into the chat to see if that resolves the issue, however, if the AI is repeatedly unable to solve the problem then manual intervention is required. Hope this helps!

Thanks. I understand, but i am a programming novice, so cant solve myself.
I agree that its quite a complex request, but I tried the same with Loveable. It succeeded in making a map visible and selectable (even hovering a country worked), but in the end it didnt get it fully to work.


std.regex BacktrackingMatcher bmatch is faster than ThompsonMatcher but discouraged

yxcvbasdfgqwert02 reported this on 2014-05-02T15:05:08Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=12690
CC List

dmitry.olsh (@DmitryOlshansky)

Description
Created attachment 1348
Source code for test case

The discouraged function std.regex.bmatch is significantly faster then std.regex.match.

The attached test case already shows the performance difference with a simple expression and a small haystack. In my real-world program, both are way more complex and it's many expressions against many haystacks. Most expressions match, only a few of them not. The performance difference is a knock-out criterion.

Total real-world program running time:

Using bmatch: 5 seconds
Using match: 47 seconds

All benchmarks with dmd 2.065 on Ubuntu 64 bit, compiled with -release.

Unfortunately I'm not allowed to post the source code or haystack of the real-world application, so the small test case has to be enough.

!!!There are attachements in the bugzilla issue that have not been copied over!!!

dmitry.olsh (@DmitryOlshansky) commented on 2014-05-02T20:51:19Z
For the test case in question on Win32 I get:

//With bmatch
D:\D>dvt4a
Time=3 secs, 802 ms, 707 μs, and 7 hnsecs, matches per second=1577823

//With match
D:\D>dvt4b
Time=4 secs, 274 ms, 43 μs, and 7 hnsecs, matches per second=1403822

Which is around 10%. Note that proper flags for optimized build are:

dmd -O -release -inline

On ldc proper flags (IIRC) are:

ldc -O3 -release

---

I would not even consider result w/o inlining as showing anything. Please compile your real-world program with the above flags.

---

On the test and results of such.

The provided test measures the overhead of starting an engine (memory allocation/deallocation eats ~25% of total time in both cases). Overall indeed BT has a bit less of work to do at start-up.

Generally it is known that BT matchers do have an advantage on patterns that tend to match, the problem with them is low stability (small change in pattern may change performance radically) and bad performance on ambiguous patterns.

I imagine the problem you are solving involves a number of patterns that is close to the number of haystacks. Even then a 10% slower start-up is no more then ~1.21% of total time.

P.S. There is an enhancement that may be of interest:
https://issues.dlang.org/show_bug.cgi?id=12227

dmitry.olsh (@DmitryOlshansky) commented on 2014-05-04T11:47:08Z
(In reply to Diez from comment #2)
> Created attachment 1351 [details]
> Source code for more complex test case (UTF-8)
>
> Thank you for your help. I verified the compilation options of my real-world
> program and in fact the -inline option was missing (-O was already set).
> However, it didn't change anything at the overall performance, it's still 5
> seconds (backtracking) versus 47 seconds (Thompson). With this magnitude in
> performance difference there's no chance to switch to the Thompson matcher.
>
> The attached source is almost the same as before, but with average
> expression and haystack from my real-world program (confidential
> informations scrambled). Now it's not a small performance difference, but a
> factor of more than 5.
>

I see. The fact that -inline doesn't change a thing is troublesome but lets leave that to compiler guys.

The new pattern makes things much clearer - as I suspected the preparation stage of the Thompson engine is the one to blame. Preparing an internal freelist alone takes ~1/3 of total run-time in this case. The figures are much higher this time about x3 difference.

I have a hunch that it allocates much more then needed in this case, might be a bug in counting up repetitions. Need to investigate further.

> As I understand the meaning of the word "discouraged", the backtracking
> matcher is to be removed in some future. Please don't. As long as the
> Thompson matcher has this poor performance (for certain use cases), there's
> need for both matchers. In fact, using the Thompson matcher is way slower
> than an equivalent Java 1.7 program, while using the backtracking matcher is
> slightly faster. Of course, optimally there's only one matcher which
> combines the advantages of all underlaying matchers.

Discouraged means exactly what you say - picking the type of underlying matcher should be done internally based on pattern properties (or read that as one meta-matcher). It occurred to me that
- There are more types of matchers, some are very limited in what they can. Thus should't push it on user to understand when he/she can use them.
- More matchers - more functions doesn't scale.
- Also replace functions have the same NxM combinatorics (n methods, m functions), there is also splitter.

I envision that when std.regex turns package, it will gradually expose internals for those who wants to make customize/their own matcher.

> In my real-world program, there's about 100 times more haystacks than
> patterns (940 vs. 112_000). As soon as a pattern matches, the next haystack
> is examined. Each haystack needed about 23 tries (avg) until a pattern
> matched, actually there were 2_584_925 match calls in total of which 111_675
> matched the haystack (a "few" haystacks didn't match any pattern).
>
> Note that the attached test case source file needs to be saved in UTF-8
> encoding, since the regular expression string contains UTF-8 characters
> (hopefully, they don't get destroyed during upload into the issue tracking
> system). The UTF-8 signature comment line should help Windows editors to
> automatically switch to UTF-8 encoding when opening the source file (like an
> UTF-8 BOM).
>
> The idea of matching multiple patterns with only one call of the matcher is
> very interesting (though I didn't test it yet).

Well, it's not yet implemented ;) But I expect to get to it done somewhere in May.

> Consider a 5 times faster
> matcher with 5 matches at once ...

yxcvbasdfgqwert02 commented on 2014-05-04T10:20:21Z
Created attachment 1351
Source code for more complex test case (UTF-8)

Thank you for your help. I verified the compilation options of my real-world program and in fact the -inline option was missing (-O was already set). However, it didn't change anything at the overall performance, it's still 5 seconds (backtracking) versus 47 seconds (Thompson). With this magnitude in performance difference there's no chance to switch to the Thompson matcher.

The attached source is almost the same as before, but with average expression and haystack from my real-world program (confidential informations scrambled). Now it's not a small performance difference, but a factor of more than 5.

As I understand the meaning of the word "discouraged", the backtracking matcher is to be removed in some future. Please don't. As long as the Thompson matcher has this poor performance (for certain use cases), there's need for both matchers. In fact, using the Thompson matcher is way slower than an equivalent Java 1.7 program, while using the backtracking matcher is slightly faster. Of course, optimally there's only one matcher which combines the advantages of all underlaying matchers.

In my real-world program, there's about 100 times more haystacks than patterns (940 vs. 112_000). As soon as a pattern matches, the next haystack is examined. Each haystack needed about 23 tries (avg) until a pattern matched, actually there were 2_584_925 match calls in total of which 111_675 matched the haystack (a "few" haystacks didn't match any pattern).

Note that the attached test case source file needs to be saved in UTF-8 encoding, since the regular expression string contains UTF-8 characters (hopefully, they don't get destroyed during upload into the issue tracking system). The UTF-8 signature comment line should help Windows editors to automatically switch to UTF-8 encoding when opening the source file (like an UTF-8 BOM).

The idea of matching multiple patterns with only one call of the matcher is very interesting (though I didn't test it yet). Consider a 5 times faster matcher with 5 matches at once ...


Add section on route planning to crime series tutorial

Using the stplanr library

Time pressure means this will have to wait for 2023. It's also worth noting that stplanr uses SP objects by default, which means students would also have to be introduced to how to work with those objects.

stplanr now uses SF objects, but the functionality isn't quite worth the cost in terms of extra learning, so this won't be implemented.


YouTube Community Bridge: Should be merged with YoutubeBridge?

I am currently creating a bridge for the Community tab found in YouTube channels. I do wonder though, should this bridge be merged with the existing YoutubeBridge or be its own separate bridge?
Sorry if I made any mistakes writing this.

Hey, @VerifiedJoseph ! What do you think about it?

Alreadu implemented in  https://github.com/RSS-Bridge/rss-bridge/pull/1594


"Unhandled Exception" when starting a new conversation

with the latest version I got an "unhandled exception" when I tried to start a new conversation:
[HAL] Prompt: /new
[HAL] Error: InternalError: Unhandled Exception
    at WebSocket.<anonymous> (file:///root/halbot/node_modules/@waylaidwanderer/chatgpt-api/src/BingAIClient.js:437:36)
    at WebSocket.emit (node:events:524:35)
    at Receiver.receiverOnMessage (/root/halbot/node_modules/ws/lib/websocket.js:1184:20)
    at Receiver.emit (node:events:512:28)
    at Receiver.dataMessage (/root/halbot/node_modules/ws/lib/receiver.js:541:14)
    at Receiver.getData (/root/halbot/node_modules/ws/lib/receiver.js:459:17)
    at Receiver.startLoop (/root/halbot/node_modules/ws/lib/receiver.js:158:22)
    at Receiver._write (/root/halbot/node_modules/ws/lib/receiver.js:84:10)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
[UTILITAS] Error: InternalError: Unhandled Exception
    at newError (file:///root/halbot/node_modules/utilitas/lib/utilitas.mjs:18:49)
    at throwError (file:///root/halbot/node_modules/utilitas/lib/utilitas.mjs:19:50)
    at Object.send (file:///root/halbot/node_modules/utilitas/lib/hal.mjs:64:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///root/halbot/skills/ai.mjs:43:30
    at async Promise.all (index 0)
    at async action (file:///root/halbot/skills/ai.mjs:61:5)
    at async execute (/root/halbot/node_modules/telegraf/lib/composer.js:485:17)
    at async /root/halbot/node_modules/telegraf/lib/composer.js:486:21
    at async execute (/root/halbot/node_modules/telegraf/lib/composer.js:485:17) {
  status: 500

Unable to reproduce this. Maybe deep related to #10? Please let me know if you can reproduce this issue and share more info. Thank!

I'm not able to reproduce it either.
I will let you know if I get it again!

So I think it's related to #10 because the program cannot initiate the new session. After #10 was fixed, it was not able to reproduce anymore. I will close this issue for now, but you are more than welcome to reopen it if something happens again.


DittoSyncStatusHelper

Create a new tool - DittoSyncStatusHelper
This tool allows the user to pass in a list of subscriptions and a handler, to which the "status" of the set of subscriptions is delivered. This "status" is either idle or syncing:

idle means there have been no new query results for the set of subscriptions in the previous idleTimeoutInterval, which defaults to 1 second
syncing means there has been at least one update to at least one subscription in the previous idleTimeoutInterval, which defaults to 1 second

The tool works by internally creating store observers matching each subscription passed in, and then tracking a lastUpdated date every time any results flow out of the observer, updating the date.

Delivered in #6 and #5


Spyder crashed during last session

Description
What steps will reproduce the problem?

Spyder crashed during last session
pip install --upgrade prompt-toolkit==1.0.5
Traceback
  File "/anaconda3/lib/python3.7/site-packages/spyder/plugins/editor.py", line 1870, in load
    self.edit_filetypes = get_edit_filetypes()
  File "/anaconda3/lib/python3.7/site-packages/spyder/config/utils.py", line 125, in get_edit_filetypes
    supported_exts = _get_pygments_extensions()
  File "/anaconda3/lib/python3.7/site-packages/spyder/config/utils.py", line 87, in _get_pygments_extensions
    for lx in lexers.get_all_lexers():
  File "/anaconda3/lib/python3.7/site-packages/pygments/lexers/__init__.py", line 53, in get_all_lexers
    for lexer in find_plugin_lexers():
  File "/anaconda3/lib/python3.7/site-packages/pygments/plugin.py", line 55, in find_plugin_lexers
    yield entrypoint.load()
  File "/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2324, in load
    self.require(*args, **kwargs)
  File "/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2347, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (prompt-toolkit 1.0.15 (/anaconda3/lib/python3.7/site-packages), Requirement.parse('prompt-toolkit~=2.0.7'))

Versions

Spyder version: 3.3.1
Python version: 3.7.0
Qt version: 5.9.6
PyQt5 version: 5.9.2
Operating System: Darwin 17.7.0

Dependencies
pyflakes >=0.6.0  :  2.0.0 (OK)
pycodestyle >=2.3 :  2.4.0 (OK)
pygments >=2.0    :  2.3.1 (OK)
sphinx >=0.6.6    :  1.7.9 (OK)
rope >=0.9.4      :  0.11.0 (OK)
jedi >=0.9.0      :  0.12.1 (OK)
psutil >=0.3      :  5.4.7 (OK)
nbconvert >=4.0   :  5.4.0 (OK)
pandas >=0.13.1   :  0.23.4 (OK)
numpy >=1.7       :  1.15.1 (OK)
sympy >=0.7.3     :  1.2 (OK)
cython >=0.21     :  0.28.5 (OK)
qtconsole >=4.2.0 :  4.4.1 (OK)
IPython >=4.0     :  6.5.0 (OK)
matplotlib >=2.0.0:  2.2.3 (OK)
pylint >=0.25     :  2.1.1 (OK)

It seems you need to install prompt-toolkit 2 to fix this. But since you used, you most probably broke your current Anaconda installation and now you have to reinstall it. That's because pip and conda packages are incompatible.


Block append not working correct.

Currently an append is like a prepend.
This is not correct.
See test layout.multi.append.prepend.block.jade

Added testcase issues/123.jade. Will be fixed in 1.0.9


How to load extensions[v2.7]?

Issue Summary
I tried two ways to configure configuration, but none of them took effect.
The final result is that the extensions resource was not loaded
One is

The final result is that the extensions resource was not loaded

With the exception of asciimath2jax.js, all the extensions listed in your configuration are already part of the TeX-AMS-MML_HTMLorMML configuration that you are loading, so you do not need to list them, and you will not see any network access for these files as they are included in TeX-AMS-MML_HTMLorMML.js.  Similarly, the input/TeX and output/HTML-CSS jax are already included as well, so there is no need to list them in the jax array.
Since these resources are all part of the configuration file you are loading, it is not clear to me what "the extensions resource was not loaded" means in this case, as asciimath2jax.js is the only one that would actually need to be loaded separately after TeX-AMS-MML_HTMLorMML is loaded.
Also, since you aren't loading input/AsciiMath in the jax array, there is no point in loading asciimath2jax.js, as that will end up with AsciiMath notation being removed but not processed.

the other is after loading MathJax:

The configuration must be done before MathJax.js is loaded, so that it is in place when MathJax determines the configuration and starts loading extensions.  Some reconfiguration can done after MathJax is loaded, but extensions can not be specified after the fact (they will not be loaded).
Not that version 2.7.1 is very old.  The current version is 3.2.2, and version 4 is is alpha release (with a beta release imminent).  The current version of v2 is 2.7.9, so you should at least update to that to get the many bug fixes and enhancements that it provides.
Finally, you do not provide a very detailed description of what you are experiencing, so it is difficult to give you any help.  For example, how do you know the extensions aren't loading?  Since all but one extension is part of the configuration that you are loading, and since MathJax has clearly run since it has marked your configuration script as having been executed, it is hard to believe that the extensions aren't present.  If you have drawn your conclusion from the network activity, then you should say so as the reason for you claim.  If it is because the action of the extension isn't taking place, you should indicate that, and give us an example of what isn't occurring as expected.  You simply have not provided enough information to diagnose your issue.  For example, are there any error messages in the browser console?


Community templates

Adds two forms:

Bug report
Feature request

And a link to the Foundry support Telegram
Also adds a very minimal PR template
For more info on the new issue forms: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms
Anything missing in the forms?
You can see what the forms look like by going to "Files change" and clicking "View file" on the form

Converted it to a draft because I also want to do a pass on the README + add a contributing doc

Ok, should be good now. Let me know!


Foundations excercises: Modify excercise 5 for child combinators

Complete the following REQUIRED checkboxes:

[x] I have thoroughly read and understand The Odin Project Contributing Guide
[x] The title of this issue follows the location for request: brief description of request format, e.g. Foundations exercises: Add exercise for XYZ

The following checkbox is OPTIONAL:

[x] I would like to be assigned this issue to work on it

1. Description of the Feature Request:

Excercise 5 of foundations deals with the descendant combinator. However, for people who are familiar with other combinator types, using child combinators also seems to solve this question. This may be considered as a viable solution or even an incorrect solution depending on how one sees it. The latter might be more correct since the README.md mentions that we must modify the p elements that are descendants of div elements (making the descendant combinator the more apt choice).
As a result we could add in the solution.css file that using the child combinator, while giving the intended result, is incorrect.
Another option could be to modify the question with more nesting (via lists where each element is a para or something else that has been covered in the curriculum so far) to show that any level of descendants should also be modified through css.
2. Acceptance Criteria:

3. Additional Information:

### Tasks

@codyloyd Would you take a look at this please.

Closing if there isn't the support for this change.
Really appreciate you creating this issue @Shadow5634.


[T3A7][F10-B4]Jeremy Goh

@MightyCupcakes it should be T4A7 :P You did not do wrong but you can do better! Please refer to : #1587


TreeView Drag Drop

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
We have Tree View Component which does what it should do and I love mui to make everything easy for me.
But I request you add drag drop of tree items as sorting or to other tree view.
Examples 🌈
Best example:
https://ant.design/components/tree#components-tree-demo-draggable:~:text=TypeScript-,JavaScript,-import { Tree
Good Example:
https://www.grapecity.com/wijmo/demos/Nav/TreeView/Nodes/DragandDrop/react#:~:text=Drag and Drop (React)
ABove link has good example
Motivation 🔦
No response

you can do it through dndkit
https://master--5fc05e08a4a65d0021ae0bf2.chromatic.com/?path=/story/examples-tree-sortable--all-features

you can do it through dndkit
https://master--5fc05e08a4a65d0021ae0bf2.chromatic.com/?path=/story/examples-tree-sortable--all-features

Thank you @cmark1302 for your suggestion, I was requesting mui for a new feature where I was using this library and I came across this feature need, but I have already used antd's drag and drop tree component for my client project.


export inference graph

How to implement export_inference_graph?
Go to tensotflow serving

I did some experimentation, looks like export to tensorflow serving is broken for layers with multiple outputs. I will implement it here once the the issues in tensorflow repo gets resolved
https://github.com/tensorflow/tensorflow/issues/28066

In the meantime, I made it work with some hack. see example at https://github.com/zzh8829/yolov3-tf2/blob/master/export_tfserving.py and some instructions in the readme file


DiscordBot Fails to launch. With default files + edited options file. ERROR YOUTUBEDL + BAD 400 HTTP ERROR

So... I've attempted to run this bot before and it worked without problems. I ran the bot again recently on  a new VPS that has all of the same credentials and files and the previous bot. Okay. So if you're still following. Here is the HUGE error it spits out.
`Python 3.5+ is required. This version is 2.7.12
Attempting to locate python 3.5...
Python 3 found.  Re-launching bot using:
/usr/bin/python3.5 run.py
No module named 'youtube_dl'
Attempting to install dependencies...
^CTraceback (most recent call last):
File "run.py", line 162, in main
from musicbot import MusicBot
File "/home/MusicBot/musicbot/init.py", line 1, in
from .bot import MusicBot
File "/home/MusicBot/musicbot/bot.py", line 32, in
from . import downloader
File "/home/MusicBot/musicbot/downloader.py", line 4, in
import youtube_dl
ImportError: No module named 'youtube_dl'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run.py", line 27, in run
return PIP.run_python_m(*command.split(), check_output=check_output)
File "run.py", line 38, in run_python_m
return check([sys.executable, '-m', 'pip'] + list(args))
File "/usr/lib/python3.5/subprocess.py", line 576, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python3.5/subprocess.py", line 559, in call
return p.wait(timeout=timeout)
File "/usr/lib/python3.5/subprocess.py", line 1658, in wait
(pid, sts) = self._try_wait(0)
File "/usr/lib/python3.5/subprocess.py", line 1608, in _try_wait
(pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt
Error using -m method
Ok lets hope it worked
root@HyperGaming:/home/MusicBot# clear
root@HyperGaming:/home/MusicBot# python run.py
Python 3.5+ is required. This version is 2.7.12
Attempting to locate python 3.5...
Python 3 found.  Re-launching bot using:
/usr/bin/python3.5 run.py
No module named 'youtube_dl'
Attempting to install dependencies...
Ignoring cffi: markers 'sys_platform == "win32"' don't match your environment
Requirement already up-to-date: discord.py[voice]~=0.12.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 1))
Collecting youtube_dl (from -r requirements.txt (line 2))
Using cached youtube_dl-2017.9.15-py2.py3-none-any.whl
Requirement already up-to-date: pip in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 3))
Requirement already up-to-date: aiohttp<1.1.0,>=1.0.0 in /usr/local/lib/python3.5/dist-packages (from discord.py[voice]~=0.12.0->-r requirements.txt (line 1))
Requirement already up-to-date: websockets<4.0,>=3.1 in /usr/local/lib/python3.5/dist-packages (from discord.py[voice]~=0.12.0->-r requirements.txt (line 1))
Requirement already up-to-date: PyNaCl==1.0.1 in /usr/local/lib/python3.5/dist-packages (from discord.py[voice]~=0.12.0->-r requirements.txt (line 1))
Requirement already up-to-date: multidict>=2.0 in /usr/local/lib/python3.5/dist-packages (from aiohttp<1.1.0,>=1.0.0->discord.py[voice]~=0.12.0->-r requirements.txt (line 1))
Requirement already up-to-date: chardet in /usr/local/lib/python3.5/dist-packages (from aiohttp<1.1.0,>=1.0.0->discord.py[voice]~=0.12.0->-r requirements.txt (line 1))
Requirement already up-to-date: async-timeout in /usr/local/lib/python3.5/dist-packages (from aiohttp<1.1.0,>=1.0.0->discord.py[voice]~=0.12.0->-r requirements.txt (line 1))
Requirement already up-to-date: six in /usr/lib/python3/dist-packages (from PyNaCl==1.0.1->discord.py[voice]~=0.12.0->-r requirements.txt (line 1))
Requirement already up-to-date: cffi>=1.1.0 in /usr/local/lib/python3.5/dist-packages (from PyNaCl==1.0.1->discord.py[voice]~=0.12.0->-r requirements.txt (line 1))
Requirement already up-to-date: pycparser in /usr/local/lib/python3.5/dist-packages (from cffi>=1.1.0->PyNaCl==1.0.1->discord.py[voice]~=0.12.0->-r requirements.txt (line 1))
Installing collected packages: youtube-dl
Successfully installed youtube-dl-2017.9.15
Ok lets hope it worked
root@HyperGaming:/home/MusicBot# python run.py
Python 3.5+ is required. This version is 2.7.12
Attempting to locate python 3.5...
Python 3 found.  Re-launching bot using:
/usr/bin/python3.5 run.py
Connected!  Musicbot v1.9.5_2
Bot:<PHONE_NUMBER>59482882/HyperGaming-Music#2223
Owner:<PHONE_NUMBER>33005056/HyperGaming18#0491
Server List:

HyperGames
HyperGaming

Not bound to any text channels
Not autojoining any voice channels
Options:
Command prefix: !
Default volume: 20%
Skip threshold: 4 votes or 50%
Now Playing @mentions: Enabled
Auto-Summon: Enabled
Auto-Playlist: Disabled
Auto-Pause: Disabled
Delete Messages: Enabled
Delete Invoking: Disabled
Debug Mode: Enabled
Downloaded songs will be deleted
Attempting to autosummon...
Found owner in "General", attempting to join...
Attempting connection...
Connection established.
Done!
[Debug] Creating websocket check loop
[Command]<PHONE_NUMBER>33005056/HyperGaming18 (!play A Boogie Wit Da Hoodie - Drowning (Zero Cover Remix))
ERROR: query "A Boogie Wit Da Hoodie - Drowning (Zero Cover Remix)": Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 2 column 5 (char 5)',))
ERROR: query "A Boogie Wit Da Hoodie - Drowning (Zero Cover Remix)": Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 2 column 5 (char 5)',))
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/common.py", line 691, in _parse_json
return json.loads(json_string)
File "/usr/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 5 (char 5)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 776, in extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/common.py", line 434, in extract
ie_result = self._real_extract(url)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/common.py", line 2574, in _real_extract
return self._get_n_results(query, 1)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/youtube.py", line 2599, in _get_n_results
query={'spf': 'navigate'})
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/common.py", line 685, in _download_json
json_string, video_id, transform_source=transform_source, fatal=fatal)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/common.py", line 695, in _parse_json
raise ExtractorError(errmsg, cause=ve)
youtube_dl.utils.ExtractorError: query "A Boogie Wit Da Hoodie - Drowning (Zero Cover Remix)": Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 2 column 5 (char 5)',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/MusicBot/musicbot/bot.py", line 1931, in on_message
response = await handler(**handler_kwargs)
File "/home/MusicBot/musicbot/bot.py", line 886, in cmd_play
retry_on_error=True
File "/home/MusicBot/musicbot/downloader.py", line 80, in extract_info
return await self.safe_extract_info(loop, *args, **kwargs)
File "/home/MusicBot/musicbot/downloader.py", line 85, in safe_extract_info
return await loop.run_in_executor(self.thread_pool, functools.partial(self.safe_ytdl.extract_info, *args, **kwargs))
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in iter
yield self  # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 787, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 848, in process_ie_result
extra_info=extra_info)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 799, in extract_info
self.report_error(compat_str(e), e.format_traceback())
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 604, in report_error
self.trouble(error_message, tb)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 574, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: query "A Boogie Wit Da Hoodie - Drowning (Zero Cover Remix)": Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 2 column 5 (char 5)',))
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/common.py", line 691, in _parse_json
return json.loads(json_string)
File "/usr/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 5 (char 5)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 776, in extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/common.py", line 434, in extract
ie_result = self._real_extract(url)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/common.py", line 2574, in _real_extract
return self._get_n_results(query, 1)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/youtube.py", line 2599, in _get_n_results
query={'spf': 'navigate'})
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/common.py", line 685, in _download_json
json_string, video_id, transform_source=transform_source, fatal=fatal)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/common.py", line 695, in _parse_json
raise ExtractorError(errmsg, cause=ve)
youtube_dl.utils.ExtractorError: query "A Boogie Wit Da Hoodie - Drowning (Zero Cover Remix)": Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 2 column 5 (char 5)',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/MusicBot/musicbot/bot.py", line 1931, in on_message
response = await handler(**handler_kwargs)
File "/home/MusicBot/musicbot/bot.py", line 886, in cmd_play
retry_on_error=True
File "/home/MusicBot/musicbot/downloader.py", line 80, in extract_info
return await self.safe_extract_info(loop, *args, **kwargs)
File "/home/MusicBot/musicbot/downloader.py", line 85, in safe_extract_info
return await loop.run_in_executor(self.thread_pool, functools.partial(self.safe_ytdl.extract_info, *args, **kwargs))
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in iter
yield self  # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 787, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 848, in process_ie_result
extra_info=extra_info)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 799, in extract_info
self.report_error(compat_str(e), e.format_traceback())
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 604, in report_error
self.trouble(error_message, tb)
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 574, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: query "A Boogie Wit Da Hoodie - Drowning (Zero Cover Remix)": Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 2 column 5 (char 5)',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/discord/client.py", line 275, in _run_event
yield from getattr(self, event)(*args, **kwargs)
File "/home/MusicBot/musicbot/bot.py", line 1962, in on_message
await self.safe_send_message(message.channel, '\n%s\n' % traceback.format_exc())
File "/home/MusicBot/musicbot/bot.py", line 473, in safe_send_message
msg = await self.send_message(dest, content, tts=tts)
File "/usr/local/lib/python3.5/dist-packages/discord/client.py", line 831, in send_message
data = yield from self.http.send_message(channel_id, content, guild_id=guild_id, tts=tts)
File "/usr/local/lib/python3.5/dist-packages/discord/http.py", line 137, in request
raise HTTPException(r, data)
discord.errors.HTTPException: BAD REQUEST (status code: 400)
^CTraceback (most recent call last):
File "run.py", line 224, in
main()
File "run.py", line 165, in main
m.run()
File "/home/MusicBot/musicbot/bot.py", line 551, in run
self.loop.run_until_complete(self.start(*self.config.auth))
File "/usr/lib/python3.5/asyncio/base_events.py", line 375, in run_until_complete
self.run_forever()
File "/usr/lib/python3.5/asyncio/base_events.py", line 345, in run_forever
self._run_once()
File "/usr/lib/python3.5/asyncio/base_events.py", line 1276, in _run_once
event_list = self._selector.select(timeout)
File "/usr/lib/python3.5/selectors.py", line 441, in select
fd_event_list = self._epoll.poll(timeout, max_ev)
KeyboardInterrupt
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f36c9ec6550>`
Details regarding the OS

Ubuntu 16.04
Up to date python
1Gb ram
1vCore
25Gb SSD
1Gbit uplink

Issues i've kinda understood but no clue how to fix...

Youtubedl might be outdated
Fails to go to any URL ( due to bad 400 HTTP request )
Fails to any Youtube link or song name
Does NOT fail to boot. It always boots correctly without spitting out an error.

It also just popped up with this...

discord.errors.HTTPException: BAD REQUEST (status code: 400)

You should run the bot using "python3 run.py" instead of "python run.py", this will use the correct python version 3.5+ to run instead of python 2.7. As for the missing packages, it's because they are downloaded to the site-packages folder of the corresponding python version, so you will get the error since you are trying to run the bot with the wrong version of python.

I ran it as " python3.5 run.py " Also... It's still an issue. maybe instead of making people download the dependencies seperate allow it to be compiled into the zip and have then run " setup.py " and it install all of them.

sudo pip install --upgrade youtube_dl
That will install the latest version of youtube-dl.
pip install discord.py --upgrade
That will install the latest version of discord.py
sudo apt-get update -y
That'll update some things.
sudo apt-get upgrade -y
That'll upgrade some more things.
If you do all of those and it still doesn't work, delete all dependencies and reinstall them one by one EXACTLY following the directions in the installation wiki.

Likely a dependency issue as noted above, rather than something we can do to help.


Added working ParamOverrides get and contains methods

The fact that these two methods don't work caught me out and is currently causing a bug in the released HoloViews 1.7.0. Ideally we'd merge this and release param 1.5.1 immediately.

Coverage decreased (-0.2%) to 71.915% when pulling 1878fcf2b391e51850a9601149d36454a6c2a1ac on paramoverrides_methods into 548b7f5c50e13c1218055f340661891b74c0543f on master.

Coverage decreased (-0.2%) to 71.915% when pulling 1878fcf2b391e51850a9601149d36454a6c2a1ac on paramoverrides_methods into 548b7f5c50e13c1218055f340661891b74c0543f on master.

Coverage decreased (-0.2%) to 71.915% when pulling 1878fcf2b391e51850a9601149d36454a6c2a1ac on paramoverrides_methods into 548b7f5c50e13c1218055f340661891b74c0543f on master.

Those two methods look very reasonable to me and I would be happy to release param now if @jbednar and @ceball  support the idea. The changelog would be small but for param it normally is - and that is a good thing!

@jbednar Would you mind merging asap?


Update how-to-access-data-interactive.md

Removed extra slash in lines "for path in fs.glob('/>folder>/*.parquet'):" in sections: Read a folder of CSV files in to Pandas; Read a folder of parquet files into Pandas.

@fbsolo-ms1
Can you review the proposed changes?
Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


kronic

If you're going to file PRs, please add an explanation of what it is you're trying to accomplish.  I'm not going to merge something even if it looks useful if you can't explain why this is being added.


Settings python.analysis.extraPaths Conflict with pyrightconfig extraPaths

Hey - I am trying to add paths to my .sublime-project file using "python.analysis.extraPaths".
This is used to add project specific paths on top of the paths in my pyrightconfig.json file.
The pyrightconfig.json is used to define shared settings for a number of projects that have the same set of dependencies as well as sharing pyright settings with vscode projects.
It seems that project settings are ignored if the pyrightconfig.json file already has "extraPaths" defined:
"settings":
{
    "LSP": {
        "LSP-pyright": {
            "settings": {
                "python.analysis.extraPaths": [
                    // paths here
                ]
            }
        }
    }
}

This is the same behaviour if I define "python.analysis.extraPaths" in the LSP-pyright global settings, pyrightconfig.json takes precedence.
If this is intentional is it possible to update the behaviour to be additive rather than exclusive?

I am not convinced that this is an issue of LSP-pyright but pyright. LSP-pyright merge project settings with plugin settings and send it to pyright. That's all.

If I replicate this setup in VSCode ( pyrightConfig.json with "extraPaths" defined and then define "python.analysis.extraPaths" in the .workspace file the behaviour is that the two lists are merged - which is the behaviour I was expecting with Sublime 😢

Closed as I don't think this issue belongs to LSP-pyright, but pyright (though I don't think they will change this behavior).


export task command failing on windows 11

Checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example
[tasks]
[project]
name = "Reproduce"
channels = ["conda-forge"]
platforms = ["win-64", ]

using_export={cmd=[
    "export FOO=bar",
]}

Issue description
Hello I'm using pixi on windows 11
I'm trying to create a task to set some env variables (my final goal is to have a task for dev and another one for prod)
But when i use export in tasks cmd it fails telling me that export command was not found.
I've looked at pixi  and deno_task_shell documentations and they both mention export command.
I run it with this command using pwsh.exe
pixi run task using_export

And here is the output :
✨ Pixi task: "export FOO=bar"
export FOO=bar: command not found

Expected behavior
Not failing

The issue is that you use a [] (sequence) to define a command. In the implementation we either support sequences or strings.
We have some logic to search for commands if you use a sequence to find the the python command in pixi run python start.py for instance.
Here are some examples of working versions:
[tasks]
working_export = "export FOO=bar"
working2_export = {cmd = "export FOO=bar"}
working3_export = {cmd = ["export", "FOO=bar"]}
not_working_export = {cmd = ["export FOO=bar"]}

I'll check if I can give a better error when your version is used.

Thank you, it works just fine!
I don't know if it's the right place to ask this, but is it possible set a environment variable in one task and use it in another task?
example:
[tasks]
pre_task="export FOO=bar"
other_task={cmd="echo $FOO", depends_on="pre_task"}

That is currently not possible. The tasks are run in separate shells. The current solution would be:
[tasks]
task = "export FOO=bar && echo $FOO"

If it is an environment variable you always want to have in an environment you can also put it in a [activation.scripts]
setup.sh:
export FOO=bar

pixi.toml
[activation]
scripts = ["setup.sh"]


"escape" parser in json example seems to be wrong

If I get it correctly, escape parser is using ignore this indicates that the result will be ,ah, ignored. And the string is using to_slice() which will just use the origin string rather than mapped value.
So, for string "\\r", it will still be "\\r", rather than "\r".

Yes, the JSON parser in the example doesn't attempt to translate the string, only parse its structure: an attempt to translate the string would necessarily require character replacement and so on, which I consider to be beyond the scope of the example (and not necessarily useful for understanding how chumsky works).

Does make sense, thanks for the answer!


Can we modify the codebase for this hacktoberfest?

All my repositories have the hacktoberfest tag. :smile:


Add support for activation targets to tasks

While ideally you shouldn't need to rely super heavily on activation scripts, sometimes it does become necessary or becomes sociologically a practicality to get work done with other people in your field. While it is quite nice that pixi already supports activation scripts, it would be useful if these could also be tied to tasks so that when using pixi run <task name> syntax you could ensure that particular setup steps are taken in the tasker runner subshell before task execution.
Aside: The activation script examples in the ROS 2 tutorial are pretty helpful for understanding how activation scripts work with environments.
Discussed in https://github.com/prefix-dev/pixi/discussions/1323

Originally posted by matthewfeickert May  3, 2024
...
pixi does support activation scripts with [activation], but how would one write the TOML to specify an activation script for a specific task in an environment?
...
Are there any plans to implement something like this in the future? Or is this not a goal for the pixi task runners in general?

Originally posted by ruben-arts May  7, 2024
I could see support for that coming to the tasks yes, and it shouldn't be to hard as we already do the activation anyway.

He @matthewfeickert, as shortly mentioned in the discussion, I believe this could complement the tasks as well.
[activation]
# currently available:
scripts = ["env.sh"]
# In PR 1156 and not yet good enough
env = { VARIABLE = "value" }

[tasks]
# currently available:
start = { cmd = "echo $VAR", env = {VAR = "value"}}
# Logical next addition based on this conversation (note I'm not fond of the naming yet, please help):
task_with_special_activation = { cmd = "python specialized_tool.py", env = { scripts = ["env.sh"]}}

Unfortunately our big inspiration Task doesn't have an activation script running field that we can learn from. So lets discuss some use-cases before we decide on the design.

Sorry to ignore this for a few weeks (I've had too much work travel). I also have not given this sufficient thought yet, but is task_activation too generic or confusing?
[tasks]
# currently available:
start = { cmd = "echo $VAR", env = {VAR = "value"}}
task_activation = { cmd = "python specialized_tool.py", env = { scripts = ["env.sh"]}}

That could be a way of doing it! it just conflicts with the current implementation of env as we need to specialize the parser to find scripts and see it as a different thing then a normal variable. If you have more ideas keep them coming.


Save without Install

Hi,
I've been looking around for a little bit and I can't seem to find anything, but would there be any way to implement a --save --no-install type feature?  Basically just a way to save the package to the bower.json file without actually installing anything.
In my personal example, I have a folder created that stores a scaffolding.    I have a bash script that makes a copy of this folder and it's contents, and then runs npm install and then bower install.  Currently, when I add dependencies that I will re-use, I just copy and paste the line out of the bower.json file of the project that I'm working on and then paste it into the bower.json file in my starter folder.  While this process is okay and it works, having the ability to run a single command to do this for me would be perfect and more preferred.
Something along the lines of bower install foundation --save --no-install or something similar.  Looking through the documentation and google have both not turned up anything to what I'm trying to achieve, but I figured I'd ask to see if you guys already have anything like this.
Thanks,
K

Hey. I am not aware of such functionality. You'd need to read, modify, and write bower.json with node.

yeah just looked and was unable to find anything similar in npm. :+1: to closing as a wontfix


Move e2e test to the cloud build

since the stale builder vm issue seems serious

Fixed a while ago


chore(main): release 1.6.6

:robot: I have created a release beep boop
1.6.6 (2023-11-30)
Bug Fixes

file-upload: Update UI from Figma (10712d4)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/agence-adeliom/adeliom-webcomponents/releases/tag/v1.6.6 :sunflower:


[WIP] Feature/Sin looks at user's actual social insurance number

Part of the "login" flow means checking the SIN against the actual SIN of the user trying to sign in, not just validating it has the correct format.
Added logic such that:

if there is a user session, check that the SIN is the correct one
if there isn’t a user session, just validate the format

I think probably we want to KO the second case at some point soon, but for now we still let people see the SIN page without a real access code, and it will still send them to the success page.
I also updated updated the SIN page with user's name and SIN in the hint text
Since we're going to be (eventually) creating different user journeys through the application, asking someone demoing the service to enter a correct

access code
SIN
date of birth

is a pretty big lift, even though that's how the app works.
To make it easier, I updated the hint text so that it shows the correct value for the current user.
This is just a "dev" feature, so we will revert to static hint text once we have a live service.
gif

@sboisvert @katedee if we're okay with this way of doing things, I was going to add few session tests (like this) and call it a day.
We could also add functional tests to it (ie, using cypress), but it still feels like we don't have enough of a journey built out to justify it.