test262-runner: Add streaming runner

Gives a large speed up in most cases

Adds --parse-only flag which just does the parsing stage
Adds --ignore-regex-tests flag which ignores RegExp tests which take up to 80% of total time

The only difference in test result (ignoring the harness file change) is a memory error in one of the RegExp tests which is weird and I might look into further.
Speed difference on my pc:
Streaming runner
real     5m06,783s
user    63m41,020s
sys      5m51,715s

Current runner
real    22m07,886s
user    80m27,049s
sys     33m56,479s

Changes:

Fixed copyright
Use --ignore flag instead of regex specific
Add -c -1 as full CPU cores option
Some formatting

What's the reason to keep the non-streaming runner? I'd rather not maintain two variants if possible.

Good point, I guess since this started as a proof of concept I didn't think of that. Let me make sure that all the other scripts work with this runner and fix some final issues.
I'am not 100% confident since it has (as far as I know) not been run on any machine but mine. But i'll make the change one easy ocmmit in case we need to revert

Thanks! I'm obviously going to test it as well, but if it works for you it should also work for everyone else, and then we can just fully embrace it :^)

Just reposting here since it was in a resolved review comment: Before this is merged the serenity workflow should be updated to add the -c -1 option, since the serenity runner doesn't have the issue of "using all of the cores doesn't leave any processing power for anything else"

Just reposting here since it was in a resolved review comment: Before this is merged the serenity workflow should be updated to add the -c -1 option, since the serenity runner doesn't have the issue of "using all of the cores doesn't leave any processing power for anything else"

Since the runner uses the run_all_and_update_results.py file I will just supply the -c -1 from there.
From there we also have to potential to tune the runner (mainly the --lists option) although it doesn't seem to change very much as long as you have a list per worker.

Had a bit of rebase trouble but should be all good now.
This has three regression two of which are because the previous runner converted \r\n to \n in the python part and I already have a fix. See https://github.com/SerenityOS/serenity/pull/9846
The other is the weird memory issue which I might investigate later.
File: test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-plus-quantifier-flags-u.js
If you want more details I posted something in discord or can send you the patch which revealed a solution??

I think I addressed most of the comments notable changes:

I removed the "advanced" tuning as this almost never gave a meaningful speedup
We now attempt to write out JSON as much as possible instead of having the multiple commands, the only issue I see with that is that we might not be allowed to allocate in those spots (we ran out of memory)
Move to path almost everywhere in the script, I thought that would lose us time with numerous string conversions but it does not matter should have tested that before.

I still want to change the JSON reading logical as it is overly complicated right now.

Also since we now split up process errors from assert failures and have more information about the failure are people interested in more error types?

ok, let's do it! fantastic work :^)


HOSTEDCP-1826: Remove API wording on setting AzureDiskPersistence to a default value of Persistent

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #
Checklist

[ ] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/retest

/lgtm

/retest


Feature request: set this-context for onSubmit and onSubmitFail callbacks

What is the current behavior?
The onSubmit and onSubmitFail handlers are called without a specific value bound to this.
What is the desired behavior?
It would be nice if this is bound to the instance of the redux-form-component in this case.
This could be used for example to manipulate the wrapped component through wrappedInstance (in my particular case calling a method on the instance of the wrapped component which manipulates a DOM-node) and follow the principle of least surprise (http://www.faqs.org/docs/artu/ch11s01.html) since handlers of native DOM-elements (like onclick) behave the same way (https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Event_handlers).

I would rather turn the parameters of those two handlers into some sort of event object (which then provides access to the instance), than binding the functions to some specific this.
The usage of arrow functions among React developers is so common that I don't think people use this outside of Component classes.
While I agree with the principles of least surprise/astonishment, I don't think following browser behaviour on event handler contexts would be a popular move.

Is there currently any way to get the wrapped component context in onSubmit?  I'm converting to react-native-navigation and their native title bar buttons don't trigger the handleSubmit callback somehow.  onSubmit still functions fine, but as far as I can tell there is no way to get access to functions inside my component.

An Event-Object would be fine for me too, but binding the context is an
unobtrusive change which doesn't break arrow functions (
https://stackoverflow.com/questions/33308121/can-you-bind-arrow-functions)
and can be added easily for those who need it. The arrow-function users
wouldn't even notice.
IMHO it makes sense to do both - bind the context in a minor- or
patch-update and introduce the event-object instead of a long
parameter-list in the next major-update.
I would love to prepare a PR for the context binding if you guys agree.
On Fri 21. Jul 2017 at 21:43, Adam Burdette<EMAIL_ADDRESS>wrote:

Is there currently any way to get the wrapped component context in
onSubmit? I'm converting to react-native-navigation and their native title
bar buttons don't trigger the handleSubmit callback somehow. onSubmit still
functions fine, but as far as I can tell there is no way to get access to
functions inside my component.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/erikras/redux-form/issues/3192#issuecomment-317094859,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABcEDDzkMaR9KwMWOI_ET5l01wPh1yd-ks5sQP9PgaJpZM4OaeOP
.

I finally found it! I knew I'd seen a related idea... #1338 et voila.

@gustavohenke any chance to get this on the roadmap? It's always nice to have a way to access the wrapped component in any of the callback-functions and binding the context would be an unobtrusive approach to do so.

@erikras, what are your thoughts?


Update VideoClip icon - Fix pixel grid alignment

re: https://bsky.app/profile/did:plc:vwzwgnygau7ed7b7wt5ux7y2/post/3lcfvt6g6ds2l
Before:

After:

1x DPI before/after

i am shook that this has been accepted


New validator: mutually exclusive tags

For https://github.com/openstreetmap/iD/issues/8306, https://github.com/openstreetmap/iD/issues/7589
About 20.000 places currently have name and noname set. https://overpass-turbo.eu/s/1Eyn (map screenshot and discussion at https://community.openstreetmap.org/t/places-with-name-but-also-noname-yes/106858)
I chose 'mutually exclusive' but 'incompatible' or 'conflicting' could also work. I'm open to wording suggestions.
Future versions might need to handle values, too. For example ["wheelchair=yes", "ladder=yes"]. Or patterns ["noname", "name:*"]
In the future I'd like to see the list of pairs maintained by the community in https://github.com/openstreetmap/id-tagging-schema/ like the list of deprecated tags.
Thank you @tyrasd for the iD development workshop at SotM Antwerp.

I added dynamic fixes and better titles, thanks @1ec5.

I added dynamic fixes and better titles, thanks @1ec5.

There are two quotation marks after name in the text, there should only be one.

@pnorman Thank you, fixed now.

Updated screenshots

@tyrasd I removed the commented out code, fixed a codespell warning and moved the list of tags to modules/osm/tags.js. The branch is rebased with develop branch and test pass for me.


Dual edge TPU hangs when running detect_image.py

classify_image.py runs well and the temprature seems to be stable. But when I run detect_image.py the temprature goes negative and the device is throttled with HIB errors. Please see below for logs
(base) aditya@aditya-desktop:~/workspace/coral/pycoral$ python3.6 examples/classify_image.py --model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite --labels test_data/inat_bird_labels.txt --input test_data/parrot.jpg
----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory.
12.1ms
2.7ms
2.7ms
2.7ms
2.7ms
-------RESULTS--------
Ara macao (Scarlet Macaw): 0.76953

base) aditya@aditya-desktop:~$ for (( ; ; )); do  sleep 1; cat /sys/class/apex/apex_0/temp; done
43050
43300
43550
43300
43550
43300
43550
43550
43300
43550
43550
43550
43300
43300
43300
43300
43550
43050
43300
43300
43300
43050
43550
43050
43300
43550
43550
43300
43550
43300
43550
43300
43050
43300
43300
43300
43300
43050
43550
43050
43550
43300
43300
43300
43050
43300
43300
43050
43050
43300
43300
43300
43050
43300
43050
43050
43300
43050
43300
43050
43300
43550
43300
43050
43300
43300
43050
43300
43050
43300
43300
43300
43300
43300
43300
43300

(base) aditya@aditya-desktop:~/workspace/coral/pycoral$ python3.6 examples/detect_image.py   --model test_data/ssd_mobilenet_v2_coco_quant_postprocess_edgetpu.tflite   --labels test_data/coco_labels.txt   --input test_data/grace_hopper.bmp   --output ${HOME}/grace_hopper_processed.bmp
----INFERENCE TIME----
Note: The first inference is slow because it includes loading the model into Edge TPU memory.
E driver/mmio_driver.cc:254] HIB Error. hib_error_status = ffffffffffffffff, hib_first_error_status = ffffffffffffffff

(base) aditya@aditya-desktop:~$ for (( ; ; )); do  sleep 1; cat /sys/class/apex/apex_0/temp; done
43300
43550
43800
43800
43800
43550
43550
43800
43550
43800
43800
43050
43300
43300
43300
43550
43550
43300
43550
43550
43550
43550
-89700
-89700
-89700
-89700
-89700
-89700
-89700
-89700
-89700
-89700
-89700
-89700
-89700
-89700
-89700
-89700

(base) aditya@aditya-desktop:~$ uname -r
4.15.0-153-generic

@truncs sorry for the delay. Are you still facing the issue?  Can you please try with other object detentions models and see if Dual Edge TPU hangs or not.

Yeah same problem.

@truncs  can you please share the software and hardware details.

