Any way to link the slider and the bars more accurately?

Looks like these are manually set:

is slightly offset, and

seems closer to centered.

I'll get to it soon, sometimes the eyes play tricks on me when I've been staring at them all day.

This looks OK to me... maybe I'm not seeing it or is it fixed?

#157


The time taken by restler is longer than expected

Description
I am using restler myself on an API I have at my disposal and one thing I have noticed is that the --time_budget parameter does not work as it should in both the original and the personally modified version. I've tested the original version on multiple devices and although I put --time_budget 0.01, the time taken is over an hour instead of 1 minute as it was a few versions ago and this problem has persisted for a few versions. I have currently encountered this problem on both restler 9.1 and 9.2 and I have noticed that this behaviour only occurs on Windows and Ubuntu while on the Macbook the time taken is as it is requested.
Steps to reproduce
Following the readme, I compile the demo_server swagger with the relevant command and execute
restler_bin/restler/Restler fuzz --grammar_file Compile/grammar.py --dictionary_file Compile/dict.json --settings Compile/engine_settings.json --no_ssl --time_budget 0.01
Expected results
I expect the execution to finish 1 minute after the command has been started or shortly thereafter
Actual results
The process stops after 1 hour and some minutes
Environment details
Windows Python 3.9.13 and dotnet 7.0.202
Ubuntu  Python 3.10.6 and dotnet 6.0.116
Mac Python 3.9.16 and dotnet 6.0.407

Hello @alaendro,
I cannot reproduce this with the current version of RESTler.  Could you please check the output in the top-level log named restler-20230602-120121.log (current date and time will be substituted in the file name) and send me the command line with the time_budget parameter as it appears in this log?

Restler Information: 0 : Launching 'python.exe -B "...../engine/restler.py"  <...> --disable_checkers namespacerule --time_budget 0.001000  <...> --fuzzing_mode bfs-fast'

Thanks,
Marina

Hello, I have the same problem. I run the restler for 3 minutes but it stops after 1 hour and some extra minutes.
This is my command:
.\restler\Restler.exe fuzz --grammar_file .\Compile\grammar.py --dictionary_file .\Compile\dict.json --settings .\Compile\engine_settings.json --no_ssl --time_budget 0.05
And this is the launching information log:
Restler Information: 0 : Launching 'python.exe -B "D:\Projects\pribadi\rest-fuzzing\restler_bin\restler../engine/restler.py" --restler_grammar "D:\Projects\pribadi\rest-fuzzing\restler_bin\Compile\grammar.py" --custom_mutations "D:\Projects\pribadi\rest-fuzzing\restler_bin\Compile\dict.json" --set_version 9.2.2    --no_ssl   --settings "D:\Projects\pribadi\rest-fuzzing\restler_bin\Compile\engine_settings.json" --enable_checkers * --disable_checkers namespacerule --time_budget 5.000000   --include_user_agent --no_tokens_in_logs t --garbage_collection_interval 30 --fuzzing_mode bfs-fast'
Environment details
Windows, dotnet 7.0.110, python 3.11.1

Hello, I have the same problem. I run the restler for 3 minutes but it stops after 1 hour and some extra minutes.
This is my command: .\restler\Restler.exe fuzz --grammar_file .\Compile\grammar.py --dictionary_file .\Compile\dict.json --settings .\Compile\engine_settings.json --no_ssl --time_budget 0.05
And this is the launching information log: Restler Information: 0 : Launching 'python.exe -B "D:\Projects\pribadi\rest-fuzzing\restler_bin\restler../engine/restler.py" --restler_grammar "D:\Projects\pribadi\rest-fuzzing\restler_bin\Compile\grammar.py" --custom_mutations "D:\Projects\pribadi\rest-fuzzing\restler_bin\Compile\dict.json" --set_version 9.2.2 --no_ssl --settings "D:\Projects\pribadi\rest-fuzzing\restler_bin\Compile\engine_settings.json" --enable_checkers * --disable_checkers namespacerule --time_budget 5.000000 --include_user_agent --no_tokens_in_logs t --garbage_collection_interval 30 --fuzzing_mode bfs-fast'
Environment details Windows, dotnet 7.0.110, python 3.11.1

I think this is a bug (in Windows) when parsing time budget argument that contains decimal point. When you pass decimal value using dot, the prefix is ignored. For example in my case, passing 0.05 will be rendered as 5.0000. I try to pass decimal value using comma and it is rendered correctly as 0.05
This is my new command:
.\restler\Restler.exe fuzz --grammar_file .\Compile\grammar.py --dictionary_file .\Compile\dict.json --settings .\Compile\engine_settings.json --no_ssl --time_budget 0,05
And this is launch information log:
Restler Information: 0 : Launching 'python.exe -B "D:\Projects\pribadi\rest-fuzzing\restler_bin\restler../engine/restler.py" --restler_grammar "D:\Projects\pribadi\rest-fuzzing\restler_bin\Compile\grammar.py" --custom_mutations "D:\Projects\pribadi\rest-fuzzing\restler_bin\Compile\dict.json" --set_version 9.2.2    --no_ssl   --settings "D:\Projects\pribadi\rest-fuzzing\restler_bin\Compile\engine_settings.json" --enable_checkers * --disable_checkers namespacerule --time_budget 0.050000   --include_user_agent --no_tokens_in_logs t --garbage_collection_interval 30 --fuzzing_mode bfs-fast'
And after that, the fuzzing process stops correctly in 3 minutes (0.05 hour)


Astro 4 dependency

Issues dependency warnings with Astro 4

For the time being you can install the package via GitPkg (works for me at least):
npm i https://gitpkg.now.sh/shishkin/astro-pagefind/packages/astro-pagefind?main

For the time being you can install the package via GitPkg (works for me at least): npm i https://gitpkg.now.sh/shishkin/astro-pagefind/packages/astro-pagefind?main

That isn't working for automated Cloudflare Pages builds
15:19:25.096 | npm WARN tarball tarball data for astro-pagefind@https://gitpkg.now.sh/shishkin/astro-pagefind/packages/astro-pagefind?main (sha512-JpuZVgeiK0Bj82fGmIrmjI2SBxTN9D593y7wmvCgMep562Veu+81sr6mlD6jbaAqddYUnFPah5t0krHno4aGEw==) seems to be corrupted. Trying again.
15:19:25.183 | npm ERR! code EINTEGRITY
15:19:25.185 | npm ERR! sha512-JpuZVgeiK0Bj82fGmIrmjI2SBxTN9D593y7wmvCgMep562Veu+81sr6mlD6jbaAqddYUnFPah5t0krHno4aGEw== integrity checksum failed when using sha512: wanted sha512-JpuZVgeiK0Bj82fGmIrmjI2SBxTN9D593y7wmvCgMep562Veu+81sr6mlD6jbaAqddYUnFPah5t0krHno4aGEw== but got sha512-wBO3FD8WVTRy/Q8twAA6pX6hlQNbiyiAaiFvkdVEYxS2RqNpgeS9IE0GHOBobudUPmdSkEjIzNq4E2E2dAdPew==. (3909 bytes)

1.4.0 is out now. Sorry for the delay.


TextEdit in plugin with wrap and fit_content_height enabled can result in crash

Godot version
4.2.dev3, 4.1.1-stable
System information
Windows 10, (probably macOS 13.4.1 as well)
Issue description
When used in a plugin, a TextEdit that has fit_content_height and wrap mode enabled but only limited space to extend to will crash godot once the text get's too long.
I discovered this bug while fixing a bug for dialogic: https://github.com/coppolaemilio/dialogic/issues/1675
The user that discovered it was using mac OS 13.4.1 and godot 4.1.1 so I assume that this issue is present there too.
This issue seemed similar, but has to do with the RichTextLabel and is apparently fixed:  RichTextLabel freezes Godot 4.1-rc2 on Fit Content #78932
I was not able to reproduce the problem in running games, only in plugins!

Steps to reproduce

create a super simple plugin with code like this:

@tool
extends EditorPlugin

func _enter_tree():
	if get_editor_interface().is_plugin_enabled('test'):
		_enable_plugin()

func _enable_plugin():
	get_editor_interface().get_editor_main_screen().add_child(preload("res://Test.tscn").instantiate())

func _get_plugin_name():
	return "Test"

func _has_main_screen():
	return true

setup the "res://Test.tscn" scene like this:

Control
---- Scroll Container (make it relatively small, so you need less text to enter for the crash)
-------- Vbox (expand horizontal & vertical)
----------- TextEdit (fit_content_height = true; wrap_mode = Boundary)

enable the plugin
select the TextEdit in the new editor tab and start spamming any letters.
-> once the text edit fills the whole Scroll Container godot crashes

Minimal reproduction project
TestTextEditCrashBug.zip (has been created following the steps above)

Open project
Switch to the "Test" tab
select the Text edit
start spamming any letter until the field is filled.
-> crash

It seems to be stuck in an infinite loop, similar to #75713.

I can confirm experiencing this on macOS as well, latest version on an M2 Macbook 24GB. What makes this significantly worse is a plugin automatically loading data and building UI at start, once hitting this limit, will create continuous crashes requiring the user to edit data outside of Godot to remove the offending data load

Cannot reproduce in v4.2.1.stable.official [b09f793f5] or master (v4.3.dev.custom_build [11d376813])

may have been fixed by https://github.com/godotengine/godot/pull/83286


After upgrading to 2.0.0-alpha.11, service no longer exists

[x] I confirm that this is an issue rather than a question.

Bug report
I upgraded to the new alpha.10.1 yesterday and it transpired that there was an issue with the build. After I upgraded hyperion, the service never came online.
I then install Hyperion alpha.11 following the release earlier but the service is not starting.
Steps to reproduce

Upgraded to alpha.11 via sudo apt-get update && sudo apt-get install hyperion

What is expected?
Running sudo systemctl hyperion and sudo systemtl hyperion.service should show the status of the Hyperion service
What is actually happening?
Running the above results in:
Unit hyperion.service could not be found.
Tried to reinstall hyperion by running sudo apt-get install --reinstall hyperion. Although it completes, no service exists still
System

Unable to obtain. Running Raspberry Pi 4. OS info below

I found the solution....
I use the tool MobaXterm to connect to my raspberry. By default the feature X11-forwarding is turned on. So the gui based content is passed through the ssh connection.
After disabling this feature, the installation works fine!

Maybe this also helps somebody else.

@mrdarrengriffin
Can this issue be closed or is there still a problem with the service?

I've also updated to Alpha 11 (both as an upgrade and as a fresh Hyperion install) and the hyperiond.service is missing and I'm not sure how to enable it or to provide root permission as per this error:
Device disabled, device 'ws281x' signals error: 'Hyperion must run with "root" privileges for this device. Current user is: "pi"'

@Firemanjoe

I'm not sure how to enable it or to provide root permission as per this error:

You might have seen in the releasenotes that we are providing a script to change the user to root now.

I have the same issue after upgrading from 2.0.0-alpha.11 to 2.0.12

The service isn't created for me either on alpha.11 or 2.0.12. I'm running a pi4 2GB headless. It was a manual install on alpha 9. added the apt repository and installed alpha 10, apt upgrade to alpha 11, apt upgrade to 2.0.12.
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster

I've tried the remove, purge, update, install but that doesn't help either. I've also tried removing the .hyperion config folder in my home directory, but that doesn't help either. I've also tried disabling x11 forwarding to no avail.


Lyrics to mp3

Hello.
Is it possible to add lyrics to metadata for yandex music extractor?

