Hyprland gives blackscreen with moveable cursor. custom monitor

Hey guys i bought a laptop online and it has a custom monitor. Its a x200 with a lcd monitor 1280x800.
Gpu: intel mobile 4 series chipset.
Please help me im stuck on this error and dont know how to troubleshoot!!!
The error im getting is:
Glfw error 65543 EGL FAILED TO CREATE CONTEXT ARGUMENTS ARE INCONSISTENT
And
kitty/main.py create_os_window value error: failed to create GLFWwindow. Im using default hyprland config. How can i troubleshoot/ find right settings for my monitor?
Also a endeavours iso works perfectly fine with kde so the monitor is not the issue.
Sorry for not including log files in text form but shouldnt be a big problem. Please help me

that's not a hyprland error, that's an error from some random application running. I can see you're running hyprland as root, which is not supported and should never be done.
confront the wiki: https://wiki.hyprland.org/Getting-Started/Master-Tutorial/

Nice support! NOT!!

that's not a hyprland error, that's an error from some random application running. I can see you're running hyprland as root, which is not supported and should never be done.
confront the wiki: https://wiki.hyprland.org/Getting-Started/Master-Tutorial/

How is it a random applicantion if the same setup works on a different device? Ibviousely there is some incompatibility with the monitor no?

when you're reading the tty, applications opened at startup also write to it, making the output garbled.
You'll find more information in the crash report and log, that you should've posted per issue guidelines, which you ignored.

when you're reading the tty, applications opened at startup also write to it, making the output garbled.
You'll find more information in the crash report and log, that you should've posted per issue guidelines, which you ignored.

Hey, so it seems like there is no crashreport because i decide to SUPER m , when i dont see kitty or any applications popup after SUPER q. But the log is (now as user):
`
[LOG] Instance Signature: cba1ade848feac44b2eda677503900639581c3f4_1715707738_998203348
[LOG] Runtime directory: /run/user/1000/hypr/cba1ade848feac44b2eda677503900639581c3f4_1715707738_998203348
[LOG] Hyprland PID: 1178
[LOG] ===== SYSTEM INFO: =====
[LOG] System name: Linux
[LOG] Node name: host
[LOG] Release: 6.8.9-hardened1-2-hardened
[LOG] Version: #1 SMP PREEMPT_DYNAMIC Tue, 07 May 2024 22:06:04 +0000
[LOG] GPU information:
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07) (prog-if 00 [VGA controller])
DeviceName: VGA compatible controller
[LOG] os-release:
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo
[LOG] ========================
[INFO] If you are crashing, or encounter any bugs, please consult https://wiki.hyprland.org/Crashes-and-Bugs/
[LOG]
Current splash: With the lights out, it's less dangerous
[LOG] Creating the EventLoopManager!
[LOG] Creating the HookSystem!
[LOG] Creating the ProtocolManager!

[LOG] TextInputV1Manager started successfully!
[LOG] GlobalShortcutsManager started successfully!
[LOG] ScreencopyProtocolManager started successfully!
[LOG] Creating the KeybindManager!
[LOG] Creating the AnimationManager!
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 54.27µs. Estimated average calc time: 0.08µs.
[LOG] Creating the ConfigManager!
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 34.62µs. Estimated average calc time: 0.06µs.
[LOG] Using config: /home/tokyo/.config/hypr/hyprland.conf
[INFO] !!!!HEY YOU, YES YOU!!!!: further logs to stdout / logfile are disabled by default. BEFORE SENDING THIS LOG, ENABLE THEM. Use debug:disable_logs = false to do so: https://wiki.hyprland.org/Configuring/Variables/#debug
`
What is weird to me is that on every other machine when I do Hyprland and then SUPER q it opens terminal. but not on this monitor so i SUPER m to exit.
Maybe my monitor doesnt work with the default monitor settings?

debug {disable_logs=false}

it should be
debug {
   disable_logs=false
}

plus, the crash report is still missing (I assume it's a crash)

debug {disable_logs=false}

it should be
debug {
   disable_logs=false
}

plus, the crash report is still missing (I assume it's a crash)

It is not a crash im getting back to tty with Super m.

The firstly mentioned error only appears when i press super q to open kitty


Startup error after deployment from AOAI Studio: ModuleNotFoundError: No module named 'app'

Same as #786 : ModuleNotFoundError: No module named 'app' on startup of the App
Describe the bug
App won't start after default deployment. I ran the deployment from the Azure OpenAI studio:

This lets you create a WebApp and it deploys it with a link back to this repo.
To Reproduce
Steps to reproduce the behavior:

Deploy
Wait the time for the deployment to get up and running (as indicated in the studio)
Go to the deployed App Service
Connect to the front end
Get the application error ':( Application Error
If you are the application administrator, you can access the diagnostic resources.'
Check the log stream
Notice ModuleNotFoundError: No module named 'app' in the app deployemnt

Expected behavior
Working example application :-).
Screenshots
If applicable, add screenshots to help explain your problem.
Configuration: Please provide the following

Azure OpenAI model name and version (e.g. 'gpt-35-turbo-16k, version 0613'): gpt-4o 2024-05-13
Is chat history enabled?: No
Are you using data? If so, what data source? (e.g. Azure AI Search, Azure CosmosDB Mongo vCore, etc): I have added Azure AI Search to the Chat playground before I deployed.
Verify the startup command and runtime configuration by showing the output of the following az CLI command:

az webapp show --name <app name> --resource-group <resource group name> --query "{startupCommand: siteConfig.appCommandLine, runtime: siteConfig.linuxFxVersion}"

Output:
{
  "runtime": "PYTHON|3.11",
  "startupCommand": "python3 -m gunicorn app:app"
}

Logs

If the application deployment is failing, please share the deployment logs using the following az CLI command:

az webapp log deployment show --name <app name> --resource-group <rg name>

If the application is crashing after deployment, please share the application logs using the following az CLI command:

az webapp log tail --name <app name> --resource-group <resource group name>

Output:
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()--- End of stack trace from previous location ---at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)at Kudu.Services.Web.Tracing.TraceMiddleware.Invoke(HttpContext context) in /tmp/KuduLite/Kudu.Services.Web/Tracing/TraceMiddleware.cs:line 97
2024-09-25T20:25:05      Outgoing response, type: response, statusCode: 500, statusText: InternalServerError/home/LogFiles/2024_09_25_lw1sdlwk000042_default_docker.log  (https://xms-test-app.scm.azurewebsites.net/api/vfs/LogFiles/2024_09_25_lw1sdlwk000042_default_docker.log)
2024-09-25T21:01:49.713040952Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-25T21:01:49.713043952Z   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
2024-09-25T21:01:49.713047552Z   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
2024-09-25T21:01:49.713050652Z   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
2024-09-25T21:01:49.713451248Z ModuleNotFoundError: No module named 'app'
2024-09-25T21:01:49.714568539Z [2024-09-25 21:01:49 +0000] [69] [INFO] Worker exiting (pid: 69)
2024-09-25T21:01:50.067040476Z [2024-09-25 21:01:50 +0000] [63] [ERROR] Worker (pid:69) exited with code 3
2024-09-25T21:01:50.091129767Z [2024-09-25 21:01:50 +0000] [63] [ERROR] Shutting down: Master
2024-09-25T21:01:50.091149867Z [2024-09-25 21:01:50 +0000] [63] [ERROR] Reason: Worker failed to boot./home/LogFiles/2024_09_25_lw1sdlwk000042_docker.log  (https://xms-test-app.scm.azurewebsites.net/api/vfs/LogFiles/2024_09_25_lw1sdlwk000042_docker.log)
2024-09-25T21:01:45.092Z INFO  - docker run -d --expose=8181 --name xms-test-app_0_00fcf0a0_middleware -e WEBSITE_SITE_NAME=xms-test-app -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=xms-test-app.azurewebsites.net -e WEBSITE_INSTANCE_ID=9e1f6eb78aa306362994025a9019b01d24ea90e4aa6191a0617cc39ab9f04ceb mcr.microsoft.com/appsvc/middleware:stage5 REDACTED
2024-09-25T21:01:45.099Z INFO  - Logging is not enabled for this container.Please use https://aka.ms/linux-diagnostics t2024-09-25T21:01:48.682Z INFO  - Initiating warmup request to container xms-test-app_0_00fcf0a0_msiProxy for site xms-test-app
2024-09-25T21:01:48.829Z INFO  - Container xms-test-app_0_00fcf0a0_msiProxy for site xms-test-app initialized successfully and is ready to serve requests.
2024-09-25T21:01:48.837Z INFO  - Initiating warmup request to container xms-test-app_0_00fcf0a0 for site xms-test-app
2024-09-25T21:01:51.227Z ERROR - Container xms-test-app_0_00fcf0a0 for site xms-test-app has exited, failing site start
2024-09-25T21:01:51.228Z INFO  - Initiating warmup request to container xms-test-app_0_00fcf0a0_middleware for site xms-test-app
2024-09-25T21:01:56.203Z INFO  - Container xms-test-app_0_00fcf0a0_middleware for site xms-test-app initialized successfully and is ready to serve requests.
2024-09-25T21:01:56.229Z ERROR - Container xms-test-app_0_00fcf0a0 didn't respond to HTTP pings on port: 8000, failing site start. See container logs for debugging.

Any updates on this? Facing the same issue

@iseabock

@rajbos @mekjr1 has the app completed the sync of code from the repo? You can check this from the app service resource Deployment Center page, you need to have an 'active' commit in the Logs tab. If you don't see one you can retry pulling the code by clicking 'sync'. Once there is an active commit, restart the app and it should start up without hitting this error.

Hi @sarah-widder  I am having the same issue.

Hi @sarah-widder
I have the same issue also.
Tried the complete purge and deploy again, but exactly same error.
Even tried with different model.

@rajbos @mekjr1 has the app completed the sync of code from the repo? You can check this from the app service resource Deployment Center page, you need to have an 'active' commit in the Logs tab. If you don't see one you can retry pulling the code by clicking 'sync'. Once there is an active commit, restart the app and it should start up without hitting this error.

@luisdanielse @kocsispeter does this fix work for you?
You want the deployment center to look like this, and then click Sync so that you see a commit show up active in the Logs.

Checked the Deployment Center / Logs. At first try (earlier) there was commit telling the build failed.
I have pushed the Sync button now, and after a while I saw your commit and the app build was success.
Thank You for the quick fix @sarah-widder!
Problem solved!

@sarah-widder  sync fixed the issue for me... It took three sync attempts on my case.
now the on blocker is related to updating existing app.... thanks for your help :)

Same here, glad that it works.
I had to redeploy three times as well. Not a great UX, but glad that it worked @sarah-widder!
Can this be added somewhere in the docs / Azure Portal (where I deployed this from) or generally be improved? This is rather unintuitive behavior when deploying Azure resources.


401 Unauthorized exception

I can register login etc properly, but when I click on Menu 'Dog' after logging in,
the ajax request throws 401 Unauthorized exception with following data:
{"message":"Token has expired","status_code":401,"debug":{"line":36,"file":"\/Applications\/MAMP\/htdocs
\/experiments\/vue-starter\/backend\/vendor\/tymon\/jwt-auth\/src\/Middleware\/Authenticate.php","class"
:"Symfony\\Component\\HttpKernel\\Exception\\UnauthorizedHttpException","trace":["#0 [internal function
]: Tymon\\JWTAuth\\Middleware\\Authenticate->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure
))","#1 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework\
/src\/Illuminate\/Pipeline\/Pipeline.php(124): call_user_func_array(Array, Array)","#2 [internal function
]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request)
)","#3 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework\/src
\/Illuminate\/Pipeline\/Pipeline.php(103): call_user_func(Object(Closure), Object(Dingo\\Api\\Http\\Request
))","#4 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework\
/src\/Illuminate\/Routing\/ControllerDispatcher.php(114): Illuminate\\Pipeline\\Pipeline->then(Object
(Closure))","#5 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework
\/src\/Illuminate\/Routing\/ControllerDispatcher.php(69): Illuminate\\Routing\\ControllerDispatcher-
>callWithinStack(Object(Api\\Controllers\\DogsController), Object(Illuminate\\Routing\\Route), Object
(Dingo\\Api\\Http\\Request), 'index')","#6 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend
\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php(203): Illuminate\\Routing\\ControllerDispatcher-
>dispatch(Object(Illuminate\\Routing\\Route), Object(Dingo\\Api\\Http\\Request), 'Api\\\\Controllers
...', 'index')","#7 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel
\/framework\/src\/Illuminate\/Routing\/Route.php(134): Illuminate\\Routing\\Route->runWithCustomDispatcher
(Object(Dingo\\Api\\Http\\Request))","#8 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend
\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(704): Illuminate\\Routing\\Route-
>run(Object(Dingo\\Api\\Http\\Request))","#9 [internal function]: Illuminate\\Routing\\Router->Illuminate
\\Routing\\{closure}(Object(Dingo\\Api\\Http\\Request))","#10 \/Applications\/MAMP\/htdocs\/experiments
\/vue-starter\/backend\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(139): call_user_func
(Object(Closure), Object(Dingo\\Api\\Http\\Request))","#11 \/Applications\/MAMP\/htdocs\/experiments
\/vue-starter\/backend\/vendor\/tymon\/jwt-auth\/src\/Middleware\/RefreshToken.php(33): Illuminate\\Pipeline
\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#12 [internal function
]: Tymon\\JWTAuth\\Middleware\\RefreshToken->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure
))","#13 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework
\/src\/Illuminate\/Pipeline\/Pipeline.php(124): call_user_func_array(Array, Array)","#14 \/Applications
\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/barryvdh\/laravel-cors\/src\/HandleCors.php
(52): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request
))","#15 [internal function]: Barryvdh\\Cors\\HandleCors->handle(Object(Dingo\\Api\\Http\\Request), Object
(Closure))","#16 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework
\/src\/Illuminate\/Pipeline\/Pipeline.php(124): call_user_func_array(Array, Array)","#17 [internal function
]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request)
)","#18 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework\
/src\/Illuminate\/Pipeline\/Pipeline.php(103): call_user_func(Object(Closure), Object(Dingo\\Api\\Http
\\Request))","#19 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework
\/src\/Illuminate\/Routing\/Router.php(706): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))","
#20 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework\/src
\/Illuminate\/Routing\/Router.php(671): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate
\\Routing\\Route), Object(Dingo\\Api\\Http\\Request))","#21 \/Applications\/MAMP\/htdocs\/experiments
\/vue-starter\/backend\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(631): Illuminate
\\Routing\\Router->dispatchToRoute(Object(Dingo\\Api\\Http\\Request))","#22 \/Applications\/MAMP\/htdocs
\/experiments\/vue-starter\/backend\/vendor\/dingo\/api\/src\/Routing\/Adapter\/Laravel.php(65): Illuminate
\\Routing\\Router->dispatch(Object(Dingo\\Api\\Http\\Request))","#23 \/Applications\/MAMP\/htdocs\/experiments
\/vue-starter\/backend\/vendor\/dingo\/api\/src\/Routing\/Router.php(526): Dingo\\Api\\Routing\\Adapter
\\Laravel->dispatch(Object(Dingo\\Api\\Http\\Request), 'v1')","#24 \/Applications\/MAMP\/htdocs\/experiments
\/vue-starter\/backend\/vendor\/dingo\/api\/src\/Http\/Middleware\/Request.php(93): Dingo\\Api\\Routing
\\Router->dispatch(Object(Dingo\\Api\\Http\\Request))","#25 [internal function]: Dingo\\Api\\Http\\Middleware
\\Request->Dingo\\Api\\Http\\Middleware\\{closure}(Object(Dingo\\Api\\Http\\Request))","#26 \/Applications
\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline
\/Pipeline.php(139): call_user_func(Object(Closure), Object(Dingo\\Api\\Http\\Request))","#27 \/Applications
\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation
\/Http\/Middleware\/CheckForMaintenanceMode.php(42): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline
\\{closure}(Object(Dingo\\Api\\Http\\Request))","#28 [internal function]: Illuminate\\Foundation\\Http
\\Middleware\\CheckForMaintenanceMode->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","
#29 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework\/src
\/Illuminate\/Pipeline\/Pipeline.php(124): call_user_func_array(Array, Array)","#30 [internal function
]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request)
)","#31 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/laravel\/framework\
/src\/Illuminate\/Pipeline\/Pipeline.php(103): call_user_func(Object(Closure), Object(Dingo\\Api\\Http
\\Request))","#32 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/dingo\/api
\/src\/Http\/Middleware\/Request.php(94): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))","#33
 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor\/dingo\/api\/src\/Http\/Middleware