can you please try two model inference.py with dual edge tpu and share the output of below snippet:
hemanth@hemanth-glaptop:~$ python3
Python 3.9.7 (default, Sep  3 2021, 06:18:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pycoral.pybind._pywrap_coral import ListEdgeTpus as list_edge_tpus
>>> list_edge_tpus()
[{'type': 'usb', 'path': '/sys/bus/usb/devices/2-1'}]
>>>

This is what I see
list_edge_tpus()
[{'type': 'pci', 'path': '/dev/apex_0'}]

@truncs Can you paste the output of the command:
lspci -vvv

The relevant lspci -vvv
/apex
...skipping
        Kernel driver in use: apex
        Kernel modules: apex

do you have any other operating system and/or hardware to test to know whether the issue with software or hardware?

I don't have a hardware with an E key slot, unless I can plug it into a Pi.

Okay, can you please try with different operating system as other user faced HIB error issue with windows but it got resolved with ubuntu. https://github.com/google-coral/edgetpu/issues/484

That is interesting since I did test on Ubuntu without any adapters. Do you guys have any recommendation on what adapter to use?
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.6 LTS
Release:        18.04
Codename:       bionic

we have tested  ASUS Coral Card: https://iot.asus.com/products/AI-accelerator/AI-Accelerator-PCIe-Card/. But, with this card you won't be able to use the dual edge TPU  as it likely doesn't provide 2 PCIe buses per M.2 (but a single TPU card would work).
Here is an example for the ASUS PCIe card that uses 8 TPUs in parallel: https://github.com/google-coral/demo-multi-video-stream


ability to customize url ?

Hey, I haven't thanked you yet, so a big thank you for this repo, everything is working like a charm!
I have a question.
When uploading some documents like docx, when trying to download them, browsers are confused. without an extension, they don't know what file type those are.
Is there a way to customize the url to add the extension at the end ?
currently it's just a uuid,, but enabling adding a file name when downloading the file would be amazing.
I know this can be done on the client. But how can we keep the original file name that was uploaded. Is it stored somewhere ? enabling a download of the exact filename that was uploaded would be amazing.
Maybe there is already a way, just not aware of it.

@happysalada, version 0.7.6 supports returning inline files based on filename metadata. If your upload contains metadata key filename it will be used as content-disposition in response.


how to prevent GPU hangs

Is there any registry settings to prevent gpu hangs , while playing games and while streaming videos on YouTube.
Thanks for the article

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 951d2b44-7ab6-4d7e-fe01-eb71a7136905
Version Independent ID: f0d1f424-7740-1890-2603-150fe08a1b60
Content: Limiting Repetitive GPU Hangs and Recoveries - Windows drivers
Content Source: windows-driver-docs-pr/display/limiting-repetitive-gpu-hangs-and-recoveries.md
Product: windows-hardware
GitHub Login: @nabazan-microsoft
Microsoft Alias: windowsdriverdev

Hi @RAJU2529
You can attempt to prevent gpu hangs by disabling some GPU features. Try: https://docs.microsoft.com/en-us/dotnet/framework/wpf/graphics-multimedia/graphics-rendering-registry-settings
or https://docs.microsoft.com/en-us/windows-hardware/drivers/display/tdr-registry-keys
Best,
Mimi


Fix: generic Socket#accept? is broken

fixes #6212

Note that Socket is almost untested. It's only indirectly tested through TCPSocket, ...


Merge to master

This change is

Reviewed 2 of 11 files at r2, 1 of 9 files at r3, 6 of 14 files at r5, 22 of 22 files at r6, 7 of 7 files at r7.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Fix hanging sample test

fixes #33607

API change check
API changes are not detected in this pull request.


[SQL] Add Swagger and examples for ManagedDatabases

Generated from RestAPI PR: https://github.com/Azure/azure-rest-api-specs/pull/1812

Codecov Report

Merging #1586 into master will decrease coverage by 0.06%.
The diff coverage is 26.54%.

@@            Coverage Diff             @@
##           master    #1586      +/-   ##
==========================================
- Coverage   53.82%   53.76%   -0.07%
==========================================
  Files        3675     3680       +5
  Lines       90911    91122     +211
==========================================
+ Hits        48932    48988      +56
- Misses      41979    42134     +155

Impacted Files
Coverage Δ

azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
100% <100%> (ø)
:arrow_up:

...e-mgmt-sql/azure/mgmt/sql/sql_management_client.py
100% <100%> (ø)
:arrow_up:

...ure-mgmt-sql/azure/mgmt/sql/operations/__init__.py
100% <100%> (ø)
:arrow_up:

...ure/mgmt/sql/models/sql_management_client_enums.py
100% <100%> (ø)
:arrow_up:

...gmt/sql/operations/managed_databases_operations.py
11.48% <11.48%> (ø)

...mgmt-sql/azure/mgmt/sql/models/managed_database.py
31.25% <31.25%> (ø)

...l/azure/mgmt/sql/models/managed_database_update.py
31.25% <31.25%> (ø)

...ql/azure/mgmt/sql/models/managed_database_paged.py
80% <80%> (ø)

...ls/complete_managed_database_restore_definition.py
83.33% <83.33%> (ø)

... and 4 more

Continue to review full report at Codecov.

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

Close, since not in production yet.


Fix OAIHarvester#extractHandle not handling config properly

References

Fixes #9408

Description
This PR fixes the way OAIHarvester#extractHandle handles the config properties oai.harvester.acceptedHandleServer and oai.harvester.rejectedHandlePrefix.
Instructions for Reviewers
List of changes:

If multiple rejectedHandlePrefixes were configured, the for (String prefix : rejectedHandlePrefixes) loop made it so extractHandle would always return a handle (since the current handle would always differ from at least 1 rejected prefix). Replaced this with a noneMatch.
While debugging I also noticed that the way of setting default values for oai.harvester.acceptedHandleServer and oai.harvester.rejectedHandlePrefix didn't work. ConfigurationService#getArrayProperty returns an empty array when nothing is configured, which means the if's below always failed and the default was never set. Since it's a small change I also adjusted these.

When repeating the steps of #9408, the import should no longer fail when multiple prefixes are configured.
Checklist

[x] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & integration tests). Exceptions may be made if previously agreed upon.
[x] My PR passes Checkstyle validation based on the Code Style Guide.
[x] My PR includes Javadoc for all new (or modified) public methods and classes. It also includes Javadoc for large or complex private methods.
[x] My PR passes all tests and includes new/updated Unit or Integration Tests based on the Code Testing Guide.
[x] If my PR includes new libraries/dependencies (in any pom.xml), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
[x] If my PR modifies REST API endpoints, I've opened a separate REST Contract PR related to this change.
[x] If my PR includes new configurations, I've provided basic technical documentation in the PR itself.
[x] If my PR fixes an issue ticket, I've linked them together.

The IT test failures in this PR can be ignored as they were already fixed on main and are unrelated to this PR.  Merging immediately & porting to 7.x


Improve example