Post an example URL.

python2.6 /opt/bin/youtube-dl -v https://music.yandex.ru/album/504319/track/4433168 -i --write-pages
From saved page I can see that lyrics are there. And it's only question of extractor to get it.
4433168_http_-_music.yandex.ru_handlers_track.jsxtrack=4433168_504319.zip

Here is extracted JSON tree


Color issue

Other css framework have so many color variant where bootstrap has only primary, secondary, info, warning, danger, dark, light.
But it is  extremely need more colors.
So I am requesting to add more than 50 colors in bootstrap.

We have tons of colors, but we don't create classes for every single one.
v4: https://getbootstrap.com/docs/4.5/getting-started/theming/#color
v5: https://v5.getbootstrap.com/docs/5.0/customize/color/


Simulated EV3 display does not work

Describe the bug
Since the latest release, no texts / characters etc. are shown in the display of the simulated EV3.
To Reproduce
Steps to reproduce the behavior:

Go to 'OR Lab'
Click on 'Open Roberta SIM or Open Roberta xNN or EV3 lejos or ev3dev, c4ev3'
Create a programme that displays any text in EV3.
See error

Expected behavior

Text / characters... will be displayed.

Device information

Type laptop
OS:mac
Browser chrome

deployed as hotfix 14.5.2023. Becomes active 15.5.2023 3:00 am

As of 8/24/2023, this no longer works.


StaticResourcesController does not delete static resources when "cluster" olm object is deleted.

Not sure if this is intentional in the StaticResourceController logic, or if I've coded our controller incorrectly, but I am not seeing the resources managed by static resource controllers being deleted when the "cluster" olm object is deleted.
I don't think this is a blocker because:

We're in TechPreview and don't expect the "cluster" olm object to be deleted in the first place
NOT deleting the static resources may be intentional to avoid data loss. Our CRDs are managed by the static resource controllers, so it may actually be desirable to keep those around even when the "cluster" olm object is gone.
Re-creating the "cluster" olm object after a deletion does not seem to cause any problems. The controller finds the existing objects and resumes managing them.

One slightly undesirable thing does happen though. The cluster-olm-operator logs are spammed during resyncs with:
E0626 10:34:38.586824   98752 base_controller.go:268] RukpakStaticResources reconciliation failed: olm.operator.openshift.io "cluster" not found
E0626 10:34:38.586845   98752 base_controller.go:268] CatalogdStaticResources reconciliation failed: olm.operator.openshift.io "cluster" not found
E0626 10:34:38.587920   98752 base_controller.go:268] OperatorControllerStaticResources reconciliation failed: olm.operator.openshift.io "cluster" not found

/lifecycle frozen


Change all branding to "EcoScore"

Fixes #114. Much of the website currently describes the website as a "CO2 Calculator," but the official project title we want is "EcoScore," so I did a mass-replace of terms like "Carbon Score" and "CO2 Score" with "EcoScore."

Thank you, this looks great!


Include the With clause in walked subtrees for Select statements

We weren't walking the With clause for select statements, which caused us to not find any bind vars in use there.
Related to: https://github.com/dolthub/dolt/issues/6852

The only potential issue is that I thought string formatting used the subtree walk to round trip string -> AST -> string. So if that worked before, I'm wondering if we need to delete something from the SELECT stringer

Thanks for raising the potential concern. I poked around at this a bit and I don't think there are any issues. The Walk function is only used in a few places. The only use in Vitess is to identify bind vars, then we have a couple uses in GMS: one for finding bind vars, and one that searches for AliasedTableExpr, and one in the analyzeHaving function. I didn't see any problems with those usages and will keep an eye on the GMS and Dolt tests as this goes through.


Access Problem after signing in

After successfully signing in a user to the app (using this Azure AD sample),  User can navigate to dashboard of "portal.azure.com"
Is there way to keep the user out of portal.azure.com?

@samgithub-duplicate : I don't understand the question. Can you please provide detailed repro steps?

Closing this issue as the question was not answered (and the described behavior cannot be reproed and does not make sense for the sample)


Many lint warnings

176 warnings, 30 potentially auto-fixable.
Is the current eslint config actually what's desired, or are decisions still being made about that? I was thinking about opening PRs to remove lint warning package-by-package.

The eslint config was added late. We fixed the errors and left warnings due to time constraints. We definitely need to go through and fix them at some point. If you're up for doing that, it would be greatly appreciated!
But we need to switch "react-hooks/exhaustive-deps": "warn" off entirely. It is a bad rule. The assumption that you want to re-run for all deps is just not correct. Doing so breaks tinacms, so until that's turned off please don't run the auto-fixer.


problem with downloading corpus

Hello.
Thank you for your project. But this link does not work. Сould you reload the corpus, pliease.

Hey, yeah, sorry, we've actually decided (quite some time ago) to make the link available only by the request. I will send you the link to your email.


Segmentation fault...

Hi,
I try to make a version of Hazel on my own step by step watching the videos. And I do that on linux (thanks again @cubedtear).
Since I implemented ImGui I get a Segmentation fault each time I try to run the application. I can't figure out what I'm doing wrong.
Here's my repo : https://github.com/NiGhMa/Hazelicious
If you could help me, I'll appreciate a lot.
Edit:
I found that the line 219 in imgui_impl_opengl3.cpp ( glBindSampler(0, 0); ) causes the problem!
Screenshot from 2019-07-01 13-32-46
And here's my glxinfo output (version)
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.5
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.8
OpenGL core profile shading language version string: 4.50
OpenGL version string: 3.0 Mesa 18.2.8
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.2.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

Thanks

Hello, I think It's caused because your OpenGL version does not support glBindSampler() and thus gives a segmentation fault. Try defining GL_SAMPLER_BINDING to false.
For further assistance with your own repo, please do not create issues here, rather ask for help at Cherno's discord server. I'm sure there are people that will be willing to help you :)
Have a nice day!

Thank you @gold604. I concur. Please ask in our Discord server for problem regarding your own repositories!

Hello, I think It's caused because your OpenGL version does not support glBindSampler() and thus gives a segmentation fault. Try defining GL_SAMPLER_BINDING to false.
For further assistance with your own repo, please do not create issues here, rather ask for help at Cherno's discord server. I'm sure there are people that will be willing to help you :)
Have a nice day!
Edit:
@Gaztin I think you should close this because it is not related to this repo.

Thanks for your insights and sorry I forgot I could use Discord for this kinf of things.


Generic parameters (list<T>, map<K, V> and function<R>)

The initial idea of this language was to introduce newcomers to the concepts of programming.
One such concept is that of variables and that they have a certain type. For that reason, I decided to only declare variables using the <typename> <identifier> = <value> form.
The types list and map got introduced pretty willy-nilly.
Most languages also have the concept of generic parameters, that constrain which types can be contained in others.
So for lists, this would explicitly constraint the types of values contained in it.
Same goes for maps.
With functions, generic parameters can be used to declare the return type and enable the interpreter to check the variable type before running the function.
This would also remove the ability to return different types from a single function (at least until union types are supported).

I will revisit this in the future. For now, I'll take this off the roadmap


Question: Is it possible to add 3d model to a map using three.js?

Hello,
Is it possible to add a model following this example: https://bl.ocks.org/ryanbaumann/b9725e79b5b1742d92ada00ddbf5c3d3

Would that be possible to add a Layer based on ThreeBox?
I am new to react-mapbox-gl and would require guidance to do it ;-)

Technically you can do everything possible with vanilla mapbox-gl with react-mapbox-gl. The official mapbox-gl docs have an example of using three.js: https://docs.mapbox.com/mapbox-gl-js/example/add-3d-model/
Unfortunately, I don't have personal experience with this and react-mapbox-gl doesn't have any specific support for this right now. If you believe something is missing, please feel free to create another issue for that.


zfs failure "cannot unmount" when stopping the container

Steps to reproduce:
host# docker run --rm -it kwiat/freebsd:13.0-RELEASE sh
container# pkg install git
container# ^D

If you wait a little before exiting, the problem does not occur.

The same thing happens between intermediate containers:
FROM kwiat/freebsd:13.0-RELEASE
RUN pkg install -y git
# same zfs error happens here
RUN git clone git://github.com/ocaml/opam.git

More logs from dockerd when a docker build failed after having written many things on disk, in case this helps:


Enabled hibernate cache

Motivation
UPS database can grow up to become quite big.
Since many queries are executed, that could slow down the database and, thus, slow the whole platform.
Solution
We want to enable Hibernate cache so that queries are not executed again on the database if they have been already executed and still cached.
Work in Progress. Don't merge

@matzew What do you think?

+1
On Tue, Sep 19, 2017 at 10:46 AM, Massimiliano Ziccardi <
<EMAIL_ADDRESS>wrote:

@ziccardi commented on this pull request.
In model/jpa/src/main/java/org/jboss/aerogear/unifiedpush/
jpa/dao/impl/JPABaseDao.java
https://github.com/aerogear/aerogear-unifiedpush-server/pull/928#discussion_r139631061
:

@@ -43,20 +43,20 @@ public void setEntityManager(EntityManager entityManager) {

 protected TypedQuery<T> createQuery(String jpql) {

   return entityManager.createQuery(jpql, getType());

   return entityManager.createQuery(jpql, getType()).setHint("org.hibernate.cacheable", true);

@matzew https://github.com/matzew : ok, I'm still loading the database
to have some GB of data using the ups test suite form @josemigallas
https://github.com/josemigallas. While doing that, I'm checking what
queries gets executed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aerogear/aerogear-unifiedpush-server/pull/928#discussion_r139631061,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJnzpH4f7prjRswA1tD5_L3qJSjDBfhks5sj39ZgaJpZM4PQCH5
.

--
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
twitter: http://twitter.com/mwessendorf

:+1:
On Fri, Oct 13, 2017 at 4:02 PM, Massimiliano Ziccardi <
<EMAIL_ADDRESS>wrote:

@ziccardi commented on this pull request.
In model/jpa/src/main/java/org/jboss/aerogear/unifiedpush/
jpa/dao/impl/JPABaseDao.java
https://github.com/aerogear/aerogear-unifiedpush-server/pull/928#discussion_r144562293
:

@@ -43,20 +43,20 @@ public void setEntityManager(EntityManager entityManager) {

 protected TypedQuery<T> createQuery(String jpql) {

   return entityManager.createQuery(jpql, getType());

   return entityManager.createQuery(jpql, getType()).setHint("org.hibernate.cacheable", true);

@matzew https://github.com/matzew @gunnarmorling
https://github.com/gunnarmorling Will update with the matched JPA query
and with the data from the other scenario.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aerogear/aerogear-unifiedpush-server/pull/928#discussion_r144562293,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJnzsnpgNwDrnEdJato-LtT5gIjTpx4ks5sr21kgaJpZM4PQCH5
.

--
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
twitter: http://twitter.com/mwessendorf

@ziccardi what's the status here ? should we close it ?

@matzew changed the code to cache only relevant queries

@gunnarmorling mind taking a look too :eyes:

Hi, I'd be careful with query result caching, e.g. see this article for some reasons. If you haven't done so yet, I'd recommend to enable profiling to identify the most expensive queries and spend some time on optimizing them.


SqlServer Express container fails in Kitematic

Expected behavior
Should start this image docker pull brogersyh/sqlexpress
Actual behavior
HTTP code is 500 which indicates error: server error - [object Object]
Information about the Issue
The container fails to run
Steps to reproduce the behavior

In Kitematic I select this container
Run new container

It looks like the error isn't very descriptive, but the error is actually in the image itself.
If you try to run it manually via docker run brogersyh/sqlexpress you'll see that the error it gives is:
oci runtime error: Cwd must be an absolute path.


NoClassDefFoundError with GlobalKeyListener

Hello,
I try to use your library in my project.
When I launch my project on Intellij, the program works well but when I export my project as JAR, the following exception appears :
Exception in thread "main" java.lang.NoClassDefFoundError: lc/kra/system/keyboard/event/GlobalKeyListener 	at fr.author.simpleKeyLogger.modele.Main.Main.main(Main.java:31) Caused by: java.lang.ClassNotFoundException: lc.kra.system.keyboard.event.GlobalKeyListener 	at java.net.URLClassLoader.findClass(Unknown Source) 	at java.lang.ClassLoader.loadClass(Unknown Source) 	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) 	at java.lang.ClassLoader.loadClass(Unknown Source) 	... 1 more
My OS is Windows 10 and the version of my Java Compiler is 8. I use "system-hook-3.6.jar" (Notice that GlobalKeyboardHook doesn't create Exception).
Could you tell me if you know how to fix it please ?

Hello @Heyato175, the library is now available on Maven Central, other than on GitHub, can you please try to consuming it from there?
If you build your JAR, you'll have to also include all other JAR dependencies into the JAR you export as a so called "uber-jar" or "fat-jar". Otherwise the library will not find the class files required to launch. Hope this helps.


Adresses #160

Coverage remained the same at 94.532% when pulling 151020e42e6768affdc955b3ed1eb1e665d5e7b5 on IshmaelBelghazi:readthedocs into 9133e15ae91e1e5b0a2b7e90f442c1ebfb623e86 on SMART-Lab:master.

Coverage decreased (-1.1%) to 93.411% when pulling 65b843254ee819bdb11c471ed519caf5c29d3e10 on IshmaelBelghazi:readthedocs into 9133e15ae91e1e5b0a2b7e90f442c1ebfb623e86 on SMART-Lab:master.


Remove UNIQUE from order_id field in disputes table

Hi @grunch ,
it could be jsut this removal that makes the trick? Not so expert about db...
tentative to fix #194

@grunch
modified same pr for my lazyness, this should make the trick to avoid issue #194 .
Give a look!


Add BetterCodeHub

Add BetterCodeHub
Describe your change:
Add BetterCodeHub and the config file
Checklist - Check boxes in the PR UI, not by editing the text
Pull Request

[x] PR description is meaningful.
[x] There are no more than a few commits to merge.
[x] There are no more than a few lines of code to review.

Code style

[x] Maximum line length does not require scrolling in Github
[x] FMT and ScalaStyle and ScalaFix are good

Testing

[x] Unit tests for the added/modified code
[x] Overall unit test coverage good
[x] Unit tests are passing

Dependencies

[ ] The plugin is added to itself
[ ] The latest version is added to itself
[x] New dependencies do not have vulnerabilities

Security

[x] There is no known vulnerability being added to this project
[ ] Everything on this list is checked

Coverage remained the same at 25.45% when pulling 9a4d87d36aedfdf1f02fa2637d925f050620097c on lbenkel/better_code_hub into 2fabb07d019e1052f5a7512c942fc26e3b8d22bf on master.


[notification-hubs] Adding Support for FCM V1

Packages impacted by this PR

@azure/notification-hubs

Issues associated with this PR
N/A
Describe the problem that is addressed by this PR
Adds support for Firebase Messaging V1 following the PR from the Azure Notification Hubs Team https://github.com/Azure/azure-notificationhubs-dotnet/pull/302
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Yes
Provide a list of related PRs (if any)
https://github.com/Azure/azure-notificationhubs-dotnet/pull/302
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists

[x] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[x] Added a changelog (if necessary)

API change check
APIView has identified API level changes in this PR and created following API reviews.
@azure/notification-hubs


Global.json added

This global.json file helps to build the project using .net 5.0 in case if there are multiple dotnet sdk installed.

In case of multiple SDK installations the latest one will be chosen per default. The default behavior is completely sufficient. The compiler selects the proper SDK based on the runtime that is being compiled.
According to the Microsoft docs:

In general, you want to use the latest version of the SDK tools, so no global.json file is needed. In some advanced scenarios, you might want to control the version of the SDK tools

This is not such an advanced scenario that pinning the SDK version is needed nor desirable. This would even bite with the CI pipeline that just takes the latest 5.0 SDK and uses this for the build.

@klemmchr  In Case you have .NET 5 and .NET 6 installed, the MVVM project is not able to build as in .NET 6  ''' null! ''' is removed thus Global.json can help for those scenarios.


Fixed swerve field-relative problem

By updating YAGSL and negating the gyro reading, the problem of wierd driving behavior was fixed and the subsequent problems of spinning were resolved.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

main

PR #14

PR #15

PR #16

PR #17

PR #18

PR #19   👈

This stack of pull requests is managed by Graphite.


HWY-242: Fix DataSize implementation for HighwayProtocol

estimate_heap_size was called on &HighwayProtocol instead of HighwayProtocol and returned 0.
https://casperlabs.atlassian.net/browse/HWY-242

It only matters if there are equivocations and endorsements, so at least we'll get useful data from our tests with this PR. But I'll work on the BTreeSet impl, too.

bors r+

https://github.com/CasperLabs/datasize-rs/pull/5 adds support for BTreeSet. (And I was wrong: It's already implemented for PathBuf.)


reduce deceleration factor in velocity smoother

this is used for cob4-1 too, as soon as we accept #426

FR: OK


[Suggestion]: Special death animation for Sculk Enderman

The Sculk Enderman is a boss for the Sculk Horde mod, so I believe that it should be given a death animation fitting for a boss mob.
I had two ideas for the death animation:

It dies like the Mutant Enderman from Mutant Creatures, but it releases spores that gives you the lure effect.
The Enderman disintegrates, starting from the legs, and ending the animation at the head.

After said death animation, the loot of the Sculk Enderman is dropped.

Yea we'll do this at some point


Eliminate CSS "preprocessor"

Is there any reason why builder.js attempts to remove vendor-prefixed CSS extensions?
The code is deeply flawed and seems to be built on trial-and-error with disregard towards the CSS specification's parsing rules, and it only really removes lines of no-op text.
Firefox will already ignore vendor-prefixed directives so the preprocessor appears to be a redundant diversion of engineering resources that can be avoided.
Limitations in this set of regular expressions are blocking ongoing compatibility work such as #6049

Is there any reason why builder.js attempts to remove vendor-prefixed CSS extensions?

Yes, there is. Since the primary use case for PDF.js is the PDF viewer included by default in Firefox, we want to be able to remove unnecessary code from the CSS (and also the JavaScript). Apart from avoiding unneeded code in mozilla-central, this also helps us reduce the file size of e.g. viewer.css quite a bit.
If, according to the title, the only purpose of this issue is to "remove" the CSS preprocessor, then this issue will most likely be closed as WONTFIX or INVALID.

Howabout using autoprefixer inside the specific build targets?

Howabout using autoprefixer inside the specific build targets?

This was suggested, and rejected, around the time when the current CSS preprocessor was added. Reasons for this was that it would make the development version (i.e. node make server) more difficult to use, and also that such preprocessors gives us less control over the resulting output.

I think this issue contains a valid point, actually. How about this: we move the vendor-prefixed rules and other compability CSS rules to a new file named compatibility.css (just like we already have compatibility.js) and include that file in the required builds. Then we should be able to remove the CSS preprocessor. Would there be any problems with that approach?
/cc @yurydelendik because he is the author of the CSS preprocessor.

See also #3404
At the moment when decision was made there was no generator that would fit our needed -- probably now there is one. Notice that we preprocess not only for Firefox but for Chromium as well.
Also we chose preprocessor vs generator for development convenience. @timvandermeij so sounds like this issue more than swapping out what's in build step, but changing entire way how development tools are used (e.g. contributors have to build pdf.js before debugging it). Personally I'm fine with that with exception that it shall not be done half-way; now who is willing to update entire infra to remove preprocessors (css, html and js) and replace them with (e.g. autoprefixer and uglfier)? :

Would there be any problems with that approach?

Yes; given that different build needs different CSS rules (one example is fullscreen rules), having just one compatibility CSS file wouldn't work. We would need one for each build type, and trying to keep all of that in sync is going to be an absolute nightmare while doing reviews!

e.g. contributors have to build pdf.js before debugging it

@yurydelendik Wouldn't that mean that something like e.g. bisecting would become a lot more cumbersome (since you'd need to build at each step)? Because that is one very important use-case, which the current development process makes very easy.

Wouldn't that mean that something like e.g. bisecting would become a lot more cumbersome (since you'd need to build at each step)?

Correct, every usage of new code will require a build.

I guess original question of this issue is answered. Shall we close it as "answered"?
Making decision on preprocessor vs generator might take awhile and out-of-scope of issue tracking. However adding easy fix to #6049 for the preprocessor shall not that much effort as the reporter claimed.

Splitting out compatibility rules to a separate would be even more burdensome than fixing the regex preprocessor, so let's skip that and give @yurydelendik's approach a shot. Thanks for the constructive discussion.
I'll drop by on IRC to discuss another possibility for the CSS at some point, that we've been evaluating for our viewer and which might also work for upstream. I'll file a specific bug report on the preprocessor and close this one.


Added target attribute

Closes out #613

I have read the CLA Document and I hereby sign the CLA

Looks great, thanks!


[FEATURE] EWW_TIME - builtin clock

Description of the requested feature
It would be nice if EWW provided EWW_TIME, similar to EWW_RAM or EWW_CPU. This would eliminate the only remaining polled shell script from my configuration which probably isn't super important but would be nice.
Proposed configuration syntax
It would be nice to support multiple time zones, so perhaps rather than a single global EWW_TIME variable we would use something like:
(deftime NY :zone "America/New_York")

This adds another top-level construct which might conflict with existing configs, but I think the def* namespace is already pseudo-reserved so hopefully it's fine.
It would be used like this:
(defwidget clock
  (box
    (box {NY.year})
    (box {NY.month})
    (box {NY.day})
    (box {NY.hour})
    (box {NY.minute})
    (box {NY.second})))

We can provide milliseconds and microseconds for the truly time-obsessed as well (assuming it's cheap) but I don't expect those will get used much.
Additional context
I can probably put some time in to implementing this, assuming the design outlined above looks OK.

I think this would be a useful feature to provide as it's also something that is VERY common to be used inside of an eww widget.

That would be really nice. Would maybe also be nice to include a way to get either the name of the month, or the number, i.e {NY.month} would give the number, e.g "05", but {NY.month.name} (or something like it) would give "May"

Some other notes on what we should at least consider when designing the interface:

12 vs. 24hr time
day of week (name, abbreviated name, number 0-6 (starting on Monday, or on Sunday))
Month name/number/abbreviations ("March", "Mar", "03")
Multilingual support (e.g. en_US/zh_CHT/zh_CHS)

I think all of this can be handled by adding arguments to deftime.


[RFE] support direct file references in template set folders

Is your feature request related to a problem? Please describe.
Template sets are expected to be managed as an entire folder since fast-core validates and bundles everything in the folder.  Well, as templates get more advanced, it would be nice to be able to reference additional file types in templates.  iRules, for example, can be small and simple, and that's ok to have directly in a fast template, but irules can get very large and complex.
Describe the solution you'd like
Like the json schema reference when defining parameter structures (types.json to the examples/simple_udp_defaults template) , being able to reference an irule file in the same folder provides many benefits:

Breaking up of template pieces

provides reuse in other templates

allows irules to be edited in the appropriate file types, allowing editors to utilize advanced features like validation, error checking and autocomplete
This would also work with other file types like certificates

Describe alternatives you've considered
There is currently no alternative to the default method of putting all the necessary template elements (excluding schema), within the single template file
Additional context
This would also work into other features, like allowing URL referencing of template pieces and secrets manager integration

Currently we allow references to external files using JSON-schema external file reference syntax. You may be able to isolate an irule in a schema file as a const string variable, but I don't think this is exactly what you want.
The ability to include other, unmodified files as part of a template set sounds useful for not just iRules but HTTPs certs.
Leaving this open for further discussion.

This enhancement request is now being tracked internally with ID MYSTIQUE-349.


Introduce a profile selector dropdown

This adds better UI for selecting different profiles within a single import.

This iteration of the UI doesn't include any filtering. I'm interested to hear more feedback about use cases to know how important that is.
Fixes #167

Coverage increased (+0.8%) to 47.766% when pulling 56e6c21b4ce189691c3f9d40263a6e3281959b8e on jlfwong/thread-select into dead3f9ad9f93620ee4beac8cf4cfeb990dfb0e5 on master.


What cases will HashIndex clone keys or values?

I've seen in your notes that HashIndex requires key/value to be clone to maintain immutability benefits, but what are the cases where they do clone?
Furthermore, the docs for update state "The caller has to make sure that there is no reader of the entry". What happens if that's occurring? There is no way to ensure that other than to use a Mutex, defeating the entire point of this library. Seems like that would be the use case for cloning the value for the update.

Hash* structs share the same HashTable::resize trait method which adjusts the capacity of the hash table. Here, HashMap/Set and HashIndex acts differently after a new bucket array is allocated. HashMap moves key and value instances from the old bucket array to the new array whereas HashIndex clones them and drops the ones in the old bucket array once after the old array becomes totally unreachable. This is because HashIndex::read* and HashIndex::iter are allowed to read entries even when they are locked by HashIndex::update*, HashIndex::remove* and HashIndex::insert*; especially, HashIndex::read_with and HashIndex::iter even can leak a reference to a locked entry and keep the reference longer than the HashIndex itself!
=> K, V: Clone is not about HashIndex::update*, but for resizing.
Note that, HashIndex::update* does not implement copy-on-write semantics; it is for in-place updates of an entry. I may have to implement copy-on-write methods as well later.
So, if "The caller has to make sure that there is no reader of the entry" is not guaranteed, there can be a reader of an entry which is being updated through HashIndex::update*. HashIndex guarantees that there is no writer to the entry being updated, but unfortunately, as you stated, read operations are out of control. This semantics suggests that HashIndex::update* is only safe if V is safe for single-writer-multiple-readers scenarios, e.g., V: Copy.

By “safe”, do you mean that it’s possible to invoke undefined behavior by calling update? If so that’s pretty bad. Unsure how significant the part about leaking references is. If it’s to a dropped element, then also pretty bad.
Cloning during resize also has me wanting to wrap all my values in Arc, which would make update useless anyway.
Could at least the associated value be stored in a separate pointer to allow for more efficient resizing and potentially a copy-on-write system? I doubt the extra indirection would matter much in real-world random-access. Though I suppose it would consume more space for the pointer itself.

Yes, calling update may lead to undefined behavior if V is not ready for it, and that's why the method is unsafe. On the other hand, the leaking reference part is not at all unsafe; the references are protected by EBR, and the instance won't be dropped until the references are gone.
And right, wrapping instances in Arc doesn't help much here as Arc itself is not thread-safe. Actually, using Arc amounts to the extra indirection through a separate pointer, and that will enable HashIndex to get rid of the Clone constraints. What I'm concerned about the approach is repeated heap memory allocations; every V gets its own heap memory allocation which is definitely bad for performance unless very good arena allocators are used.
=> I'd leave this up to the user; if the user prefers not cloning V, simply, Arc<V> can be used instead.
Copy-on-write semantics is a slightly different story; update_cow* (?) can be implemented by, lock the bucket -> insert a new version of the value -> mark the old version of the value as removed -> unlock the bucket: simple!
=> Would this suit your use case?

Oh, my mistake, I completely missed that update was unsafe. Just glanced right over that somehow.
update_cow sounds good. Pretty much the ideal version of a locking copy-on-write.
Might also be worth looking into something like arc-swap's rcu method. rcu may run the updater function multiple times to make it lock-free, but there are some cases where that's acceptable.
In addition to update_cow, it would be amazing to provide an rcu method even if you can't make it lock-free:
pub fn rcu<Q, F>(&self, key: &Q, updater: F) -> bool // returns true if exists and updated
where
    K: Borrow<Q>,
    Q: Eq + Hash + ?Sized,
    F: FnOnce(&K, &V) -> V;

pub async fn rcu_async(...) -> bool ...

such that the new value can be generated from scratch rather than taking a mutable reference, since a mutable reference would be useless if V = Arc<T>.
Perhaps rename the old update to update_in_place or similar as well? Make update_cow the new update.

The suggested rcu API looks great; I guess F: FnOnce(&K, &V) -> Option<V> would be better for the caller to decide whether to create a new version or not based on the current value.
I'm reluctant to change the naming of existing methods in v1.x.x; I'll cleanup any confusing naming in the crate in v2.0.0 (next year? hopefully when allocator_api becomes stable).
I'll upload a draft version of new methods soon.

Might be a bit of feature creep, but if you're adding in an option to "do nothing", perhaps an enum such as:
enum RcuAction<T> {
    DoNothing,
    Update(T),
    Remove,
}
impl<T> From<Option<T>> for RcuAction<T> ... // DoNothing or Update
impl<T> From<()> for RcuAction<T> ... // DoNothing

pub fn rcu<Q, F, R>(&self, key: &Q, updater: F) -> bool
where
    K: Borrow<Q>,
    Q: Eq + Hash + ?Sized,
    F: FnOnce(&K, &V) -> R,
    R: Into<RcuAction<V>>;

to also allow removing the element while we hold the lock. Could be useful if it's not difficult to implement.
remove_if could then be implemented on top of rcu, even.

Yep, a bit of a feature creep, but nice to have it since HashMap already has entry/entry_async methods that semantically do the same, and it's not at all difficult to implement it.
However, the naming rcu wouldn't fit here since rcu typically implies lock-free code whereas a lock-free update of a HashIndex entry is virtually impossible (not 100% sure if it is totally impossible) unless some API semantics is relaxed (e.g., linearizable -> eventual consistency). Any suggestions other than rcu? I'm thinking of

entry.
modify.
read_modify.

entry would be good if there was also a way to insert, such as by providing (&K, Option<&V>) to the callback and allowing it to instead insert the returned value. The complete range of operations.
However, that introduces annoyances with the key value where it would either need to be given by value or be cloned automatically on insertion. Granted, the entry API elsewhere does require it by value anyway, so it would at least match that.
enum Action<T> {
    DoNothing,
    Set(T),
    Remove,
}
impl<T> From<Option<T>> for Action<T> ... // DoNothing or Set
impl<T> From<()> for Action<T> ... // DoNothing

pub fn entry<F, R>(&self, key: K, updater: F) -> bool
where
    F: FnOnce(&K, Option<&V>) -> R,
    R: Into<Action<V>>;

Using something like std::borrow::Cow for the key would work instead, maybe.
Otherwise, if it must require the value exist, modify.

OK, inserting a new entry through the new methods doesn't look nice at all :-(  I'll then go for modify which does read->remove, update, or nothing.

table.entry(key, |_, entry| Some(match entry {
    None => Default::default(),
    Some(&value) => value + 1,
}));

looks decent to me. Similar to:
match table.entry(key) {
    Entry::Vacant(v) => v.insert_entry(Default::default()),
    Entry::Occupied(v) => *v.get_mut() += 1,
}

I just had an idea right after I sent that. Instead of relying on the return value, you could create a hash_index::Entry struct similar to with hash_map::Entry, but provide that to the closure instead, and the semantics would be identical to the other hash_map::Entry?
hash_index_table.entry(key, |entry| {
    // use entry like you would hash_map::Entry
});

If I'd have to implement HashIndex::entry, I would just resemble the HashMap implementation, e.g., receiving K by value, returning Entry that owns the bucket. HashIndex::entry resembling that of HashMap is definitely meaningful, therefore I'll implement it in the foreseeable future.
=> I'm not quite fond of HashIndex::entry receiving a closure and a reference to K, since the entry method is usually invoked by a user with intention to insert a key.
I guess I've digressed the topic by mentioning HashMap::entry thinking that the semantics of rcu was similar to that of HashMap::entry which is not quite true due to insertion.
Therefore, I'd like to just implement modify<F: FnOnce(&V, &V) -> Action<V>>(&key, action) -> bool for this issue. Would that be OK for you?

You're right, the important part of rcu/modify was that the user explicitly copies the value themselves. I was hung up on the wrong thing. modify will work just fine.
Thank you sincerely for your work on this.

Thanks too for your great ideas! I'll upload a new version (v1.6.3) in a couple of days.

Just published 1.6.3. Feel free to give feedback about the new methods!

This is because HashIndex::read* and HashIndex::iter are allowed to read entries even when they are locked by HashIndex::update*, HashIndex::remove* and HashIndex::insert*

How exactly does this work if the updates are not performed atomically? If HashIndex::insert is overwriting a value that is being read by another thread, what is done to avoid a data race?

@ibraheemdev Hi!  ”Remove“ does not remove an entry and it only updates the metadata part of HashIndex atomically so any ongoing read operations can still read the data. Outdated entries will be cleaned up on resize or when a large number of entries are outdated in the HashIndex.

Ah, so entries can never be overwritten and reclamation only happens at the bucket array level?

Yes, your understanding is correct. Ideally those outdated entries can be reclaimed by marking them empty as soon as all the current readers are gone, but that is not implemented yet (possible, but implementing it efficiently is pretty hard).


Will this work on Xavier AGX also ?

I tried the instructions above as recommended by @Qengineering. The problem is, after updating to Ubuntu 20.04, I am unable to find a Arm64 CUDA buillt for the Xavier AGX. Thus rendering the Ubuntu 20.04 "useless" for AI/ML purposes.
If anyone knows where to get the official open-source Xavier AGX Arm64 CUDA, please let me know.

If I may ask, why would you want to install this Ubuntu 20.04 upgrade on your Xavier in the first place, since the latest JetPack (version 5.0) has an Ubuntu 20-based Tegra OS?


refactor(app): Support mini session updates in RPC client/robot state

overview
This PR updates the app to support the minimal session state updates provided by #1426. It also disables remote method deserialization of notification objects (yes , the RPC server sends simple notifications over as crazy RPC objects, too) to further reduce worker / socket load for session update events.
changelog

refactor(app): Support mini session updates in RPC client/robot state

BREAKING CHANGE: Run timer will not work with robot API software prior to #1426
review requests
Will be testing on a robot that has been loaded with #1426. Virtual smoothie testing is also important / valid.

First tried this protocol delay.py:
from opentrons import containers, instruments

plate = containers.load('96-flat', 1)
tiprack = containers.load('tiprack-200ul', 2)

p300 = instruments.P10_Single(
  mount='left',
  tip_racks=[tiprack])

for i in range(12):
    p300.transfer(50, plate[0], plate[i])
    p300.delay(1)

With the delays, RUN TIME stayed at 00:00:00 the whole time. On both api & app on edge, run time is still wrong, but it's 00:00:03 for this protocol.
Then tried this protocol fill-plate.py:
from opentrons import containers, instruments

plate = containers.load('96-flat', 1)
tiprack = containers.load('tiprack-200ul', 2)

p300 = instruments.P10_Single(
  mount='left',
  tip_racks=[tiprack])

for i in range(len(plate) - 1):
    p300.transfer(50, plate[0], plate[i + 1])

for this, run time updates worked but the behavior was jumpy/laggy. It jumps from 4 secs to 24 to 55. It would only update the command list (turning current step blue) when I tried to scroll through it, for some reason it's only re-rendering when I click or scroll, or every ~30 seconds. Also the Run Time doesn't update even when I force re-render by clicking or scrolling, it's very delayed. When the protocol finishes, the run time appears to be desynced: it stayed at 00:01:17 from about halfway through the commands and when the protocol finished, it was still 00:01:19.
Tried in edge just to compare (dc5edad1f42f3abfcbb0f97047a694f3a9b0ce4f) and the run time goes smoothly up to 00:00:30ish then gets progressively more laggy, once it jumped to 00:01:19 it stayed with that run time for the rest on the protocol (even though run took ~7min). However the commands list on edge went much smoother, it scrolled continuously without having to use mouse interaction to force re-render.

@IanLondon for virtual smoothie (especially after this update) the protocol tends to finish and send all its updates before any  (or many) TICK_RUN_TIMER actions can be dispatched, so weird run timer on VS is expected.
I did some profiling, and with the run log / timer jumpiness, the improved command log update handling has exposed the following problem:

With 1426 and 1427, the API (especially on VS) is able to get command log updates to the app much more quickly
Accordingly, the app's web worker is able to process the run log updates and dispatch actions more quickly, too
This results in render calls happening more frequently
The mapStateToProps function for NavButton results in an Electron RPC call from the renderer process to the main process

We have a remote module for app updates in the main process
NavButton was calling a selector that was calling a remote method getAvailableUpdate
This is to drive the little app update available notification dot
This syncronous call was blocking for ~200 ms (!!!, but also a little artificially high because of the profiling instrumentation) while instrumented on every render

I have another PR coming in to remove those Electron RPC calls, which resolve the jumpiness in my testing


Overfitting and difference in results compared to the pretrained checkpoint

Hi,
I am trying to replicate the training results by following the steps mentioned in the README. However, the model is overfitting after training 3 stages of chairs and then evaluating on Sintel.
I have downloaded the pretrained checkpoint for chairs provided in the repository and compared the EPEs to our trained model. And here are the results:

Chairs
Sintel Clean
Sintel Final

pretrained
2.56
4.63
6.07

ours
1.56
7.76
15.58

As we can see from the table, our model is clearly overfitting on chairs. Could you please help me to replicate the training in order to match the results with the pretrained model?
I have also noticed that the paper mentions a total of 150K iterations on FlyingChairs and the README mentions 120 epochs on each stage of FlyingChairs. This results in a total of 360 epochs which is more than 150K iterations. Here is the EPE on chairs after each stage of training:

stage 0
stage 1
stage 2

2.16
1.65
1.56

Could you please provide the correct number of epochs for each stage of chairs?

Hi @prajnan93  ,
Thank you for the interest! FlyingChairs dataset has 22232 training images, and we train the model with a batch size with 64 on it, as shown on the Readme page. Therefore, each epoch of FlyingChairs corresponds to 22232/64 ≈ 350 = 0.35k iterations. In this way, 360 epochs consume around 130k iterations, which is smaller than 150k.
Regarding the overfitting problem, are you using a batch size of 64? If with a smaller batch size, we need to decrease the learning rate correspondingly. For example, if using a bs of 16 instead of 64, we should empirically reduce the lr to 0.25 of it.
Best,
Jianyuan


Training speed decreases every 500 iteration

on commit https://github.com/ZidongLiu/FedDisco/commit/838f2b37df55e37283232238e7cf47ad3f573c48
following code runs slower and slower
python cezo_fl_main.py --dataset=sst2 --iterations=10000 --train-batch-size=8 --test-batch-size=200 --eval-iterations=50 --num-clients=3 --num-sample-clients=2 --local-update-steps=1 --num-pert=10 --lr=1e-6 --mu=1e-3 --grad-estimate-method=rge-forward

Some investigation suggestions:

Check if we can observe a similar slowdown with much smaller dataset and/or modify the train-batch-size
If we suspect it is related to dataset loader, we can try to use a fake data (like a fixed random tensor input) then execute the algorithm
If we suspect it is related to memory in server, we can print out the memory consumption of each class member every 100 iterations.

Close this issue because it's not a bug.
issue was caused by perturbation adjustment.
https://github.com/ZidongLiu/FedDisco/blob/main/cezo_fl_main.py#L195-L204


Please merge branch ddc-1.22.0-dev.10.5 into dev channel

@whesse @kasperl
This merges in the last 7 commits (landed on master).  These have already been patched into the internal branch of DDC and are needed to unblock the next internal roll:
https://github.com/dart-lang/sdk/commits/ddc-1.22.0-dev.10.5
Note, cherry-picking these CLs required regenerating the summary files and fixing one test expectation, but otherwise merged cleanly.

Merged in j1.22.0-dev.10.6


Nested function support

The current macro based implementation of lambdas is too limited.
Right now, the macro builds the query. What it should do instead is provide a bit of syntactic sugar so that +,-,*,/, etc. are supported. The macro will then transform those operators into add/1,sub/1,mul/1,div/1, etc.
Then we should use a technique like https://github.com/azukiapp/elixir-rethinkdb/blob/56e305d628b847245c1eadb268f8fcbc0f03bcab/lib/rethinkdb/rql/terms_constructor.ex#L42 where the vars are mapped and passed into the function, resulting in the query with the vars replaced.

5b4f59785cc1f3eab88e8ec945fe020cc0bbd11e is a rough pass. Still a lot of limitations:

make_array([1,2,3]) is required in the function if you want to return an array.
performs two passes in order to avoid var collision (this is probably unavoidable)
works with or without lambda macro, though without lambda macro you can't use overloaded operators.

Would love some testers and feedback. I really don't like #1. I've got some ideas for cleaning it up, but they are fairly obtrusive. #2 doesn't really bother me and #3 is optional so not a huge deal.

f50ba79399c76549d058cb8b03a825d4aca38716 Cleans this up a bit. You can return an array without make_array.
The two passes works well, but the code feels clunky still.
Any feedback about corner cases would be very appreciated.

Going to close this. Will be revisited by deep combing of queries.


TELEWORK: PDF Name Generation

User Story
As a supervisor, I want the name of my employee in the name of the PDF I'm emailed so I can tell from the title of the PDF that it's my employee's telework form.
Tasks

[x] Personalize the name of PDF attachments for both employees and supervisors

[x] Name of the PDF should be FORM NAME_SUBMITTER NAME_DRAFT for PDFs of forms that need to be still be approved, and FORM NAME_SUBMITTER NAME_APPROVED/DENIED for the final form

Acceptance Criteria

[x] Employees and supervisors receive the draft Telework form (without supervisor sign-off) as a PDF with the following title format: FORM NAME_SUBMITTER NAME_DRAFT

[x] Employees and supervisors receive the draft Telework form (without supervisor sign-off) as a PDF with the following title format: FORM NAME_SUBMITTER NAME_APPROVED/DENIED

[ ] The above can be performed in all three environments

Related to ticket #157

Currently not working in TEST

[Uploading... PDF Copy of Telework agreement.msg]

@alexandralloyd @Stella-Archer @HasanSifat This has now been resolved, and should be ready for a re-test

Tested successfully in TEST again.

Manager Notification email has an attachment with updated name-

Manager final confirmation email has attachments with updated name-

Employee final confirmation email has an attachment with updated name-

Ready to be transferred to PROD

Working in TEST.

Tested successfully in PROD
Ready to be closed


Replace node.js with python

@jpearnshaw : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Use of restricted API detected

Summary
Hi everyone, CodeCrunch failed my submission cuz I imported java.util.Collection
But I thought we need the collection class for values() method??
Can anyone help me with this issue?
Description:
Clarifications or details with respect to the issue you are facing
Code Snippets
Attach code snippets (if any)
Screenshots

I think you level 5, you loop through the collection instead of looping through the dictionary?

or you can try to submit code crunch level by level to see which level is causing the issue

U can send ur immutablelist class first and see whether there is error

Thanks alot for the reply!

if not it might be ur level 4/5 problem?

Thank you Yang990121! Thank you huangrz0702!

Thanks I passed !!!!!!

I had the exact same issue but fixed it after replacing this method:

with one that does not depend on map or list. I suspect its to do with the enhanced for-loop indirectly calling a collection method but I have no idea why.

Hi, I also have this error when I use java.util.Set. So we are not supposed to use either “Set" or "Collection" or "ArrayList" to solve this lab?

Hi, I also have this error when I use java.util.Set. So we are not supposed to use either “Set" or "Collection" or "ArrayList" to solve this lab? If so what's supposed to be the return type for keySet(), values() and entrySet()?

List, List.copyOf(whatever) works

hi, i think we cannot use ArrayList! but we need set and collection! I realized the problem was not because of my import java. util.collection, but the problem is I shouldn't use it in my level5(module class toString())

hi i think we cant use arraylist anymore, there's a ImList class for us to use it in place of arraylist.

Hi, just to add that I also encountered this issue. I tried using the code below:
   return result.replace('[', '{').replace(']', '}');```

But I think it will trigger this issue because when I use ```.values()``` method, it is indirectly using the ```java.util.Collection```.

So like @shotnothing said, you need to loop through the iterator of the ImmutableMap and get each Assessment value individually.

In general, I believe that we aren't allowed to call any methods from the Set and Collection object / class (even toString()), but we are allowed to return it.

In general, I believe that we aren't allowed to call any methods from the Set and Collection object / class (even toString()), but we are allowed to return it.

Yes, I believe this is the case. The isPresent() and get() methods for Optional cannot be used. This means that you cannot create an Optional class until the return statement.

Hi, just to add that I also encountered this issue. I tried using the code below: String result = String.format("%s: %s", this.title, this.assessments.values()); return result.replace('[', '{').replace(']', '}');
But I think it will trigger this issue because when I use .values() method, it is indirectly using the java.util.Collection.
So like @shotnothing said, you need to loop through the iterator of the ImmutableMap and get each Assessment value individually.

Ohh thats weird, because my final Module.java had
String out = map.values().toString();
as part of toString(), and it got thru codecrunch.


Feature video extension

Thanks for the PR! However, adding new types is on pause until the direction of this library is figured out. See #153.

Ah sorry about that. Misclicked while I was pulling stuff for my fork


feat: aws util

:tada: This PR is included in version 0.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Using Vue Composition API w/ Gridsome

Summary
After some digging (maybe more than should be necessary) I found how to use Vue plugins with Gridsome. Sharing the example below in case anyone's looking to use the upcoming Composition API (coming in Vue 3) w/ Gridsome!
Basic example

npm install @vue/composition-api
Edit your src/main.js file

import VueCompositionAPI from "@vue/composition-api";
export default function(Vue, { router, head, isClient }) {
  Vue.use(VueCompositionAPI);
}

Resources
Vue Composition API RFC
Plugin
Motivation
Vue's Composition API seems pretty stable at this point, and developers working on cutting-edge may want to know how to add the functionality to Gridsome. The Vue 3 release is slated for August, 2020, so this is a temporary workaround.
Gridsome is pretty cool so far, as a beginner to GraphQL, thanks!

Awesome! Thanks for the tip!

Check out my latest gridsome plugin: https://github.com/vsimko/gridsome-plugin-composition-api

Check out my latest gridsome plugin: https://github.com/vsimko/gridsome-plugin-composition-api

Sweet


Inverse of the Log Minus Digamma function

Depends on #3021.
See also Log Minus Digamma function #2957.

could you add a See_Also to both functions so they are easier to find.

OK

Added.

LGTM

Auto-merge toggled on

Thanks!

thank you


PhantomJS hangs on even simple examples

I have built PhantomJS on Alpine Linux 3.3.3 .  I have applied these two pull requests in order to get it to build:
https://github.com/Vitallium/qtwebkit/pull/9
https://github.com/Vitallium/qtbase/pull/4
examples/hello.js fails (as with all others tried.)
I see the same issues running 2.1.1 tag as well as current master (842715be9d2bb27865c179c12761290fa3f2929c as of this writing)
Here is an example: (note that I wait quite a while before hitting Control C)
alpineamd64:~/phantomjs$ uname -a
Linux alpineamd64 4.1.20 #1-Alpine SMP Mon Mar 21 10:06:39 GMT 2016 x86_64 Linux
alpineamd64:~/phantomjs$
alpineamd64:~/phantomjs$ cd bin
alpineamd64:~/phantomjs/bin$ ldd phantomjs
    /lib/ld-musl-x86_64.so.1 (0x55b3f8a2e000)
    libz.so.1 => /lib/libz.so.1 (0x7fb1aa93c000)
    libxml2.so.2 => /usr/lib/libxml2.so.2 (0x7fb1aa611000)
    libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x7fb1aa366000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x7fb1aa12f000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x7fb1a9e81000)
    libssl.so.1.0.0 => /lib/libssl.so.1.0.0 (0x7fb1a9c18000)
    libcrypto.so.1.0.0 => /lib/libcrypto.so.1.0.0 (0x7fb1a97fb000)
    libicui18n.so.56 => /usr/lib/libicui18n.so.56 (0x7fb1a93d0000)
    libicuuc.so.56 => /usr/lib/libicuuc.so.56 (0x7fb1a9064000)
    libicudata.so.56 => /usr/lib/libicudata.so.56 (0x7fb1a7681000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7fb1a7331000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7fb1a711e000)
    libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x55b3f8a2e000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0x7fb1a6efe000)
    libpng16.so.16 => /usr/lib/libpng16.so.16 (0x7fb1a6cd1000)
alpineamd64:~/phantomjs/bin$
alpineamd64:~/phantomjs/bin$ cd ../examples/
alpineamd64:~/phantomjs/examples$../bin/phantomjs --debug=true hello.js
2016-04-09T14:21:23 [DEBUG] CookieJar - Created but will not store cookies (use option '--cookies-file=<filename>' to enable persistent cookie storage)
2016-04-09T14:21:23 [DEBUG] Set  "http"  proxy to:  "" : 1080
2016-04-09T14:21:23 [DEBUG] Phantom - execute: Configuration
2016-04-09T14:21:23 [DEBUG]      0 objectName : ""
2016-04-09T14:21:23 [DEBUG]      1 cookiesFile : ""
2016-04-09T14:21:23 [DEBUG]      2 diskCacheEnabled : "false"
2016-04-09T14:21:23 [DEBUG]      3 maxDiskCacheSize : "-1"
2016-04-09T14:21:23 [DEBUG]      4 diskCachePath : ""
2016-04-09T14:21:23 [DEBUG]      5 ignoreSslErrors : "false"
2016-04-09T14:21:23 [DEBUG]      6 localUrlAccessEnabled : "true"
2016-04-09T14:21:23 [DEBUG]      7 localToRemoteUrlAccessEnabled : "false"
2016-04-09T14:21:23 [DEBUG]      8 outputEncoding : "UTF-8"
2016-04-09T14:21:23 [DEBUG]      9 proxyType : "http"
2016-04-09T14:21:23 [DEBUG]      10 proxy : ":1080"
2016-04-09T14:21:23 [DEBUG]      11 proxyAuth : ":"
2016-04-09T14:21:23 [DEBUG]      12 scriptEncoding : "UTF-8"
2016-04-09T14:21:23 [DEBUG]      13 webSecurityEnabled : "true"
2016-04-09T14:21:23 [DEBUG]      14 offlineStoragePath : ""
2016-04-09T14:21:23 [DEBUG]      15 localStoragePath : ""
2016-04-09T14:21:23 [DEBUG]      16 localStorageDefaultQuota : "-1"
2016-04-09T14:21:23 [DEBUG]      17 offlineStorageDefaultQuota : "-1"
2016-04-09T14:21:23 [DEBUG]      18 printDebugMessages : "true"
2016-04-09T14:21:23 [DEBUG]      19 javascriptCanOpenWindows : "true"
2016-04-09T14:21:23 [DEBUG]      20 javascriptCanCloseWindows : "true"
2016-04-09T14:21:23 [DEBUG]      21 sslProtocol : "default"
2016-04-09T14:21:23 [DEBUG]      22 sslCiphers : "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-RC4-SHA:ECDHE-RSA-RC4-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:RC4-SHA:RC4-MD5"
2016-04-09T14:21:23 [DEBUG]      23 sslCertificatesPath : ""
2016-04-09T14:21:23 [DEBUG]      24 sslClientCertificateFile : ""
2016-04-09T14:21:23 [DEBUG]      25 sslClientKeyFile : ""
2016-04-09T14:21:23 [DEBUG]      26 sslClientKeyPassphrase : ""
2016-04-09T14:21:23 [DEBUG]      27 webdriver : ":"
2016-04-09T14:21:23 [DEBUG]      28 webdriverLogFile : ""
2016-04-09T14:21:23 [DEBUG]      29 webdriverLogLevel : "INFO"
2016-04-09T14:21:23 [DEBUG]      30 webdriverSeleniumGridHub : ""
2016-04-09T14:21:23 [DEBUG] Phantom - execute: Script & Arguments
2016-04-09T14:21:23 [DEBUG]      script: "hello.js"
2016-04-09T14:21:23 [DEBUG] Phantom - execute: Starting normal mode
2016-04-09T14:21:23 [DEBUG] WebPage - setupFrame ""
^C
alpineamd64:~/phantomjs/examples$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 7945
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 7945
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
alpineamd64:~/phantomjs/examples$

Here is strace output:
phantomjs.strace.txt
Any ideas?

 (Comment out the first patch)

Hitting the same problem. In my case the REPL doesn't even work.

I'm trying to get a musl-libc build of phantomjs working, specifically for use in Alpine Linux without the glibc-compat stuff.
I'm building from source (git tag 2.1.1) with the following patches applied:

qtwebkit/10
qtbase/4

The build process doesn't seem to run through any trouble, except for a few warnings on unused variables AFAICT (the build log is ginormous however, can't say I went through it all). However, when launching the binary, I get the REPL, but it doesn't seem to execute anything:
$ phantomjs --debug=true
2016-06-14T09:54:46 [DEBUG] CookieJar - Created but will not store cookies (use option '--cookies-file=<filename>' to enable persistent cookie storage)
2016-06-14T09:54:46 [DEBUG] Set  "http"  proxy to:  "" : 1080
2016-06-14T09:54:46 [DEBUG] Phantom - execute: Configuration
2016-06-14T09:54:46 [DEBUG]      0 objectName : ""
2016-06-14T09:54:46 [DEBUG]      1 cookiesFile : ""
2016-06-14T09:54:46 [DEBUG]      2 diskCacheEnabled : "false"
2016-06-14T09:54:46 [DEBUG]      3 maxDiskCacheSize : "-1"
2016-06-14T09:54:46 [DEBUG]      4 diskCachePath : ""
2016-06-14T09:54:46 [DEBUG]      5 ignoreSslErrors : "false"
2016-06-14T09:54:46 [DEBUG]      6 localUrlAccessEnabled : "true"
2016-06-14T09:54:46 [DEBUG]      7 localToRemoteUrlAccessEnabled : "false"
2016-06-14T09:54:46 [DEBUG]      8 outputEncoding : "UTF-8"
2016-06-14T09:54:46 [DEBUG]      9 proxyType : "http"
2016-06-14T09:54:46 [DEBUG]      10 proxy : ":1080"
2016-06-14T09:54:46 [DEBUG]      11 proxyAuth : ":"
2016-06-14T09:54:46 [DEBUG]      12 scriptEncoding : "UTF-8"
2016-06-14T09:54:46 [DEBUG]      13 webSecurityEnabled : "true"
2016-06-14T09:54:46 [DEBUG]      14 offlineStoragePath : ""
2016-06-14T09:54:46 [DEBUG]      15 localStoragePath : ""
2016-06-14T09:54:46 [DEBUG]      16 localStorageDefaultQuota : "-1"
2016-06-14T09:54:46 [DEBUG]      17 offlineStorageDefaultQuota : "-1"
2016-06-14T09:54:46 [DEBUG]      18 printDebugMessages : "true"
2016-06-14T09:54:46 [DEBUG]      19 javascriptCanOpenWindows : "true"
2016-06-14T09:54:46 [DEBUG]      20 javascriptCanCloseWindows : "true"
2016-06-14T09:54:46 [DEBUG]      21 sslProtocol : "default"
2016-06-14T09:54:46 [DEBUG]      22 sslCiphers : "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-RC4-SHA:ECDHE-RSA-RC4-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:RC4-SHA:RC4-MD5"
2016-06-14T09:54:46 [DEBUG]      23 sslCertificatesPath : ""
2016-06-14T09:54:46 [DEBUG]      24 sslClientCertificateFile : ""
2016-06-14T09:54:46 [DEBUG]      25 sslClientKeyFile : ""
2016-06-14T09:54:46 [DEBUG]      26 sslClientKeyPassphrase : ""
2016-06-14T09:54:46 [DEBUG]      27 webdriver : ":"
2016-06-14T09:54:46 [DEBUG]      28 webdriverLogFile : ""
2016-06-14T09:54:46 [DEBUG]      29 webdriverLogLevel : "INFO"
2016-06-14T09:54:46 [DEBUG]      30 webdriverSeleniumGridHub : ""
2016-06-14T09:54:46 [DEBUG] Phantom - execute: Script & Arguments
2016-06-14T09:54:46 [DEBUG]      script: ""
2016-06-14T09:54:46 [DEBUG] Phantom - execute: Starting REPL mode
2016-06-14T09:54:46 [DEBUG] WebPage - setupFrame ""
phantomjs> var a = 10
phantomjs> console.log(a);
phantomjs> console.log('Echo?')
phantomjs> This is not even *valid syntax*, yet it doesn't complain /o\
phantomjs> ^C
2016-06-14T09:55:52 [DEBUG] WebPage - setupFrame ""
2016-06-14T09:55:52 [DEBUG] WebPage - updateLoadingProgress: 10
2016-06-14T09:55:52 [DEBUG] WebPage - setupFrame ""
2016-06-14T09:55:52 [DEBUG] WebPage - updateLoadingProgress: 100

If anything is missing, I'd be happy to give more details.
Additional info:
$ phantomjs -v
2.1.1

$ ldd /usr/bin/phantomjs
	/lib/ld-musl-x86_64.so.1 (0x559e6abbb000)
	libz.so.1 => /lib/libz.so.1 (0x7f1a3da7a000)
	libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x7f1a3d7cf000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x7f1a3d598000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x7f1a3d2ea000)
	libssl.so.1.0.0 => /lib/libssl.so.1.0.0 (0x7f1a3d081000)
	libcrypto.so.1.0.0 => /lib/libcrypto.so.1.0.0 (0x7f1a3cc64000)
	libicui18n.so.56 => /usr/lib/libicui18n.so.56 (0x7f1a3c839000)
	libicuuc.so.56 => /usr/lib/libicuuc.so.56 (0x7f1a3c4cd000)
	libicudata.so.56 => /usr/lib/libicudata.so.56 (0x7f1a3aaea000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f1a3a79a000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f1a3a587000)
	libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x559e6abbb000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x7f1a3a367000)
	libpng16.so.16 => /usr/lib/libpng16.so.16 (0x7f1a3a13a000)

$ paxctl -v /usr/bin/phantomjs
PaX control v0.9
Copyright 2004,2005,2006,2007,2009,2010,2011,2012,2014 PaX Team<EMAIL_ADDRESS>
- PaX flags: -----m-x-e-- [/usr/bin/phantomjs]
	MPROTECT is disabled
	RANDEXEC is disabled
	EMUTRAMP is disabled

Might be the same as an issue I'm having. I'm using PhantomJS to run some jasmine specs. It locks up when encountering an undeclared variable and memory usage spikes to > 4GB.
The problem has been reproduced on 2 machines using this repo: https://github.com/ptolemybarnes/jasmine-rails-issue
Run bundle then bundle exec spec:javascripts. Notice in ActivityMonitor that PhantomJS is consuming a huge amount of memory.
Curiously if you move the unknown variable within the function passed to jasmine#describe it behaves as expected.

I'm encountering the same issue. Been fighting with this for a day now. Going to stop now that I know this is a bug others are encountering.

May I suggest everyone who is hit by this give thumbs-up to the opening post? I think Alpine Linux is a natural OS to run (headless) automated tests on, and so it is worthwhile to quantify the level of support there is for fixing this issue.

We instead ditched phantomjs because of this. ☹

Try https://github.com/fgrehm/docker-phantomjs2

We should probably rename this issue and specify that this is a musl/Alpine linux specific issue.

I posted what I think might be the issue @ https://github.com/ncopa/docker-phantomjs-alpine/issues/2#issuecomment-272899915 for @ncopa. Hopefully can get some progress going on this issue as this is my last real blocker from leveraging only alpine containers.

+1 for getting this issue fixed. I just spend a few days getting a work around to work on my bamboo + docker w/ alpine.
My stop gap work around fix was as follows:
when setting up the webdriver also set these two implicitly_wait should be 0 by default. page_load_timeout will allow us to raise TimeoutExceptions helping us later
cls.browser.set_page_load_timeout(60)
cls.browser.implicitly_wait(0)

when exiting the webdriver:
import signal
cls.browser.service.process.send_signal(signal.SIGTERM)
cls.browser.kill('SIGTERM')

and then I also use a retry decorator on all of my selenium/phantom JS tests that use the webdriver.get() method. Example:
@retry()
def tearDown(self):
	self.browser.get(self.get_reversed_url('logout'))

Retry decorator as setup for my bamboo instance:
import time
from functools import wraps

def retry(exceptions=Exception, attempts=3, delay=3, backoff=2, logger=None):
	def deco_retry(f):

		@wraps(f)
		def f_retry(*args, **kwargs):
			mtries, mdelay = attempts, delay
			while mtries > 1:
				try:
					return f(*args, **kwargs)
				except exceptions, e:
					msg = "%s: %s, Retrying in %d seconds..." % (str(e.__class__.__name__), str(e), mdelay)
					if logger:
						logger.warning(msg)
					else:
						print msg
					time.sleep(mdelay)
					mtries -= 1
					mdelay *= backoff
			return f(*args, **kwargs)

		return f_retry  # true decorator

	return deco_retry

You can set this to pick up any exception or set it explicitly to the TimeoutException from selenium. see the docs http://www.saltycrane.com/blog/2009/11/trying-out-retry-decorator-python/
Also a little more complex way of doing this with trying to avoid the @retry decorator is to override the unittest.TestCase.run method with a test wrapper; this did not work for us as we were doing .get() calls in teardown and those were not getting retried but if you don't do that this will retry your tests 3 times.  http://stackoverflow.com/a/32248305
def run(self, result=None):
	self.origTestMethodName = self._testMethodName
	self._testMethodName = "_testRetryWrapper"
	super(ATIPSeleniumTest, self).run(result)
	self._testMethodName = self.origTestMethodName

def _testRetryWrapper(self):
	testMethod = getattr(self, self.origTestMethodName)
	retryAttemptsLeft = 3

	while True:
		try:
			testMethod()
			break
		except:
			if retryAttemptsLeft == 0:
				raise
			else:
				print "Retrying in 3 seconds"
				time.sleep(3)
				retryAttemptsLeft = retryAttemptsLeft - 1

I hope this helps some people!

I don't know how it took me so long to find this thread - I'm having the same issue. From the refs, it doesn't look like there's been much movement on this yet but has anyone had any luck implementing other workarounds?
My choices at present seem to be limited to:

find a new base image

I would prefer more choices.

@mattschofield even from other docker base image i can't make phantomjs work on linux, i got a qt error

@mattschofield That's the only option I've come up with, compiling it in an alpine based distro seems to have the same problem and I can't figure much out aside from it seems to have issues with a pselect call.

@vitoo @thatsnotright in the end I went with a different base image.
My feeling from all the conversations around this was that the Alpine base image just wasn't ready for phantomjs. I would require far greater knowledge of linux fundamentals to explain why this is the case.
In case it's any use for anyone, we've had pretty good success switching to a ruby:2.3.3-slim base image for our application (which uses screen-scraping powered by phantomjs) and it hasn't been too bad. It's not as small an image as alpine would give us but it's totally workable.

Just if someone finds this helpfull - in docker with alpine 3.7 I just did this to make phantomjs work:
apk add --no-cache wget nodejs

wget -qO- "https://github.com/dustinblackman/phantomized/releases/download/2.1.1a/dockerized-phantomjs.tar.gz" | tar xz -C /
npm config set user 0
npm install -g phantomjs-prebuilt

@aiomaster your solution is the best.


Update Composer dependencies (2023-07-11-00-11)

Visual regression test passed!
View the visual regression test report


Add New Mexico State University

university URL: https://nmsu.edu/
department URL: https://computerscience.nmsu.edu/

@jwang24 I am sorry, the domain nmsu.edu is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Pack at https://education.github.com/discount_requests/application. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


removedSignup form

Notes for Reviewers
This PR fixes the need to remove the signup form on play.meshery.io.
Signed commits

[ ] Yes, I signed my commits.

#214


Vulnerability: SAP (SAP NetWeaver, SAP Content Server, and SAP Web Dispatcher)

Contributor Checklist
For Vulnerability Reports

[x] Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by the Bug Alert team.
[x] Ensure you used the notice template for posting a notice. The 'summary' field will be used for notifications (email, phone, and SMS). It is of the utmost importance that the summary be clear and concise, so we ask that you please follow the format suggested in the template unless there is a compelling and justifiable need to deviate from it.

Leave the following intact, which notifies our volunteer team: @BugAlertDotOrg/volunteer-team

Good Job, Guys.. keep up the good work!


asli_calc: 'asli' package was not installed in a way that PackageLoader understands.

When running asli_calc -o something.csv (also see #4), returns the following error:
Traceback (most recent call last):
  File "/gws/nopw/j04/dit/users/thozwa/venv/bin/asli_calc", line 8, in <module>
    sys.exit(asli.main())
             ^^^^^^^^^^^
  File "/gws/nopw/j04/dit/users/thozwa/venv/lib/python3.11/site-packages/asli/asli.py", line 381, in main
    a.to_csv(args.output)
  File "/gws/nopw/j04/dit/users/thozwa/venv/lib/python3.11/site-packages/asli/asli.py", line 291, in to_csv
    env = Environment(loader=PackageLoader("asli"), autoescape=select_autoescape())
                             ^^^^^^^^^^^^^^^^^^^^^
  File "/gws/nopw/j04/dit/users/thozwa/venv/lib/python3.11/site-packages/jinja2/loaders.py", line 326, in __init__
    raise ValueError(
ValueError: The 'asli' package was not installed in a way that PackageLoader understands.

PackageLoader() is from the jinja2 module
Going off PackageLoader() docs, perhaps specifying /templates would be a solution: loader = PackageLoader("asli", "templates")

Sorted.


Script fails to show that program has stopped execution

In previous versions, when running a Python script, the hour glass disappeared when the process was closed either by forcing it or pressing CTRL+Q. Now the hour glass is always there, regardless of the state of the program execution.
To reproduce, start a python application and let it finish or force close it.
I am using Windows 7, Git 1.2.1, latest script package. Python 2.7.10 32bit.
Whenever a python application is finished running, this is what I get:
TypeError: Cannot read property 'toString' of undefined
at ScriptView.module.exports.ScriptView.setHeaderAndShowExecutionTime (file:///C:/Users/chw1/.atom/packages/script/lib/script-view.coffee:34:53)
at ScriptView.setHeaderAndShowExecutionTime (file:///C:/Users/chw1/.atom/packages/script/lib/script-view.coffee:1:1)
at file:///C:/Users/chw1/.atom/packages/script/lib/view-runtime-observer.coffee:15:13
at Emitter.module.exports.Emitter.emit (C:\Users\chw1\AppData\Local\atom\app-1.2.1\resources\app.asar\node_modules\event-kit\lib\emitter.js:86:11)
at Runner.module.exports.Runner.onExit (file:///C:/Users/chw1/.atom/packages/script/lib/runner.coffee:68:14)
at file:///C:/Users/chw1/.atom/packages/script/lib/runner.coffee:1:1
at triggerExitCallback (C:\Users\chw1\AppData\Local\atom\app-1.2.1\resources\app.asar\src\buffered-process.js:213:47)
at ChildProcess. (C:\Users\chw1\AppData\Local\atom\app-1.2.1\resources\app.asar\src\buffered-process.js:235:18)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

I believe this is fixed in commit ddd0e9ca9cf09bb759ababaf62c3b04a27f51297 just waiting for new version with it in now


pygit2 backend didn't raise a proper exception in resolve_rev.

How to reproduce it:
$ mkdir scmtest
$ cd scmtest
# this is correct
$ python3 -c "from scmrepo.git import Git; Git('.').pygit2.resolve_rev('HEAD~')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/gao/anaconda3/envs/dvc/lib/python3.8/site-packages/scmrepo/git/backend/pygit2.py", line 271, in resolve_rev
    raise RevError(f"unknown Git revision '{rev}'")
scmrepo.exceptions.RevError: unknown Git revision 'HEAD~'

# add some remote
$ git remote add origin someremote
# do not wrap the exception properly from `pygit2`
$ python3 -c "from scmrepo.git import Git; Git('.').pygit2.resolve_rev('HEAD~')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/gao/anaconda3/envs/dvc/lib/python3.8/site-packages/scmrepo/git/backend/pygit2.py", line 263, in resolve_rev
    shas = {
  File "/Users/gao/anaconda3/envs/dvc/lib/python3.8/site-packages/scmrepo/git/backend/pygit2.py", line 264, in <setcomp>
    self.get_ref(f"refs/remotes/{remote.name}/{rev}")
  File "/Users/gao/anaconda3/envs/dvc/lib/python3.8/site-packages/scmrepo/git/backend/pygit2.py", line 322, in get_ref
    ref = self.repo.references.get(name)
  File "/Users/gao/anaconda3/envs/dvc/lib/python3.8/site-packages/pygit2/repository.py", line 1440, in get
    return self[key]
  File "/Users/gao/anaconda3/envs/dvc/lib/python3.8/site-packages/pygit2/repository.py", line 1436, in __getitem__
    return self._repository.lookup_reference(name)
_pygit2.InvalidSpecError: refs/remotes/origin/HEAD~: the given reference name 'refs/remotes/origin/HEAD~' is not valid

# gitpython works correctly
python3 -c "from scmrepo.git import Git; Git('.').gitpython.resolve_rev('HEAD~')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/gao/anaconda3/envs/dvc/lib/python3.8/site-packages/scmrepo/git/backend/gitpython.py", line 352, in resolve_rev
    raise RevError(f"unknown Git revision '{rev}'")
scmrepo.exceptions.RevError: unknown Git revision 'HEAD~'

For now, the default backend for resolve_rev is pygit2, and it causes some problems in https://github.com/iterative/dvc/pull/7204#issuecomment-1021431886. To solve this, we have two choices:

wrap the _pygit2.InvalidSpecError from in pygit2 backend.
use gitpython backend instead.

The issue is that this should be resolved in the resolve_refish call here:
https://github.com/iterative/scmrepo/blob/2abcdaba87979a4805027f5b3dc9a0ac792fbda3/scmrepo/git/backend/pygit2.py#L253-L271
pygit/libgit should be able to resolve the ~<n> syntax so this will need some investigation
The fallback get_ref call will always fail here since the ~<n> is always going to be an invalid ref, so changing it to wrap get_ref to catch the exception and re-raising RevError should also be done, but the main issue here is that resolve_refish("HEAD~<n>") is failing for some reason


standby led cannot be controlled in 0.9.14 Rock64

for RED LED
sh -c "echo '0' > /sys/devices/platform/leds/leds/standby-led/brightness"
does not work. It used to. Hence I report this as an issue.

for WHITE LED
sh -c "echo '0' > /sys/devices/platform/leds/leds/power-led/brightness"
does not work, because there is no 'power-led' directory.
It must have been changed to 'work-led'
and
sh -c "echo '0' > /sys/devices/platform/leds/leds/work-led/brightness"
works. It turns off the WHITE LED.

I am using stretch-openmediavault-rock64-0.9.14-1159-arm64.img.xz

This is supported as part of 0.10.x.


Token 建立后被删除

建立一个 token 后，很快发现 token 被删除，Github 发来了安全警示邮件：

We noticed that a valid OAuth access token of yours was committed to a public GitHub repository. Publicly disclosing a valid access token would allow other people to interact with GitHub on your behalf, potentially altering data, your contact information, and billing data.
As a precautionary measure, we have revoked the OAuth token. A new token will need to be generated in order to continue using OAuth to authenticate to GitHub. Here are a couple of steps you can do to ensure your account security has not been compromised:

所以才有 token 用 ‘#’ 号分割的要求
# token
# token should be separated by '#'
# example: 5#c31bffc137f44faf7efc4a84da827g7ca2cfeaa
token:

这样子啊，学习了，感谢答疑！: )


User Management page should list admins and student staff

I think a better UI for the user management section of settings would be to list the current admins and the current student staff. Each item could have a remove button next to it to remove the user from the list. The two Add search boxes would still operate the same way, below the lists

PR merged, closing issue.


CSS

#CSS
User Story
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow

CSS was successfully to the Prework Study Guide through a feature branch and that branch has now been merged into the main branch.


Crash event: sqlite3MemInit

Description
We got a crash event in firebase console from user and we don't know how to reproduce it yet

crash stack trace:
[crash.txt](https://github.com/firebase/firebase-ios-sdk/files/11608049/crash.txt)
Reproducing the issue
This is collected from users, we don't know how to reproduce it yet.
Firebase SDK Version
10.5.0
Xcode Version
14.0
Installation Method
CocoaPods
Firebase Product(s)
Analytics, Crashlytics, DynamicLinks
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet

Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Firebase/AnalyticsWithoutAdIdSupport (10.5.0):

Firebase/CoreOnly
FirebaseAnalytics/WithoutAdIdSupport (~> 10.5.0)
Firebase/CoreOnly (10.5.0):

FirebaseCore (= 10.5.0)

Firebase/Crashlytics (10.5.0):

Firebase/CoreOnly
FirebaseCrashlytics (~> 10.5.0)

Firebase/DynamicLinks (10.5.0):

Firebase/CoreOnly
FirebaseDynamicLinks (~> 10.5.0)

FirebaseAnalytics/WithoutAdIdSupport (10.5.0):

FirebaseCore (~> 10.0)
FirebaseInstallations (~> 10.0)
GoogleAppMeasurement/WithoutAdIdSupport (= 10.5.0)
GoogleUtilities/AppDelegateSwizzler (~> 7.8)
GoogleUtilities/MethodSwizzler (~> 7.8)
GoogleUtilities/Network (~> 7.8)
"GoogleUtilities/NSData+zlib (~> 7.8)"
nanopb (< 2.30910.0, >= 2.30908.0)

FirebaseCore (10.5.0):

FirebaseCoreInternal (~> 10.0)
GoogleUtilities/Environment (~> 7.8)
GoogleUtilities/Logger (~> 7.8)

FirebaseCoreInternal (10.9.0):

"GoogleUtilities/NSData+zlib (~> 7.8)"

FirebaseCrashlytics (10.5.0):

FirebaseCore (~> 10.0)
FirebaseInstallations (~> 10.0)
GoogleDataTransport (~> 9.2)
GoogleUtilities/Environment (~> 7.8)
nanopb (< 2.30910.0, >= 2.30908.0)
PromisesObjC (~> 2.1)

FirebaseDynamicLinks (10.5.0):

FirebaseCore (~> 10.0)

FirebaseInstallations (10.9.0):

FirebaseCore (~> 10.0)
GoogleUtilities/Environment (~> 7.8)
GoogleUtilities/UserDefaults (~> 7.8)
PromisesObjC (~> 2.1)

Thanks for filing, @Tank-Coder14. First off, may I know if you're using your own sqlite in your code?

Thanks for filing, @Tank-Coder14. First off, may I know if you're using your own sqlite in your code?

We are using sqlite3, does that cause any problems?

Firebase relies on the system sqlite3 library and it should be fine if an app doesn't override the system library with another implementation.
We've seen multiple issues where replacing sqlite3 causes problems for FirebaseAnalytics or FirebaseRemoteConfig. Searching the issues in this repo will show examples.


Puzzle mode

Some games would be great for a puzzle mode for "What is the best move you can do?", especially Hanabi
Also possible to show "these were the moves that led up to this point"

The game Alchemists does have a lot of "You know XYZ, but you actually also know that ingredient A cannot be X" moment


XLA cluster environment plugin

🚀 Feature
Add an environment for the TPU.
The TPUSpawnStrategy will use this cluster environment by default.
Motivation
Decoupling the environment lookup from the strategy will reduce the code divergence of the generic ddpspawn strategy and tpu spawn strategy.
Pitch
class TPUEnvironment(ClusterEnvironment):
    # here access the env variables set by XLA directly

List of environment variables: https://github.com/pytorch/xla/blob/master/torch_xla/core/xla_env_vars.py
Name? XLAEnvironment? TPUEnvironment?
Alternatives

Additional context
Discussion sparked in #11163
Proposed by @tchaton

If you enjoy Lightning, check out our other projects! ⚡

Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.

Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.

Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

cc @borda @kaushikb11 @rohitgr7 @awaelchli @ananthsub

Sounds good to me!
XLAEnvironment would be the ideal name. As it could be further extended to other hardwares and we have a checkpointing plugin called XLACheckpointIO


bug(cdkTextareaAutosize): Screen scrolls when deleting a character in a text area without cdkAutosizeMaxRows

Reproduction
https://stackblitz.com/edit/angular-fpxqpq?file=src%2Fapp%2Ftext-field-autosize-textarea-example.html
Steps to reproduce:

Copy the Lorem ipsum text into the text area
Scroll up a bit
Delete a character from the middle of the textarea
The screen will have scrolled

Expected Behavior
What behavior were you expecting to see?
The screen to not scroll
Actual Behavior
What behavior did you actually see?
Users are getting disorientated when the screen scrolls and their text moves, so the screen should not scroll
Environment

Angular: v9.0.7
CDK/Material: v9.1.3
Browser(s): Chrome 80
Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

I updated from v9 to v11, but this issue has been reproduced.


MAINT: tools/gh_lists.py: fix http header case sensitivity issue

Reference issue
Fixes: #12220
What does this implement/fix?
Fix bug due to case-sensitive comparisons of HTTP headers.

CI looks good apart from the common arm64 Travis CI timeout. Merging, thanks @pv (and @ilayn )


Operators check before running postday1 and day2 checks

Ran 1 of 29 Specs in 4992.300 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 28 Skipped
PASS
Ginkgo ran 1 suite in 1h23m13.102341993s

/test rosa-sts-private-critical-high-presubmit
/test rosa-sts-advanced-critical-high-presubmit

/retest

/test rosa-sts-private-critical-high-presubmit

/lgtm

/retest

/retest

/retest

/test rosa-sts-private-critical-high-presubmit

/lgtm
/approve

/lgtm
/approve

/retest-required

/test unit


Redirects to an old account when I type in my user

My old account Noodleswut was hacked a few months ago and I’ve made a new one. The old one is now noodleswut1 I guess now? At least on Skycrypt. However, when I enter Noodleswut into the search it shows my old account.
When I /pv (idk what mod this is for) it shows my current account but when I click on the redirect to skycrypt it just shows my old account as well.
The old account is no longer active since Microsoft closed the account
https://sky.shiiyu.moe/stats/noodleswut1/Strawberry

Hey!
I just thought I would say that this has happened to my friends account before. It was resolved after he just waited a bit. I know it doesn't help that much but yeah.
Thanks!

Seems fine to me now, can probably be closed.

Seems fine to me now, can probably be closed.

yeah we switched to another API. @metalcupcake5


Lazy resolve doesn't recognize window size changes

The Issue
If you maximize your LBRY window or resize it so that more tiles are shown (which have not yet been resolved), lazy resolve will not pick them up.
This normally won't happen on a fresh install because we launch in a large window, so it's not a huge priority. They also start loading as soon as you scroll.
System Configuration

LBRY Daemon version:
LBRY App version:
LBRY Installation ID:
Operating system:

Anything Else

Screenshots

Not an issue in new version anymore. .


[Feature] application_controller should be responsible for deleting application revision

Is your feature request related to a problem? Please describe.

When application is deleted, the application revision is deleted by Kubernetes following the OwnerReference mechanism. This could be slow when the system has high load. We should let application controller to handle it as well as a double check.
Describe the solution you'd like

Move pkg/controller/core.oam.dev/v1alpha2/application/apply.go:garbageCollection to pkg/resourcekeeper/gc.go:GarbageCollect and support cleaning up application revision when application is fully removed.
Describe alternatives you've considered

Additional context

hi @Somefive seems moving the package is difficult due to import cyclic between package application and package resourcekeeper
kindly help to quick check whether the draft is in the right direction
will do more improvement later, thank you