\/Request.php(75): Dingo\\Api\\Http\\Middleware\\Request->sendRequestThroughRouter(Object(Dingo\\Api
\\Http\\Request))","#34 [internal function]: Dingo\\Api\\Http\\Middleware\\Request->handle(Object(Illuminate
\\Http\\Request), Object(Closure))","#35 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend
\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(124): call_user_func_array(Array
, Array)","#36 [internal function]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object
(Illuminate\\Http\\Request))","#37 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor
\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): call_user_func(Object(Closure), Object
(Illuminate\\Http\\Request))","#38 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor
\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(122): Illuminate\\Pipeline\\Pipeline-
>then(Object(Closure))","#39 \/Applications\/MAMP\/htdocs\/experiments\/vue-starter\/backend\/vendor
\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(87): Illuminate\\Foundation\\Http
\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))","#40 \/Applications\/MAMP\/htdocs
\/experiments\/vue-starter\/backend\/public\/index.php(54): Illuminate\\Foundation\\Http\\Kernel->handle
(Object(Illuminate\\Http\\Request))","#41 {main}"]}}

Hi,
There is a new note about apache (since you're using MAMP, this would apply to your) here:
https://github.com/layer7be/vue-starter-laravel-api
Can you check that these are applied to your .htaccess or virtualhost config?
K

If you are still experiencing this issue after following the instructions for Apache, please open this issue again.


Region serialization formats: STC-S

A region format that exists and that we could implement is the IVOA (I think?) supported STC-S, as described here: http://adsabs.harvard.edu/abs/2010ASPC..434..213B
There was some discussion about putting the STC format into yaml files, which might make the i/o very nice & easy.

cc @timj do you have a (python) parser/writer for this available?  Also, we'd like example files to test on if you have them.

@keflavich Sorry. It's all C code inside pyast. @dsberry do you have test STC-S region examples other than the one in that paper? I see a couple in teststcschan.f inside AST but they aren't easy to extract from there.
Regarding STC-S: http://www.ivoa.net/documents/Notes/STC-S/20091030/NOTE-STC-S-1.33-20091030.html

@timj - does pyast expose the readers from a Python API though? We could just add a dependency on pyast for now for this kind of file format? (no point in reinventing the wheel)

pyast includes a wrapper for the StcsChan class - see http://www.starlink.ac.uk/docs/sun211.htx/sun211ss487.html. For an example of its usage, see https://gist.github.com/dsberry/9a0dc13c86e8db9f4df1
You may also be interested in an on-line demo of the StcsChan class (recently resurrected) :
http://starlink.eao.hawaii.edu/cgi-bin/ast/stcs-demo

@dsberry thanks for the demo. I imagine that would be useful.
@astrofrog regarding using AST to parse the regions. I'm not sure. You could in theory get the compound region from AST and split it into constituent regions and then use GetRegionPoints to work out what each individual region is. Not sure how feasible that is. In some sense pyast already does a lot of what is needed for region handling already (it looks like GetRegionMesh would be a great way to get the points required for a FootPrint).

It looks like a lot of thought has gone into STC-S and having this in astropy.regions would be a big win-win:

More widespread adoption for STC-S.
A well thought-out data model and serialisation format for astropy.region.

Note: everything is very preliminary in astropy.regions, the data model and API is up for debate.
IMO we should try to get this ready in the next few months and propose inclusion in the Astropy core before the Astropy 1.3 release, or if we don't manage that, then the one after that.
@timj @dsberry - Do you or someone else have time to contribute this to astropy.regions? Or alternatively, provide a detailed instructions how it should be implemented (ideally in manageable steps that are each a few days or week at most of work) that someone else could possibly pick up and then we ask for help on astropy-dev on this?

I noticed this issue is still open, so I hope it's OK to append to it.  We have a need for an STC-S parser in Python to support some cutout functionality.  Did an implementation of sorts ever get worked out?  I have started one on my GitHub, but it currently on parses Circles and Polygons.
Can I contribute to the regions library?
Cheers.

I think we have nothing for STC-S and it's clearly in scope. Of course, depending on what changes it implies for the package, we have to talk, but basically: it would be very welcome.
Do you already know if it will be just another serialisation format like how we already have e.g. DS9?
https://astropy-regions.readthedocs.io/en/latest/#user-documentation
Or will it require changes to the regions data model and Python classes?
Another concern is license. Astropy and regions is BSD-3 and here I see GPL:
https://github.com/at88mph/opencadc_stc/blob/master/LICENSE
We will not take GPL.
So if you wrote that and can re-license, or have the right to contribute under our license, great!
If that originates from some GPL codebase that others were involved in, we might not be able to take it.

I wrote it and it can definitely be re-licensed.  It only depends on astropy.
I would see it as a format akin to the CRTF and DS9 ones.  It will be an addition and no core changes should be required, unless some refactoring regarding the data model (as mentioned above) should happen first.
Is there a code convention contribution guide?
Thanks.

Great!
We didn't write any contribute docs, but pretty much everything is the same as for Astropy, and they have super extensive docs:
https://astropy.readthedocs.io/en/stable/#developer-documentation
Feel free to ask any time on Github though if something isn't clear.
Do you have an estimate how much code / work this addition is?
I think it's significant and we should try to make sure the addition happens efficiently with your and our time. Personally I don't know about STC-S and have no time to do PR review. So if someone here could do that or at least give some feedback on PRs (@keflavich @timj @dsberry ?), please leave a comment. Also: @at88mph - please have a look at our regions classes, and think about whether it's possible / a good idea to make the addition as a series of smallish PRs, or if it should or has to be one large PR.

Understood.  thanks @cdeil .

Sorry.  I've been told that STC-S never made it to a standard and was rejected.  We will no longer be pursuing this.  My apologies.

The note is here http://www.ivoa.net/documents/Notes/STC-S/
Obviously many people have implemented it and I'm pretty sure JAC is sending STC-S region strings to CADC.  I wonder why it never got formalized. It was useful.

I'm sorry @keflavich , I just saw your last note.  Is this issue still relevant?  I'm not sure if there are other implementations more recent or not.

Yes, this issue is still relevant - we still don't, afaik, have a mechanism to read or write STC-S regions in this module, which is a feature we'd like!

I know that so far astropy has been reluctant to integrate Rust code.
But, FWIW, I made a STC-S parser in Rust that could be used to transform a STC-String into a Python dictionary (from the  JSON output of the parser), ensuring a part of the work toward a STC-S to Region code.
The license is MIT, the code available on both github and crates.io.
Let me know whether you may be interested or not.


Admin page no longer lists brews due to commented search API function

Hi Scott,
The admin page is no longer listing brews. I can see it's because the /api/search function is commented out (homebrew.api.js). I find the admin page immensely useful, so I'd love it if the it still worked going forward!
Cheers,
Snappy

Good point. I'll try and fix this with the next set of updates.

Not sure if you're done with it, but I'd like to comment on the new admin page with a single search box. The old admin page which listed all brews was awesome. I even added a 'title' column to make it easy to identify the brews (the IDs aren't friendly).
Looks like the new admin page only offers a single-result search based on ID. I don't know about others but I feel searching by ID is a really difficult - how can I remember a random ID, and why limit the results to 1?
Listing the brews I think was really good - would you consider reverting to it? Adding a title column would be perfect I think. I think the current search is a step backward.
Thanks Scott!

The way I was implementing the brew listing before was very flawed and actually was use-able in Production due to the sheer number of brews. I needed to build an API that supported search and pagination, one thing lead to another and I'm currently in a nearly complete re-write of the whole project.
Much of the project's internals haven't gotten much love since v1 and were still very much coded like a weekend hobby project, which made building new features very tedious.
For the v2.7 release I patched up the admin page so I can at least use it for support until I'm done with the improvements in v3, which will have full search and paginated listing.
FunFact: The brew lookup tool is really helpful for support because many people mis-copy their edit/share id and leave off the last few characters, so this tool let's me find those. I can also find the edit from the share id and vice versa.

Thanks for the explanation Scott - looking forward to v3 :)

6 year old issue, i've never opened the admin page personally, but wasn't this fixed back then?

I can't run v3 locally due to database version issues, so I'm not sure if it was fixed in v3, but judging by Scott's comment, he did not have a use for the functionality I was asking for, so I doubt it. You can close this issue if you like.


fix: fixed an issue where platformadmin could not dynamically add and remove yurt-iot-dock

What type of PR is this?
/kind bug
/sig iot
What this PR does / why we need it:
Because the yurt-iot-dock is an internal component of openyurt and is not in the standard configuration collected by the auto-collector, a separate decision for the yurt-iot-dock is added when calculating the required components.
Special notes for your reviewer:

Does this PR introduce a user-facing change?

other Note

/assign @Rui-Gan

/lgtm

/lgtm


Add ability to manually set label text alignment for label-series.

Added labelAnchorX and labelAnchorY props for label-series.

labelAnchorX: Value of this prop will be used as textAnchor attribute for the  element. If it is not provided, the textAnchor will be calculated and set automatically depending on the label position (= as it has been set and calculated always until now)
labelAnchorY: Value of this prop will be used as alignmentBaseline attribute for the  element. If it is not provided, the alignmentBaseline will be calculated and set automatically depending on the label position (= as it has been set and calculated always until now)

So basically these props enable user to manually set that for example label is always on the top and middle of the datapoint.
E.g. if we set labelAnchorX="middle" and labelAnchorY="text-after-edge" for the label series example, we get:

import React from 'react';

import ShowcaseButton from '../showcase-components/showcase-button';
import {
  XYPlot,
  XAxis,
  YAxis,
  MarkSeries,
  LabelSeries
} from 'index';

function generateData() {
  return [
    {x: Math.random() * 3, y: Math.random() * 20, label: 'Wigglytuff', size: 30, style: {fontSize: 20}},
    {x: Math.random() * 3, y: Math.random() * 20, label: 'Psyduck', size: 10},
    {x: Math.random() * 3, y: Math.random() * 20, label: 'Geodude', size: 1},
    {x: Math.random() * 3, y: Math.random() * 20, label: 'red', size: 12, rotation: 45},
    {x: Math.random() * 3, y: Math.random() * 20, label: 'blue', size: 4}
  ];
}

export default class Example extends React.Component {
  state = {
    data: [
      {x: 3, y: 7, label: 'Wigglytuff', size: 30, style: {fontSize: 20}, rotation: 45},
      {x: 2, y: 4, label: 'Psyduck', size: 10},
      {x: 1, y: 20, label: 'Geodude', size: 1},
      {x: 4, y: 12, label: 'Ditto', size: 12, rotation: 45},
      {x: 1, y: 14, label: 'Snorlax', size: 4}
    ]
  }
  render() {
    const {data} = this.state;
    return (
      <div>
        <ShowcaseButton onClick={() => this.setState({data: generateData()})} buttonContent="UPDATE"/>
        <XYPlot
          yDomain={[-1, 22]}
          xDomain={[-1, 5]}
          width={300}
          height={300}>
          <XAxis />
          <YAxis />
          <MarkSeries
            className="mark-series-example"
            strokeWidth={2}
            sizeRange={[5, 15]}
            data={data}/>
          <LabelSeries
            animation
            allowOffsetToBeReversed
            data={data}
            labelAnchorX="middle"
            labelAnchorY="text-after-edge" />
        </XYPlot>
      </div>
    );
  }
}

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

hi @mcnuttandrew
Thanks for reviewing, good points! I made and pushed the changes you suggested.


WIP [TBTC-103] Update upload-autodoc.sh script

Description
Problem: we have updated our infrastructure so that now CI
stores auth toke in the $GITHUB_TOKEN variable.
Solution: update the script to use this variable.
Related issue(s)
https://issues.serokell.io/issue/TBTC-103
:white_check_mark: Checklist for your Merge Request

Related changes (conditional)

Tests (see short guidelines)

[x] If I added new functionality, I added tests covering it.
[x] If I fixed a bug, I added a regression test to prevent the bug from
silently reappearing again.

Documentation

I checked whether I should update the docs and did so if necessary:

[x] README
[x] Haddock
[x] docs/

[x] I updated changelog unless I am sure my changes are
really minor.

Stylistic guide (mandatory)

[x] My commits comply with the following policy.
[x] My code complies with the style guide.

Seems to work: https://github.com/tz-wrapped/tezos-btc/commits/autodoc/gromak/tbtc103-autodoc-upload

LGTM, don't forget to create autodoc/master branch

What? It exists, we didn't delete anything.

ah, lol, okay :nabros:


web-rtc demo project is not working in android

Hai, i tried the demo project which where there in documentation, It was working fine in IOS but the problem is with Android, I already posted an issue for this in demo project repo, Please give me suggestion that how can i solve this problem, Here is the issue link of demo Project
https://github.com/oney/RCTWebRTCDemo/issues/24, Any one please help me

tracked at https://github.com/oney/RCTWebRTCDemo/issues/24


Mendeley

I'm oldskool (ketarin) and mendeley is my first au package. It works standalone, but I was wondering if you could (tell me how to) test if this works with the global updater and add it to the update computer @admiringworm @pascalberger.

@Redsandro For the future please wait for a review before merging your own PR, especially if you have open questions. There are several things not conform to guidelines, and there is already a package with this name (but rejected), therefore this cannot be pushed through the Chocolatey user.

I made some fixes with https://github.com/chocolatey/chocolatey-coreteampackages/commit/ab988d6acf24f847ceb29f9515f052e5aec26b43
@AdmiringWorm Any idea how to avoid the URL in the AU script? I couldn't find a page on their website which would allow to get the full download link.

@pascalberger I'm not sure I follow.
Why would you avoid a URL? Even if the website doesn't provide the full url a url would still be required to download the software.

@AdmiringWorm Sorry I was unclear :) I don't want to avoid the URL, but scraping it from the website instead of hardcoding it in the script would make the script much more stable.