pinned nightly version so that you don't need to install it manually (and everyone uses the same version) - feel free to adjust the version, though
added commands for git submodule
made .sh files executable (shebang (#!) needs to be the 2 first bytes of a file in order for kernel to  parse it)
removed unnecessary whitespace in the example text

Thank you,


docs: describe generic kprobe/tracepoint operations

e.g., FollowFD, UnfollowFD

i want to see it too


Android build failed: package com.shopify.reactnative.skia does not exist

Hello and thanks for bringing Skia to React Native!
I wanted to try Skia for our reanimated SVG charts at Emma, but couldn't get past the installation step.
All I did was yarn add command, and then I tried yarn android, and it failed. Usually when I face such an error I upgrade the package. How to fix it?

Hi @pistonsky! Thanks for your kind words!
I'm not sure about the error you are seeing - but there are a few other issues related to Android that we've closed after solving. Things like setting up the NDK-dir correctly etc (as per documentation) is required - and remember that the library is in alpha so it is not ready for production yet (but we're super happy that you are testing it out!).
Regarding charts - we're soon going to offer some nice tools for animating and interpolating paths in react-native-skia - worth waiting for!
Closing this issue for now.

Turned out that I had to run npx react-native link, no idea why. But it fixed the above error.
Charts work great! My task was to implement a shadow on a path, to make charts look the same as on iOS, where shadows are supported. But even on iOS, with skia, I was able to reduce my code a lot, since I don't have to mount two <Svg> components just to have multiple shadows on them - now I'm just using one single Canvas.
Waiting for those type errors to be fixed in the library! There are 60 errors, can't remove them (only by patching).
Thanks for the library once again, it works! Will probably test it in production (for a limited number of users) @chrfalch

Thanks again for your feedback!
Regarding the type issues - something must be wrong with your tools I think :) We have zero errors when type checking the solution - so this sounds strange.
Could you give some additional info about what IDEs you are using, versions of your tools etc?

I have the same issue when I try to integrate the library on my project
> Task :app:compileDebugJavaWithJavac FAILED
/home/workstation/WebstormProjects/app/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:35: error: package com.shopify.reactnative.skia does not exist
import com.shopify.reactnative.skia.RNSkiaPackage;
                                   ^
/home/workstation/WebstormProjects/app/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:136: error: cannot find symbol
      new RNSkiaPackage(),
          ^
  symbol:   class RNSkiaPackage
  location: class PackageList
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

FAILURE: Build failed with an exception.

I'm on Ubuntu, RN 0.66.4 and NDK 23.1.7779620


Add python parsers plugin

Create a plugin that allows for parsers to be written in python2 or python3 and a small development env docker container to interactively debug these parsers within your favorite IDE.
If there is any interest in getting this merged into the main repo. Please let me know.
Did you run npm run lint from the viewer or parliament directory (whichever you are making changes to) and correct any errors
Nope
Did you Ensure that all tests still pass by navigating to the tests directory and running ./tests.pl --viewer
Nope
License
I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Very cool.  will probably want to revisit this when the protocolrefactor branch is merged in, but I could see it being added.  There are some changes and organizational things would like to talk about too.

Gr8, I did some fast refactoring to 'tried' too get the plugin integrated into the moloch build/install pipeline. It started as some kind of prototype and got a life on its own;p Im open to suggestions and/or changes that might be required. If there are any questions that need answering let me know.


Various UI changes

This PR makes the following changes:

Trim down the text on the home page

change the design/text of the task list page

change the design/text of the task description page (only two cards, no dropdowns in sidebar, highlighting the current subpage in sidebar, change icons for model and choosing data)

remove theme toggle from main sidebar (see images above)

have consistent icon for settings in sidebar and panel

Add tooltip above train buttons and add the number of connected peers below

Highlighting the active page in the main sidebar (see first and second image)

Tooltip on the menu items in main sidebar

Upload sample of LUS-Covid data and link to it in task description

Martin, this looks excellent!
Micro typos:
-tasklist_task1: "...from the Titanic"
-tasklist_task1: "...survive/die based on their characteristics"
-tasklist_task3: "...download a sample..."
-taskdescript_LUS: "...download a sample..."
Thank-you+++


can the Cloud Working Group help simplify the install for Jupyter+NLTK for the Oct 11 demo?

The installation instructions for NLTK+Jupyter for the October 11, 2016 THW session are confusing and difficult and assumes a lot of prior knowledge about how to set up and install things like Java, and anaconda, and... lots of stuff!
Maybe the Cloud Working Group can help?

Installation
We are using this Jupyter notebook in the thehackerwithin/berkeley repo, master branch, nltk folder.
For installation of Python and NLTK follow these instructions
If you installed anaconda:
conda install nltk
Otherwise:
pip install nltk
Lastly, the NER wrapper requires the Java Stanford NER here: Note: do not download the extension, just Download Stanford Named Entity Recognizer version 3.6.0

Since most probably this is outdated, close this?


Fix warnings when building sphinx docs.  Resolves #179

This took me longer than I care to admit to figure out :)
the warnings were point at unrelated lines.  In order to figure out the actual lines you need to write the docstring to a file and run rst2html.py against that file (and then ignore the sphinx-specific directive error messages).
The raw string is to fix 2 \ns in a code block.  I removed the comments around the css just for readability.  The actual fix was removing an extraneous : a few lines up.

Ah! Fixing these warnings also makes this page look way better! https://hongminhee.org/libsass-python/sassutils/wsgi.html?highlight=wsgi#module-sassutils.wsgi

Coverage remained the same at 94.454% when pulling 04baae8264ffb2d3393a158d4db7509ae8becd41 on fix_docs_warnings into f530e13a4c25d7681972a802931d647a3e69aa20 on master.


I have a problem with snapshot 1.12.0.

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
Complete output when running fastlane, including the stack trace and command used
All tests
Test Suite UITests.xctest started
UITests
✗ testExample, UI Testing Failure - Failed to perform AX action for monitoring the animations of <XCUIApplicationProcess: 0x7f9ed352a020  (37157)>, error: Error -25204 performing AXAction 2043

testExample, UI Testing Failure - Failed to perform AX action for monitoring the animations of <XCUIApplicationProcess: 0x7f9ed352a020 (37157)>, error: Error -25204 performing AXAction 2043
<unknown>:0

	 Executed 1 test, with 1 failure (0 unexpected) in 5.018 (5.022) seconds

[17:32:52]: Exit status: 65
[17:32:52]: Tests failed - check out the log above

+----------+---------+
|  snapshot results  |
+----------+---------+
| Device   | en-US   |
+----------+---------+
| iPhone 6 |  ❌      |
+----------+---------+

-------------------------------------------------------------------------------------------
😨  An error occured. Please enable crash reports using `fastlane enable_crash_reporting`.
👍  This makes resolving issues much easier and helps improve fastlane.
🔒  The reports will be stored securely on getsentry.com.
🙊  More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3
-------------------------------------------------------------------------------------------
/Library/Ruby/Gems/2.0.0/gems/snapshot-1.12.0/lib/snapshot/runner.rb:52:in `work': [!] Tests failed - check out the log above (RuntimeError)
	from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.12.0/bin/snapshot:36:in `block (2 levels) in run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.39.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.12.0/bin/snapshot:96:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.12.0/bin/snapshot:110:in `<top (required)>'
	from /usr/local/bin/snapshot:23:in `load'
	from /usr/local/bin/snapshot:23:in `<main>'

Environment
fastlane version (fastlane -v): fastlane_version "1.66.0"
Do you use bundler, rbenv or rvm? No

The tests are success when I run by Xcode and xcodebuild.

Hi @longpham2310, great to hear from you! Can you send over the following information: https://github.com/fastlane/fastlane/blob/master/ISSUE_TEMPLATE.md.
I wanna take a look :+1:

Hi @TKBurner. I just update my issue. Can you have a look? Thanks!

@longpham2310 Thanks for following up. Are you still seeing this issue? Can you let me know what version of xCode you are using. We had an issue with Snapshot with 7.3.0 but pushed an update to snapshot yesterday.
Thanks!

@TKBurner .xCode 7.3 , snapshot 1.12.1, SnapshotHelper.swift is latest. But this issue is still.

Hi @longpham2310 Can you send me the full output rather than just the error? I want to have a look at when this is happening. Thanks!

@TKBurner
console log:
Last login: Tue Mar 22 14:39:42 on ttys006
Long-Pham:~ longpham$ pwd
/Users/longpham
Long-Pham:~ longpham$ cd Projects/
Long-Pham:Projects longpham$ cd Test/
Long-Pham:Test longpham$ cd Test/
Long-Pham:Test longpham$ pwd
/Users/longpham/Projects/Test/Test
Long-Pham:Test longpham$ ls
ABOAuthCore			Test.xcodeproj
Flex				UITests
Font				TestEarlGreyUITests
GoogleSignIn.bundle		TestTests
GoogleSignIn.framework		TestUITests
HTTPServerCore			Stripe
Launch Screen.storyboard	Tests
NYSliderPopover			Vendor
NewRelic_iOS_Agent_3.324	X-Trace
PayPalMobile			build
PaymentKit			fastlane
Test				scripts
Long-Pham:Test longpham$ snapshot run
uninitialized constant CredentialsManager::AppfileConfig::Helper
uninitialized constant CredentialsManager::AppfileConfig::Helper
uninitialized constant CredentialsManager::AppfileConfig::Helper
[23:33:44]: xcrun xcodebuild -list -project './Test.xcodeproj'

+----------------------------+------------------------------------------------------+
|                            Summary for snapshot 1.12.1                            |
+----------------------------+------------------------------------------------------+
| devices                    | ["iPhone 6"]                                         |
| languages                  | ["en-US"]                                            |
| scheme                     | UITests                                |
| output_directory           | /Users/longpham/Projects/Test/Test/screenshots |
| project                    | ./Test.xcodeproj                                  |
| launch_arguments           | [""]                                                 |
| ios_version                | 9.3                                                  |
| skip_open_summary          | false                                                |
| clear_previous_screenshots | false                                                |
| reinstall_app              | false                                                |
| erase_simulator            | false                                                |
| buildlog_path              | ~/Library/Logs/snapshot                              |
| clean                      | false                                                |
| number_of_retries          | 0                                                    |
| stop_after_first_error     | false                                                |
+----------------------------+------------------------------------------------------+

[23:33:45]: Building and running project - this might take some time...
[23:33:46]: Patching '/Users/longpham/Library/Preferences/com.apple.iphonesimulator.plist' to scale simulator to 100%
[23:33:48]: ------------------------
[23:33:48]: --- iPhone 6 - en-US ---
[23:33:48]: ------------------------
[23:33:48]: $ set -o pipefail && xcodebuild -scheme 'UITests' -project './Test.xcodeproj' -derivedDataPath '/var/folders/61/g7f5drn54xq_hjgv1h10bzs80000gp/T/snapshot_derived20160323-72273-3gnz7r' -destination 'platform=iOS Simulator,id=0366915E-9EAC-4571-BD3B-9674B8091402,OS=9.3' build test | tee /Users/longpham/Library/Logs/snapshot/UITests-UITests.log | xcpretty
[23:33:48]: ▸ Loading...

** TEST FAILED **

All tests
Test Suite UITests.xctest started
UITests
✗ testHomeScreen, UI Testing Failure - Failed to perform AX action for monitoring the animations of <XCUIApplicationProcess: 0x7f80f2c1c530 co.xxx.TestDev (75140)>, error: Error -25204 performing AXAction 2043

UITests.UITests
testHomeScreen, UI Testing Failure - Failed to perform AX action for monitoring the animations of <XCUIApplicationProcess: 0x7f80f2c1c530 co.xxx.TestDev (75140)>, error: Error -25204 performing AXAction 2043
<unknown>:0

	 Executed 1 test, with 1 failure (0 unexpected) in 6.908 (6.915) seconds

[23:37:42]: Exit status: 65
[23:37:42]: Tests failed - check out the log above

+----------+---------+
|  snapshot results  |
+----------+---------+
| Device   | en-US   |
+----------+---------+
| iPhone 6 |  ❌      |
+----------+---------+

-------------------------------------------------------------------------------------------
😨  An error occured. Please enable crash reports using `fastlane enable_crash_reporting`.
👍  This makes resolving issues much easier and helps improve fastlane.
🔒  The reports will be stored securely on getsentry.com.
🙊  More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3
-------------------------------------------------------------------------------------------
/Library/Ruby/Gems/2.0.0/gems/snapshot-1.12.1/lib/snapshot/runner.rb:52:in `work': [!] Tests failed - check out the log above (RuntimeError)
	from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.12.1/bin/snapshot:36:in `block (2 levels) in run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.39.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.12.1/bin/snapshot:96:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.12.1/bin/snapshot:110:in `<top (required)>'
	from /usr/local/bin/snapshot:23:in `load'
	from /usr/local/bin/snapshot:23:in `<main>'
Long-Pham:Test longpham$

Snapshot logs file:
2016-03-23 23:37:33.764 XCTRunner[75138:4489718] Running tests...
23:37:33.991 XCTRunner[75138:4489748] _XCT_testBundleReadyWithProtocolVersion:minimumVersion: reply received
23:37:33.998 XCTRunner[75138:4489748] _IDE_startExecutingTestPlanWithProtocolVersion:16
2016-03-23 23:37:34.382 XCTRunner[75138:4489718] Continuing to run tests in the background with task ID 1
Test Suite 'All tests' started at 2016-03-23 23:37:34.984
Test Suite 'xxxUITests.xctest' started at 2016-03-23 23:37:34.985
Test Suite 'xxxUITests' started at 2016-03-23 23:37:34.986
Test Case '-[xxxUITests.xxxUITests testHomeScreen]' started.
    t =     0.00s     Start Test
    t =     0.00s     Set Up
    t =     0.05s         Launch co.xxx.xxxDev
2016-03-23 23:37:36.108 XCTRunner[75138:4489718] UIAccessibility Error adding -[DOMNode _moveRight:withHistory:]
2016-03-23 23:37:36.108 XCTRunner[75138:4489718] UIAccessibility Error adding -[DOMNode _moveLeft:withHistory:]
2016-03-23 23:37:36.108 XCTRunner[75138:4489718] UIAccessibility Error adding -[DOMNode _updateSelectionWithTextRange:withAffinityDownstream:]
2016-03-23 23:37:36.109 XCTRunner[75138:4489718] UIAccessibility Error adding +[DOMNode safeCategoryBaseClass]
2016-03-23 23:37:36.109 XCTRunner[75138:4489718] UIAccessibility Error adding -[UIWebFormAccessory initWithFrame:]
2016-03-23 23:37:36.109 XCTRunner[75138:4489718] UIAccessibility Error adding -[UIWebFormAccessory _accessibilityLoadAccessibilityInformation]
2016-03-23 23:37:36.109 XCTRunner[75138:4489718] UIAccessibility Error adding +[UIWebFormAccessory safeCategoryBaseClass]
2016-03-23 23:37:36.109 XCTRunner[75138:4489718] UIAccessibility Error adding +[UIWebFormSelectPeripheral createPeripheralWithDOMHTMLSelectElement:]
2016-03-23 23:37:36.110 XCTRunner[75138:4489718] UIAccessibility Error adding +[UIWebFormSelectPeripheral safeCategoryBaseClass]
2016-03-23 23:37:36.110 XCTRunner[75138:4489718] UIAccessibility Error adding -[UIWebSelectSinglePicker _accessibilityServesAsFirstElement]
2016-03-23 23:37:36.110 XCTRunner[75138:4489718] UIAccessibility Error adding +[UIWebSelectSinglePicker safeCategoryBaseClass]
2016-03-23 23:37:36.110 XCTRunner[75138:4489718] UIAccessibility Error adding -[UIWebSelectMultiplePicker _accessibilityServesAsFirstElement]
2016-03-23 23:37:36.111 XCTRunner[75138:4489718] UIAccessibility Error adding +[UIWebSelectMultiplePicker safeCategoryBaseClass]
2016-03-23 23:37:36.111 XCTRunner[75138:4489718] UIAccessibility Error adding -[UIWebPlugInView webPlugInStart]
2016-03-23 23:37:36.111 XCTRunner[75138:4489718] UIAccessibility Error adding +[UIWebPlugInView safeCategoryBaseClass]
    t =     3.76s             Waiting for accessibility to load
    t =     6.75s             Wait for app to idle
    t =     6.90s                 Assertion Failure: UI Testing Failure - Failed to perform AX action for monitoring the animations of <XCUIApplicationProcess: 0x7f80f2c1c530 co.xxx.xxxDev (75140)>, error: Error -25204 performing AXAction 2043
<unknown>:0: error: -[xxxUITests.xxxUITests testHomeScreen] : UI Testing Failure - Failed to perform AX action for monitoring the animations of <XCUIApplicationProcess: 0x7f80f2c1c530 co.xxx.xxxDev (75140)>, error: Error -25204 performing AXAction 2043
    t =     6.91s     Tear Down
Test Case '-[xxxUITests.xxxUITests testHomeScreen]' failed (6.908 seconds).
Test Suite 'xxxUITests' failed at 2016-03-23 23:37:41.897.
	 Executed 1 test, with 1 failure (0 unexpected) in 6.908 (6.911) seconds
Test Suite 'xxxUITests.xctest' failed at 2016-03-23 23:37:41.900.
	 Executed 1 test, with 1 failure (0 unexpected) in 6.908 (6.915) seconds
Test Suite 'All tests' failed at 2016-03-23 23:37:41.901.
	 Executed 1 test, with 1 failure (0 unexpected) in 6.908 (6.917) seconds

P/s: The test is fine when I run by Xcode and command line tools.

Thanks for following up! Can you reset your simulator data? That seems like it should fix this. I found similar issues reported here, https://forums.developer.apple.com/thread/4472

I did reset the simulator and clean ~DeliverData but the problem can't be solved.

Hi @longpham2310. Thanks for following up.  Can you run your UI test and send me the results?
Thanks!
Also check out this article for some context
http://stackoverflow.com/questions/32002330/ios-9-ui-testing-test-fails-because-target-control-isnt-available-yet

@TKBurner My test is very simple.
func testHomeScreen() {
     snapshot("Welcome_01")
}

@longpham2310 Hi there, can you close and reopen xCode? I found other reports of users affected by this issue on Twitter. This seems like an issue with your session in xCode and rebooting it will fix this.

I just want to mention I did run into the same issue while trying to solve another one.
I was getting the log:
Assertion Failure: UI Testing Failure - Failure getting list of active applications: AX error -25205
Nor resetting the simulator, nor restarting XCode helped in my case.
I debugged a while and if I removed the line where I was calling tap(), the error disappeared.  I still don't know exactly why.

@barbaramartina Have the same problem in UI Testing with just tap() function

Hi @andertsk Thanks for following up. Do you still see this issue if you remove the tap function? Thanks!

Hi @TKBurner thanks for reply, if i remove the tap function the problem is disappears.

@TKBurner @andertsk I'm having the same problem! Did you get any solution?

@andertsk Thanks for following up on this. Can you open a new issue so we can track it? Make sure fill out the full template. Thanks!

This is a XCTest issue. UIImageView is not a button:
extension XCUIElement {
    func forceTapElement() {
        if self.hittable {
            self.tap()
        }
        else {
            let coordinate: XCUICoordinate = self.coordinateWithNormalizedOffset(CGVectorMake(0.5, 0.5))
            coordinate.tap()
        }
    }
}


Add compatibility

Any way to add compatibility with curios, would be nice if i could put the builders backpacks in the back slot.  Thanks for your hard work.

Duplicate of #4. I'm not going to do this because I'm very busy with other features, I'm sorry. If people want, they van create a fork and pull request to add it.


Capsule Nets

Explain what Capsule nets are and how they differ from CNNs. Include in guides/data_science/deep_learning

Can I claim this issue?

Assigned to @Vaibhavraj10

@samagragupta Actually, I have my semester exams tomorrow, so if you want to work on it right now, you can ask the mentor, and work on it

Assigned to @samagragupta

@the-ethan-hunt Has this done? Or shall I claim this?

@AjaySharvesh3 you can claim this. The previous contributor has not replied to my pings.

Thanks @the-ethan-hunt I'll take this and complete it soon.

If this is not closed , can I work on this?

Sorry @saurabhshadow I'm just working on this issue. I'll finish it up in end of the day


git-annex: work around corrupted store paths of dependencies

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
nixpkgs-review result

My nixpkgs-review still runs for x86_64-darwin because of the datalad programs (which take.. forever). But this also means git-annex works and this should be good to merge


Command option does not work with "arguments" array?

Hello, I have tried a few things now, and cannot get the common exec "$@" docker entrypoint pattern to work with chronos.
To illustrate what I mean, consider this simple entrypoint script:
#!/bin/bash
echo "args: $@"
exec "$@"

My reading of http://mesos.github.io/chronos/docs/api.html#job-configuration indicates that if I use configuration containing:
  "shell": false,
  "command": "echo",
  "arguments": ["hi"]

Then I would expect the equivalent of docker run [image] echo hi, which according to docker inspect has  "Args": ["echo", "hi"]. With this docker run command, the entrypoint script works as intended.
However, this is not what I observe happening when my job is started via chronos/mesos:
% sudo docker inspect c1bceb65bd8e | grep -A 3 Args
    "Args": [
        "echo hi",
        "hi"
    ],

With this configuration, bash is unable to exec an executable named echo hi.
I don't understand why the arguments are appended to the command string in the first array position and then also appended to the array. Here's the full job configuration. I'm on Chronos 2.4.0 and Mesos 0.23.0. Is there any way around this behavior?
Thanks.

@tdooner in container jobs, arguments should be used with entrypoint. Command didn't concat with arguments.

@gomes I don't understand?
Are you suggesting I don't use the command field? That doesn't work -- chronos 500's when I post the new configuration.

And there's an issue for that: #544.

I am observing a similar behavior when trying to schedule a Chronos Docker job that has its ENTRYPOINT set to a particular binary and expects a flag like -foo <option>. My understanding is that a Chronos configuration containing the fields
{
  "command": "",
  "arguments": ["-foo", "bar"],
}

should cause the container to be invoked with docker run -foo bar.  What I see though is that the bar flag option is not passed to the container. The arguments on the Docker container look wrong:
"Args": [
   " -foo bar",
   "-foo",
    "bar"
],

Am I holding it wrong or is this use case really broken since at least October 2015?

I am hitting the same problem, and actually am a little scared that nobody has still addressed the issue...

any progress on this?


Fix crash on login

after successful login, the app crashes. not sure why.
The login process succeeds and saves user access token etc.
needs to be debugged and fixed. <3

Fixed in V1.37 b122


add minimum Terraform version to README

Issues
Terraform Provider Minimum Version Requirements
Changelog
Specify Terraform version 1.2.0 as the minimum.

NOTE: terraform test command doesn't work on this version. We would need a different approach.

Test version 1.2.0 and the three latest versions (1.7.0, 1.8.0, and 1.9.0) in CI

[X] List your changes here
[ ] Make a changie entry, N/A docs and CI only

Tophatting

FWIW - i'm ok saying our latest min version is 1.7.x and then trying to keep up to date with at least the last 3 minor's.  Especially if we are gonna run our tests in a matrix with the last 3 minors.  Feels safer then last 3 minors + arbitrary minimum.


css-what Denial of Service high vulnerability

Versions

nuxt: 2.15.6
node: 14.17

Reproduction
Opon npm install we're prompted with High vulnerability of css-what Nuxt dependency.
npm list | grap shows us that Nuxt 2.15.6 is dependent on  ├──<EMAIL_ADDRESS>and it needs to be upgraded to 5.0.1
Steps to reproduce
npm install

What is Expected?
no high vulnerabilities
What is actually happening?
high vulnerabilities for css-what

I've updated #9284 with details on this.


Theming: Badge

Subject
Badge
Description
Create a basic theming documentation for the Badge component that showcases how you can style it.
Theming file: Badge theming file
Template Reference
For single part components, feel free to use the Button component theming doc as a template reference: Button theming.
For multipart components, feel free to use the Input component theming doc as a template reference: Input theming.

Hello @nikolovlazar! I liked this issue and will start working on it smile


[SPARK-48128][SQL] For BitwiseCount / bit_count expression, fix codegen syntax error for boolean type inputs

What changes were proposed in this pull request?
This PR fixes an issue where BitwiseCount / bit_count of boolean inputs would cause codegen to generate syntactically invalid Java code that does not compile, triggering errors like
 java.util.concurrent.ExecutionException: org.codehaus.commons.compiler.CompileException: File 'generated.java', Line 41, Column 11: Failed to compile: org.codehaus.commons.compiler.CompileException: File 'generated.java', Line 41, Column 11: Unexpected token "if" in primary

Even though this code has test cases in bitwise.sql via the query test framework, those existing test cases were insufficient to find this problem: I believe that is because the example queries were constant-folded using the interpreted path, leaving the codegen path without test coverage.
This PR fixes the codegen issue and adds explicit expression tests to ensure that the same tests run on both the codegen and interpreted paths.
Why are the changes needed?
Fix a rare codegen to interpreted fallback issue, which may harm query performance.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Added new test cases to BitwiseExpressionsSuite.scala, copied from the existing bitwise.sql query test case file.
Was this patch authored or co-authored using generative AI tooling?
No.

Merged to master/3.5/3.4.


Some demographic metadata missing from Tarteel Dataset CSV

Recordings are being uploaded prior to any demographic info submitted (ex. people submit 5 ayahs and then put their demographics).
Potential hotfix is creating a small script to link all AnnotatedRecording objects with the same session_id as a DemographicInformation (which I believe is technically being done here: https://github.com/Tarteel-io/tarteel-api/blob/504ffb933c6b328b888714b5fb20f35f138a6b41/audio/views.py#L432)

This has been fixed, right? If so, please close with a reference to the solution commit.

@khanh111 This was resolved in the tarteel-api repo.
The commit is a bit too deep to find :slightly_smiling_face:


Add GitHub token permissions (at workflow and job level).

GitHub allows the permissions for the GitHub token to be configured per-workflow and per-job. This should be configurable inside this plugin. There are a number of significant use cases for this; not least, the ability to swap the token for cloud credentials (Azure, GCP, et al.).
See also https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/

Closing this since its already been implemented via https://github.com/sbt/sbt-github-actions/pull/105


ts: Add TX signature to EventCallback

Currently, only the Event and the slot are passed to the EventCallback: https://github.com/project-serum/anchor/blob/282c394666a389ba9e086f974db39de7a6194028/ts/src/program/event.ts#L26
The TX signature is also included in the Logs object that is passed to the LogsCallback: https://solana-labs.github.io/solana-web3.js/modules.html#Logs
It would be very useful to have this forwarded to the EventCallback as it would make enriching event data much easier.
In searching to see if anyone else brought this up, I see that Armani posted this issue a while back: https://github.com/project-serum/anchor/issues/136. Adding the signature would likely be required before an Event indexer is useful.
Seems like an easy change to make, and I don't see many downsides? Happy to take it on if the core team agrees.

this issue should be closed.

Closed by #1851.


refactor: refactor crypto APIs to use RpoDigest instead of Word

Describe your changes
Addressing #131. Replaces Word in the structures in the crypto crate to RpoDigest to avoid unnecessary conversions and to maintain consistency.
Checklist before requesting a review

Repo forked and branch created from next according to naming convention.
Commit messages and codestyle follow conventions.
Relevant issues are linked in the PR description.
Tests added for new functionality.
Documentation/comments updated according to changes.

@bobbinth I've refactored the code so that leaves are Words. Please let me know if I misunderstood something.


Error with non-English sentence

The bug
Thank you for the new version! I'm working with Llama-2-13B-chat. While it works fine in English. When I added some non-English sentences to the prompt, it gave this error as below.
To Reproduce
My model and prompt with non-English sentences.
import torch
from transformers import AutoModelForCausalLM, GPTQConfig, AutoTokenizer
from guidance import models, gen, select
import guidance

PATH_MODEL = '/content/model_13b_translation/TheBloke/Llama_2_13B_chat_GPTQ'

gptq_config = GPTQConfig(bits=4, use_exllama=True, exllama_config={"version":2})
model = AutoModelForCausalLM.from_pretrained(PATH_MODEL, device_map="auto", trust_remote_code=True, quantization_config=gptq_config)
tokenizer = AutoTokenizer.from_pretrained(PATH_MODEL)

gmodel = models.Transformers(model=model, tokenizer=tokenizer)

prompt = '''[INST] <<SYS>>
You are a helpful, respectful and honest assistant.
<</SYS>>
Please translate this question from Vietnamese to English: "Có một cửa hàng sushi rất ngon ở bên kia đường." [/INST] Sure, the English version of that sentence is:'''

When I use Guidance
lm = gmodel + prompt + gen(stop='\n', max_tokens=200)

It gives this error.
[INST] <<SYS>>
You are a helpful, respectful and honest assistant.
<</SYS>>
Please translate this question from Vietnamese to English: "Có một cửa hàng sushi rất ngon ở bên kia đường." [/INST] Sure, the English version of that sentence is:
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
[<ipython-input-15-a90df77c853d>](https://localhost:8080/#) in <cell line: 1>()
----> 1 lm = gmodel + prompt + gen(stop='\n', max_tokens=200)

2 frames
[/usr/local/lib/python3.10/dist-packages/guidance/models/_local.py](https://localhost:8080/#) in __call__(self, grammar, max_tokens, n, top_p, temperature, ensure_bos_token, log_probs)
    331             # if we cannot consume any more tokens then we are done
    332             if not is_forced and token_pos < len(sampled_token) and trie == self._token_trie:
--> 333                 assert parser.matched(), "We can't consume any more tokens, but we are not yet done! Perhaps your model's token set is incomplete?"
    334
    335                 # TODO: if we exactly match the end of the pattern then we can commit to this last token

AssertionError: We can't consume any more tokens, but we are not yet done! Perhaps your model's token set is incomplete?

However, without Guidance, it works well as below:
input_ids = tokenizer(prompt, return_tensors="pt").input_ids.cuda()
outputs = model.generate(input_ids, max_length=250)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)

[INST] <<SYS>>
You are a helpful, respectful and honest assistant.
<</SYS>>
Please translate this question from Vietnamese to English: "Có một cửa hàng sushi rất ngon ở bên kia đường." [/INST] Sure, the English version of that sentence is:

"There's a very delicious sushi shop over there on the street."

System info (please complete the following information):

Guidance Version (guidance.__version__): 0.1.3

same problem, but it happens in Chinese

Inference in Chinese doesn't work for me, +1

Inference in Chinese doesn't work for me, +1

+1. Is there any solution?

I've been investigating the issue and it seems that the problem might be with the bytes tokenizer using trie. From what I understand, the method _tokenize_prefix is designed to return the longest valid bytes token. However, the assumption underlying the bytes tokenizer, as implemented in this repository, does not seem to hold for all tokenizers.
To address this, my suggestion is to switch to the default tokenizer. The following code snippet outlines the proposed change:
def _tokenize_prefix(self, prompt):
if isinstance(prompt, bytes):
prompt = prompt.decode("utf-8")
return self._orig_tokenizer(prompt).input_ids, []
This modification ensures that if the prompt is in bytes, it gets decoded to a UTF-8 string before tokenization. This approach might be more robust and universally applicable.

Same thing happening to me in Korean.
@anhvth
I can't seem to find _orig_tokenizer from the source code. Where Can I find it?
Additionally, guaranteeing that prompt is decoded into bytes using utf-8 seems to have already  been implemented:
    def __call__(self, grammar, max_tokens=1000000, n=1, top_p=1, temperature=0.0, ensure_bos_token=True):
        assert n == 1, "Still need to add support for n > 1!"

        # get our current context in bytes
        prompt = self._current_prompt()
        prompt = bytes(prompt, encoding="utf-8")

Same problem, I've left a comment on a related ticket: https://github.com/guidance-ai/guidance/issues/454#issuecomment-1878149397

update: using llamacpp instead of transformers solved the problem for me.

@MINGYUK good to know thanks, unfortunately llama.cpp doesn't work with gptq

@anhvth unfortunately, I just tried it and your solution doesn't work.
Also, it's worth noting I'm working in just English, ASCII only (no fancy UTF or bytestrings needed), and still having this same problem.

I had the same problem when using Japanese in the prompts. However, after reflecting the commit 8f5b3bdfe28455ef267da3e0e590a0d9a4d08104, the error disappeared. I don't yet understand enough to explain the details, but I shared the information for your reference. I hope it helps someone.


Add mkdocs documentation site via github pages

Document also:

how it works
how you can use altair to quickly generate schemas in python


Image

Preview link : https://deploy-preview-13--libreui.netlify.app/image/image.html

Its a small piece of change looks quite clean and ready to merge!

Thanks @SJTGSHIVAM & @anuj-kumary for review :)


Validation for "language" key in asset.data object

Fixes #1670

We'll have to update the docs about the asset model as well. Those docs will be moving under the IPDB Protocol docs.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1805   +/-   ##
=======================================
  Coverage   98.59%   98.59%
=======================================
  Files          59       59
  Lines        2912     2912
=======================================
  Hits         2871     2871
  Misses         41       41

Closed as #1806 is the correct way to fix this.


Typo 15

35B249 - nonsensical player line.

Details
text reads: I don't just corporations. Simple.
should (probably) read: I don't trust corporations. Simple.
just based on the context of the conversation, the response given, and the other options you can choose.
Game Version
1.7.36
Language
English (EN)
New Game
Yes
Reproduction Steps
check the record, play the ryujin quest. this is from a conversation with barrett after finishing Executive Level, i believe.

Duplicate of #383


Add products taxonomy to improve findability

Adds docs products taxonomy to the repo to improve findability experiences (onsite search, recommendations and others)

Product Label
Products

Microsoft HPC Pack
https://authoring-docs-microsoft.poolparty.biz/devrel/d49c9aea-6a06-4d9a-9432-6d0cbe9c4748

Docs Build status updates of commit 0777470:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

hpc-dotnet/docfx.json
:bulb:Suggestion

Details

hpc-dotnet/docfx.json

Line 51, Column 32: [Suggestion-ms-author-invalid] Invalid value for 'ms.author', 'qiufangs' is not a valid Microsoft alias.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Missing a line, your code does not work as described

[Enter feedback here]
Do not forget to CREATE the asset before submitting the job...
Asset outputAsset = await client.Assets.CreateOrUpdateAsync(resourceGroupName, accountName, outputAssetName, new Asset());
You'll get an asset not found exception when you run your code as you have it currently.  This will be confusing for new users such as myself.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d9ae1420-28a9-6677-7a07-f8f777e9b0f5
Version Independent ID: 0ad3ade7-70ce-5c59-fca6-61a58e19a53c
Content: Create a job input from an HTTPS URL - Azure Media Services v3
Content Source: articles/media-services/latest/job-input-from-http-how-to.md
Service: media-services
Sub-service: rest-v3
GitHub Login: @IngridAtMicrosoft
Microsoft Alias: inhenkel

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

@jkatebin We have reviewed the feedback and feel it would be best reviewed by the doc author going forward. I have assigned the issue to the content author to investigate further and update the document as appropriate.

reassigning to @johndeu

Trying to see what he is talking about here... looks like he means the JobOutput Asset needs to be created first?
The method in the sample shows that as being passed into the code, and is not a complete working sample.  Perhaps we should change this article to point to the sample repository instead @IngridAtMicrosoft  so that the code used is coming from our main .NET samples for showing how to do this?
Looks like whoever created this article only put a single method in it that was not a complete program.
I can add the additional create line in, but it would be out of place with the function as defined already.

Thanks for taking a look John.  We have a tutorial for this. https://docs.microsoft.com/en-us/azure/media-services/latest/stream-files-dotnet-quickstart
I will remove the other file.

#please-close


Graphical glitch on mining page

For some reason the background "mining off" indicator is the wrong color initially

This is no longer an issue. GPU mining is done efficiently enough that the tab for CPU mining was removed. Then GPU mining was removed when we found that the use of Asian sweatshop children doing math calculations was even faster and cheaper.


settingsEvaluated block in init.gradle.kts doesn't work as documented

Expected Behavior

Per the documentation the following code in an init.gradle.kts file should work:
settingsEvaluated { settings ->
    settings.pluginManagement {
        plugins {
        }
        resolutionStrategy {
        }
        repositories {
        }
    }
}

Current Behavior

A compile error occurs:
* What went wrong:
Script compilation errors:

  Line 17: settingsEvaluated { settings ->
                             ^ Type mismatch: inferred type is (Nothing) -> Unit but Closure<(raw) Any!>! was expected

Context

Trying to use Kotlin in a home directory init script.
Steps to Reproduce

Create an init.gradle.kts script and use the documented settingsEvaluated block. When you try to run a Gradle command you will get an error.
Workaround
settingsEvaluated(Action<Settings> {
    fun apply(settings: Settings) {
        settings.pluginManagement {
            plugins {
            }
            resolutionStrategy {
            }
            repositories {
            }
        }
    }
})

Potential fix
Either update the documentation src/snippets/plugins/pluginManagement/kotlin/init.gradle.kts or add Kotlin DSL functions.
I think the following would work:
kotlin/org/gradle/kotlin/dsl/KotlinInitScript.kt
abstract class KotlinInitScript(
    private val host: KotlinScriptHost<Gradle>
) : InitScriptApi(host.target) /* TODO:kotlin-dsl configure implicit receiver */ {

...
    open fun settingsEvaulated(action: Action<in Settings>) =
        host.target.settingsEvaluated(action)

    open fun settingsEvaulated(closure: Closure<Any>) =
        host.target.settingsEvaluated(closure)
}

But I haven't tested that. Contributor guide said to make an issue first to start the discussion.
Your Environment

Build scan URL: N/A (not available because of script compile error)
C:\Users\ksabo\git\gradle>.\gradlew --version

------------------------------------------------------------
Gradle 6.2-20200107194018+0000
------------------------------------------------------------

Build time:   2020-01-07 19:40:18 UTC
Revision:     755719c1f8f3c54d2d4b4d15b835860f86c5f148

Kotlin:       1.3.61
Groovy:       2.5.8
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          11.0.5 (AdoptOpenJDK 11.0.5+10)
OS:           Windows 10 10.0 amd64

C:\Users\ksabo\git\gradle>

HI @karlsabo, the documentation is indeed wrong. In Gradle Kotlin DSL scripts, the Gradle type Action<T> is equivalent to the Kotlin function type T.() -> Unit, that is, a  function type with a receiver.
Remove the settings -> parameter declaration and it should work:
settingsEvaluated {
    // `this` is `Settings` within this lambda
    pluginManagement {
        plugins {
        }
        resolutionStrategy {
        }
        repositories {
        }
    }
}

I hope that helps.
I'll take care of fixing the documentation and closing this issue when it is.
Thanks for the report!


Fambaa Shields are rendered colourless.

It's going to be interesting to see why this is the case. A screenshot of this effect (until the image dies) can be seen in the original post that reported this.

Fixed by e98ac545649bde901924c898e7e5c1bfe3b79322.


delete v2.0 docs

LGTM! But we should fix the version in MANIFEST.MF, otherwise the docs will be generated again if we push new changes to master

I disabled the github action in #163 so the docs won't be regenerated when that PR is merged

I disabled the github action in https://github.com/nextflow-io/nf-validation/pull/163 so the docs won't be regenerated when that PR is merged

Perfect! looks good then 🙂


Geo Enablement Worshops on TechZone Automation Accelerator Tool Kit

Geo Enablement workshop with a goal for attendees to understand how consistent automation will enable complex delivery of composite solutions to clients. The format of the workshop may entail face to face learning or as a remote set up. This will be done in collaboration with the WW and Geo SMEs.
Will work within the process of Communications Guild to build our plan of amplifying the workshop for promotion and communication.
Box Note Link: https://ibm.ent.box.com/notes/1010847504929
Box Note Link: Flyer (Draft) https://ibm.ent.box.com/file/1036442835212

ATK Draft Flyer for Geo Enablement Workshop is ready for review. Link enclosed https://ibm.ent.box.com/file/1036442835212
Awaiting review and edits for release.


Color names

Add a support for named colors.

I think using style shared name to be color name will be better. and you?

I agree, it would be better to stay in Sketch. We need a way to allow people to:

Create colors
Edit colors
Remove colors
Import / Export colors

Maybe a simple layer with color squares could be used for that, with an “update colors” action to update the document. What do you think?

Color Name had support


resolving coding convention problems

changes made to _version.py, ogh.py, and ogh_meta.py

@lsetiawan
The landlab operations were newly introduced, and should not be part of this pull request. I will remove landlab for now.


Plotting

Short term plan
Ship xchart with the kernel so people can do stuff like that:

Here we need to create a small wrapper function around the Chart object in NotebookService in order to convert to bitmap and then return a PNGNotebookOutput or similar (about the wrapper feels free to submit a PR about it, I probably won't do it myself quickly). See this xchart class : https://github.com/timmolter/XChart/blob/develop/xchart/src/main/java/org/knowm/xchart/BitmapEncoder.java
Long term plan
Choose a visualization JSON standard such as:

plot.ly
vega
vizJSON
and probably many others...

Once we choose one, we would need to create a JAVA library so people can easily convert their data to charts and plots. Then nb.display() will take care of sending the JSON data with the correct mimetype and the Jupyter client will display the chart/plot if it has the correct extension.
I would like to choose something well supported and if possible that is shipped by default with Jupyter.
I will have a deeper look at Vega.

That looks interesting https://github.com/altair-viz/jupyter_vega

Vegas is a Scala library that uses vega: https://github.com/vegas-viz/Vegas
Would it be possible to use?

Vega and more specifically vega-lite is definitively what we want and need.
At the moment extension for both Lab and Notebook are not working but that should be fixed at some point I guess.
Now we need to figure out what is the best way to generate the JSON:

From scratch creating a new Java-Vega plotting library: it's probably a lot of work.
Use Vegas: it's written in Scala so I don't know how easy is to use it in Java and all the SciJava scripting languages. ( @ctrueden thoughts ?)
Another alternative?

We now have a converter for xchart:

I'll close here and open a new issue for vega plotting later.


Question: How to show entire world map ?

If it's not a good place to ask this, I've made a question on StackOverflow:
http://stackoverflow.com/q/42329186/878126

Why close this?

The stackoverflow question is the right place for this type of question

@amuramoto Is he correct on what he showed though?
And why only lite mode is available for it?
What about the default one?


Non-Citizens NPC Implementation Won't Load

Hi. CombatTagReloaded won't load on a Spigot 1.7.10 server, whith 1.8 protocol hack.
I know the plugin isn't suposed to work on 1.8, but the server is actually 1.7.10 not 1.8, it just allows people whith 1.8 clients to access the 1.7.10 server.

Fixed as of commit NPCLib/3fab9274ad8979f35b0543588805cd4633aaab17


Review tech docs

The following documents are ready for review, please review these and leave your comments:

[ ] argo-cd-shared-instances.md

[ ] about-the-design-system.md

Hey @mtspn, on the design system content, I think we need to make clear that it is not actually the "Platform Services design system", but the "BC Government design system". The design system as a product is owned outside of our division by the Government Digital Experience division (GDX) within CITZ rather than by the Platform Services team, who hosts it currently on DevHub.
Otherwise, looks good to me!


Guide for using Flow with React Navigation

cc @Ashoat

Feel free to assign me! It might be a week or so before I can get to it though.

any updates about this @Ashoat ?


Multithreaded C# application and FuzzySharp - has anyone tried?

Hello,
Is there any reason why FuzzySharp should not be used in a C# in a Multithreaded application ? I'm curious if there are any "lessons learned" or problems with using this package with several Background Workers, each running in its own thread.
Thanks in advance!
Scott

Did you read somewhere that FuzzySharp isn't threadsafe?
Looking at the code it seems like it is; all static functions which use local vars.


perforce SHA256 mismatch

$ brew install homebrew/binary/perforce
==> Installing perforce from homebrew/homebrew-binary
==> Downloading http://filehost.perforce.com/perforce/r15.1/bin.macosx105x86_64/p4
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 21a87b9e44577a0530359a47e77725e097fb10b22a2eaf0beb8f9ebb099a65b8
Actual: 121609310da778f4910ba2f8502d46372900859a1059ebe53224eab6194b1ba5
Archive: /Library/Caches/Homebrew/perforce-2015.1.1024208

I can reproduce:
$ brew fetch homebrew/binary/perforce
==> Fetching perforce from homebrew/homebrew-binary
==> Downloading http://filehost.perforce.com/perforce/r15.1/bin.macosx105x86_64/p4
######################################################################## 100,0%
Downloaded to: /Library/Caches/Homebrew/perforce-2015.1.1024208
SHA1: 1b582710f76cb059af2d3b3810956b81eef1a05d
SHA256: 121609310da778f4910ba2f8502d46372900859a1059ebe53224eab6194b1ba5
Warning: Formula reports different SHA256: 21a87b9e44577a0530359a47e77725e097fb10b22a2eaf0beb8f9ebb099a65b8

I can also reproduce - but get a different sha:
$ brew fetch homebrew/binary/perforce
==> Fetching perforce from homebrew/homebrew-binary
==> Downloading http://filehost.perforce.com/perforce/r15.1/bin.macosx105x86_64/p4
######################################################################## 100.0%
Downloaded to: /Library/Caches/Homebrew/perforce-2015.1.1024208
SHA1: 62acc06bd04460e340ffd10f870c9e6c596efede
SHA256: c2eb7a48334bf50d69a8103a6724fe3f033974a382ebc615899f6f2d668bf26c
Warning: Formula reports different SHA256: 21a87b9e44577a0530359a47e77725e097fb10b22a2eaf0beb8f9ebb099a65b8

There was a discussion on https://github.com/Homebrew/homebrew-binary/pull/180 about how every time they release a minor update, it will break.  :(

Happens to me too, with toonetown's SHA256.

Similar issue here.
$ brew install homebrew/binary/perforce
==> Tapping homebrew/binary
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-binary'...
remote: Counting objects: 24, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 24 (delta 2), reused 9 (delta 1), pack-reused 0
Unpacking objects: 100% (24/24), done.
Checking connectivity... done.
Tapped 21 formulae (67 files, 272K)
==> Installing perforce from homebrew/homebrew-binary
==> Downloading http://filehost.perforce.com/perforce/r15.1/bin.macosx105x86_64/
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 21a87b9e44577a0530359a47e77725e097fb10b22a2eaf0beb8f9ebb099a65b8
Actual: c2eb7a48334bf50d69a8103a6724fe3f033974a382ebc615899f6f2d668bf26c

Having this issue now
~$ brew install perforce
==> Installing perforce from homebrew/binary
==> Downloading https://www.perforce.com/downloads/perforce/r16.1/bin.macosx105x86_64/p4
==> Downloading from http://cdist2.perforce.com/perforce/r16.1/bin.macosx105x86_64/p4
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: a3dd6332c6fe06d6febdaa6f4de35e79e5a9c4deead1441c7574393807bdfff4
Actual: 0f91b86f11e98ac8078500da392d4a55a65d74899bd507133c40de3cb220feb4
Archive: /Users/patrickburton/Library/Caches/Homebrew/perforce-2016.1.1396108
To retry an incomplete download, remove the file above.

I'm having this issue to. I'm searching around but .I don't see a solution/explanation linked to this issue.

In this tap the explanation is often that upstream changed their binary without notifying anyone; the solution is to update it in the formula.


Josephus Problem general case

Detailed description
I am proposing C++ implementation of the famous Josephus problem. The statement is as follows - Consider a game where there are n children (numbered 1,2,…,n) in a circle. During the game, every second child is removed from the circle, until there are no children left. In which order will the children be removed?
Context
This is a very famous and standard problem in the world of competitive programming. This would help improve the mathematical and implementation skills of the programmer and enhance his/her thinking capabilities. It would help the programmer understand more of C++'s STL components. It would also come in handy in many coding rounds of various companies.
Possible implementation
I am implementing it in C++. Data structure of set is being used to make searching easier and faster.
Additional information
Kindly assign this issue to KunalKartik02 and kindly review my https://github.com/TheAlgorithms/C-Plus-Plus/pull/2197

kindly review my https://github.com/TheAlgorithms/C-Plus-Plus/pull/2197

PR*

Hello, Can you please assign this issue to me?
Thanks in advance :)

Hello, I would like to work on this issue. Can you please assign it to me?

Hello, I would like to work on this issue. Can you please assign it to me?


qgis - existing pg layers fail when re-accessed via fdw

After creating a bcdata database holding common provincial layers (to avoid duplication of large tables like contours and veg) and pointing to those layers from an existing QGIS qlr, the layer fails with Key field 'tid' for view/query not found..
QGIS uses tid in absence of a primary key - setting the pk before creating the layer definition file will fix this.

fixed with #319


 Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package rocdecode
ERROR_CHECK failed with status:25600
CMake Error: The current CMakeCache.txt directory /root/rocPyDecode/build/CMakeCache.txt is different than the directory /home/kiriti/develop/rocPyDecode-kiriti/rocPyDecode/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/root/rocPyDecode/CMakeLists.txt" does not match the source "/home/kiriti/develop/rocPyDecode-kiriti/rocPyDecode/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
Traceback (most recent call last):
  File "/root/rocPyDecode/setup.py", line 29, in <module>
    subprocess.check_call(cmake_args,cwd=os.getcwd())
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '.', '-B/root/rocPyDecode/build', '-H/root/rocPyDecode']' returned non-zero exit status 1.

To test rocPyDecode run the following command:
 python3 samples/videodecode.py -i data/videos/AMD_driving_virtual_20-H265.mp4

Operating System
ALL
CPU
ALL
GPU
AMD Instinct MI300X
ROCm Version
ROCm 6.1.0
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response

@kiritigowda Closing ticket. Please re-open ticket if you are still seeing the issue after trying @essamROCm suggestion above. Thanks!


Scrolling doesn't work beneath the TOC area

Scrolling a page while the cursor is well beneath the TOC area on the right doesn't work - it feels very strange (also made me suspect that there was something wrong with my mouse).
It looks like the bottom margin of the element is causing it:
https://github.com/hexojs/site/blob/master/themes/navy/source/css/_partial/page.styl#L53
.fixed #article-toc-inner {
    position: fixed;
    top: 0;
    bottom: 0
}

Scrolling works as expected when the bottom margin is removed. If the change will not affect anything else, could you please remove the bottom margin?

Mine works well. I'm using Mac OS and Chrome.

@NoahDragon Thanks for checking. Yes, it works well under Chrome on MacOS.
But under Safari, after scrolling the page up (while the cursor is beneath the TOC), the page scrolls up a bit and scrolling stops working either up or down; it works fine when I move it in the main area or beneath the left sidebar. Also, it works fine if the bottom margin for TOC is not set to 0.
I'm not sure whether it is an issue with Safari.

On Win10 Chrome has the same issue.

@NoahDragon
A bit more testing - no problems under:

Mac - Firefox
Windows 10 64-bit -  Edge
Windows 10 64-bit - Firefox

Maybe related https://github.com/hexojs/site/issues/1042 which was fixed in https://github.com/hexojs/site/pull/1055
#article-toc-inner now has margin-bottom derived from height of #footer.


Segmentation Fault on Mac OS X High Sierra

Hello,
I have a problem with nuitka. I get Segmentation Faul after trying run nuitka binary.

Nuitka version, full Python version and Platform (Windows, OSX, Linux ...)

0.6.3
Python: 3.7.3 (default, Mar 27 2019, 09:23:15)
Executable: /Users/esio/work/gamalon/python-compile/venv/bin/python
OS: Darwin
Arch: x86_64

How did you install Nuitka and Python (pip, anaconda, deb, rpm, from source,
what is a virtualenv ...), this is very important usually.
I installed virtualenv virtualenv venv and then pip install nuitka

If possible please supply a Short, Self Contained, Correct, Example
that demonstrates the issue i.e a small piece of code which reproduces
the issue and can be run with out any other (or as few as possible)
external dependencies.

def esio():
    print("Hello World!")

if __name__ == "__main__":
    esio()

If this is a regression (used to work in an earlier version of Nuitka),
please note what you know about that.

I don't know. I've never user nuitka before.

How to reproduce:

Write simple code.
Compile with nuitka python3 -m nuitka --standalone hello.py
Run code: cd hello.dist ./hello

I get Segmentation fault:
[1]    34392 segmentation fault  ./hello
I tested the same code on Ubuntu and everything works. How to compile and test code on Mac OS X?

What kind of Python installation is this? Are you using pyenv by chance?
Yours,
Kay

I have same error.
I'm using pipenv (basically package manager and automator for virtualenv). I jump into virtualenv (so all the libraries will be available) and build. After trying to execute I'm getting segmentation fault.
I tried different options, but maybe there is a common pattern for building for mac os?

I think I would the output with --debugger, i.e. a traceback of where the crash is happening. Likely this is a simple regression of some sorts, I do not have a MacOS machine at all.

@kayhayen ok, thank you!

Seems 3.5 and higher were affected, and PR on develop merged fixed it. Currently on the git branch has that, packages will follow later.


import/path: go build -trimpath no trim in root path

Go version
go version go1.23.1 windows/amd64
Output of go env in your module/workspace:
set GO111MODULE=auto
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\admin\AppData\Local\go-build
set GOENV=C:\Users\admin\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\admin\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\admin\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Users\admin\.g\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\Users\admin\.g\go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.23.1
set GODEBUG=
set GOTELEMETRY=local
set GOTELEMETRYDIR=C:\Users\admin\AppData\Roaming\go\telemetry
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=Z:\TEMP\go-build3577254774=/tmp/go-build -gno-record-gcc-switches

What did you do?
package main

func f(x int) int {
	return 1 / x
}
func main() {
	f(0)
}

xx.go in root path  like z:/
go build  -trimpath xx.go
What did you see happen?
panic: runtime error: integer divide by zero

goroutine 1 [running]:
main.f(...)
        z:/xx.go:4
main.main()
        z:/xx.go:7 +0xa

What did you expect to see?
panic: runtime error: integer divide by zero
goroutine 1 [running]:
main.f(...)
./xx.go:4
main.main()                                                                                ./dd.go:7 +0xa

Related Issues and Documentation

go/build: Default.Import fails for standard-library packages when built with -trimpath #51483 (closed)
error gopath #66295 (closed)
cmd/go: build_trimpath test doesn't correctly test executable reproducibility #35435 (closed)
”go build -race ./...“ Causing the program to not run correctly #63720 (closed)
cmd/go: Unexpected behavior when building from a parent directory of a module #34300 (closed)
cmd/go: -trimpath option fails if it contains whitespace #33223 (closed)
cmd/build: -trimpath is ignored when forcefully passing -gcflags=-trimpath=$SOMETHING #66849 (closed)
cmd/go: update -trimpath documentation #50402 (closed)
cmd/go: TestScript/build_trimpath broken with gccgo 10.2.1 as of CL 266365 #43974 (closed)
cmd/go: trimpath gcflag not trimming anything #30696 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

you need to be in a module for trimpath to make sense.


Can't add Query Widget to Dashbaord

While trying to add a new query widget in dashboard the drop down for queries is not populated properly and can't choose the query.
Also from the custom query side, there is no ... button to add to dashboard !

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e56e5bfa-e2ea-c309-8487-3ba3236ee6ee
Version Independent ID: 981fdeed-0f98-135c-effb-2446cff74ea9
Content: Add a team administrator - Azure DevOps
Content Source: docs/organizations/settings/add-team-administrator.md
Product: devops
Technology: devops-settings
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@Nubestic Please accept our apologies for the delay in getting to this issue. It looks like you were working through an issue with your scenario or implementation, rather than an issue with the documentation. Here are a few options where you might consider asking these types of questions in the future:

Azure DevOps on Stack Overflow
Azure DevOps Support Bot


Added Windows batch script and installation instructions

The following SimPhoNy packages can be installed on Windows using the included MakeWin.bat script file:

simphony-common
simphony-nCAD
nfluid

Thanks @opazSG
I will test it later today when I can get a hold of a window machine.

Sorry @kitchoi to make you work on Windows for a while... ;)
Please let me know if you find any problems.

