Django 2.2 compatibility

Hey there,
Just wanted to let you know there are a couple compatibility issues with Qsessions and the freshly released Django 2.2. I've raised a couple of tickets over at the Django bug tracker:

https://code.djangoproject.com/ticket/30311
This is fixed by PR #3.
https://code.djangoproject.com/ticket/30312
The workaround is to just not replace django.contrib.sessions with qsessions within INSTALLED_APPS, but to add it instead, but as noted in the Django ticket, this will have the side effect of an unused django_session table being created.

Hi @akx,
I merged PR #3. I updated tests for Django 2.2 in django-2.2 branch. I also added a test for system checks.
I will merge django-2.2 and release a new version as soon as https://code.djangoproject.com/ticket/30312 is fixed.
Thanks for submitting tickets to Django bug tracker.

Hi @akx,
Merged django-2.2. Thanks for your help :+1:


Add PCIe configuration fuzzer

This PR is built on top of https://github.com/SymbiFlow/prjxray/pull/1543 and adds the PCIE_2_1 primitives' configuration fuzzer and addresses https://github.com/SymbiFlow/prjxray/issues/1541.

@litghost rebased on master. Here is the last succesful CI log with the new PCIE configuration bits.

@litghost rebased on master. Here is the last succesful CI log with the new PCIE configuration bits.


test: refactored to support array of tests

moved most of the deploy and run logic into gqltest.js and converted individual Test.js files to specify queries to test in an array and then invoke the deployAndRun function from gqltest.

I've never seen a test abstraction quite like this before! But it works. My feedback is that we need to describe more of what's going on in the test object labels, so for example a { label: "restquery(q,v)", (line 10 in restWithParameters/tests/Test.js results in
  rest/restWithParameters
deploying undefined from /Users/luciacerchie/snippets/rest/restWithParameters/tests
    2) restquery(q,v)

where a developer familiar with JS testing might expect output more like
  rest/restWithParameters
deploying undefined from /Users/luciacerchie/snippets/rest/restWithParameters/tests
    2)   ✓ should correctly run the query with both q and v fields

The other thing is a broader question with respect to the abstraction. Will it adapt well to negative cases? That is, I see tests for 200s that throw errors when other codes are surfaced. Will we be able to adapt the abstraction to cases in which we're looking for that the correct error is thrown?
The other question is, how would we test things like mutations that need clean up if we're running against the actual schemas? Should we use mocks? Maybe a discussion for a later day.

The other thing is a broader question with respect to the abstraction. Will it adapt well to negative cases? That is, I see tests for 200s that throw errors when other codes are surfaced. Will we be able to adapt the abstraction to cases in which we're looking for that the correct error is thrown?

I think this is designed around that fact that 90% of test cases are going to be expecting no errors.
There's nothing stopping additional tests being added in specific cases, including negative, e.g. 401 status, that use chai directly, this is simply saying remove the boilerplate in 90% of test cases.


Add SharedArrayBuffer example perf test

Motivation
SharedArrayBuffer is another tool in our toolbelt for handling cross-thread communication. It's worth benchmarking a simple example to see what the performance characteristics look like.
Description
Add perf test testing sending a Status message across a MessageChannel vs sending via SharedArrayBuffer
Using SharedArrayBuffer to pass a Status is much faster, seemingly because ssz is faster than structuredClone.
  SharedArrayBuffer vs MessageChannel
    ✔ set and get status - MessageChannel                              1.268392e+8 ops/s    7.884000 ns/op   x1.039     141832 runs   1.31 s
    ✔ set and get status - SharedArrayBuffer                           5.467469e+8 ops/s    1.829000 ns/op   x1.022     779467 runs   1.82 s
    ✔ serialize/deserialize status - structuredClone                   1.637465e+8 ops/s    6.107000 ns/op        -     168109 runs   1.21 s
    ✔ serialize/deserialize status - ssz                               6.265664e+8 ops/s    1.596000 ns/op        -     684291 runs   1.62 s

lib2p worker PR is merged, and we don't have plans to use ShareArrayBuffer there


Fix: swap with 0x

Checklist

[ ] I have read the CONTRIBUTING guide
[ ] Good naming (as clear and simple as possible)
[ ] Correct behavior if external API endpoints are down, return 404, 504 (or no answer), 401 errors (ddos simulation)
[ ] I tested desktop/mobile resolution
[ ] I tested light/dark theme
[ ] I tested different languages
[ ] I checked the functionality once again (AFFECT MONEY)
[ ] I checked the work on the Testnet
[ ] I checked the work on the Mainnet
[ ] I checked the work in the plugin
[ ] I checked the PR once again

Tests
Please start auto tests as follows:

add a label swap test to start swap tests
add a label withdraw test to start withdraw tests

You can skip these tests if you completely sure that your changes aren't related to this functional
Original issue
#5211
Video / screenshot proof

401 отдает сейчас , вставь свой по дефолту

Recreated in #5237


add other language

I want to fork this repo and add Persian search to it can you guide me what files should be added and what changes is needed

same here. want to add Korean


Job shell refactoring

Could you provide some motivation of this refactoring? Is it some preparation for implementing job shell without Porto?

Could you provide some motivation of this refactoring? Is it some preparation for implementing job shell without Porto?

Exactly

I have discussed it with @abogutskiy in personal chat, but for transparency also note it here: current code is not compiling:
ld.lld: error: undefined symbol: NYT::NShell::CreatePortoShellManager(NYT::NShell::TShellManagerConfig const&, NYT::TIntrusivePtr<NYT::NContainers::IPortoExecutor>, NYT::TIntrusivePtr<NYT::NContainers::IInstance>)
>>> referenced by user_job.cpp:698 (/-S/yt/yt/server/job_proxy/user_job.cpp:698)
>>>               user_job.cpp.o:(NYT::NJobProxy::TUserJob::InitShellManager()) in archive yt/yt/server/job_proxy/libyt-server-job_proxy.a

I have discussed it with @abogutskiy in personal chat, but for transparency also note it here: current code is not compiling:
Have fixed all linker errors. Sorry I was a bit in a rush to push all the changes, and building the whole yt on a personal vm is quite a challenge. I have checked the new version, and also rebased all the new changes from upstream/main.

I've just moved the functions that will be common for two shell implementations to base classes as is. The pr was merged by piglet, so I'll fix the issues in separate PR. I don't have a powerful linux vm, so it will take a while. Is it ok if I prepare PR till the end of this week? @maxim-babenko

Yes, it's ok

https://github.com/ytsaurus/ytsaurus/pull/743


selected files show without scrolling

What feature or improvement do you think would benefit Files?
well, I am not sure if it a called a feature, but when you open a file from other programs like FDM (free download manager) obviously Files will open and auto-select it BUT I have to scroll up or down god knows!
Requirements

nothing really just make the auto-select from other apps show and no need for scrolling like how MS file explorer behaves.

Files Version
<IP_ADDRESS>
Windows Version
10.0.22621.1265

Merging with #6382


Error thrown when running mutlible NINA instances

Hello Tom,
I heavily use your great plugin, which is extremely helpful. Thanks a lot for this great little helper :)
But there is a severe issue when running multiple instances of NINA on one device. Each instance try tries to start the web server on the same port. Disabling in one instance in its profile automatically disables also the other instance. It is also not possible to assign different ports to the instances. Moreover you crash the first instance when opening he second. Also it causes some weird errors. e.g. see below. This error was thrown by the same NINA instance.
Possible solution: Store server information along with the profile and use per profile individual settings.
Many thanks in advance!
Rüdiger

Rüdiger - thanks for kind words and glad it's useful!  It's a fun plugin - I've had a good time writing it.
To be honest, the plugin isn't really setup to support multiple running instances of NINA.  My original thought was that just setting a different HTTP server port for each instance would work.  However, thinking about it some more and looking at the code, I see why you're having problems.  Let me give this a bit of thought and get back to you.
But I'm very concerned that you're seeing actual crashes of NINA since I try to shield NINA from any problems that might occur in the plugin.  Can you send me a log, preferably at Debug level?  DM me (tcpalmer) in Discord if that's quicker.

Hi Tom,
many thanks and: yes! your Plugin is used by all my local AP friends here. I gave them a short intro to it and all were happy with it.
MY use case:
I use the second instance only to run the AF on the guiding scope. Actually I close the second instance after focusing and hand over to PHD2. But the problem is, just by opening the second NINA instance it tears down the web server from main instance, which starts much earlier to fire up all the devices and start the preparations like cooling. Unfortunately I cannot switch the web server on and off via instruction in the sequence.
So I always end up with an stalled web-server on the main instance and the session I see is that from the guide scope: Start, AF, End. That's all.
I think the easiest ways would be to store a dedicated port for each instance. I think this could solve the problems.
Once again: A great plugin and please keep on enhancing it. You have some fans :)
E.g. I use it in the gym during workout to check weather all is running fine. Only what I have noticed: Safari on iPhone falls back to the start screen when trying to display Bin1x1 of the full frame ASI, Smaller images e.g. Bin2 cause no problem. On the tablet also Bin1 is displayed. Looks like an over flow on client side.  But no big deal. But maybe good to know.
Again - many thanks again for your effort!
Cheers
Rüdiger

A couple of things:

Correct: the plugin is saving its current settings (including the port), but it's NINA-wide, not specific to a profile.  That's doable - just need to do it.
Just properly handling two HTTP servers on different ports isn't the entire problem.  There is code that tries to cleanup old session histories.  When you start the second instance, it treats the session history for the first instance as old and deactivates it (at best), or removes it altogether if it only had a NINA start event and nothing else.
For this use case, I'm thinking to expand the Enabled switch to support OFF, ON, and SHARE.  If ON, I'm the instance that's running the HTTP server.  If SHARE, I'm active (tracking events) but I won't start an HTTP server.  The web client won't care - it would be able to connect to the active port and view either active session history.  And in the client you'd see both and would have to distinguish by start time.  How does that sound to you?
Another thing that makes me lean towards the above approach is that the next release will add plotting of PHD2 tracking data.  To do that, you connect to PHD2 (just like NINA does) and watch for events.  Just as it makes little sense to run two web servers at the same time, it's redundant and wasteful to track PHD2 twice so the sharing approach works for this too.

For your immediate problem, it sounds like your second instance to do AF on guide scope is short-lived.
Or if you do, then stop that NINA instance before starting your main instance.

A couple of thoughts on the Safari problem:

In the Web client Settings (gear icon), you can reduce the image scale which defaults to .75.  That will reduce the size of the web-ready image that the plugin creates before it's sent to the client.  That might fix it.  Each browser you use will remember the setting.
I'd be happy to debug to see if there's a fix.  If you zip up your %localappdata%\NINA\WebPlugin folder and also provide at least one of the original full-size images that's causing the problem, I can try it.

Thanks!

Hi Tom,
thanks for the detailed answer. Very much appreciated.
For my use case it would be sufficient, that I can switch off one instance and keep one on. But the problem is, what ever I set, will automatically also valid for any Instance I start. Hence the workaround is not working:
The main sequence starts 45 to 60 minutes minutes before the AF sequence of the guider during dusk. If I start the main with web server on, since I want to supervise it, the second instance comes also up with active web server, and crashes the main instance.
The other way round: If I start the main wo web, then AF comes up also wo web and there would be no conflict - but I have also no web for the main, since I cannot automatically start the web after AF has finished. Moreover I would loose all info before finishing AF. The web log would be truncated.
I will test as soon as possible and give feedback. I hope the Bin1 session is not already behind the event horizon.... In worst case I will create a quick test session, but I'll need a bit of time. Tonight the system is active.
Again, many thanks for your perfect support. Thumbs up!
Rüdiger
This is the mutual dead lock situation for which I found no solution for weeks now.

Just checked. The session with Bin1 was already deleted, due to the many starts of NINA and the web server always active. But I found one log from the night of Bin1. Unfortunately I cannot attach it :(
So I paste directly. Is it helpful if I provide one of the full frame fits?
08:31:27.927 INF >> [WebServer] [582jXjWOc0a2eY5JmJ7lCg] GET /apple-touch-icon-120x120.png: "404 Not Found" sent in 1ms (0 bytes)
08:31:27.937 INF >> [WebServer] [LeNuQawLjECNTACrWdRN5g] GET /apple-touch-icon.png: "404 Not Found" sent in 1ms (0 bytes)
08:31:27.943 INF >> [WebServer] [Qvqnt81HIkCLgW/Sa0d0Sg] GET /apple-touch-icon.png: "404 Not Found" sent in 2ms (0 bytes)
08:31:27.936 ERR >> [WebServer] [LeNuQawLjECNTACrWdRN5g] HTTP exception 404
$type           : EmbedIO.HttpException
StatusCode      : 404
Message         : Exception of type 'EmbedIO.HttpException' was thrown.
TargetSite      :
System.Threading.Tasks.Task ThrowNotFound(EmbedIO.IHttpContext, EmbedIO.Files.MappedResourceInfo)
StackTrace      :
at EmbedIO.Files.FileRequestHandler.ThrowNotFound(IHttpContext context, MappedResourceInfo info)
at EmbedIO.Files.FileModule.d__53.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at EmbedIO.WebModuleBase.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at EmbedIO.HttpExceptionHandler.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at EmbedIO.WebModuleBase.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at EmbedIO.Internal.WebModuleCollection.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at EmbedIO.WebServerBase1.<DoHandleContextAsync>d__41.MoveNext()     Source          : EmbedIO     HResult         : -2146233088  08:31:27.927 ERR >> [WebServer] [582jXjWOc0a2eY5JmJ7lCg] HTTP exception 404     $type           : EmbedIO.HttpException     StatusCode      : 404     Message         : Exception of type 'EmbedIO.HttpException' was thrown.     TargetSite      :          System.Threading.Tasks.Task ThrowNotFound(EmbedIO.IHttpContext, EmbedIO.Files.MappedResourceInfo)     StackTrace      :          at EmbedIO.Files.FileRequestHandler.ThrowNotFound(IHttpContext context, MappedResourceInfo info)         at EmbedIO.Files.FileModule.<OnRequestAsync>d__53.MoveNext()         --- End of stack trace from previous location where exception was thrown ---         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)         at EmbedIO.WebModuleBase.<HandleRequestAsync>d__20.MoveNext()         --- End of stack trace from previous location where exception was thrown ---         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()         at EmbedIO.HttpExceptionHandler.<Handle>d__8.MoveNext()         --- End of stack trace from previous location where exception was thrown ---         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)         at EmbedIO.WebModuleBase.<HandleRequestAsync>d__20.MoveNext()         --- End of stack trace from previous location where exception was thrown ---         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()         at EmbedIO.Internal.WebModuleCollection.<DispatchRequestAsync>d__3.MoveNext()         --- End of stack trace from previous location where exception was thrown ---         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)         at EmbedIO.WebServerBase1.d__41.MoveNext()
Source          : EmbedIO
HResult         : -2146233088
08:31:27.911 ERR >> [WebServer] [0hw2UIh05ECIMgLkhvPIfw] HTTP exception 404
$type           : EmbedIO.HttpException
StatusCode      : 404
Message         : Exception of type 'EmbedIO.HttpException' was thrown.
TargetSite      :
System.Threading.Tasks.Task ThrowNotFound(EmbedIO.IHttpContext, EmbedIO.Files.MappedResourceInfo)
StackTrace      :
at EmbedIO.Files.FileRequestHandler.ThrowNotFound(IHttpContext context, MappedResourceInfo info)
at EmbedIO.Files.FileModule.d__53.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at EmbedIO.WebModuleBase.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at EmbedIO.HttpExceptionHandler.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at EmbedIO.WebModuleBase.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at EmbedIO.Internal.WebModuleCollection.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at EmbedIO.WebServerBase1.<DoHandleContextAsync>d__41.MoveNext()     Source          : EmbedIO     HResult         : -2146233088  08:31:27.943 ERR >> [WebServer] [Qvqnt81HIkCLgW/Sa0d0Sg] HTTP exception 404     $type           : EmbedIO.HttpException     StatusCode      : 404     Message         : Exception of type 'EmbedIO.HttpException' was thrown.     TargetSite      :          System.Threading.Tasks.Task ThrowNotFound(EmbedIO.IHttpContext, EmbedIO.Files.MappedResourceInfo)     StackTrace      :          at EmbedIO.Files.FileRequestHandler.ThrowNotFound(IHttpContext context, MappedResourceInfo info)         at EmbedIO.Files.FileModule.<OnRequestAsync>d__53.MoveNext()         --- End of stack trace from previous location where exception was thrown ---         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)         at EmbedIO.WebModuleBase.<HandleRequestAsync>d__20.MoveNext()         --- End of stack trace from previous location where exception was thrown ---         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()         at EmbedIO.HttpExceptionHandler.<Handle>d__8.MoveNext()         --- End of stack trace from previous location where exception was thrown ---         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)         at EmbedIO.WebModuleBase.<HandleRequestAsync>d__20.MoveNext()         --- End of stack trace from previous location where exception was thrown ---         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()         at EmbedIO.Internal.WebModuleCollection.<DispatchRequestAsync>d__3.MoveNext()         --- End of stack trace from previous location where exception was thrown ---         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)         at EmbedIO.WebServerBase1.d__41.MoveNext()
Source          : EmbedIO
HResult         : -2146233088
08:31:31.398 INF >> [WebServer] [ysQkkFVlDUWnaBbEmaIruQ] GET /sessions/20220325-202405/sessionHistory.json: "200 OK" sent in 2ms (5583 bytes)
08:31:31.410 INF >> [WebServer] [db/0XLIs1U+ALbK1zn5cBA] GET /sessions/20220325-202405/sessionHistory.json: "304 Not Modified" sent in

That looks like a web server log.  What I need is a zip of the entire %localappdata%\NINA\WebPlugin folder plus one full sized FITs file.

No problem: Here we are: https://ufile.io/acrg3pp6

Great thanks- will check in the morning, done thinking for the day ;)
On Thu, Apr 28, 2022 at 5:45 PM Rüdiger @.***> wrote:

No problem: Here we are: https://ufile.io/acrg3pp6
—
Reply to this email directly, view it on GitHub
https://github.com/tcpalmer/nina.plugin.web/issues/9#issuecomment-1112682077,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACBBCI4T46R55LKFD6OQX7TVHMBHJANCNFSM5UTIE67A
.
You are receiving this because you commented.Message ID: <tcpalmer/nina.
@.***>

me too! Sleep well :)

Regarding your web client problem when viewing the large image - yes, it's because it's large ;)  I can duplicate the problem in Chrome on my iPhone at 75% image scale and at 100% scale on my iPad.  The 75% web-ready image is 26MB so not too surprising - likely just a memory problem.  On the iPhone, it still fails at 50% but works at 33% so that should be a good work around for you.  The image creation on the server side will be quicker too.

Hi Tom,
thanks for checking and confirming. I will scale it down, when shooting in Bin1.
CS
Rüdiger

Ruediger -
I've got a pre-release version for you to try out.  This version supports a new SHARE option for plugin state, described in the plugin page description.  Basically, you would run your primary NINA instance in ON mode and the second one in SHARE mode.  Both sessions will be visible and live in the web client.  Also, plugin options are now saved per NINA profile.  Give a try and let me know if that works for you.  If you have problems, please run both instances in Debug log level and provide the logs.
Download from https://github.com/tcpalmer/nina.plugin.web/releases/tag/v<IP_ADDRESS>-pre