@pascalberger said

For the future please wait for a review before merging your own PR

Yes, absolutely. Back when I committed most packages was in a time when this repo was grossly understaffed and getting something done would easily take months. So I'm used to trying not to bother people. But I hesitated because this system is new to me. I didn't expect you to reply so fast! Lesson learned.

I don't want to avoid the URL, but scraping it from the website instead of hardcoding it in the script would make the script much more stable.

Agreed, but I see no way to do that. The URL is constructed by scripts; the au way doesn't work.

@pascalberger added the Requires Chocolatey User

I added the chocolatey user. What's the policy about maintainers that don't fix their package in over a year? Remove the old maintainer?

I added the chocolatey user. What's the policy about maintainers that don't fix their package in over a year? Remove the old maintainer?

@Redsandro I asked this in Gitter. You can remove the old maintainer in this case.

#done

Does the update machine automatically import the master branch?

@Redsandro said...
Does the update machine automatically import the master branch?

By update machine, are you referring to the Azure VM which runs the ketarin instance that we still have?  If so, this plays no part in the running of AU.  The AU packages are run on AppVeyor.  Once all the ketarin packages are migrated to AU we will not need that VM at all, and it will all be done through AppVeyor.

@Redsandro There's actually not really an update machine involved, like with Ketarin. There are just AppVeyor builds, which are triggered to run scheduled every few hours, or of course after a committ/merge on master.