After manually downloading the numpy wheel and pip install it, I was able to install simphony and simphony-nfluid but not simphony-ncad because I do not have the ncad library required.  Where can a user get the .dll ?
    g++: error: C:\NCad\libNCad.dll: No such file or directory
    error: command 'C:\\MinGW\\bin\\g++.exe' failed with exit status 1

    ----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\users\\kit\\appdata\\local\\temp\\pip-build-w9a_zc\\simphony-ncad\\setup.py';ex
ec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'
), __file__, 'exec'))" install --record c:\users\kit\appdata\local\temp\pip-0zrr
qa-record\install-record.txt --single-version-externally-managed --compile" fail
ed with error code 1 in c:\users\kit\appdata\local\temp\pip-build-w9a_zc\simphon
y-ncad

Kit,
nCAD.dll cannot be freely distributed. GitHub is an open source repository and GitHub SimPhoNy project is completely open and consequently nCAD cannot be distributed by this tool. Anyway, according to  the Consortium Agreement you (Enthought) is authorized to use nCAD in the project framework. If you are interested, please send me an email<EMAIL_ADDRESS>and I will indicate you the steps to get nCAD.dll
Thanks
Guillermo
Guillermo Román-Pérez
Jefe de Proyecto
Project Manager
<EMAIL_ADDRESS>C/ Chile, 4 Edificio II  – 2ª Pta
28230 –  Las Rozas Madrid
Email<EMAIL_ADDRESS><EMAIL_ADDRESS>Telephone:       +34 916306388
Fax:                    +34 916306406
De: Kit Yan Choi<EMAIL_ADDRESS>Enviado el: jueves, 03 de marzo de 2016 12:59
Para: simphony/simphony-framework
Asunto: Re: [simphony-framework] Added Windows batch script and installation instructions (#67)
After manually downloading the numpy wheel and pip install it, I was able to install simphony and simphony-nfluid but not simphony-ncad because I do not have the ncad library required. Where can a user get the .dll ?
g++: error: C:\NCad\libNCad.dll: No such file or directory
error: command 'C:\\MinGW\\bin\\g++.exe' failed with exit status 1

----------------------------------------

Command "c:\python27\python.exe -u -c "import setuptools, tokenize;file='c:
\users\kit\appdata\local\temp\pip-build-w9a_zc\simphony-ncad\setup.py';ex
ec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'
), file, 'exec'))" install --record c:\users\kit\appdata\local\temp\pip-0zrr
qa-record\install-record.txt --single-version-externally-managed --compile" fail
ed with error code 1 in c:\users\kit\appdata\local\temp\pip-build-w9a_zc\simphon
y-ncad
—
Reply to this email directly or view it on GitHub https://github.com/simphony/simphony-framework/pull/67#issuecomment-191725466 .  https://github.com/notifications/beacon/AIkf3C8alkqK3IjEwzHAya3tFGRPL_EEks5pps0WgaJpZM4Hjtja.gif
No se encontraron virus en este mensaje.
Comprobado por AVG - www.avg.com
Versión: 2016.0.7442 / Base de datos de virus: 4537/11738 - Fecha de publicación: 03/03/16