Hi Tom,
sorry for my late answer, but I had to set up a test environment since the observatory cannot be used due to bad weather.
I have installed and tested as advised and it works! So far no flaw detected. I ran two instances with ASCOM simulator and both sessions were shown. You only have to be very careful which session is which instance. Is there a chance to display the profile name on top of the page?
One thing needs to be checked: What happens if accidentally to instances with "on" get started and you correct the settings. Is the already longer running instance "corrupted" as in the older version?
Anyway, many thanks for the quick help and great solution. Very much appreciated!
Best wishes
Rüdiger

Rüdiger -
There shouldn't be any problems or corruption from switching the state back and forth since 'HTTP server running' (ON) and 'actively capturing events' (ON or SHARE) are separate things.  And each NINA instance is saving to a completely different session history directory.
Adding profile name is easy and generally useful - grab https://github.com/tcpalmer/nina.plugin.web/releases/tag/v<IP_ADDRESS>a-pre to try it.
Here's a sample:

Hi Tom,
I need your help, I don't get the plugin loaded. I have unzipped all files to Plugin folder but NINA refuses to load it.
Ruediger

Oops!  Bad zip.  Create a new folder there called 'Web Session History Viewer' then move dist and those 3 DLLs into it.  Restart NINA.

Hi Tom,
now it was working. Profile gets properly displayed.
One minor suggestion: Showing the date in international ISO format YYYY-MM-DD would be better.
Thank you!
Cheers
Rüdiger

Yeah I've been waiting for that request ;)  I need to check the browser locale and invoke the appropriate converters.  I'll take a look but this might be something that waits for the next release since I've got a vacation starting next week.  We'll see.
I think I'll hold on this release for a couple of days in case you get a chance to do any more real testing.  Let me know if you find any issues.  Enjoy!
Tom

Rüdiger -
Turned out to be pretty easy to display dates based on user's locale.  Assuming you're in Germany (jumping to a conclusion based only on your name), your dates should display as 22. April 2022 in the Sessions menu and session header, and 22.4.2022 (dd.mm.yyyy) in short form in the various chart tooltips.  In the US, mine display as 'April 22, 2022' and '4/22/2022'.  Give it a try and let me know what you think.
https://github.com/tcpalmer/nina.plugin.web/releases/tag/v<IP_ADDRESS>b-pre
The zip should be correctly structured this time.

Hi Tom,
you are right - I am from Germany. :)
I prefer to have it always in international ISO format YYYY-MM-DD since only by that a proper sort order is ensured. Also I use different machines with different locals, since some SW has a hick up when using "," instead of "." as decimal separator. There fore I have used almost switched to international ISO date and time formats and avoid using any local settings. This simply avoids trouble. Also when posting screenshots, logs, etc... Same with time AM/PM also UTC and many more.
Of course this is not a big thing, but I'd always prefer international exchangeable formats.
Once again, many thanks for all your patience and efforts.
Cheers
Rüdiger

The sort order in the sessions drop-down won't change since it's based on the session key which is yyyymmdd-hhmmss.  Also, I didn't localize times since that would use the local time zone conversion and might get weird - so times will always reflect what was originally set by NINA.  I think even ISO dates can be a bit confusing with mm/dd vs dd/mm on different sides of the Atlantic.  And built-in localization makes it easy to support pretty much anything - see Tokyo and Mumbai examples below.
I think I prefer to stick with this for now and we'll see what the broader NINA user community thinks.  If there's more interest to just go ISO, it's easy to switch back.  Thanks for all your feedback!

Hi Tom,
ISO format is always YYYY-MM-DD  e.g. "2022-05-03 14:31:12 " worldwide. therefore we use it for all international projects. Also the ISO format is defined for all databases from all vendors and SW libraries.
This is not localized in any way in any region.

Hey -
I posted to https://discord.com/channels/436650817295089664/854531935660146718 and asked users what they thought about this.  I've got your vote but please feel free to weigh in :)

Thanks a lot! One idea: What about make the format select able in the options?
PS: Thanks for the invite to discord, but I share a deep depreciation of Discord like many users. I have tried it a couple of times, but I never got a friend of it or felt comfortable. Let's see what comes out of the poll.
Thanks!
Rüdiger

Update: Voted :)
But still hate Discord :D
Rüdiger

You may win the vote by 1-0 ;)  I thought about making it an option but I think the number of users who actually check the settings - despite pointers in the documentation - is vanishingly small.
I hear you about Discord.  The first time I posted, I heard nothing back (of course it was for a Nikon issue).  The second time I was told that my plugin use case just wasn't his use case so therefore not valuable.  This was for what became Session Metadata which I think is reasonably popular and useful.  Not going to name names but you might well know who I'm talking about.  I feel 100% certain that Stefan hears frequently about this individual and I think he periodically gets banned, at least temporarily.  Very unfortunate, especially for new users and those who could contribute a great deal.
That being said, you can still use Discord to direct-message me or anyone else without getting into the channels.  Certainly the quickest way to communicate with me.

Many thanks for this kind offer. I will make use of it.
80% of my global Astro community I know refuse Discord. The prefer to live with a bug, or suppress their needs, before entering Discord. I think Discord is the completely wrong tool for requirement engineering. Information is hard to find. Also I prefer asynchronous communication due to work etc. But it is Stefan's baby and I respect that. Nevertheless I hate Discord from the bottom of my heart and try not to use it. I use Bitbucket or Github instead. This is much more structured and issues/requests are much more traceable. For an IT pro Discord as capital punishment and makes me feel crying.
I am the only here how has even a Discord account. All my other friends refused to use. I had to :( I would love to delete this account.
I know how you must have felt. But I also had bad experience on Bitbucket. Sometimes the tone is very rude and repels many.
Well, that that: 1-0 is also a win LOL

Hmmm ... now 3-0.  Still holding out hope that when the sun next sets in Asia, those users will get on and vote for locale ;)
I agree that Discord isn't a requirements evaluation or tracking tool - not at all.  It's really just to facilitate communications like Slack or Teams.  When it works, I think it can be great at helping with community building.  I think the lean for younger generations (and gamers) is to go with tools like Discord instead of forum approaches like CN.  To your point, things like CN are much more traceable, searchable, etc and of course CN is extremely successful and a pretty awesome resource.  I don't know if Stefan has thought about doing that in addition to Discord.  But it would be tough to keep two such communities both active and vibrant.
One thing that I've seen Discord do really well is to facilitate very fast iterations with developers to move the product forward quickly - agile development with an open, distributed set of users.  The past 2-3 months of Hocus Focus development has been nuts and truly shows the power of an open source approach.  Like many NINA users, I came from SGP and just got sick of the circa-2002 Windows UI and couldn't take it anymore.  I'd guess that the SGP, Voyager, etc developers are more than a little concerned now about the future when they see how fast NINA is improving.
So is your primary issue with Discord that it isn't the right tool for the job?  Or is it the (sometimes) toxic nature of some of the people and interactions?

Tom

Hi Tom,
I think it still scores 3-0 ... I clear win :)
Yes, I think NINA is on the best way to get dominant. I have evaluated Voyager, APT, SGP and INDIGO. I ended up with NINA for some good reasons. What I do like is the sequencer and the ability to modify running sequences. It contains 95% what I need. I have also donated a small amount of money, But I dislike the the communication of some team members. If they do not share your opinion they get very unpleasant. They are not willing to listen to your arguments, regardless how god they are. They only accept their point of view. Some NINA guys (not Stefan) tend to refuse good arguments but try to push over their thinking to the user's need. Right the opposite you were reacting to my feedback, which I deeply appreciate. I was real positive experience. This was also the reason I have chosen GitHub to address my issue.
Why not Discord:
It is a chat tool. This may be good for giving user help interactively. For that it will work fine. But for requirements it is simply unusable. It is like putting in screws with a hammer: Wrong tool!
And even for support it is limited since a solution for an already speared problem is hard to find, since information is sorted by timeline and not topic wise. The search function is no help at all. It contains only fragmented information and the channels only cluster the mess. It is simply a pool of un-clustered, not sorted and un-tagged information.
For Bugs/Problems/Requirements you need a system, where you can classify, tag, and trace the items. Also to assign it to a role. Including notification. But exactly what is the strength for Discord - real time communication - is not needed for that purpose at all. Therefore it is an epic fail to use that for this purpose.
Also if I describe an requirement it needs good text (PH). This is not done in a few lines Discord. You need description, text, use cases and many more. And after posting that I have to stay online and wait for someone to reply. Actually I do not have time sit there and wait for a potential reply and after some time it is beyond the "event horizon" because other posted something in between. This is highly inefficient. For both sides.
Conclusion:
Discord is a communication tool, but neither an information hub, nor a requirement tools nor a aid beyond quickly chatting with someone. This is a painful abuse of a tool. Hammering on screws.
I hope you understand why I dislike this so much...
Cheers
Rüdiger

Yep - the people have spoken, ISO it is ;)
I was doing some final testing and discovered a couple of problems that I want to fix and I'm seriously puzzled about one of them.  I'm also leaving on vacation soon and don't want to release a version that might have stability issues when I'd have no way to address them quickly.
But I'm more than happy to get you a clean build with ISO dates if you like.  The main problem is that an AF performed in one NINA instance will show up in both session histories.  The other problem is some weird cross talk where a dome close event in one showed up in the other (no clue about that yet).  But neither of those issues is breaking basic operation.  Let me know.
Re: Discord:

I truly don't think that many users think of it as a requirements processing tool.  Sometimes suggestions are hashed out but Stefan usually pushes people to open a real issue where it can be vetted, tracked, etc properly.
At least a portion of the blunt push back on some suggestions is due to Stefan needing to maintain conceptual control over his baby.  That's a good thing - no software can or should be all things to all people.  Otherwise you get MS Word.
NINA is really for DSO imaging with dedicated astro cameras but that's not made explicit on the NINA home page.  Many users appear on Discord for the first time asking about some random DSLR or planetary imaging and they're either ignored or not really helped.  I think Stefan should make the NINA focus explicit.
A surprising number of people show up on Discord asking people to solve their problems and they really haven't done any research or experimentation on their own.  AP is complex and no one learns it without doing the research and thinking for themselves.  I can understand some lack of patience with these people.
Reasonable people can have reasonable disagreements.  For example, I think some of the fundamental UI of NINA needs polishing by a UX pro.  I brought up one of these and Stefan didn't agree ... so be it.

But of course none of that excuses the toxic behavior from some of the devs (one in particular).  I've thought about DMing Stefan and discussing this but need to think about that some more.  There's no way I'd be the first to bring this up - he has to be completely aware of it.
In any case, feel free to keep using github to communicate with me.

Tom

Hi Tom,
sure I can test such a pre-version and let you know my findings too. I can do some testing, if the weather will allow me. The dry runs are only of limited use. But sure! I will support you as good as I can.
Thanks also coming back on the topic of Discord. You are definitely right with many points. Well, I had some good arguments and valid feature requests but some of them were wiped away by one person - probably the same you mean. I felt really upset by his ... behavior. Simply terrible. But I also agree: Some conceptual leadership and guiding is needed. NINA is neither a tool for DSLR, nor a Lucky Imaging.
Please be so kind pack a new zip and I will do my tests. I benefit from that also, since as said, your Plugin fills an important gap. I had suggested some time ago almost identical functionality within NINA too - but ... So it is in my own interest to support you.
Thanks a lot in advance!
Rüdiger

Give it a try: https://github.com/tcpalmer/nina.plugin.web/releases/tag/v<IP_ADDRESS>c-pre
Another thing that the plugin does is try to cleanup when NINA is stopping:

Remove any 'empty' sessions.  The way the plugin works, it will create a new session history as soon as the plugin starts - regardless of whether the state is ON or SHARE.  (Don't ask why this is done but it solved several problems.)  In any case, if nothing happens in NINA during that session of interest to the plugin, then the session history is 'empty' and the plugin will remove it.
We also need to remove the 'active' flag on sessions since they're no longer live (this is what shows the 'live' badge in the web client and causes it to check for changes every 10 seconds.)

If you're running another instance of NINA, we don't want to do either of these operations - so now only the last instance running will perform the cleanup.  If you see any strange behavior with empty sessions or sessions that shouldn't be live, let me know.
Enjoy!

Many thanks! I will give it a try and report any issue  - and also further ideas :)
So far, do good:  I wish you a happy vacation. Enjoy the time :)
Thanks a lot!
Rüdiger

Hey Rüdiger -
I usually don't do much AP as daylight lengthens but will start to ease back into it - and plugin work - now that the solstice has passed.  I wanted to check in with you and see if that version of the web plugin has been working well and to see if you have any other suggestions.  I need to officially release that and update all of mine to the official NINA 2 libs.  Let me know - thanks.

Tom

Hi Tim,
yes it is fine now. Many thanks!
Rüdiger


Create Labels to Map Dev Issues to Research Projects and Grants

Goal is to help devs understand why they are working on certain features and how important/urgent those features are. This can also be used to manage research projects more effectively.
We want to provide transparency to the devs of how their work ties into research goals and research projects. These should labels. Like tagging Singularity as halfpipe.
Can help relate dev tasks to grant deadlines, paper submission deadlines, and conference deadlines as well as timelines coordinating with other groups. These should be milestones.
This can help aid in requirements analysis so we know user needs.
Evangelizing our impact such as all of the research papers we've been a part of - a continually updated list of concrete accomplishments to celebrate
Gather a list of upcoming deadlines as well as any in progress research we are supporting.
Send a blast out to the algorithms channel to share these goals and ask for help in tracking research projects. I can help manage any efforts that involve leveraging COINSTAC to get research done.
Reshare the retrospective post and mention how the devs needs to use these new labels and milestones.

Just messaged the algorithms channel in Slack and Sandeep for a list.

Related to the discussions on our full-team meeting today and what I posted in #coinstac-algorithms, I wanted to start a discussion here: How can we better relate dev work back to research goals and deadlines? What changes to our collaboration processes and tooling should we make?
Currently, I'm thinking of anything with a deadline should be a Milestone. Then, anything that is fairly consistent throughout the year (like research groups, projects, grants, and maybe even the PI's/researcher's themselves) would be Labels.
Also, any deadlines should be shared out as calendar events. These could be things like submission deadlines for conferences and grants.
The hardest part of this is getting the humans to follow the patterns... like ideally whoever is leading the project should add the deadline to a shared calendar we can all see and needs to mention it during our weekly meetings.

sandeep panta
11:39
Here are some I have on the list for upcoming deadlines:
-Singularity feature without job scheduler (Testing group : Halfpipe team,), impact factor: high, reason: new channels and user groups who only have access to Singularity can join the research which leads to research publications and interesting results
-Singularity with job scheduler , more sites have this setup fro my experience, Ohio state university (Jess), ENIGMA groups, Gunter's groups, impact factor same as above if not higher
-Computation development: Name of algorithm-Decentralized SBM, helps run ICA on sMRI data which will be very useful and ICA is something Vince is known for, so this will be a unique highlight feature that leads to cool research publications. Debrata Saha , a phd student is working on this.
--Computation development: Name of algorithm- Decentralized version of multi-site canonical correlation analysis with reference + joint-independent component analysis ( mCCAR+jICA) approach in Fusion ICA toolbox (FIT)
Paper link:
https://ieeexplore.ieee.org/document/7973190, Sumanth the new GRA is working on this. Impact factor : high since its a new algorithm in COINSTAC.

OHBM, NeurIPS are other good ones to include.

I have started the pattern in Github and in Outlook calendar for establishing deadlines and tracking accomplishments via Milestones. Here are the first three:
NeurIPS Content Submission
OHBM Content Submissions
EMBC Paper Submission Deadline (IEEE Engineering in Medicine and Biology Society)
@sandeep panta
and I are working on how to add these to a shared team calendar via a team email alias.
These can be used to make sure we plan ahead to reduce stress and also to make sure we can better schedule other improvements to COINSTAC. This will also aid in summarizing and associating all of our work with accomplishments like research papers, projects, and grants.

Created a separate task for calendar and file sharing: https://github.com/trendscenter/coinstac/issues/1663

Per Sandeep:
Just absorbing some of Vince feedback today. I think the takeaway from tagging github tasks to achieve transparency for devs and efficiency, should be targeted more towards projects, end users awaiting coinstac feature, paper submissions etc. I think what Vince was saying was that, Grants is such a big umbrella that everything can be tagged into a grant pretty much, since there are basically handful of big grants supporting it. Once we get priority of projects from PI's, wishlist items etc. which would be my task, between us we can use that for tagging issues, and that should be satisfying the goal of dev transparency, motivation, better tracking. So I believe he was just suggesting it would be an extra unnecessary layer to have a tag that says grant since everything we develop falls under some grant practically. Just want to make sure we are synced up on this incase what Vince said was confusing or something. But gathering paper submission deadlines, projects, features, wish lists etc. is still my task that will be help us plan sprints.

Frontiers has a recently launched research collection, Neurological and Neuropsychiatric Disorders Affecting Military Personnel and Veterans. Information on the collection can be found here. The deadline for submission is June 2023, but Frontiers fast-track review process, led by the editorial team, means each article is published online as soon as it’s been successfully peer-reviewed and accepted (typically within 61 days). As an open-access journal, publishing fees are applied to accepted articles. Please contact<EMAIL_ADDRESS>to discuss fees, institutional waivers, and discounts.


change password option done

change password option done #114

Hey @ankitgarg1234, this is nicely done. However it's not currently validating email IDs so anyone can change anyone else's password if they have their email. Can we implement a proper auth system for this?


chore: allow release-please figure out the browsers version

I don't have the context and not sure what pre-release does but it looks like the version is wrong and 0.0.4 has already been released.

#9760 as release as a feat, that made it bump to 0.1.0 which I felt was not the correct version so we manually changed as we needed to release puppeteer.


Screencast:
https://github.com/vivid-planet/comet/assets/13380047/2a0ac17e-5a9f-4d63-9239-04fce0e89e23

Did you consider blocking the upload if the file is not "Sanitized"? (Instead of modifying an uploaded file)