@pascalberger said:

@AdmiringWorm Sorry I was unclear :) I don't want to avoid the URL, but scraping it from the website instead of hardcoding it in the script would make the script much more stable.

Ah, I see. In that case I don't know.
Don't really think it matters that much that the url is hard coded in the update script though, since au tests the url for 404 on each build run.

@gep13 @pascalberger Gotcha. Thanks.

@Redsandro FYI: AU now pushed the package to Chocolatey and committed the changes back (see https://github.com/chocolatey/chocolatey-coreteampackages/compare/2e50444e1b...0c3478c9e2). You can check the status of the latest AU run also here

@pascalberger I wrote a hotfix for the 1223 exit code I received after (succesful) installation. https://github.com/chocolatey/chocolatey-coreteampackages/commit/3d43aa87127b46f5e6efb4350a29c844d7d3164a
Is this where I should have used AU in the commit message?

@Redsandro yes, you would have needed an AU commit message to force the pushing of the package, otherwise, it will have to wait until the next release of the package.
@AdmiringWorm @pascalberger I think in this case we should use a package fix notation, assuming the package has made it through moderation (I haven't checked yet)?  Thoughts?

@gep13  it didn't make it through moderation, it fails with error code 1223.
Been trying to figure out why, but no luck. Even fails in the test environment when running with --notsilent and it dosn't look like it is missing any dependencies either since it is installed and runs.

@Redsandro btw, in this case you can force the update of this package in two different ways.

Set the version to 0.0 and commit with the [AU mendeley] in the title (it will then automatically set the version to the latest upstream).
Or add an empty commit message with [AU mendeley:1.17.7], this will force au to use the specified version as the package version no matter what the upstream version is.

Personally I prefer the first option.

@AdmiringWorm said:

Set the version to 0.0 and commit with the [AU mendeley] in the title

Done: https://github.com/chocolatey/chocolatey-coreteampackages/commit/b9c88d9e7ae43efa8daa419a0b7bc8c7ef81abe4

@gep13 it didn't make it through moderation, it fails with error code 1223.

Yes, hence the hotfix. Some NSIS packages do that sometimes, but they install correctly.

The package still fails. I don't get it.
ERROR: Path doesn't exist: C:\Program Files\Mendeley Desktop\mendeley.exe
The install of mendeley was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\mendeley\tools\chocolateyInstall.ps1'.
 See log for details.

Note that mendeley is installed and works fine, but the package fails.

@Redsandro that's no wonder, the actual path would be C:\Program Files (x86)\Mendeley Desktop\MendeleyDesktop.exe

@AdmiringWorm no that's fine. I'm running x86 (so "Program Files" is correct, on your machine it will be different.)
The problem is that chocolatey-core\Register-Application.ps1 is looking for mendeley.exe, which doesn't exist. What activates Register-Application? What is it for?
 Stand by.

@Redsandro
Sorry, I did not mean the Program Files part of the path, but the name of the executable which is MendeleyDesktop.exe not mendeley.exe.
From my understanding, Register-Application main job is to create a registry key to make the executable available in the Windows Run dialog.

I removed the registration and let the installer handle it. It adds Mendeley to start.
https://github.com/chocolatey/chocolatey-coreteampackages/commit/c2d5e4807f111afe03740b1a34a8af9ecbf81ad8
Sorry for crying wolf.

@Redsandro adding to start, and adding to run dialog is not the same.
The run dialog I'm talking about is what you get when you press Win+R.

I would rather change the Register-Application call to Register-Application "$installLocation\MendeleyDesktop.exe" -Name $packageName instead.

Ah - Personally I don't care for that (adding non-default features without opt-in). Run dialog is more for admin stuff that isn't in the start menu. And I can't imagine any of its millions of academic users care, since they've always entered it in the start menu, not the run dialog.
I just want it to install equal to a manual install, without errors, with the least amount of customizations. Feel free to add extra features. Know that a hardcoded .exe might break when they decide to change it again (e.g. MendeleyClient.exe)

Package works, finally.


updated documents do not sync (PouchDB on browser => express-pouch db )

I have a app that saved data on pouch-db on browser. And a express-pouch app running in nodejs app (server-side).
I have set of databases on both ends.
databases that are created on server side, have validation doc which prohibits add/delete/update/view for unauthorized users.

When i run a sync for first time, all the data is synced correctly and everything goes fine.
Now i edit one document and change some value in it on client side, i.e on browser pouch-db.
and i run sync again, it seems like the updated doc is sent via a post call (it makes a bulk_docs call), But the updates values are not synced on the server.
When i delete the validation doc, the update worked fine.
When i replaced the validation function with noop-function, it didnot sync.

It seems like the validation function is causing some issue in bulk_docs call during sync. Not sure if this issue is within the express-pouch/pouchdb-server Or the pouchdb-validatation module.
Based on debugging, i did not see pouchdb-validate module throwing any exceptions, it goes fine.

same here.:
"express": "^4.16.3",
"express-pouchdb": "^4.0.0",
"pouchdb": "^6.4.3"

Can confirm, same issue, and removing our validation doc seems to make it go away.


Add docker creds to CI run

This should work around rate limiting that @bessbd and I have seen.
The creds are stored in Jenkins on https://ci-couchdb.apache.org/ . If you would like the account password, let me know.

@bessbd this should work around our rate limiting.

@bessbd this should work around our rate limiting.

Woot woot! Thank you for this change, @wohali


i cant run html or css or...

Environment (please complete the following information):

OS (e.g., Windows 10):
Extension version (e.g., 1.2.3):

Describe the bug:

Repro steps:

Expected behavior:

Additional context:

Closing as incomplete. Feel free to comment back with more information and we can reopen the issue.


Updated the listed technologies used by a given header based on the respective config.json

The index pages for many header files only listed one of the relevant technology areas they were used in, even when they were used by multiple.
This lead to various oddities like:

wingdi.h being listed as Data Exchange rather than the more appropriate Windows GDI

https://docs.microsoft.com/en-us/windows/win32/api/wingdi/
https://docs.microsoft.com/en-us/windows/win32/api/_dataxchg/
https://docs.microsoft.com/en-us/windows/win32/api/_gdi/

winnt.h being listed as Backup rather than the more appropriate System Services

https://docs.microsoft.com/en-us/windows/win32/api/winnt/
https://docs.microsoft.com/en-us/windows/win32/api/_backup/
https://docs.microsoft.com/en-us/windows/win32/api/_base/

etc

I wrote a small tool to parse the config.json for each tech tree. This built a map of headers to technology areas and then I parsed the relevant index.md for the headers and updated to list the correct technology tree or all technology trees in which case multiple use the header:

https://github.com/MicrosoftDocs/sdk-api/blob/docs/sdk-api-src/content/_base/config.json
https://github.com/MicrosoftDocs/sdk-api/blob/docs/sdk-api-src/content/minwinbase/index.md

This results in many headers being updated to follow the format of one of the following.
Where a single technology area uses the header
This header is used by Antimalware Scan Interface. For more information, see:

- [Antimalware Scan Interface](../_amsi/index.md)

Where multiple technology areas use the header
This header is used by multiple technologies. For more information, see:

- [DirectShow](../_dshow/index.md)
- [Microsoft TV Technologies](../_mstv/index.md)

Notably there were about 348 header files listed in various tech areas that aren't available in this repo itself. Instead they are available in one of the other MicrosoftDocs repos. Some examples are headers that live in the Windows Driver Docs (80 headers) or Win32 Docs repos.

https://github.com/MicrosoftDocs/windows-driver-docs-ddi
https://github.com/MicrosoftDocs/win32

At least one of those headers was also a typo (processthreadapi.h should be processthreadsapi.h). I did not search the list to try and find other examples of these, etc.

@tannergooding - Hello! Thanks for your work on this, you did an incredible job fixing a problem that's been around for a long time. While almost everything you've done here is perfect, there are a couple of individual fixes you made that I think should be rolled back. I'll reply to each of your comments above individually. Thanks!

While almost everything you've done here is perfect, there are a couple of individual fixes you made that I think should be rolled back. I'll reply to each of your comments above individually. Thanks!

Sure thing there were bound to be a couple mistakes with the automated script doing things 😄.
I'll get them addressed after you've finished identifying them.

@drewbatgit, I believe I've addressed the actions items given. Please let me know if you need anything else on my end.

@tannergooding Looks great! Thanks for your contributions to the Windows docs!


vscode: Completion need to enhance

Clear and concise description of the problem
屏幕录制2023-10-14 22.35.38.mov
Suggested solution
I feel that the current prompts provided are quite limited, not friendly enough and need to be enhanced.
Alternative
No response
Additional context
No response
Validations

[X] Read the Contributing Guidelines.
[X] Read the README.md of using the package.
[X] Already used the Interactive Docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

We temporarily close this due to the lack of enough information.
Please provide a minimal reproduction to reopen the issue.
Thanks.

Why reproduction is required

Of course, I will try to optimize it in my free time

You could try the fuzzy autocomplete mode, it gives more results. Some of them are strange though like transform-translate-x instead of translate-x.

You could try the fuzzy autocomplete mode, it gives more results. Some of them are strange though like transform-translate-x instead of translate-x.

It does not work and this will be difficult to use

You could try the fuzzy autocomplete mode, it gives more results. Some of them are strange though like transform-translate-x instead of translate-x.

It does not work and this will be difficult to use

I understand.
There are some other things that are just weird like the colors, let's say I want bg-green-500, I have to either type bg-green- and scroll down (past bg-green-1 and whatever) until the thing I want or type the whole string bg-green-500.
Most of the times I just give up and use the Tailwind extension instead. 😱

You could try the fuzzy autocomplete mode, it gives more results. Some of them are strange though like transform-translate-x instead of translate-x.

It does not work and this will be difficult to use

I understand.
There are some other things that are just weird like the colors, let's say I want bg-green-500, I have to either type bg-green- and scroll down (past bg-green-1 and whatever) until the thing I want or type the whole string bg-green-500.
Most of the times I just give up and use the Tailwind extension instead. 😱

haha， I previously supported similar functions in the unot plug-in. Later, I saw that unocss had this function, so I removed it. Maybe I will help improve this function in my free time.


feat: added update comment endpoint

Related Issue (Link to issue ticket)

#56
Description

The endpoint allows for authenticated user to update a particular comment made by them.
Context

Important feature in a social media web app as it gives room for corrections

How Has This Been Tested? Screenshots (if appropriate - Postman, etc)

using an API client app
using pytest

Types of changes

[] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Provide screenshot of tests

Provide screenshot of tests


Validation of TemperatureCelsius property in SpiceSharp.Components.JFETs.Parameters class

I'm not sure about validation that is here:

Why temperature in celsius must be greater than Constants.CelsiusKelvin ?

That is a mistake. It's supposed to be greater than -Constants.CelsiusKelvin. The Units is in degrees celsius, the unicode is for the 'degree' character.


jQuery ajax call appears to be blocked and returns no data

Using jQuery.ajax to get https://cheat.sh/chmod and it returns no data.  If I open the Firefox devtools and resend the request (click "resend" in the network tab), it will succeed and return the expected response.  I am not changing anything between the two calls and I cannot see anything wrong with the configuration.
(Side note: I have a nearly identical call to wttr.in that works just fine in the same script.)

The web-frontend will be replaced to a fully rewritten, low latency high-throughput web-frontend that is used for wttr.in; it should handle this properly


authkitLoader JSON serialization negates Single Fetch capabilities

Hey team, we're currently using Authkit with Next and looking into switching over to Remix, so have started using this package while we try it out.
We're taking advantage of Remix's Single Fetch data loading strategy, which is currently feature flagged but is turned on by default for new Remix projects and will be the default in React Router 7. The upshot is that you can return a naked object from loaders with non-JSON serializable data types (like Date, Map or Set), which previously would've been automatically serialized to JSON, even if you didn't explicitly wrap it in json(). We leverage this quite a bit as we were already doing these conversions in Next's BFF to make the data ready to consume in the frontend.
However, since authkitLoader actually does serialize the data explicitly using json(), and since we use it pretty heavily, this means we can't get the benefits of Single Fetch. Our team can work around this temporarily, but I wanted to see if this was on your radar and if this is something you plan to support in the near future.

Thanks for the heads up! We're hoping on doing a bit of a sprint on features for this library soon and I think this is a great candidate. Will keep you updated as we scope out further.

Hi again, just wanted to flag that React Router 7 has been officially released now so this might start coming up more as people try to migrate.
We've worked around it by moving the authkitLoader call into a utility function that we call at the start of our loaders. Here's a slightly more generic version of it:
export async function getAuthOrRedirect(args: LoaderFunctionArgs) {
  const authkitPromise = await authkitLoader(
    // RR7 made context optional, but in authkit-remix it's still required.
    { ...args, context: {} },
    async ({ auth }) => {
      if (auth.user !== null) {
        return auth;
      }

      // Handle unauthenticated user
      const signInUrl = await getSignInUrl();
      throw redirect(signInUrl);
    },
  );

  const authkitData = await authkitPromise.json();

  return authkitData;
}

You'll notice it's basically a homemade solution for #19. 😅


Feature request : Door interaction distance apply to normal opening

Hi, could the interaction range for doors settings also apply to normal left click ? I'm trying to remove arm reach since it has a sound issue with v11 doors sounds.

Should be easy enough to add, i will look into it.


provide ability to produce "native" ostree commit tar files

We got a customer report where they wanted to take an edge-commit artifact from osbuild and use it as an input to the ostree commit command, in order to generate a new commit using a new branch name:
ostree --repo=/usr/share/nginx/html/repo commit --tree=tar=4b1d7096-3521-434a-bb35-a47672e11f2e-commit.tar --branch=new-branch
ostree will happily accept this tarfile as an input, but the results are not what was expected by the customer.  This is because the tar file contains a repo directory and a compose.json file.  So when you inspect the new ostree commit, instead of a complete filesystem, you just get those two items:
[core@localhost ~]$ ostree --repo=/usr/share/nginx/html/newrepo refs
new-branch
[core@localhost ~]$ ostree --repo=/usr/share/nginx/html/newrepo rev-parse new-branch
9dc4d9117a16e168e807299b8cb50ddd11e8840a175cac647aa79feadc56a126
[core@localhost ~]$ ostree --repo=/usr/share/nginx/html/newrepo ls 9dc4d9117a16e168e807299b8cb50ddd11e8840a175cac647aa79feadc56a126
d00755 0 0      0 /
-00644 0 0    553 /compose.json
d00755 0 0      0 /repo

If a user tries to use that branch/commit as the input to composer-cli compose start-ostree <blueprint> edge-raw-image, the compose is going to fail because that commit doesn't have a complete filesystem.
What this customer likely expected was that the tar file was a "native" ostree commit tar file that is generated by ostree export, for example:
$ ostree --repo=/usr/share/nginx/html/minimal-repo export ebc39a2b34eaf019a692ca6af8cdb5b47cf43e82ff8aea620dc7a42a7fafffd2 > ostree-commit.tar
$ mkdir ostree-commit-tmp
$ tar -xf ostree-commit.tar -C ostree-commit-tmp/
$ ls -la ostree-commit-tmp/
total 8
drwxr-xr-x. 11 core weldr 4096 Aug 23 10:52 .
drwxr-xr-x.  6 core core  4096 Aug 23 14:40 ..
lrwxrwxrwx.  1 core weldr    7 Aug 23 10:52 bin -> usr/bin
drwxr-xr-x.  2 core weldr    6 Aug 23 10:52 boot
drwxr-xr-x.  2 core weldr    6 Aug 23 10:52 dev
lrwxrwxrwx.  1 core weldr    8 Aug 23 10:52 home -> var/home
lrwxrwxrwx.  1 core weldr    7 Aug 23 10:52 lib -> usr/lib
lrwxrwxrwx.  1 core weldr    9 Aug 23 10:52 lib64 -> usr/lib64
lrwxrwxrwx.  1 core weldr    9 Aug 23 10:52 media -> run/media
lrwxrwxrwx.  1 core weldr    7 Aug 23 10:52 mnt -> var/mnt
lrwxrwxrwx.  1 core weldr    7 Aug 23 10:52 opt -> var/opt
lrwxrwxrwx.  1 core weldr   14 Aug 23 10:52 ostree -> sysroot/ostree
drwxr-xr-x.  2 core weldr    6 Aug 23 10:52 proc
lrwxrwxrwx.  1 core weldr   12 Aug 23 10:52 root -> var/roothome
drwxr-xr-x.  2 core weldr    6 Aug 23 10:52 run
lrwxrwxrwx.  1 core weldr    8 Aug 23 10:52 sbin -> usr/sbin
lrwxrwxrwx.  1 core weldr    7 Aug 23 10:52 srv -> var/srv
drwxr-xr-x.  2 core weldr    6 Aug 23 10:52 sys
drwxr-xr-x.  2 core weldr    6 Aug 23 10:52 sysroot
drwxr-xr-x.  2 core weldr    6 Aug 23 10:52 tmp
drwxr-xr-x. 12 core weldr  155 Aug 23 10:52 usr
drwxr-xr-x.  2 core weldr    6 Aug 23 10:52 var

Then you can use the ostree commit command to generate a new commit on a new branch:
[core@localhost ~]$ sudo ostree --repo=/usr/share/nginx/html/repo commit --tree=tar=ostree-commit.tar --branch=imported-branch
ffae5e33a92d6cf8d4aabc81f25ae4b9095ff6f923e35beaf146706c2e816cec
[core@localhost ~]$ sudo ostree --repo=/usr/share/nginx/html/repo refs
imported-branch
new-branch
rhel/9/x86_64/edge
[core@localhost ~]$ sudo ostree --repo=/usr/share/nginx/html/repo rev-parse imported-branch
ffae5e33a92d6cf8d4aabc81f25ae4b9095ff6f923e35beaf146706c2e816cec
[core@localhost ~]$ sudo ostree --repo=/usr/share/nginx/html/repo ls ffae5e33a92d6cf8d4aabc81f25ae4b9095ff6f923e35beaf146706c2e816cec
d00755 0 0      0 /
l00777 0 0      0 /bin -> usr/bin
l00777 0 0      0 /home -> var/home
l00777 0 0      0 /lib -> usr/lib
l00777 0 0      0 /lib64 -> usr/lib64
l00777 0 0      0 /media -> run/media
l00777 0 0      0 /mnt -> var/mnt
l00777 0 0      0 /opt -> var/opt
l00777 0 0      0 /ostree -> sysroot/ostree
l00777 0 0      0 /root -> var/roothome
l00777 0 0      0 /sbin -> usr/sbin
l00777 0 0      0 /srv -> var/srv
d00755 0 0      0 /boot
d00755 0 0      0 /dev
d00755 0 0      0 /proc
d00755 0 0      0 /run
d00755 0 0      0 /sys
d00755 0 0      0 /sysroot
d01777 0 0      0 /tmp
d00755 0 0      0 /usr
d00755 0 0      0 /var

So....would it be reasonable to have osbuild be able to generate "native" ostree commit tar files for this kind of use case?
The use case of creating a new branch seems to be a common pattern for customers who want to change the branding (i.e. branch names) of RHEL for Edge before using it for their own purposes.

I discovered that is possible to provide a --ref argument to composer-cli compose start-ostree and that can be used to generate an edge-commit using that ref name.  That could solve the use case I described, so this new functionality that I suggested may not be necessary.

Yes, the --ref argument defines the ref for the new commit that's being built.  If that was the purpose of this request, can we close this issue?  Or do you think it would be good to be able to produce these kinds of files regardless?

Let's close this for now; there may be additional use cases for this kind of artifact, but we haven't heard of strong demand for it yet.  If the situation changes, we can re-open it.


Followup to #7458 - Always return true for mayPointTo if the void[N] …

…can contain a slice.
Note, there are very few checks we can do for actual slices. We could rule out an entirely zero'd array, or one where we can prove the length is always zero. But not knowing the "true" type of the array stored, we don't know what a non-zero length means.
You may want to view with whitespace off. I had to refactor the return false because otherwise dmd complains of unreachable statements.

ping @n8sh @MoonlightSentinel

Updated. I decided also to implement a zero check for larger void[N], since one that is completely zero can't point anywhere. A benefit of this is that I can move the return false back to the bottom.

@MoonlightSentinel updated, thanks.

Updated

You could add a CTFE test for the second branch

I can do this, hang on.

Anyone? I can pull this, but I don't like to merge my own requests if I can help it.


Ubuntu update

Summary
Using the image that was built from #76.

Related issue :

Should merge after #77

I want to try to compress first...


arm: beetle: Fix UART1 IRQ number

The commit de78ecd "arm: beetle: Use device tree for IRQs" introduces
a regression related to UART1 IRQ.
On arm beetle the UART1 has IRQ number 2.
This patch restores the functionality modifying the arm beetle device
tree file.
Signed-off-by: Vincenzo Frascino<EMAIL_ADDRESS>

Codecov Report

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

@@           Coverage Diff           @@
##           master   #10432   +/-   ##
=======================================
  Coverage   53.14%   53.14%
=======================================
  Files         210      210
  Lines       25745    25745
  Branches     5673     5673
=======================================
  Hits        13681    13681
  Misses       9754     9754
  Partials     2310     2310

Continue to review full report at Codecov.

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


installation not allowed to Write organization package

Dependabot updates fail workflow runs like https://github.com/jidicula/clang-format-action/actions/runs/8308629065/job/22739076838 for republishing images.
Error: buildx failed with: ERROR: denied: installation not allowed to Write organization package

Fixed in https://github.com/jidicula/clang-format-action/pull/191


avatarURL is a function in the newest version of d.js

in the newest discord.js version, avatarURL is a function

as York said in Discord, he will change everything when 12.0.0 releases. closing for now.


Option to enable temporal smoothing in follow mode

Users are currently forced to choose between two modes of playback:

In play mode the time cursor increments smoothly. This is nice for offline playback when we already have the data, but is hard to use in live mode since you need to precisely match the offset and rate of data.
In follow mode the time cursor continuously jumps to the new data at the end of the timeline, but this lacks some of the smoothness of follow mode.

This is particularly noticeable in a windowed plot when viewing the data as part of a realtime stream. Any burstiness in the data, such as from network jitter, or from larger payloads like images in the data-stream cause the plot to feel stuttery.
It would be nice to have the option to turn on some degree of smoothing in follow mode at the cost of a bit of additional latency. We should be able to dynamically track both a max-latency and rate of progression of the current timeline in order to progress time forward as smoothly as possible while accounting for burstiness.
In the case of large outliers, we could then jump to the end and reset the estimator.

I just had a user-call where something very similar to this come up, but where the user wanted smooth playback but always showing data that was e.g. 2 seconds old, i.e. having a fixed-sized latency/buffer. The user story is this:

They log all data on a capture_time timeline
They log camera images as soon as they are captured
They run some inference on the images, the produce annotations. This inference can takes X seconds to run (on a another computer maybe)
They log the resulting annotations (after X seconds), but back-dated to the capture_time of the associated camera frame
If they play back a finished recording from the start, everything looks good
But if they use the "follow-mode" to look at live data, they will see camera images that are X seconds newer than the latest annotations
If they instead could have a mode of "follow-latest-minus-two-seconds" they would see their data in sync. They want to trade latency for synchronicity.

It would be great if the X seconds could be automatically inferred from the incoming data, though that might get tricky.


How to define categorical variable with different ranges?

Assume I have a 4D categorical variable ranges in [[0,1], [0,1], [0,1,2,3,4], [0,1,2]], how should I define the categorical prior on this variable and pass into SOBER? As I know, each row in a torch.Tensor must has same dimesions.

Hi @TianningGao, I have just fixed the code to enable this.
You can now use the different number of categories, via setting;
categories = [[0,1], [0,1], [0,1,2,3,4], [0,1,2]]   # You can pass list of categories
prior = CategoricalPrior(categories)
Tutorial 2 is also updated to show this case (section 6).

Got it, thanks.


chore: add an upper bound version specifier for pandas to prevent breaking the tests

Checklist
GitHub

[x] I've given this PR a concise, self-descriptive, and meaningful title
[ ] I've linked relevant issues in the PR body
[x] I've applied the relevant labels to this PR
[x] I've assigned a reviewer

PR contents

[x] I've consulted ivadomed's internal developer documentation to ensure my contribution is in line with any relevant design decisions
[ ] I've added relevant tests for my contribution
[ ] I've updated the relevant documentation for my changes, including argparse descriptions, docstrings, and ReadTheDocs tutorial pages

Description
The most recent minor release of pandas, v1.5.0 broke our tests. Since the release 1.5.0 supports python 3.8 or higher, the python 3.7 tests passed but the rest others were broken.
Linked issues
Related to #1191

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0%

Covered Lines:
4237

Relevant Lines:
6137

💛  - Coveralls


Allow for tutorials to begin with blocks already placed

When writing multiple tutorials, it can get quite repetitive when you need the same code to start each one. A specific example is creating a sprite that moves around the screen in Arcade. It's about 3 steps to do this and I don't think it needs to be in every tutorial.
It would be nice if you could insert code that would be placed into the editor automatically when the tutorial starts, similar to how the examples work.
I can see that having code be placed into the tutorial might defeat the purpose of the tutorial, but it would be nice to have the option to place basic code that the user manipulates.

We allow this now.


[Bug]: Chroma as vectorstore returns error, when prompting an empty collection

What happened?
This is my exact code:
            collection_name = "collection-" + str(collection_id)
            self.llm = ChatOpenAI(model_name=self.model_name, temperature=self.temperature,
openai_api_key=settings.OPENAI_API_KEY, streaming=True, verbose=True, callback_manager=CallbackManager([ChainStreamHandler(generator)]))

            self.memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True,  output_key='answer')

            chroma_Vectorstore = Chroma(collection_name=collection_name, embedding_function=self.embeddingsOpenAi, client=self.chroma_client)

          self.chain = ConversationalRetrievalChain.from_llm(self.llm, chroma_Vectorstore.as_retriever(),
                                                                return_source_documents=True,verbose=True,
                                                                memory=self.memory)

            result = self.chain({"question": question})
            return result['answer']

If there is a situation that the Chroma's collection is empty and I run this exact code, I get an error:
AttributeError: module 'chromadb.errors' has no attribute 'NotEnoughElementsException'
Is there an option, for go "around" this error, if I prompt the empty collection? Or how can I modify my code, that the same funcionality would be there (conversation with memory)?
Thanks
Versions
Chroma v0.3.25
Python 3.10.11
Relevant log output
AttributeError: module 'chromadb.errors' has no attribute 'NotEnoughElementsException'

It seems like langchain depends on a chroma error that was removed in 0.3.25.
https://github.com/hwchase17/langchain/blob/db45970a66f39a32f2cdd83e7bde26a404efad7b/langchain/vectorstores/chroma.py#L128
A workaround for now is to try / except this issue. The new version of chroma does not throw an error if you query an empty collection but instead returns 0 results.

adding to this, a minimal example that chroma now handles this gracefully
import chromadb
client = chromadb.Client()
collection = client.get_or_create_collection(name="empty_collection")
collection.query(query_texts=["hello world"], n_results=10)

I'll work with langchain maintainers to adjust this error handling.

Thanks to both of you.

Most welcome! Will close this out for now but feel free to reopen if appropriate!


Demo Travel Website

Describe the project
In this Project, I've built a Demo Website using Bootstrap 5, HTML, and CSS. It is a Simple Website with a lot of features which the user can explore.
This website can be used for various purposes like making a personal portfolio or a travel website.
The link of the project is: https://shivankk26.github.io/Demo-Travel-Website/

This seems to be a generic template for a website. There are many such projects already present in the repo


[graphql-language-service-cli] use a valid command in the readme example

The command originally there did not work, because "schema" is not a valid option to the CLI.

No I'm not signing a CLA for this.


Easy to get lost in this

Making breakfast toast this page does not flow very well. I'm lost.

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

ID: 17d27a0d-c072-8c9f-7e31-3de60bee9ae8
Version Independent ID: e0c09794-e712-19ff-cb9f-12648d60d4f6
Content: Asynchronous programming in C#
Content Source: docs/csharp/programming-guide/concepts/async/index.md
Product: dotnet-csharp
Technology: csharp-async
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Hi @gregowahoo
Can you add a bit more context on where you got lost? I'd like to improve the experience, but I need a bit more detail for that.

hi @gregowahoo
The link is at the bottom of the issue descriptiion: Asynchronous programming in C#


Massive performance penalty using dataloader

Hi there, first thank you for your hard work on this great library.
I've found that using a dataloader creates quite a huge performance drop vs. non-dataloaded fields, more than a tenfold drop in some cases.
I've logged all my database queries to make sure the database side is not N+1'ing, and everything looks correctly batched.
I made an example repo without a database at all to illustrate the problem. Without using a dataloader, I'm getting around 50k requests per second. With the dataloader (the data loaded the same way just cloned out of a vec), it drops to around 2k RPS.
Some performance penalty seems reasonable since it has to join fields up, but when compared against dataloaders from other frameworks (I've tested apollo with fb dataloader, and hot chocolate with their dataloader) it should not be this much.
Here's my reproduction repo with some commands and benchmark tables:
https://github.com/dylantf/async-graphql-dataloader-perf
Specifications
On macOS with:
async-graphql = { version = "5.0.10", features = ["dataloader"] }
async-graphql-axum = "5.0.10"
axum = "0.6.18"
tokio = { version = "1.28.2", features = ["macros", "rt-multi-thread"] }

We are seeing similar issues in performance, can you try setting delay to zero and post results. Setting delay to zero improves performance a little bit.
https://docs.rs/async-graphql/latest/async_graphql/dataloader/struct.DataLoader.html#method.delay

A definite big improvement with a delay of 0, I reran and got 51k RPS without the delay (so 1ms default) and 35k with delay(0).
Just as a point of comparison, in my current project I opted to create my own dataloader cache just using the Dataloader package directly, and saw an even bigger performance benefit, it is within about 5% of not using a dataloader at all and just preloading everything in one go. But perhaps my naïve implementation of just tossing a map inside an arc when the request is instantiated has other drawbacks.

I think not using the DataLoader will always be faster because there is no thread contention. I don't think there is a way around it though. I think the current implementation can still optimize a little bit.

Yes of course, it is a baseline for comparison.

Changing delay to 0 ended up breaking up the batches into very small ones, which was to be expected given how delay works - it waits delay amount after the first load, either after a cold start or after a previous fetch for all requested loads.
Feel free to try this out and see if it improves performance for you:
https://github.com/async-graphql/async-graphql/pull/1376


[WIP] "Reproducible Research Badges" blog post

Todo:

[x] add local images/screenshots
[ ] check final website version for inconsitencies (markdown)
[x] feedback
[ ] rename file with git mv to actual publication date
[ ] rename image directory with git mv to actual publication date

@nuest I went through all your comments and also checked the locally rendered version. There were somehow no images displayed - but that was true for older blog posts as well.

Test data is online, for the search terms "air quality", see e.g. https://o2r.uni-muenster.de/api/v1/compendium?doi=10.1006/jeem.1994.1031
@LukasLohoff can you please update the blog post date and image directory date as described in the first comment, and update this PR. Thanks!

@LukasLohoff demo service works now, extender is online in required version, we are ready for publication. Just two more steps for you to do (see first comment).


Is this still active?

Are there still any active developers on this project?
I noticed in #1 that php7.0-mcrypt is being used, but it's now deprecated in php 7.1.

Sorry I stopped working on this when I quit eve. The only person I know working on it is meletisf who is making the docs for it.
I think i might have installed mcrypt out of force of habit, it was an old requirement for laravel but is no longer required. You can remove it and the buyback still runs.


Update lda.c

Hi,
Thanks for the suggestion. Looks like using rand() will be more portable than using drand48() -- was that the idea? I just looked at a SO post here, though, and I think we want to replace RAND_MAX + 1.0 with just RAND_MAX:
http://stackoverflow.com/questions/9878965/c-rand-between-0-and-1
If you agree and change it, I'll merge.
PS. Just a heads-up, though: I'm not really developing this package anymore -- it was more just for practice in learning how to write an R package. There are a couple better R packages for fitting LDA, like lda and topicmodels that I'd suggest you use if you're interested in doing some topic modeling in R. If you want to visualize the results of an LDA model, by chance, then check out cpsievert/LDAvis, which is still being supported and developed.
cheers,
kenny

Yes exactly the idea, and yes I’ve been using those tools also. The reason I was interested in this version, like many others, is for the clustering ability (regardless of the flaws that may be presented switching from 3d to 2d).  I really have enjoyed using these packages, and thank you for your time in developing and maintaining them. I know I speak for a great number of people when I say this! Let me know when you decide to merge it, and yes RAND_MAX seems the best option. Thanks for your response!
-Matt
From: Kenny Shirley<EMAIL_ADDRESS>Sent: Friday, August 14, 2015 12:40 PM
To: kshirley/LDAtools<EMAIL_ADDRESS>Cc: MPurcell Matthew<EMAIL_ADDRESS>Subject: Re: [LDAtools] Update lda.c (#9)
Hi,
Thanks for the suggestion. Looks like using rand() will be more portable than using drand48() -- was that the idea? I just looked at a SO post here, though, and I think we want to replace RAND_MAX + 1.0 with just RAND_MAX:
http://stackoverflow.com/questions/9878965/c-rand-between-0-and-1
If you agree and change it, I'll merge.
PS. Just a heads-up, though: I'm not really developing this package anymore -- it was more just for practice in learning how to write an R package. There are a couple better R packages for fitting LDA, like lda and topicmodels that I'd suggest you use if you're interested in doing some topic modeling in R. If you want to visualize the results of an LDA model, by chance, then check out cpsievert/LDAvis, which is still being supported and developed.
cheers,
kenny
—
Reply to this email directly or view it on GitHubhttps://github.com/kshirley/LDAtools/pull/9#issuecomment-131174515.

Cool, thanks, Matt. I appreciate the kind words -- glad you're enjoying the tools.
Will merge and then will edit to RAND_MAX instead of (RAND_MAX + 1.0).
k

Still having trouble running it on windows. I know you’re not trying to put more time into this version so I completely understand if you don’t want to change the code. I’m guessing its working fine on your computer, my error was as follows:
lda.c: In function 'sample':
lda.c:247:17: error: expected ')' before 'rand'
lda.c:247:37: error: expected expression before ';' token
make: *** [lda.o] Error 1
Thanks again for your time, it’s definitely one step further to running well on windows.
-Matt
From: Kenny Shirley<EMAIL_ADDRESS>Sent: Friday, August 14, 2015 12:57 PM
To: kshirley/LDAtools<EMAIL_ADDRESS>Cc: MPurcell Matthew<EMAIL_ADDRESS>Subject: Re: [LDAtools] Update lda.c (#9)
Merged #9https://github.com/kshirley/LDAtools/pull/9.
—
Reply to this email directly or view it on GitHubhttps://github.com/kshirley/LDAtools/pull/9#event-382777608.

Ack, thanks. It was a typo. Fixed now and it installs on my machine. Does it work for you?

Yes works Great! Thank you so much, can’t wait to get started.
-Matt
From: Kenny Shirley<EMAIL_ADDRESS>Sent: Friday, August 14, 2015 1:14 PM
To: kshirley/LDAtools<EMAIL_ADDRESS>Cc: MPurcell Matthew<EMAIL_ADDRESS>Subject: Re: [LDAtools] Update lda.c (#9)
Ack, thanks. It was a typo. Fixed now and it installs on my machine. Does it work for you?
—
Reply to this email directly or view it on GitHubhttps://github.com/kshirley/LDAtools/pull/9#issuecomment-131185262.


openstack: ensure HOME environment variable

Make it so even after a reboot and run from root, the HOME is set to the
user directory where the scripts are expected to be.
Signed-off-by: Loic Dachary<EMAIL_ADDRESS>

Refer to this link for build results (access rights to CI server needed):
http://jenkins.ceph.com//job/teuthology-pull-requests/1898/
Test PASSed.


Few unused variables.

You have few unused variables:
vk_mem_alloc.h(12288): warning : unused variable 'nonCoherentAtomSize' [-Wunused-variable] vk_mem_alloc.h(12289): warning : unused variable 'memRange' [-Wunused-variable] vk_mem_alloc.h(12423): warning : unused variable 'isHostCoherent' [-Wunused-variable] vk_mem_alloc.h(6414): warning : private field 'm_AlgorithmFlags' is not used [-Wunused-private-field]
I opened issue instead pull request because I'm not sure if you left them intentionally, or not.

Thank you for reporting this issue. I fixed it in master branch.


Playwright 0.13 support

It would be nice to include their new "Downloads" feature, which is cool. We have smth similar to it in Puppeteer helper but I did not have a chance to compare them. It would be nice if it can be implemented in the same API.
See Puppeteer API: https://codecept.io/helpers/Puppeteer/#handledownloads

Implemented in #2357


Add missing UFunction annotation in metadata blueprint library

While looking into metadata tutorial, I just realized we miss UFunction annotations, so blueprint library doesn't display those

Thanks for the pull request @baothientran!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

[ ] Cesium for Unreal Samples works.


Pyinstaller .exe errors when sending trap

I'm getting error "TypeError: getsockaddrarg() takes exactly 2 arguments (6 given)" when sending a trap after compiling into a windows .exe with Pyinstaller and the --onefile option. This is with the example code at http://pysnmp.sourceforge.net/examples/v3arch/asyncore/agent/ntforg/snmp-versions.html#snmpv1-trap . It works fine as a plain .py script.
if I add debugging to pysnmp/carrier/asyncore/dgram/base.py line 142
try:
            print("transportAddress: " + str(transportAddress))
            self._sendto(
                self.socket, outgoingMessage, transportAddress
            )

I see the following when it works as a .py script:
transportAddress: ('<IP_ADDRESS>', 162)
And the following when it fails as a Windows .exe
transportAddress: (10, 6, 105, 121, 0, 162)
Traceback (most recent call last):
  File "site-packages\pysnmp\carrier\asyncore\dispatch.py", line 46, in runDispatcher
  File "asyncore.py", line 212, in loop
  File "asyncore.py", line 159, in poll
  File "asyncore.py", line 95, in write
  File "asyncore.py", line 91, in write
  File "asyncore.py", line 461, in handle_write_event
  File "site-packages\pysnmp\carrier\asyncore\dgram\base.py", line 144, in handle_write
  File "site-packages\pysnmp\carrier\asyncore\dgram\base.py", line 35, in <lambda>
TypeError: getsockaddrarg() takes exactly 2 arguments (6 given)

If I modify base.py to fix transportAddress it starts working as a windows .exe
            print("transportAddress: " + str(transportAddress))
            if len(transportAddress) == 6:
              transportAddress = ( '.'.join(map(str,transportAddress[0:4])), transportAddress[5])
              print("NEW transportAddress: " + str(transportAddress))
            self._sendto(
                self.socket, outgoingMessage, transportAddress
            )

transportAddress: (10, 6, 105, 121, 0, 162)
NEW transportAddress: ('<IP_ADDRESS>', 162)

I'm not sure if this is necessarly an issue with pysnmp, pyinstaller, python on Windows, or if I should be adding additional code if I plan to compile to .exe

There have been some relevant changes in the latest released pysnmp (4.3.3)... With which pysnmp version you are experiencing this crash? What pyasn1 version you are using? Are you packing the same pysnmp/pyasn1 versions into your PyInstaller executable?
The socket address conversion is probably happening here or here. It looks like this conversion is not really invoked so that serialized address (4+2 octets) is reaching the low-level socket code.

Here's the output of pip freeze
C:\Python34\Scripts> .\pip.exe freeze
future==0.16.0
pefile==2016.3.28
ply==3.10
pyasn1==0.2.2
pycrypto==2.6.1
pycryptodome==3.4.5
pyinstaller==3.3.dev0
pypiwin32==219
pysmi==0.0.7
pysnmp==4.3.3
If I downgrade to pysnmp version 4.3.0 and run the same code I will get the same TypeError without compiling to .exe
testtrap.txt

output of running script on 4.3.0
Notification is scheduled to be sent
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\pysnmp-4.3.0-py3.4.egg\pysnmp\carrier\asyncore\dispatch.py", line 37, in runDispat
cher
File "C:\Python34\lib\asyncore.py", line 212, in loop
poll_fun(timeout, map)
File "C:\Python34\lib\asyncore.py", line 159, in poll
write(obj)
File "C:\Python34\lib\asyncore.py", line 95, in write
obj.handle_error()
File "C:\Python34\lib\asyncore.py", line 91, in write
obj.handle_write_event()
File "C:\Python34\lib\asyncore.py", line 461, in handle_write_event
self.handle_write()
File "C:\Python34\lib\site-packages\pysnmp-4.3.0-py3.4.egg\pysnmp\carrier\asyncore\dgram\base.py", line 125, in handle
_write
File "C:\Python34\lib\site-packages\pysnmp-4.3.0-py3.4.egg\pysnmp\carrier\asyncore\dgram\base.py", line 25, in <lambda

TypeError: getsockaddrarg() takes exactly 2 arguments (6 given)


Page tree layout broken due to a translation override

Description
The layout of the admin page tree is broken:

the title of the "home" page, actions links and menu are hidden
on the children pages, collapse arrows are hidden or misplaced

This is caused by unintended overriding of translation of the string "Home" by a string containing a single quote ("Home" can be translated in french by "Page d'accueil").
This issue has been resolved in 2016, but resurfaced since then.

Steps to reproduce

in your project, add a translatable string "Home" (for example {% trans "Home" %})
translate the string with something containing a single quote (for example "Page d'accueil")

Expected behaviour
The admin  page tree is not broken.

Actual behaviour
The admin  page tree is broken.

Additional information
A quick fix might be to add a context on the "Home" translatable string in django-cms. Escaping single quotes might be a cleaner solution, but the {% filter espacejs %} that was present in 2016, has been replaced by {% autoescape on %} which does nothing with single quotes.

Next steps for this issue are to verify whether the issue still exists, if it is still an issue then propose a fix.

I am also having the described problem.
Versions:

django-cms: 3.8.0
django: 3.1.8

Problem is also a overriden "Home"-translation:
msgid "Home"
msgstr "À la page d'accueil"

I can fix that in the translation

in the French translation the string "Home" does not map to something with a quote in there (with that said we should really fix the escaped string ).
Can you check if you still have this issue on 3.9.0rc2 ?

in the last translations (on 3.9):
msgid "Home"
msgstr "Accueil"

The problem is still present and it's not because of the default translation for "Home" (as you pointed out, there is no single quote in there).
As long as you override "Home" with a string containing a single quote, the problem occurs.
That said: I made a workaround in my system by changing the translation from "Home" to something different (e.g. "foo Home"), then the page-tree works as it should.


feat: add linux aarch64 llvm target

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[ ] N
[x] Y

fix: https://github.com/kcl-lang/cli/issues/31

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[ ] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[ ] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2293

Relevant Lines:
2612

💛  - Coveralls


Allow numbers in ClassNaming.

Fixes #169

I ran build locally and I don't have any diff changes for the config file. Is there a difference between my computer (mac) and travis (linux)? I'm also unsure why the order was swapped.

Why did it change the detekt-config.yml file?

Good question. I guess the ordering is not really stable.

I've never had this problem before and I'm also on a Mac.


Heal breaks shield fix

About the PR
Fixes the problem of applying ointment to a damaged Urist wielding a shield utterly demolishing the shield. This problem was also causing the demolition of the shield when Urist was downed, gasping, and also wielding the shield. Both of these are fixed.
Also, fixes the problem of the stripping menu not being updated when the shield breaks.
Changelog

fix: Wonderous buckler destruction upon heal, as well as destruction of buckler upon taking asphyxiation damage whilst down and wielding shield.
fix: Broken shields not updating strip menu upon item destruction.

Closes: #10405
Closes: #10423

changelog is also not formatted correctly, needs a :cl:
check other PRs or the PR template to see how its done


Expose EfficientLength interface

This issue was originally filed by<EMAIL_ADDRESS>
EfficientLength is currently part of dart._internal, meaning third party collection libraries can't advertise their efficientness and performance suffers as a result.
Please share ;)

Any ideas where this might be headed, please?

We don't plan to expose the interface (so closing this issue).
We haven't decided either way on whether we will eventually make it possible to check if an iterable has an "efficient" length implementation (something that doesn't require iterating all the elements), but it definitely won't happen until Dart 2.0 since it changes the Iterable interface.


dynamic stateless components commit seems to introduce a compiler bug

Describe the bug
We tried switching to the surface master version today and we encountered something weird. When we do a clean compile all tests pass but when we run mix test a second time, there are failures. The failures are all related to essential assigns missing (things like the get assign in modules where context is used or capture_click for the Submit component. An example stacktrace:
   ** (exit) exited in: Phoenix.LiveViewTest.call(#Phoenix.LiveViewTest.Element<selector: "#_modal-video_name_modal > div", text_filter: nil, ...>)
         ** (EXIT) an exception was raised:
             ** (KeyError) key :capture_click not found in: %{__changed__: nil, __context__: %{}, __surface__: %{provided_templates: [], slots: %{default: %{size: 0}}}, class: ["inline-flex", "justify-center", "py-2", "px-4", "border", "border-transparent", "shadow-sm", "text-sm", "font-medium", "rounded-md", "text-white", "bg-indigo-600", "hover:bg-indigo-700", "focus:outline-none", "focus:ring-2", "focus:ring-offset-2", "focus:ring-indigo-500"], label: "Update"}
                 (surface 0.5.1) lib/surface/components/utils.ex:89: Surface.Components.Utils.events_to_opts/1
                 (surface 0.5.1) lib/surface/components/form/submit.ex:27: Surface.Components.Form.Submit.render/1
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/helpers.ex:508: Phoenix.LiveView.Helpers.__component__/3
                 (myapp 0.1.0) lib/myapp_web/live/video_live/show.ex:81: anonymous fn/3 in MyAppWeb.VideoLive.Show.render/1
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/diff.ex:370: Phoenix.LiveView.Diff.traverse/6
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/diff.ex:444: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/6
                 (elixir 1.12.3) lib/enum.ex:2385: Enum."-reduce/3-lists^foldl/2-0-"/3
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/diff.ex:370: Phoenix.LiveView.Diff.traverse/6
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/diff.ex:444: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/6
                 (elixir 1.12.3) lib/enum.ex:2385: Enum."-reduce/3-lists^foldl/2-0-"/3
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/diff.ex:370: Phoenix.LiveView.Diff.traverse/6
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/diff.ex:444: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/6
                 (elixir 1.12.3) lib/enum.ex:2385: Enum."-reduce/3-lists^foldl/2-0-"/3
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/diff.ex:370: Phoenix.LiveView.Diff.traverse/6
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/diff.ex:444: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/6
                 (elixir 1.12.3) lib/enum.ex:2385: Enum."-reduce/3-lists^foldl/2-0-"/3
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/diff.ex:370: Phoenix.LiveView.Diff.traverse/6
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/diff.ex:444: anonymous fn/4 in Phoenix.LiveView.Diff.traverse_dynamic/6
                 (elixir 1.12.3) lib/enum.ex:2385: Enum."-reduce/3-lists^foldl/2-0-"/3
                 (phoenix_live_view 0.16.4) lib/phoenix_live_view/diff.ex:370: Phoenix.LiveView.Diff.traverse/6

We tried each commit since 0.5.2 and we found out that the problem occurs from this commit: https://github.com/surface-ui/surface/commit/09cd5b495842321d0be909beb3532abd337cadf5. I haven't had the time to see if I can reproduce it in isolation but I thought someone might already have an idea what's going on by looking at the commit in question.
Your Environment
Surface: 09cd5b495842321d0be909beb3532abd337cadf5
LiveView: v0.16.4
Elixir: v1.12.4

Just guessing here, but isn't maybe this line the cause of the issue: https://github.com/surface-ui/surface/commit/09cd5b495842321d0be909beb3532abd337cadf5#diff-ae4237693e1d6b02e7b564f63e253ae4765c89cad33534fdd0fd032a764a9a62R205 Shouldn't there always be some props? (i.e., the surface internal props)

Hi @dvic!
It could be but even if that's the case, it should always break the tests, not only when running them for the second time. I still need to investigate that. I could be a race condition during compilation while introspecting information about the component or the lack of a require to enforce a compile-time dependency in the caller code.

Oh wait, but now the problem is also present when running the app:

Anyways, this repo definitly reproduces it, hopefully it's broken on your machine as well 😅


The issue encountered with manual control using the steering wheel is as follows:

In manual control, both controller="keyboard" and controller="joystick" work fine. However, controller="steering_wheel" and controller="xbos" encounter issues.
The version number I am using is <IP_ADDRESS>.
The encountered issues are as follows:
Known pipe types:
wglGraphicsPipe
(all display modules loaded.)
Traceback (most recent call last):
File "E:/metadrive/metadrive-MetaDrive-<IP_ADDRESS>/metadrive/examples/drive_in_single_agent_env.py", line 59, in
raise e
File "E:/metadrive/metadrive-MetaDrive-<IP_ADDRESS>/metadrive/examples/drive_in_single_agent_env.py", line 39, in
o = env.reset()
File "E:\metadrive\metadrive-MetaDrive-<IP_ADDRESS>\metadrive\envs\base_env.py", line 380, in reset
self.engine.reset()
File "E:\metadrive\metadrive-MetaDrive-<IP_ADDRESS>\metadrive\engine\base_engine.py", line 259, in reset
manager.reset()
File "E:\metadrive\metadrive-MetaDrive-<IP_ADDRESS>\metadrive\manager\agent_manager.py", line 114, in reset
config_dict=self.engine.global_config["target_vehicle_configs"]
File "E:\metadrive\metadrive-MetaDrive-<IP_ADDRESS>\metadrive\manager\agent_manager.py", line 70, in _get_vehicles
self.add_policy(obj.id, policy_cls, obj, self.generate_seed())
File "E:\metadrive\metadrive-MetaDrive-<IP_ADDRESS>\metadrive\manager\base_manager.py", line 94, in add_policy
return self.engine.add_policy(object_id, policy_class, *policy_args, **policy_kwargs)
File "E:\metadrive\metadrive-MetaDrive-<IP_ADDRESS>\metadrive\engine\base_engine.py", line 72, in add_policy
policy = policy_class(*args, **kwargs)
File "E:\metadrive\metadrive-MetaDrive-<IP_ADDRESS>\metadrive\policy\manual_control_policy.py", line 38, in init
raise ValueError("No such a controller type: {}".format(self.config["controller"]))
File "E:\metadrive\metadrive-MetaDrive-<IP_ADDRESS>\metadrive\utils\config.py", line 205, in getitem
self._check_and_raise_key_error(item)
File "E:\metadrive\metadrive-MetaDrive-<IP_ADDRESS>\metadrive\utils\config.py", line 194, in _check_and_raise_key_error
key, self._config.keys()
KeyError: "'controller' does not exist in existing config. Please use config.update(...) to update the config. Existing keys: dict_keys([])."
Process finished with exit code 1

Could you use the latest MetaDrive? It is hard for us to debug and add any fix to an out-of-date release


Restoring pre-trained model error

Hi! I'm trying to use pre-trained model, but I get the following error during restoring:
NotFoundError: Tensor name "incept4a/in1_conv1x1_75/batch_norm/cond/incept4a/in1_conv1x1_75/batch_norm/moments/moments_1/mean/ExponentialMovingAverage" not found in checkpoint files model-20160506.ckpt-500000

Can you help me with this?

Hi!
Sorry for the delayed response...
Which revision of the facenet repository are you running?
From the error message it looks like a tensor name between the stored model and the creation of the network differs.
I just tried with the latest and that one seems to work fine.

Hi, David!
Thank you, it works now. I would also like to ask some questions about the implementation details. Do you have time? Should I do it here in the comments? Or email/skype/facebook is better?

Hi,
Great that it works!
Feel free to ask questions in this thread.

The main question is about training loop here.

On line 147 you start iterating over the epochs and for every epoch you call train() function.
On line 175 you start iterating over the batches
but for some reason from line 202 you iterate over batches again.

Why do you need to iterate over batches inside every batch iteration?

This is a little confusing in the code and has to do with the fact that the facenet paper uses a batch size of 4045 examples. But this requires quite a bit of GPU memory and to still be able to train using 4045 examples the batch is split into fragments and processed sequentially in the code.

Got it. Thanks. Have you tried smaller batches? Does it dramatically affect the performance?

Okay. Thanks for all the comments.