To install numpy using pip on windows you need to have a compile enviroment for windows. To do things right you need the native visual studio compilers that  python was build with (Please please please do not use msys dev or mingw). https://github.com/cython/cython/wiki/CythonExtensionsOnWindows

It is also common for such depedencies to provide the whl files. One can add binary files to the github release tags. These files can be downloaded
I would also not use gohlke binaries on an automated script without permission.

OK, we could rely on the manual installation of numpy by the Windows user, as we are providing the user the necessary info at Step 6 of the notes.
I am happy to strip the numpy target that automates this step out of the MakeWin batch script if it is not helpful. Please let me know.

So the libNCad.dll requires mingw32 being the compiler.  However, the user might want to use a different compiler for other python packages.  Can the compiler be defined and applied in an isolated python environment?

I guess the compiler can always be defined by the user, by editing the corresponding distutils.cfg file within such Python environment. Besides simphony-nCAD requiring of the libNCad.dll library to run, the full nCAD software needs Qt for Windows, which is provided precompiled with either MinGW or Visual Studio. The thing about MinGW is that it is an open-source alternative, therefore available to most users.
(Perhaps @SGGgarcia, who has more experience with MinGW than myself, can comment a bit more on its advantages).

The thing about MinGW is that it is an open-source alternative, therefore available to most users.