@nsams I considered blocking the upload. Validation and sanitization offer the same level of security in this case. But blocking the upload might be more annoying for the user.
Not all JavaScript is malicious, it could also be a JavaScript animation for example. In this case the animation is removed but the upload still works (the animation doesn't work anyway if you incorporate the SVG via the img tag).

What do you think?

My thoughts are that the file should be a 1:1 copy of the uploaded file

it could also be a JavaScript animation for example.

Is that technique common?

@dkarnutsch @nsams I removed the sanitization. Instead, I now validate the file content by checking if it contains script tags or event handlers. If it does, I reject the file upload.


Can't delete a second sensor group

What happened?
I added a second sensor group to play around a bit, however when I press the delete button of the newly created group it is not deleted. It disappears and then appears again.
How to reproduce
Make a a second sensor group and press the delete button for this second group
Relevant log output
nothing in logs

Which version are you running?
v2024.6.1, also on v2024.4.3
Diagnostics file

[X] I have attached a diagnostics file

Additional information
config_entry-smart_irrigation-5881d6768e50d37609c438ee283ca797.json

doesn't repro


Replaced old way of getting the current time with SDL's build in get …

…ticks.

I appreciate the work you did, but SDL_GetTick is a lot less precise than the method I am using at the moment (millisecond vs. nanosecond precision, at least if appropriately precise hardware timers are available). Emscripten provides the most precise timer available on the browser, which usually is also better than millisecond precision (and so does LÖVE).
I know that this may block compiling on Windows, but I would prefer using Windows Performance Timers in that case, or whatever may be appropriate on Windows today.

Alright,your choice but in this case just be careful with how it will behave on different OSes.


CORS for CrossDomain is not working

From @skkanagaraj on June 12, 2018 11:6
OPTIONS https://xyz.co.uk/front/api/Eze/GetEcPrt?_=1528800677059 401 (Unauthorized)

Automatically Converts 'Get' to 'Option' request.
Failed to load.  https://xyz.co.uk/front/api/Eze/GetEcPrt?_=1528800677059: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://liontrust.sharepoint.com' is therefore not allowed access. The response had HTTP status code 401.

Copied from original issue: aspnet/Proxy#95

Thanks for contacting us, @skkanagaraj.
Are you still facing this issue? If so, can you please share a repro proejct so we can investigate this further?

@skkanagaraj please feel free to reopen the issue once you have a repro project


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-k8s-24-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1759

Questions ?
Please refer to the Backport tool documentation


UOM Vocabulary

Define the data model and vocabulary (verbs) for UOM transactions.

Moved out of Sunny Day as it will like evolve across projects


Loading more items with paginated loading via touch closes menu

When using touch input on the paginated loading story example, clicking  "Load more items" closes the menu but still loads more items.
It's been difficult to get using a Portal with touch input correct...
For clicks, we initially would use onMouseUp={e => e.stopPropagation() on the react-popper instance to work around the issue, but this didn't work for touch.
I found using downshiftProps.getMenuProps(...) worked on Portal when using react-portal, but this broke when we switched to using Material-UI's Popper (which uses a Portal internally).  Adding a div within the Popper appears to fix selecting items on touch/mobile except for the case of the "Load more items" case.  I tried adding a e.stopPropagation() to the ListItem's onClick in the paginated story, but it would still trigger the outer click.
Need to think some more on this one...

See #46, but I just tested removing { suppressRefError: true } and added disablePortal to Popper, but the issue still remains.


Setting hostname and port of rtsp-simple-server

Is your feature request related to a problem? Please describe.
Enabling the use of the rtsp-simple-server for streaming is just a tickbox, which I assume just defaults to connecting on localhost. I run home assistant and these addons in a kubernetes cluster, so the rtsp-simple-server is not accessible on localhost.
Describe the solution you'd like
I would need the option to be able to set the hostname and port of the rtsp-simple-server.

welcome to the show :) your request is taken into account, we can make it work this week

+1 - great to see this is being worked on!

hey, a correction here, I am expecting that RTSP addon should work at the same place with WS Add On, not on localhost. So, if your WS Add On running on host X, RTSP Add On is expected to work on host X. Until I fix it from root, is this good enough for you?

Hmm, not really unfortunately. I'm running them all in containers so they'll be reachable on different hostnames.

Hold on for couple of days, it is coming

No worries, I won't rush you at all, it's just great to you know you're considering it. You have other things of much higher priority that would be beneficial for more people, including myself :).

Name one, just to be sure that if i am doing good with prioritization :-)
Btw, how is the performance with file based streaming?

Well I was watching the slow startup issue, which you've fixed now! So your prioritization looks pretty good so far :)
It's mixed tbh, I'm looking to compare the performance when I'm able to set up the addon properly. Also hoping it allows for streaming on the doorbell.

please get latest codebase, you have now option to override rtsp docker address and tcp port


Segmentation Fault while inference over R50 Models

Describe the bug
Hi HoP authors,
Thank you for your great work. I am trying to run the inference over the released model. However, the code crashes with the following message:
None
mmdet3d_plugin
/home/abhinav/anaconda3/envs/hop2/lib/python3.8/site-packages/mmdet/models/backbones/resnet.py:401: UserWarning: DeprecationWarning: pretrained is deprecated, please use "init_cfg" instead
  warnings.warn('DeprecationWarning: pretrained is deprecated, '
/home/abhinav/project/HoP/mmdet3d_plugin/hop/modules/custom_base_transformer_layer.py:94: UserWarning: The arguments `feedforward_channels` in BaseTransformerLayer has been deprecated, now you should set `feedforward_channels` and other FFN related arguments to a dict named `ffn_cfgs`.
  warnings.warn(
/home/abhinav/project/HoP/mmdet3d_plugin/hop/modules/custom_base_transformer_layer.py:94: UserWarning: The arguments `ffn_dropout` in BaseTransformerLayer has been deprecated, now you should set `ffn_drop` and other FFN related arguments to a dict named `ffn_cfgs`.
  warnings.warn(
/home/abhinav/project/HoP/mmdet3d_plugin/hop/modules/custom_base_transformer_layer.py:94: UserWarning: The arguments `ffn_num_fcs` in BaseTransformerLayer has been deprecated, now you should set `num_fcs` and other FFN related arguments to a dict named `ffn_cfgs`.
  warnings.warn(
/home/abhinav/project/HoP/mmdet3d_plugin/hop/modules/temporal_cross_attention.py:88: UserWarning: You'd better set embed_dims in MultiScaleDeformAttention to make the dimension of each attention head a power of 2 which is more efficient in our CUDA implementation.
  warnings.warn(
load checkpoint from local path: work_dirs/HoP_BEVDet_ep24_ema.pth
[                                                  ] 0/6019, elapsed: 0s, ETA:/home/abhinav/project/HoP/mmdet3d/datasets/pipelines/loading.py:1221: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
  cam2lidar_rt = torch.tensor(extrinsic)
/home/abhinav/project/HoP/mmdet3d/models/necks/view_transformer.py:210: UserWarning: torch.range is deprecated and will be removed in a future release because its behavior is inconsistent with Python's range builtin. Instead, use torch.arange, which produces values in [start, end).
  ranks_depth = torch.range(
/home/abhinav/project/HoP/mmdet3d/models/necks/view_transformer.py:212: UserWarning: torch.range is deprecated and will be removed in a future release because its behavior is inconsistent with Python's range builtin. Instead, use torch.arange, which produces values in [start, end).
  ranks_feat = torch.range(
/home/abhinav/project/HoP/mmdet3d/models/necks/view_transformer.py:220: UserWarning: torch.range is deprecated and will be removed in a future release because its behavior is inconsistent with Python's range builtin. Instead, use torch.arange, which produces values in [start, end).
  batch_idx = torch.range(0, B - 1).reshape(B, 1). \
[                                                  ] 13/6019, 0.5 task/s, elapsed: 24s, ETA: 11072sFatal Python error: Segmentation fault

Current thread 0x00007f2e4b84a5c0 (most recent call first):
  File "/home/abhinav/project/HoP/mmdet3d/models/necks/view_transformer.py", line 212 in voxel_pooling_prepare_v2
  File "/home/abhinav/project/HoP/mmdet3d/models/necks/view_transformer.py", line 171 in voxel_pooling_v2
  File "/home/abhinav/project/HoP/mmdet3d/models/necks/view_transformer.py", line 279 in view_transform_core
  File "/home/abhinav/project/HoP/mmdet3d/models/necks/view_transformer.py", line 287 in view_transform
  File "/home/abhinav/project/HoP/mmdet3d/models/necks/view_transformer.py", line 699 in forward
  File "/home/abhinav/anaconda3/envs/hop2/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889 in _call_impl
  File "/home/abhinav/project/HoP/mmdet3d_plugin/hop/detectors/hop_bevdet.py", line 148 in prepare_bev_feat
  File "/home/abhinav/project/HoP/mmdet3d_plugin/hop/detectors/hop_bevdet.py", line 232 in extract_img_feat
  File "/home/abhinav/project/HoP/mmdet3d_plugin/hop/detectors/hop_bevdet.py", line 185 in extract_feat
  File "/home/abhinav/project/HoP/mmdet3d_plugin/hop/detectors/hop_bevdet.py", line 343 in simple_test
  File "/home/abhinav/project/HoP/mmdet3d/models/detectors/bevdet.py", line 157 in forward_test
  File "/home/abhinav/project/HoP/mmdet3d/models/detectors/base.py", line 62 in forward
  File "/home/abhinav/anaconda3/envs/hop2/lib/python3.8/site-packages/mmcv/runner/fp16_utils.py", line 110 in new_func
  File "/home/abhinav/anaconda3/envs/hop2/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889 in _call_impl
  File "/home/abhinav/anaconda3/envs/hop2/lib/python3.8/site-packages/torch/nn/parallel/data_parallel.py", line 165 in forward
  File "/home/abhinav/anaconda3/envs/hop2/lib/python3.8/site-packages/mmcv/parallel/data_parallel.py", line 50 in forward
  File "/home/abhinav/anaconda3/envs/hop2/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889 in _call_impl
  File "/home/abhinav/project/HoP/mmdet3d/apis/test.py", line 41 in single_gpu_test
  File "tools/test.py", line 260 in main
  File "tools/test.py", line 290 in <module>
Segmentation fault (core dumped)

Reproduction

What command or script did you run?

python tools/test.py configs/hop_bevdet/hop_bevdet4d-r50-depth.py work_dirs/HoP_BEVDet_ep24_ema.pth --eval bbox --deterministic

Did you make any modifications on the code or config? Did you understand what you have modified?
No

What dataset did you use?
nuScenes Val dataset

Environment

Please run python mmdet3d/utils/collect_env.py to collect necessary environment information and paste it here.

sys.platform: linux
Python: 3.8.18 (default, Sep 11 2023, 13:40:15) [GCC 11.2.0]
CUDA available: True
GPU 0: NVIDIA GeForce GTX 1080 Ti
CUDA_HOME: /usr/local/cuda-11.1
NVCC: Cuda compilation tools, release 11.1, V11.1.74
GCC: gcc (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0
PyTorch: 1.8.1+cu111
PyTorch compiling details: PyTorch built with:
  - GCC 7.3
  - C++ Version: 201402
  - Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v1.7.0 (Git Hash 7aed236906b1f7a05c0917e5257a1af05e9ff683)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - NNPACK is enabled
  - CPU capability usage: AVX2
  - CUDA Runtime 11.1
  - NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86
  - CuDNN 8.0.5
  - Magma 2.5.2
  - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.1, CUDNN_VERSION=8.0.5, CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.8.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON,

TorchVision: 0.9.1+cu111
OpenCV: 4.8.1
MMCV: 1.5.2
MMCV Compiler: GCC 7.3
MMCV CUDA Compiler: 11.1
MMDetection: 2.24.0
MMSegmentation: 0.30.0
MMDetection3D: 1.0.0rc4+9f6e882
spconv2.0: False

You may add addition that may be helpful for locating the problem, such as

How you installed PyTorch [e.g., pip, conda, source]
I installed PyTorch by pip

Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Installation instructions:

conda create -n hop2 python=3.8 -y
conda install -c anaconda ipython
pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
pip install openmim
mim install mmcv-full==1.5.2
mim install mmengine
pip install mmdet==2.24.0
pip install mmsegmentation==0.30.0
pip install -e .
pip install numba
pip install numpy==1.23.5 timm einops

It would be great if you could let us know how to reproduce your R50 nuScenes Val results.
Update
The BEVDepth baseline model is also crashing. The code for running BEVDepth4D model is:
python tools/test.py configs/hop_bevdet/bevdet4d-r50-depth.py work_dirs/BEVDet_ep24_ema.pth --eval bbox --deterministic

Issue The issue is the HoP model does not run well on my older Nvidia GeForce GTX1080Ti GPU.
Solution I created the environment on Nvidia A100 GPU and the inference works fine.

Issue The issue is the HoP model does not run well on my older Nvidia GeForce GTX1080Ti GPU.
Solution I created the environment on Nvidia A100 GPU and the inference works fine.


Validation issues when trying to limit root access to IP address

I'm looking to limit root access to a specific ip address, however there seems to be some validation that throws an error and stops the config being created and applied. This seems to be because the same config directive is used multiple times, even if it's silo'd in a match block.
# By default, it appears PermitRootLogin is set to yes, I need this to be set to no.
        sshd_config { "PermitRootLogin":
                ensure => absent,
        }
# I try and create a match rule that links to a specific IP address
        sshd_config { "PermitRootLogin":
                ensure  => present,
                value   => 'yes',
                condition => 'User<EMAIL_ADDRESS>        }

The result is the following error:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error:
Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Sshd_config[PermitRootLogin] is already declared at (file:
/etc/puppetlabs/code/environments/production/modules/custom_ssh_mod/manifests/init.pp, line: 8); cannot redeclare (file:
/etc/puppetlabs/code/environments/production/modules/custom_ssh_mod/manifests/init.pp, line: 13) (file:
/etc/puppetlabs/code/environments/production/modules/custom_ssh_mod/manifests/init.pp, line: 13, column: 9) on node test-machine.somewhere.com

Two resources of the same type cannot have a the same title in Puppet. This is a limitation of the language, not this provider.
However, there is a way to bypass this, by using different titles and specifying the key you want to manage:
# By default, it appears PermitRootLogin is set to yes, I need this to be set to no.
        sshd_config { "PermitRootLogin":
                ensure => absent,
        }
# I try and create a match rule that links to a specific IP address
        sshd_config { "PermitRootLogin for<EMAIL_ADDRESS>                ensure    => present,
                key       => 'PermitRootLogin',
                value     => 'yes',
                condition => 'User<EMAIL_ADDRESS>        }

Two resources of the same type cannot have a the same title in Puppet. This is a limitation of the language, not this provider.
However, there is a way to bypass this, by using different titles and specifying the key you want to manage:
# By default, it appears PermitRootLogin is set to yes, I need this to be set to no.
        sshd_config { "PermitRootLogin":
                ensure => absent,
        }
# I try and create a match rule that links to a specific IP address
        sshd_config { "PermitRootLogin for<EMAIL_ADDRESS>                ensure    => present,
                key       => 'PermitRootLogin',
                value     => 'yes',
                condition => 'User<EMAIL_ADDRESS>        }

Fantastic, that seems to have done it!
Many thanks

Fantastic, that seems to have done it!
Many thanks


ObjectRepository have a template-covariant generic

It would be nice to merge #340 to make TEntityClass covariant as it's defined in the doctrine sources. The current stub for ObjectRepository is obsolete.

Merged.


Rsdk-6117: last PR didn't compile.

This PR https://github.com/viamrobotics/api/pull/423 was merged before it compiled.

@Simberific fyi, we have to add the protos compiled label to compile the gen files before merging the new protos in.

@Simberific fyi, we have to add the protos compiled label to compile the gen files before merging the new protos in.

Ah - sorry about that!


Integrate BioC best practices

Mainly, merging dev branch to master

Package is now up to date with lowerCamelCase function names.


The result returned by the "ui.canvas.getDestinationClipBounds()" method is incorrect when with matrix

The result returned by the "ui.canvas.getDestinationClipBounds()" method is incorrect when with matrix.
Steps to Reproduce
run with the following code on master channel
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/widgets.dart';

void main() {
  runApp(CustomPaint(painter: MyPainter()));
}

class MyPainter extends CustomPainter {
  const MyPainter();
  @override
  void paint(Canvas canvas, Size size) {
    Paint paint = Paint();

    {
      // case 1
      paint.strokeWidth = 10;
      paint.color = const Color(0xFFFFFFFF);
      Offset p1 = const Offset(0, 0);
      Offset p2 = const Offset(100, 100);
      Rect rect = Rect.fromLTWH(0, 0, 100, 100);

      canvas.save();
      canvas.clipRect(rect);
      canvas.translate(0, 100);
      canvas.clipRect(rect);
      print("case1 clip bounds is ${canvas.getDestinationClipBounds()}");
      canvas.drawLine(p1, p2, paint);
      canvas.restore();
    }

    {
      // case 2
      paint.strokeWidth = 10;
      paint.color = const Color(0xFFFF0000);
      Offset p1 = const Offset(0, 100);
      Offset p2 = const Offset(100, 0);
      Rect rect1 = Rect.fromLTWH(0, 0, 100, 100);
      Rect rect2 = Rect.fromLTWH(100, 100, 200, 200);

      canvas.save();
      canvas.clipRect(rect1);
      canvas.translate(-100, -100);
      canvas.clipRect(rect2);
      print("case2 clip bounds is ${canvas.getDestinationClipBounds()}");
      canvas.translate(100, 100);
      canvas.drawLine(p1, p2, paint);
      canvas.restore();
    }
  }

  @override
  bool shouldRepaint(covariant CustomPainter oldDelegate) {
    return false;
  }
}

expected result
expected see the following lines in log.
case1 clip bounds is Rect.fromLTRB(0.0, 0.0, 0.0, 0.0)
case2 clip bounds is Rect.fromLTRB(0.0, 0.0, 100.0, 100.0)

actual result
actual log
case1 clip bounds is Rect.fromLTRB(0.0, 0.0, 100.0, 100.0)
case2 clip bounds is Rect.fromLTRB(0.0, 0.0, 0.0, 0.0)

Cause
matrix().mapRect(rect) was not used when calculating the intersection of clip bounds of multiple clipRect calls, which caused this issue.
c.f.
https://github.com/flutter/engine/blob/6ecab1ed96cbf7605317afff36e983049848c484/display_list/display_list_builder.cc#L605
cc @flar

flutter doctor -v

[✓] Flutter (Channel master, 3.1.0-0.0.pre.1806, on macOS 12.2.1 21D62 darwin-arm (Rosetta), locale zh-Hans-CN)
    • Flutter version 3.1.0-0.0.pre.1806 on channel master at /Users/bytedance/Develop/upstream/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dd20919ad6 (23 minutes ago), 2022-07-21 20:50:08 -0700
    • Engine revision a56d98ea78
    • Dart version 2.19.0 (build 2.19.0-22.0.dev)
    • DevTools version 2.15.0
    • Pub download mirror https://dart-pub.byted.org
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/bytedance/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13F100
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.68.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.44.0

[✓] Connected device (3 available)
    • M2011K2C (mobile) • e717b6a0 • android-arm64  • Android 12 (API 31)
    • macOS (desktop)   • macos    • darwin-arm64   • macOS 12.2.1 21D62 darwin-arm (Rosetta)
    • Chrome (web)      • chrome   • web-javascript • Google Chrome 103.0.5060.134

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Issue is reproducible using the code sample provided above.
I observed the same logs as shown above.

flutter doctor -v
[✓] Flutter (Channel beta, 3.3.0-0.0.pre, on macOS 12.4 21F79 darwin-arm, locale en-GB)
    • Flutter version 3.3.0-0.0.pre on channel beta at /Users/nexus/dev/sdks/flutter_beta
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f90da9b167 (3 days ago), 2022-07-18 18:59:23 -0700
    • Engine revision 1388adb442
    • Dart version 2.18.0 (build 2.18.0-271.2.beta)
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • Java binary at: /Users/nexus/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13F100
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] Android Studio (version 2021.2)
    • Android Studio at /Users/nexus/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.69.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.44.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 103.0.5060.134

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[✓] Flutter (Channel master, 3.1.0-0.0.pre.1807, on macOS 12.4 21F79 darwin-arm, locale en-GB)
    • Flutter version 3.1.0-0.0.pre.1807 on channel master at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 06ad829f4b (4 hours ago), 2022-07-22 01:14:07 -0400
    • Engine revision 6ecab1ed96
    • Dart version 2.19.0 (build 2.19.0-24.0.dev)
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • Java binary at: /Users/nexus/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13F100
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] Android Studio (version 2021.2)
    • Android Studio at /Users/nexus/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.69.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.44.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 103.0.5060.134

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!


Fix rblas to build on nightly

Currently rblas is not building with the rust nightly due to changes in features. I made a few changes to get things to build as well as migrating unstable features to stable APIs with the same functionality.
The code now builds on nightly rust as of today (2015-07-13) and all the tests pats. The only thing that is keeping it from building on stable and beta is the concat_idents! feature gate.

Thanks for the contribution!


Avoid flickering

The problem is that in addition to whatever other bottlenecks you have, you have to download and parse a lot of javascript files first. Bootstrap-Select depends on Bootstrap which itself depends on jQuery. By the time all that javascript is loaded, the page is probably already rendered. So, the user first sees the HTML select element and then sees it switch to the pretty Bootstrap-select item, thus the "flickering".
(source: http://stackoverflow.com/questions/23251488/bootstrap-select-plugin-how-to-avoid-flickering )
Any other solutions?

Anything with the selectpicker class is now automatically hidden by default.


List components in alphabetical order

Pull Request Test Coverage Report for Build 854

0 of 26 (0.0%) changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-3.3%) to 1.222%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

e2e/app.go
0
26
0.0%

Totals

Change from base Build 853:
-3.3%

Covered Lines:
78

Relevant Lines:
6385

💛  - Coveralls


Add Ubuntu packages from Launchpad #28

This adds all libc6 versions from the ubuntu distro on launchpad.net.
It is quite a list, so maybe we should switch back to manually listing the versions instead of blindly installing all of them.
A few of the really old ones like maverick seem to have the release packages deleted too, so download failures are allowed.
I've tried to keep the request load on the API as low as possible and I couldn't find a way to have it return download urls for the binary packages anyway. So this compiles the download url based on available info in the API manually which is why some of the downloads might fail.
"groovy"
"focal"
"eoan"
"disco"
"cosmic"
"bionic"
"artful"
"zesty"
"yakkety"
"xenial"
"wily"
"vivid"
"utopic"
"trusty"
"saucy"
"raring"
"quantal"
"precise"
"oneiric"
"natty"
"maverick"
"lucid"
"karmic"
"jaunty"
"intrepid"
"hardy"
"gutsy"
"feisty"
"edgy"
"dapper"
"breezy"
"hoary"
"warty"

Fixes #28

To set expectations right, I don't think I'll be able to look at this in detail in the coming months. What is your opinion of how likely it will break going forward?

The launchpad API is well documented and stable, so the only problem could be the package location for downloads. If launchpad.net decides to move files around, this has to be revisited, but I doubt there will be any changes ever.

LGTM, thanks!


Cannot quantize to f16 with i2_s

I am quite a newbie to LLM's, but was running into the following issue:
Command: python setup_env.py --hf-repo HF1BitLLM/Llama3-8B-1.58-100B-tokens -q i2_s --quant-embd
Output: ERROR:root:Error occurred while running command: Command '['/home/pis7/miniconda3/envs/bitnet-cpp/bin/python', 'utils/convert-hf-to-gguf-bitnet.py', 'models/Llama3-8B-1.58-100B-tokens', '--outtype', 'f32']' died with <Signals.SIGKILL: 9>., check details in logs/convert_to_f32_gguf.log
Specified log output does not show anything wrong (no errors).

Just check if the program runs out of memory, I have exactly the same problem with you.


Missing Semi-leptonic (l+jets) Topology in the Code

I noticed that the documentation (docs/source/topologies.md) mentions the Semi-leptonic (l+jets) topology and credits Marc Oriol and Eleni Togia (University of Manchester) as contributors. However, I couldn't find this topology implemented in the codebase.
Could you please confirm if this topology is available and update the repository accordingly? Let me know if additional details are needed.
Thank you!

Hi @fivejasmine thank you for this. I can confirm that the ATLAS project @diegobaronm led has developed the semi-leptonic topology and is now in the testing stage. I will update this thread once there are any updates.
@diegobaronm can you or your students create a pull request for that, please?


[PT Run] Search box doesn't have focus

when opening power toys run it is not selected so you have to select it to start typing pls correct that.

Duplicate of https://github.com/microsoft/PowerToys/issues/8876


issue_3194_simple_string_reader_debug_view

#3194

#if DEBUG
        internal static string BuildCurrentState(string done, char current, string todo)
            => $"done: '{done}'.   current: '{current}'.   todo: '{todo}'";
        internal string CurrentState
        {
            get
            {
                var current = (char)Peek();
                if (Position < 0 || Position > Text.Length)
                {
                    return BuildCurrentState(done: "INVALID_CURRENT_STATE", current: char.MaxValue, todo: "INVALID_CURRENT_STATE");
                }
                var done = Substring(0, Position);
                var todo = ((Position < _text.Length) ? Text.Substring(Position) : "");
                return BuildCurrentState(done: done, current: current, todo: todo);
            }
        }
#endif

Need to change the config * .yml,
The tests only works for the release configuration now.
It is necessary to run only debug tests as well
dotnet tests --filter displayName~Debug

It is necessary to run only debug tests as well

Well the code is only activated when making DEBUG-builds. For release-builds then the code is non-existing.

That's right, but the test result is not obvious. At your discretion.

The AppVeyor-build runs the final code-coverage test using a DEBUG-build for proper symbol-information.

Thanks for the PR!
The build fails, see this error:

Missing headers (copy them form other another file).
1 errors:

-C:\projects\nlog\tests/NLog.UnitTests\SimpleStringReaderDebugViewTests.cs
Could you please fix this? Thanks 😊
(See also build log)

I fixed all and  changed the logic of todo.

Thanks! Merged! :)


Connect to HStreamDB server programmatically

I couldn't find any documentation on how I can connect with HStreamDB server programmatically. I am looking for Java connector. If the connector does not exist then what is the best way to create one.

We are currently developing clients for different languages, including a Java client. Please stay tuned.

We have an early Java client now.


branch-2.0 avoid print stack trace in csv and json reader

Proposed changes
#28129

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Bump version to 0.1.6 to publish fix for #14 decorate_events results in ...

Fix for #14 is not on rubygems yet. See https://groups.google.com/forum/#!topic/logstash-users/_PbGq_UJ1Ko

LGTM

Thanks @suyograo!
On Jan 15, 2015 5:52 PM, "elasticsearch-bot"<EMAIL_ADDRESS>wrote:

Merged sucessfully into master!
—
Reply to this email directly or view it on GitHub
https://github.com/logstash-plugins/logstash-input-kafka/pull/18#issuecomment-70178125
.


good_pair.cpp

this is amazing  @AsishRajen007
thanks for the contribution in my repo and please share this in social media and tag me on twitter


Consider adding a bound checking for arrays like lists.

https://github.com/exaloop/codon/blob/bac6ae58dd179694c396c3b108a60d582fb5e44e/stdlib/internal/types/array.codon#L32

This is actually intentional since Array is meant to be a very bare-bones data type that the end user typically won't use (kind of like Ptr). Mainly it's just used internally to implement some other types, and we might actually deprecate it soon in favor of just Ptr.

Thanks for clarifying. I think I can close this issue now.


Fix/top tags

Resolves #41
Reverses the sort order on the top tags so they match RMP.

Is it expected that this includes the linting changes?


Get input from Tor team on Poe copy

@mtigas I've made a ticket for this, so that we don't lose track of it.

As far as I could see, the feedback was between ok to very positive.
I guess, we can close this ticket. Please reopen, if I oversaw something.


Correct links and screenshots

Hi! Thank you for your useful survey!
I corrected the links and screenshots for 2 consecutive projects.
Note: I am the author of the first project.

@vietanhdev Thanks for your correction.


Error when building/publishing

Any clues as to what causes this error?
[2017-07-20 11:02:11.11] Publishing package to http://localhost:7049/navision_main/dev/apps?tenant=default
[2017-07-20 11:02:11.15] Error: The request failed with code 422, reason: Specified part does not exist in the package.
Microsoft (R) AL Compiler version 0.7.11459
Copyright (C) Microsoft Corporation. All rights reserved
[Error - 11:51:03 AM] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible.
Processing of message 'al/createPackage' failed with error: 'Unexpected value 'SystemOptionType' of type 'Microsoft.Dynamics.Nav.CodeAnalysis.BoundKind''
StackTrace:
at Microsoft.Dynamics.Nav.CodeAnalysis.Emit.CodeGenerator.EmitExpression(BoundExpression expr, Boolean suppressTarget, Boolean isStatement) in C:\Agent_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Emitter\CodeGen\CodeGenerator_Expressions.cs:line 91
at Microsoft.Dynamics.Nav.CodeAnalysis.Emit.MethodCodeGenerator.EmitAssignmentStatement(BoundAssignmentStatement stmt) in C:\Agent_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Emitter\CodeGen\MethodCodeGenerator_Statements.cs:line 202
at Microsoft.Dynamics.Nav.CodeAnalysis.Emit.MethodCodeGenerator.EmitSingleStatement(ArrayBuilder1 statementList, BoundStatement stmt) in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Emitter\CodeGen\MethodCodeGenerator_Statements.cs:line 135    at Microsoft.Dynamics.Nav.CodeAnalysis.Emit.MethodCodeGenerator.EmitBlock(BoundBlock block) in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Emitter\CodeGen\MethodCodeGenerator_Statements.cs:line 32    at Microsoft.Dynamics.Nav.CodeAnalysis.Emit.MethodCodeGenerator.EmitScopeRunMethod() in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Emitter\CodeGen\MethodCodeGenerator.cs:line 570    at Microsoft.Dynamics.Nav.CodeAnalysis.Emit.MethodCodeGenerator.EmitScopeClass() in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Emitter\CodeGen\MethodCodeGenerator.cs:line 223    at Microsoft.Dynamics.Nav.CodeAnalysis.Emit.MethodCodeGenerator.Generate() in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Emitter\CodeGen\MethodCodeGenerator.cs:line 87    at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.CompileMethod(MethodSymbol methodSymbol) in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Compiler\MethodCompiler.cs:line 410    at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.CompileMembers(ContainerSymbol containingType) in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Compiler\MethodCompiler.cs:line 281    at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.CompileObject(ObjectTypeSymbol containingType) in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Compiler\MethodCompiler.cs:line 228    at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.<>c__DisplayClass16_0.<CompileObjectAsTask>b__0() in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Compiler\MethodCompiler.cs:line 210    at Microsoft.Dynamics.Nav.CodeAnalysis.Utilities.UICultureUtilities.<>c__DisplayClass5_0.<WithCurrentUICulture>b__0() in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Utilities\UICultureUtilities.cs:line 151    at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.WaitForWorkers() in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Compiler\MethodCompiler.cs:line 160    at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.CompileMethodBodies(Compilation compilation, ModuleBuilder moduleBeingBuiltOpt, Boolean hasDeclarationErrors, DiagnosticBag diagnostics, Predicate1 filterOpt, CancellationToken cancellationToken) in C:\Agent_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Compiler\MethodCompiler.cs:line 144
at Microsoft.Dynamics.Nav.CodeAnalysis.Compilation.CompileImpl(ModuleBuilder moduleBuilder, Boolean emittingPdb, DiagnosticBag diagnostics, Predicate1 filterOpt, CancellationToken cancellationToken) in C:\Agent\_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Compilation\Compilation.cs:line 794    at Microsoft.Dynamics.Nav.CodeAnalysis.Compilation.Compile(ModuleBuilder moduleBuilder, Boolean emittingPdb, DiagnosticBag diagnostics, Predicate1 filterOpt, CancellationToken cancellationToken) in C:\Agent_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Compilation\Compilation.cs:line 771
at Microsoft.Dynamics.Nav.CodeAnalysis.CommandLine.CommonCompiler.RunCore(CompilerTextWriter consoleOutput, ErrorLogger errorLogger, CancellationToken cancellationToken) in C:\Agent_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\CommandLine\CommonCompiler.cs:line 419
at Microsoft.Dynamics.Nav.CodeAnalysis.CommandLine.CommonCompiler.Run(CompilerTextWriter consoleOutput, CancellationToken cancellationToken) in C:\Agent_work\41\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\CommandLine\CommonCompiler.cs:line 299
at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.CreatePackageRequestHandler.d__1.MoveNext() in C:\Agent_work\41\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\CreatePackageRequestHandler.cs:line 30
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.d__1.MoveNext() in C:\Agent_work\41\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\GenericRequestHandlerBase.cs:line 23
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.d__5.MoveNext() in C:\Agent_work\41\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 60

It's hard to pin point. In one of the procedures, there is an assignment statement (e.g. x := 3), where the compiler gets confused with something similar to a system option.
Would you be able to identify the failing line simply by commenting out the code and pressing Ctrl+Shift+B? That would be tremendously helpful.

You can close the issue. Turns out it was wrong initiation of TextEncoding without setting type..

Could you still please paste the code that caused this error? We failed a little too hard for such case.

Of course.
procedure foo();
var
Encoding : TextEncoding;
begin
Encoding := TextEncoding;   // Should be "Encoding := TextEncoding::UTF-8" or
// "Encoding := Encoding::UTF-8"
// Do something with encoding  (e.g. frombase64string)
end;
Do you know if it will be possible to set codepage at some point?
Like Encoding.getEncoding(1252) in the old environment.

Thank you for the repro! We will fix it so that you get a proper red squiggly.
Regarding the Encoding, did you use the .NET Encoding class before? We are gradually providing replacements for most used .NET functionality, so if you would like us to expose more Encoding functionality, maybe please log a new issue (and also list related methods you need to accomplish your task) and will prioritize it accordingly.


Update free-programming-playgrounds.md

What does this PR do?
Add resource
For resources
Description
Added online JavaScript compiler in free-programming-playgrounds.md
Why is this valuable (or not)?
The user interface is simple and easy to use, making it valuable
How do we know it's really free?
It is stated on the website that it is free
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!


create db-migrate scripts to provide sqlite output

https://db-migrate.readthedocs.io/en/latest/

We decided against this. On the other hand, we do have a full db dump in sqlite now.


Unexpected CUDA out of memory for minimal example

Description
Loading a simple quantized GGUF model with CUDA fails with:
Error: DriverError(CUDA_ERROR_OUT_OF_MEMORY, "out of memory")
log.txt
Environment

Linux Mint 21.3 Virginia
GeForce RTX 2060 SUPER (8 GiB VRAM)
CUDA 12.6

When running the sample below, less than 1 GiB of VRAM was occupied.
Sample code
    let model = GgufModelBuilder::new(
        "bartowski/Meta-Llama-3.1-8B-Instruct-GGUF",
        vec![ "Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf"])
    .build()
    .await?;

Versions used

Rust toolchain:

stable-x86_64-unknown-linux-gnu (default)
rustc 1.81.0 (eeb90cda1 2024-09-04)

Cargo.toml.txt

GIT hashes:

mistralrs: 329e0e8c5a8403ed50ab829317df79c4823be80a
mistralrs-core: 329e0e8c5a8403ed50ab829317df79c4823be80a

@rwesterteiger this file uses about 5GB of RAM. Not sure why it would fail, please feel free to reopen if you can reproduce it.


GUI: Selector handle behavior

The selectors in the GUI behave oddly in some instances:
Drag and drop
Observed behavior: Quickly dragging outside the host panel drops the selector at some random position on the way. One has to click and drag it again to move it again. This behavior makes it difficult to move handles right to the border of the panel: They are always dropped a bit before. They can only be moved to the borders by keyboard.
Expected behavior: The selector is moved up to the boundary of the panel and remains dragging, i.e. is not dropped. It can be moved up to the border by mouse.
Keyboard interaction
Observed behavior: The selector handles for rectangular ROI can be moved out of the field of view by keyboard. They are then out of reach for mouse interaction.
Expected behavior: The selector handles behave like the center selector for Disk ROI, i.e. can be moved only to the corners by keyboard and mouse.
As a side note, it happens with the "Choose specimen region" of Region clustering analysis in the same way.
FFT analysis leftmost panel
Observed behavior: Both handles can be moved out of the panel by keyboard. They can't be moved back after they lost focus.
Expected behavior: They can be brought back or they can't be moved outside.
FFT analysis central panel
Moving the selectors feels more sluggish than with the other analyses.

Expected behavior: The selector is moved up to the boundary of the panel and remains dragging, i.e. is not dropped. It can be moved up to the border by mouse.

There is a reason for the current behavior: a common behavior seen in dragging interfaces is that the user starts to drag something, moves the mouse outside of the "dragging area" over some unrelated element and stops dragging. The "mouse up" event goes to the unrelated element, which then may do whatever it wants, possibly swallowing the event. So the drag does not end, even though the mouse button is up. If you move the mouse over the dragging area again, it will continue dragging the element you grabbed.
That's why the drag is ended when the mouse leaves the dragging area - if you move it fast, you will only get a mouse event every N pixels, possibly with the last mouse event inside the area being some distance from the border. Maybe the mouseleave event can be used to move the draggable item exactly to the border?
Also, the dragging area could subscribe to mouse events that bubble up the DOM, to the top-level document element. But again, this then depends on all components/widgets/... cooperating and properly letting events bubble up.

Expected behavior: The selector handles behave like the center selector for Disk ROI, i.e. can be moved only to the corners by keyboard and mouse.

This is #436

I noticed you can't move a rectangle to the corner

Hi, I am Ashwanth. I am new to open source contribution. I would like to contribute to your organisation.
Is the issue still open? are there any prerequisites?
How and where should I start?
Thank you.

@ashwanthdurairaj hi, welcome to the LiberTEM project! The issue is still open. As this is a problem in the user interface, a prerequisite is some knowledge of TypeScript and React. You can have a look at the handles, constraints and widgets in the widgets folder to begin. Also, you will need to set up a development environment and get LiberTEM running.
Feel free to also join our gitter channel, then we can have a chat!

@sk1p thanks.
I'll look into it.


stream result

If I get the stream result, how do I return it to my own front-end

return SseEmitter on Controller

When I send a streamChatCompletion request, can I save tokens by disconnecting the https link to openai?


Added "next.config.js" to Node.gitignore

Added "next.config.js" to .gitignore
Reasons for making this change:
Because it contains env
Links to documentation supporting these rule changes:
https://nextjs.org/docs/api-reference/next.config.js/environment-variables

Not a good idea to add that to gitignore, as it can contain custom configs for stuff like webpack.
Instead, you should use a .env file, like described in https://nextjs.org/docs/basic-features/environment-variables