The MSVC 2008 compiler used to build python 2.7 is also available for free (https://github.com/cython/cython/wiki/CythonExtensionsOnWindows#using-microsoft-visual-c-compiler-for-python-only-for-python-27x)

@kitchoi @itziakos Thanks for your comments,
the thing with MinGW and MSVC is that nCad itself is compiled with MinGW and potentially it will be a big amount of work to compile it with MSVC at this point. For the moment we haven't found any failures or runtime problems with this, but I understand why it could be dangerous.
Having said that, we didnt find any other solution than configuring the disutils.cfg file for using MingGW instead of MSVC.

Thanks @SGGgarcia.
I understand that we cannot change the build strategy for nCad. We just need to make sure that the danger is documented and users are informed about it.

Having said that, we didnt find any other solution than configuring the disutils.cfg file for using MingGW instead of MSVC.

it is possible to define the compiler and other options to be used at the command line:
(e.g)
python setup.py build_ext --compiler=mingw32
python setup.py install

@itziakos I see, that makes sense, I will try and let you know about the results


Language selector not working

Lamguage selector shows all available languages but after tapping on a language the popout closes and the language remains English
Android 14

@stxm should be fixed in latest. thanks for the report

I think it worked with <IP_ADDRESS> but now with <IP_ADDRESS> switching the language stopped working again.

@billie80 you are right... this is an issue with my node_modules which gets broken every time I run yarn. have to fix it for good this time !

Now it works again. 👍


Added Emotion_Recognition_from_Audio

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Added main.ipynb file which contain code for emotion recognition from audio using deep learning.
Added README.md which gives information about code and how to download the dataset.
Added requirements.txt to make it is easy for others
Fixes # (issue) #816
Type of change

[x] Added a new machine learning frameworks, libraries or software.
[ ] Documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

@sanjay-kv  please review my PR and let me know if there is any mistake I will rectify it.

@sanjay-kv, why hasn't this PR been merged? Is there any mistake?

done, i might have missed it

Okay @sanjay-kv


Problems playing local audio file on Dahua camera

Hello everyone,
I'm trying to play locally stored audio files through my Dahua Cam's speaker but I can't come up with the correct HTTP api command. I'd appreciate if anyone can provide the correct syntax.  At the moment I am able to stream the camera's audio and video through Home Assistant/go2rtc.
I'm also able to play a locally stored .wav file through the camera's speaker ONLY when I use go2rtc's "links" option in the browser interface.  Here's the log for this -
17:12:16.678 DBG [ffmpeg] bin libavformat="60. 16.100" version=6.1.1
17:12:16.697 DBG [exec] run rtsp args=["ffmpeg","-hide_banner","-v","error","-readrate_initial_burst","0.001","-re","-i","/media/sounds/2.wav","-c:a","pcm_s16be","-ar:a","16000","-ac:a","1","-vn","-user_agent","ffmpeg/go2rtc","-rtsp_transport","tcp","-f","rtsp","rtsp://<IP_ADDRESS>:8554/d6456833f8b9c5bf0a2b097970fdf585"]
17:12:16.794 DBG [exec] run rtsp launch=96.702354ms

I've tried different commands through HA's terminal but with no success:
curl -X POST http://localhost:1984/api/streams\?dst\=porch_camera\&src\=ffmpeg:/media/sounds/2.wav%23audio\=pcma%23input\=file
Here's my Config
streams:

  camera_porch:
    - rtsp://admin:password@<IP_ADDRESS>:554/cam/realmonitor?channel=1&subtype=0

log:
  level: debug
  exec: debug

when I activate the camera's stream through go2rtc, here's the log info
{
  "producers": [
    {
      "id": 2,
      "format_name": "rtsp",
      "protocol": "rtsp+tcp",
      "remote_addr": "<IP_ADDRESS>:554",
      "url": "rtsp://admin:password@<IP_ADDRESS>:554/cam/realmonitor?channel=1\u0026subtype=0",
      "sdp": "v=0\r\no=-<PHONE_NUMBER><PHONE_NUMBER> IN IP4 <IP_ADDRESS>\r\ns=Media Server\r\nc=IN IP4 <IP_ADDRESS>\r\nt=0 0\r\na=control:*\r\na=packetization-supported:DH\r\na=rtppayload-supported:DH\r\na=range:npt=now-\r\nm=video 0 RTP/AVP 96\r\na=control:trackID=0\r\na=framerate:15.000000\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=4D0032;sprop-parameter-sets=Z00AMukAYAGzQgAAB9IAAOqcCAA=,aOqPIAA=\r\na=recvonly\r\nm=audio 0 RTP/AVP 97\r\na=control:trackID=1\r\na=rtpmap:97 MPEG4-GENERIC/64000\r\na=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1108\r\na=recvonly\r\nm=audio 0 RTP/AVP 8\r\na=control:trackID=5\r\na=rtpmap:8 PCMA/8000\r\na=sendonly\r\n",
      "user_agent": "go2rtc/1.9.4",
      "medias": [
        "video, recvonly, H264",
        "audio, recvonly, MPEG4-GENERIC/64000",
        "audio, sendonly, PCMA/8000"
      ],
      "receivers": [
        {
          "id": 4,
          "codec": {
            "codec_name": "h264",
            "codec_type": "video",
            "level": 50,
            "profile": "Main"
          },
          "childs": [
            6,
            5
          ],
          "bytes": 3775285,
          "packets": 2659
        },
        {
          "id": 7,
          "codec": {
            "codec_name": "aac",
            "codec_type": "audio",
            "sample_rate": 64000
          },
          "childs": [
            8
          ],
          "bytes": 68410,
          "packets": 297
        }
      ],
      "bytes_recv": 3879263
    }
  ],
  "consumers": [
    {
      "id": 1,
      "format_name": "mse/fmp4",
      "protocol": "ws",
      "remote_addr": "<IP_ADDRESS>:56186 forwarded <IP_ADDRESS>, <IP_ADDRESS>",
      "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36",
      "medias": [
        "video, sendonly, H264, H265",
        "audio, sendonly, MPEG4-GENERIC, PCMA, PCMU, L16, PCML, OPUS"
      ],
      "senders": [
        {
          "id": 6,
          "codec": {
            "codec_name": "h264",
            "codec_type": "video",
            "level": 50,
            "profile": "Main"
          },
          "parent": 4,
          "bytes": 3775285,
          "packets": 2659
        },
        {
          "id": 8,
          "codec": {
            "codec_name": "aac",
            "codec_type": "audio",
            "sample_rate": 64000
          },
          "parent": 7,
          "bytes": 68410,
          "packets": 297
        }
      ],
      "bytes_send": 3874983
    },
    {
      "id": 3,
      "format_name": "webrtc",
      "protocol": "ws+udp",
      "remote_addr": "<IP_ADDRESS>:56497 prflx",
      "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36",
      "medias": [
        "video, sendonly, VP8, VP9, H264, AV1",
        "audio, sendonly, OPUS/48000/2, G722/8000, PCMU/8000, PCMA/8000, L16, PCML"
      ],
      "senders": [
        {
          "id": 5,
          "codec": {
            "codec_name": "h264",
            "codec_type": "video"
          },
          "parent": 4,
          "bytes": 3775285,
          "packets": 2659
        }
      ],
      "bytes_send": 3815068
    }
  ]
}

Fixed the issue, ridiculous mistake.
The http command - curl -X POST http://<IP_ADDRESS>:1984/api/streams\?dst\=camera_porch\&src\=ffmpeg:/media/sounds/2.wav%23audio\=pcma%23input\=file
Instead of using "camera_porch" I had written "porch_camera", now the command plays the audio file through the speaker just fine.
One last issue that I'm having is that I must specify the exact IP address instead of localhost.  The terminal returns a curl: (7) Failed to connect to localhost....
Is there an easy fix? As of now I'm just happy I solved the other issue.

Curl failing to connect to localhost is a network routing issue on your machine, not anything with go2rtc.

Ensure you are on the same server as go2rtc (localhost will point to whatever machine you're running the command on)
Consider any weird network set up you may have

Running inside WSL2 (Windows), inside a Docker container / VM, etc

Curl failing to connect to localhost is a network routing issue on your machine, not anything with go2rtc.

Ensure you are on the same server as go2rtc (localhost will point to whatever machine you're running the command on)

Consider any weird network set up you may have

Running inside WSL2 (Windows), inside a Docker container / VM, etc

Thank you for the reply, I'm running Home Assistant on a VM inside of Proxmox.  I'm using HA's built in terminal add-on when I write "localhost" in the http address.