Vite kill shell script is not launched when running app from terminal

Expected behaviour: When I run MVC app with dotnet run or dotnet watch with app.UseViteDevMiddleware(); a new shell script is created to kill vite after the app shuts down. The script self deletes after closing the app.
Current behaviour:  When I use app.UseViteDevMiddleware(); in my app, a new shell script with guid name is added to project root. Unfortunately, the script is not launched and persists after shutting down the app. This is a problem, because this file can't be git ignored (random name and root directory) so I have to manually delete it after each app shutdown. The problem does not exist if the app is launched through vscode debugger.
System: MacOs
Dotnet version: 8.0.100
I can provide futher information and help if needed.

Hi, unfortunately I don't have a Mac to reproduce the bug you describe. The error doesn't seem to appear on Windows or Linux as i can see.
If I manage to get a Mac, then I'll take a look. If you or someone else find a clue, please let me know here or make a pull request with the changes.

I haven't had time to troubleshoot it, but am seeing the same behavior.  Note that if I kill the process that the script is waiting on, it kills the child process and cleans itself up.  This leads me to believe that when the dotnet process is stopped, it's automatically killing child processes, including the cleanup process (before it gets a chance to delete itself).
If the native behavior of dotnet on MacOS is to kill the child processes automatically, perhaps the script isn't needed at all?  If I get time I can do a custom build and set some more debugging / do more testing.

I was investigating if the Vite process persists when killing the dotnet process and it appears that is does not. The only thing that is weird to me is that the script is executed when running the app through vscode debugger (even when killing the process externally). Unfortunately, I'm not quite sure why

While this gets investigated, would it be possible to have the shell script be created in a hidden subdirectory? Like .vite, so that it can at least be gitignored.
Unfortunately the current behaviour is polluting the root directory with a new randomly-named filed every time the dev server is started.

@matteocontrini I support your idea, in the mean time you can ignore the files with /[a-zA-Z0-9]*.sh in your .gitignore

Workaround:
WebApplicationExtensions.cs
using System.Text.RegularExpressions;

namespace Extensions;

public static class WebApplicationExtensions
{
    public static void UseViteCleanup(this WebApplication app)
    {
        var logger = app.Services.GetRequiredService<ILogger<WebApplication>>();
        var lifetime = app.Services.GetRequiredService<IHostApplicationLifetime>();

        lifetime.ApplicationStopping.Register(() =>
        {
            try
            {
                var pattern = @"^[a-zA-Z0-9]*\.sh$";
                var regex = new Regex(pattern);

                var allFiles = Directory.EnumerateFiles(app.Environment.ContentRootPath, "*", SearchOption.TopDirectoryOnly);
                foreach (var file in allFiles)
                {
                    var filename = Path.GetFileName(file);
                    if (!regex.IsMatch(filename))
                    {
                        continue;
                    }

                    File.Delete(file);
                    logger.LogInformation("Deleted file {FileName}", filename);
                }
            }
            catch (Exception e)
            {
                logger.LogError(e, "Error deleting files");
            }
        });
    }
}

Program.cs
if (app.Environment.IsDevelopment())
{
    app.UseViteCleanup();
    app.UseViteDevelopmentServer(true);
}


Update returns 400 without body

	req := esapi.UpdateRequest{ 		Index:      "test", 		DocumentID: id, 		Body:       bytes.NewReader(b), 		Refresh:    "true", 	}
this code, after the req.Do functions, returns no error but a 400 in the response with the body empty.

Hi @tomiok,
Sorry for the late reply, could you give me some details about the request, the go client version and Elasticsearch version ?
Is you server behind a proxy which could truncate the response body and only return the status code ?

The package doesn't check (all? any?). You'll need to do that as you would using the http package.


Simplify OAuth2ClientAuthenticationProvider PKCE verifications

In OAuth2ClientAuthenticationProvider, if no authentication is available, codeVerifier is REQUIRED, and so is codeChallenge. The value of requireProofKey has no influence. Currently, if you set it to "false" in the authenticateWhenPkceAndRequireProofKeyAndMissingCodeChallengeThenThrowOAuth2AuthenticationException test, the result will be the same.
Simplified the code to match the current expectations.
requireProofKey is still a key part of
OAuth2AuthorizationCodeRequestAuthenticationProvider#authenticateAuthorizationRequest, it requires the presence of a codeChallenge.

Closed in favor of discussion in #453


feat(checkbox): Support indeterminate state

This commit add support for indeterminate state in checkboxes.
Fix #27

@adamwathan We're coming up on a year with this pull request being open. I haven't found anyway to get this working with @tailwind/ui... Do you have any insight on what people should be doing for indeterminate state checkboxes?

+1 from me as well, it would really be good to get an indeterminate state

Hey! This has been added and will be in the next release:
https://github.com/tailwindlabs/tailwindcss-custom-forms/pull/86
Opted to implement it a bit differently and required a small breaking API change. Should have pulled this branch down and built my changes on top of it, sorry about that 😕  Thanks though really appreciate the contribution.

I've ended up implementing it myself, but excited to see the native solution! Thanks, Adam


Monster rune filters

Added the ability to filter monsters based on rune types equipped, rune levels and rune star ranges.

This has gone stale for a while now and is missing some privately discussed needed changes - closing.


Prisma2: crud findMany method returns optional value

Given Nexus config
export const Query = extendType({
  type: 'Query',
  definition(t) {
    t.crud.merchants()
  },
})

The following schema is generated
type Query {
  merchants(after: String, before: String, first: Int, last: Int, skip: Int): [Merchant!]
}

It seems that correct return type should be [Merchant!]! instead.

I think [Merchant]!


Do not rely on DISTRO_TYPE to enable/disable kernel debug

DISTRO_TYPE doesn't seem to be set anywhere in OE/poky. This causes
CMDLINE_DEBUG to default to "debug" which is very noisy. This is
especially true when building a systemd based system, as systemd
also looks at the kernel commandline to set the debug level.
Such a system is nearly unuseable from the serial console due
to the amount of data logged by systemd.

Can one of the admins verify this patch?

@agherzan This is merged, we can close it here.

Correct. Closing.


Fix other fields being editable in password reprompt for Arc

Fixes https://github.com/microsoft/azuredatastudio/issues/13553
We weren't setting the correct field on the components

Pull Request Test Coverage Report for Build 522119318

4 of 5 (80.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.01%) to 43.205%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/arc/src/ui/components/filePicker.ts
1
2
50.0%

Totals

Change from base Build 522086169:
-0.01%

Covered Lines:
24610

Relevant Lines:
52140

💛  - Coveralls

Pull Request Test Coverage Report for Build 522119318

4 of 5 (80.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.01%) to 43.205%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/arc/src/ui/components/filePicker.ts
1
2
50.0%

Totals

Change from base Build 522086169:
-0.01%

Covered Lines:
24610

Relevant Lines:
52140

💛  - Coveralls


Register custom provider

In order to use the OAuth / OpenID Connect together with custom or not-listed providers it would be nice to be able to load provider configurations from outside.
As far as I can see the SocialConnect\Auth\CollectionFactory supports a register method to side-load custom implementations.
Can somebody provide some information or share ideas how to load a custom provider from inside Cake's Application.php?

We could add a new config to allowing setting a CollectionFactory which would be passed to the Service's constructor here https://github.com/ADmad/cakephp-social-auth/blob/ada00abf54fb9ff941a8673feca83d0b66c956c4/src/Middleware/SocialAuthMiddleware.php#L536.
PR welcome.

Puh.. do you think setting up a new/custom CollectionFactory is best? Wouldn't it be easier to add a new provider via
(new CollectionFactory)->register(.., ...);
?

Updated/extended Readme and added code change


Add the first test case for watson package.

Add the encrypted file, modified the travis file to support it.
Resolve issue #40.
Modify template error.

@houshengbo @daisy-ycguo
I guess the reason the CI  failed is because I don't have right to write or generate any encryption key for this repo.
https://docs.travis-ci.com/user/encrypting-files/#Automated-Encryption
So please Daisy or Vincent, could you please help generate the credentials.json.enc
for this repo? I'll send you the credentials.json link on our box.
FYR, the CI passed under my own forked repo.
log.txt

I guess only the admin has the right to generate encryption key for this repo.

@lzbj @daisy-ycguo Travis CI has nothing to do with any specific developer's permission. We are not supposed to generate anything inside the repo for one travis build.

@houshengbo, we're not generating anything, we upload the .enc file, during the CI, the .enc file will be decrypted, which were used by the watson CI test cases.

@daisy-ycguo , no worry, later when you available, you could help make a test to verify you're correct.

The test cases for watson actions have already added, so close this pr.


Use the Runnable.run method to clean direct byte buffers if avaiable.

Motivation:
In JDK9 the Cleaner.clean method cannot be called as it is not exported
from java.base. Runnable.run should be called instead.
Modifications:
Pick Runnable.run if the cleaner implements Runnable. Otherwise try the
clean method on the class implementing the cleaner.
Result:
The cleaner for direct byte buffers is run on JDK9 as well as earlier
JDKs.

@normanmaurer probably want this one too?

@normanmaurer eugh sorry this is branch 3.10.

3.x has been EOL http://netty.io/news/2016/06/29/3-10-6-Final.html @varming. If you need this .. I don't think we were planning on cutting any more releases. If you really need this we should discuss more.

I told twitter folks I will if they really need a release

Am 14.07.2016 um 23:34 schrieb Scott Mitchell<EMAIL_ADDRESS>3.x has been EOL http://netty.io/news/2016/06/29/3-10-6-Final.html @varming. If you need this .. I don't think we were planning on cutting any more releases. If you really need this we should discuss more.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@normanmaurer ir is very likely that we will need this patch for experimentation with JDK9. Right now there are problems even running Scala programs, so it will be a while. Nevertheless, it is likely that we will be running 3.10 by the time JDK9 is released unless a massive push to Netty 4 emerges.

@varming just ping me once you need the release.

Cherry-picked as cb071910bae8cf130a47068adadc61bfa328ef6f into 3.10

thanks @varming !

You should reopen this issue as you get this kind of stack trace when you call jdk.internal.ref.Cleaner.run() by reflection: cannot access class jdk.internal.ref.Cleaner (in module java.base) because module java.base does not export jdk.internal.ref to unnamed module @464bee09
at jdk.internal.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:405)
at jdk.internal.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:396)
at jdk.internal.reflect.Reflection.ensureMemberAccess(java.base@9-ea/Reflection.java:98)
at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(java.base@9-ea/AccessibleObject.java:355)
at java.lang.reflect.AccessibleObject.checkAccess(java.base@9-ea/AccessibleObject.java:347)
at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:527)
Rather call ((Runnable)cleaner).run(), I've tested with Java 1.9 Early Access Build 129.


Prevent negative value for foreignObject width attribute

When I create a line chart with a custom offset like this:
Chartist.Line(Node, {labels, series}, {
  axisY: {
    offset: 0
  }
})
````
I'm getting this error:

![image](https://cloud.githubusercontent.com/assets/1263865/13423515/a45b846e-df9b-11e5-8ab0-e5c4fb1a8249.png)

I can't figure it out why this `- 10` [in this line](https://github.com/gionkunz/chartist-js/blob/develop/src/scripts/core.js#L885) is necessary, but looks like it is some hard coded value, and removing it resolves problem.

I'm presume this will cause a visual change for the apps which are currently using the lib. Anyway, I've readed the contributing file, but let me know if this PR is ok

Hi thanks for the PR! The hardcoded -10 does optically correct the label position. You are right with your assumption that removing this will invluence the visual appearance of any existing chart. We should probable better go with Math.max(0, axisOffset - 10)

:+1:

We should probable better go with Math.max(0, axisOffset - 10)

Done!

Cool, thanks!

:heart_eyes:


YYYY-MM-DDTHH:MM:SS.uuuuuuZ not default, miliseconds not stored in DB

Laravel Version
10.10 and 11
PHP Version
8.2
Database Driver & Version
Mysql
Description
Hi, here it states that default datetime format for casting is YYYY-MM-DDTHH:MM:SS.uuuuuuZ.
https://laravel.com/docs/10.x/eloquent-mutators#date-casting-and-timezones
However here is different default format specified:
https://github.com/laravel/framework/blob/67fbbc49eec22bd80178e2de991d67aea29c6d06/src/Illuminate/Database/Grammar.php#L255
Here is the logic of getting the format:
https://github.com/laravel/framework/blob/67fbbc49eec22bd80178e2de991d67aea29c6d06/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php#L1498
When testing, $this->getConnection()->getQueryGrammar()->getDateFormat() from Model returns "Y-m-d H:i:s". This means that milliseconds are not stored by default. I have to specify in Model protected $dateFormat = 'Y-m-d H:i:s.u'; to workaround it.
Steps To Reproduce

Set timestamp('field', 6) or timestamps(6) in migrations
Add field to $casts array
Save model in database
Milliseconds are not stored

This can also lead to a incorrect timezone ... very high bug potential.

That's the docs for serialisation when retrieving timestamps, not storing.

The date format for storing isn't the same as the cast for retrieving. They're different things. The date format by default uses the format set on your model like you indicated above. It doesn't saves timezones, that's not how things work. You should always convert to UTC and store datetimes as UTC.

@driesvints I am storing UTC. The problem is that when I have default configuration and I do this:
$user->updated_at = now(); // timestamp(6)
$user->save();

then updated_at in DB has .000000 value after seconds.
How to make it store milliseconds?

@driesvints I see the difference now. The docs says:

About casting formats
About storing formats
About default casting format

Maybe 1 and 3 could be together.


Price differences for some constrained VMs

Hi,
I recently noticed that the Azure Advisor is recommending a M8-4ms instead of a M8ms for one of my virtual machines. That is why I looked into the prices and I noticed that the M8-4ms is actually a little less expensive than the M8ms. From my prior understanding the compute cost for constrained VMs should be same as the non-constrained model. Has that changed or is this a mistake:
Prices West Europe in € PAYG
M8-2ms 1.948 euro/hour
M8-4ms 1.948 euro/hour
M8ms 2.010 euro/hour
Greetings
Klaas

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

ID: 1f881393-b0f8-d88b-b02d-caa86057c4af
Version Independent ID: 0e6d77fa-9476-4d9c-bf77-143498348e25
Content: Constrained vCPU sizes - Azure Virtual Machines
Content Source: articles/virtual-machines/constrained-vcpu.md
Service: virtual-machines
Sub-service: sizes
GitHub Login: @mimckitt
Microsoft Alias: mimckitt

@Klaas- Thank you for the feedback!  We are looking into this recommendation and will get back to you shortly.

@Klaas- Looking at the Azure Pricing Page, you are correct--all of the M8ms VMs have the same hourly cost.  Looking at the Azure Pricing Calculator, however, we see that isn't necessarily the entire story as OS or software may charge by the vCPU.
https://docs.microsoft.com/en-us/azure/virtual-machines/constrained-vcpu

The licensing fees charged for SQL Server or Oracle are constrained to the new vCPU count, and other products should be charged based on the new vCPU count. This results in a 50% to 75% increase in the ratio of the VM specs to active (billable) vCPUs. These new VM sizes allow customer workloads to use the same memory, storage, and I/O bandwidth while optimizing their software licensing cost. At this time, the compute cost, which includes OS licensing, remains the same one as the original size. For more information, see Azure VM sizes for more cost-effective database workloads.

In the example below, I have an M8ms VM and an M8-4ms VM.  While the hardware cost is the same for both, the software cost goes down proportionately with the reduced vCPU count for the M8-4ms:
M8-4ms

M8ms

@Klaas- I hope this has been helpful!  We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


3G support

Hi,
I have strange issue with 3G.
In wifi, the libpusher works without problem but in 3G I receive the following error :
2011-10-31 16:20:15.561 transcovo[308:707] [pusher-(null)] Failed to connect to pusher, error: Error Domain=ZTWebSocketErrorDomain Code=2 "The operation couldn’t be completed. (ZTWebSocketErrorDomain error 2.)"
2011-10-31 16:20:15.563 transcovo[308:707] [pusher-(null)] Reconnecting after 5 seconds...
2011-10-31 16:20:20.647 transcovo[308:707] *** Terminating app due to uncaught exception 'AsyncSocketException', reason: 'Attempting to connect while connected or accepting connections. Disconnect first.'
*** Call stack at first throw:
(
0   CoreFoundation                      0x3144e64f __exceptionPreprocess + 114
1   libobjc.A.dylib                     0x34f69c5d objc_exception_throw + 24
2   CoreFoundation                      0x3144e491 +[NSException raise:format:arguments:] + 68
3   CoreFoundation                      0x3144e4cb +[NSException raise:format:] + 34
4   transcovo                           0x0001b45d -[AsyncSocket connectToHost:onPort:withTimeout:error:] + 172
5   transcovo                           0x00039a4d -[ZTWebSocket open] + 220
6   transcovo                           0x000164ad -[PTPusherConnection connect] + 72
7   transcovo                           0x00013c0d __-[PTPusher reconnectAfterDelay]_block_invoke_1 + 52
8   libdispatch.dylib                   0x35d348e7 _dispatch_call_block_and_release + 10
9   libdispatch.dylib                   0x35d30771 _dispatch_after_timer_callback + 12
10  libdispatch.dylib                   0x35d32341 _dispatch_source_invoke + 436
11  libdispatch.dylib                   0x35d30041 _dispatch_queue_invoke + 92
12  libdispatch.dylib                   0x35d301c3 _dispatch_main_queue_callback_4CF$VARIANT$up + 262
13  CoreFoundation                      0x3142893b __CFRunLoopRun + 1334
14  CoreFoundation                      0x313b8ec3 CFRunLoopRunSpecific + 230
15  CoreFoundation                      0x313b8dcb CFRunLoopRunInMode + 58
16  GraphicsServices                    0x30d3741f GSEventRunModal + 114
17  GraphicsServices                    0x30d374cb GSEventRun + 62
18  UIKit                               0x314ded69 -[UIApplication _run] + 404
19  UIKit                               0x314dc807 UIApplicationMain + 670
20  transcovo                           0x00003eb3 main + 82
21  transcovo                           0x00003e5c start + 40
)
terminate called after throwing an instance of 'NSException'
The xcode debugger show me the following method in class "AsyncSocket.m" :

(BOOL)connectToHost:(NSString *)hostname
onPort:(UInt16)port
withTimeout:(NSTimeInterval)timeout
error:(NSError **)errPtr
{
if(theDelegate == NULL)
{
[NSException raise:AsyncSocketException
format:@"Attempting to connect without a delegate. Set a delegate first."];
}
if(theSocket4 != NULL || theSocket6 != NULL)
{
//CRASH HERE
  [NSException raise:AsyncSocketException
              format:@"Attempting to connect while connected or accepting connections. Disconnect first."];

}
if(![self createStreamsToHost:hostname onPort:port error:errPtr]) goto Failed;
if(![self attachStreamsToRunLoop:nil error:errPtr])               goto Failed;
if(![self configureStreamsAndReturnError:errPtr])                 goto Failed;
if(![self openStreamsAndReturnError:errPtr])                      goto Failed;
[self startConnectTimeout:timeout];
theFlags |= kDidPassConnectMethod;
return YES;

Failed:
[self close];
return NO;
}
Do you have an idea why I have this issue ?
I also show, there were an issue like this and it was fix with the SSL. How can I set to use SSL instead  ?

I do believe that the most common cause of connection issues over 3G is transparent proxying by the network.
The best way to avoid this is with using encryption. I've just committed support for enabling SSL, by setting the encrypted parameter to YES.
Please try this and let me know if it works for you.

Thanks for your prompt reply Luke but I don't understand how to set SSL encryption. I don't see any SSL parameter in the PTPusher class.
Can you give me the exact line to add ?

Luke, thanks for the suggestion to use encryption. Does libPusher try an encrypted connection (WSS) if it fails to connect on unencrypted (WS)? The Pusher JS library has this behavior. I want to turn on encryption for my pusher app but am afraid it will break existing installations.
Thanks!

I'm closing this issue now; the recommendation is to use an encrypted connection to ensure reliability over the cellular networks and avoid transparent proxying issues.
The library doesn't currently try both, it will try either encrypted or non-encrypted depending on how you create the PTPusher instance; if anybody thinks this will cause them a problem, please open a new issue.


Encode incoming string with US-ASCII and replace any invalid ones with default

Sometimes Bazel log will contain characters ruby cannot handle, so we need to encode it with ASCII and replace anything it does not understand, or downstream project may face invalid byte sequence in US-ASCII (ArgumentError) error when trying to do regex match.
Choosing ASCII because according to this article: https://www.cloudbees.com/blog/how-ruby-string-encoding-benefits-developers string is best to be in that encoding for best performance. The log we have can be assumed to be useful with ASCII value only and I don't see the need to encode in more expensive UTF-8, but we can certain use that encoding too.

Does this cause any issues with errors highlighting or other colors? This regex has a couple issues that's fixed when we remove this and the legacy generator

Does this cause any issues with errors highlighting or other colors? This regex has a couple issues that's fixed when we remove this and the legacy generator

right now it causes build to fail because ruby exit 1, so we need to fix this for sure


Open every card on new tab

every card element should get a  target="_blank" in order to open in new tab and also other needed link should also get

I would like to work on this issue

@asimaries You can work on this issue!
Keep in mind to follow the PR template!

Any updates @asimaries ?

Any updates @asimaries ?

sorry Urvashi di I forgot about this but I have completed it, you can check it please it's working 100% in my pc 🤞
ALSO PLEASE MERGE IT AND HELP ME TO MAKE MY FIRST CONTRIBUTION TO OPEN-SOURCE🤗

let me know if something went wrong I'll try to fix that

@asimaries Learn how to squash commits and write good commit messages. I am sharing one video checkout this and let me know if you have any doubts after watching this video.

@asimaries Learn how to squash commits and write good commit messages. I am sharing one video checkout this and let me know if you have any doubts after watching this video.

OK Thanks

my profile is not showing their I want to show off that on LinkedIn "my first contribution"
😢😅😐


I can't record and replay a route that use the method DELETE

Hello,
I am trying to record the result of an API call that requires DELETE method. The script get a 405 error (method not allowed)
Have you blocked this behavior on purpose ? Can I propose a PR to add the support of this method ?
In cornell/cornell_server.py :
SUPPORTED_METHODS = ['GET', 'POST', 'PUT']

Didn't block it on purpose, just didn't encounter a use case, so far. Thanks for your addition.

Merged.

@yaelmi3 @AvnerCohen Thanks a lot for developping this idea. The result is really good :).


Support October CMS L6 update

This PR updates the plugin to support the October CMS Laravel 6 framework update. It should also work with older versions of October CMS as well, although there is a new requirement for PHP 7.2 or above - I have bumped updates/version.yaml to 2.0.0 to reflect this breaking change.
I've also removed the composer.lock file as it's not required for an October CMS plugin, however, if it is being used for another purpose, please let me know and I'll re-instate and update it.

Thanks!


bug: v3: Modal scrolling should be fixed.

Current Behavior

I had an overflow in X which caused the page's x and y to be too large. This meant that I could scroll to the bottom of the Modal Drawer as seen in the screenshot.
Chris asked for a quick bug report to check:

I might need to double check that we're using fixed styles over absolute.

Please let me know if there is anything further I can add!
Expected Behavior
No response
Steps To Reproduce
No response
Link to Reproduction / Stackblitz
No response
More Information
No response

The example in the docs uses h-screen, I assume this is why it doesn't take up all the height in the document. If the document body overflow is hidden this should work properly.

Ideally we would disable page scroll while this is active - in fact, that may be an option Zag provides. Barring that, we should probably switch to position fixed over absolute.

Ideally we would disable page scroll while this is active - in fact, that may be an option Zag provides. Barring that, we should probably switch to position fixed over absolute.

Yeah the position was the first thing I checked, but it seems that the Modal is using fixed instead of absolute, so that might not be the cause.

@ddxv unfortunately I'm not sure enough information has been provided in your ticket for us to help diagnose your issue. To test the Drawer created a small sample project and implemented a Drawer modal per the documentation instructions. Here's the results:
https://github.com/user-attachments/assets/d0951224-e1e7-48e2-a0d8-9f5457ea1c1b
As you can see, the drawer appears over the page contents and spans the full page height. The only change I've made is to enable scrolling on the Drawer panel itself by appending contentBase="... overflow-y-auto". You'll also note it's not technically possible to scroll the page while the Modal is open as it auto-hides the  scrollbar automatically - which is a typical a11y feature.
Here's the entire page source for reference if you would like to compare:

        <Modal
            bind:open={drawerState}
            triggerBase="btn preset-tonal"
            contentBase="bg-surface-100-900 p-4 space-y-4 shadow-xl w-[480px] h-screen overflow-y-auto"
            positionerJustify="justify-start"
            positionerAlign=""
            positionerPadding=""
            transitionsPositionerIn={{ x: -480, duration: 200 }}
            transitionsPositionerOut={{ x: -480, duration: 200 }}
        >
            {#snippet trigger()}Open Drawer{/snippet}
            {#snippet content()}

Drawer Example

                    Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, ab adipisci. Libero cumque sunt quis error veritatis amet, expedita
                    voluptatem. Quos repudiandae consequuntur voluptatem et dicta quas, reprehenderit velit excepturi?

                    <button type="button" class="btn preset-filled" onclick={drawerClose}>Close Drawer</button>

Force this section to scroll...

            {/snippet}
        </Modal>

Hello World

Homepage is working.

Force this section to scroll...

The only thing I could think of here is you've adjusted the modal style props or added a wrapping element that wraps in some fashion. But without a minimal reproduction I'm afraid we can't really troubleshoot and further here.
I'm going to go ahead and close your issue here, and recommend you review how you've implemented this feature. If you can, however, provide a minimal reproduction. I'm more than happy to reopen and investigate that though.

@ddxv unfortunately I'm not sure enough information has been provided in your ticket for us to help diagnose your issue. To test the Drawer, I created a barebones Skeleton project and implemented a Drawer modal per the documentation instructions. Here's the results:
Kapture.2024-12-09.at.15.08.56.mp4
As you can see, the drawer appears over the page contents and spans the full page height. The only change I've made is to enable scrolling on the Drawer panel itself by appending contentBase="... overflow-y-auto". You'll also note it's not technically possible to scroll the page while the Modal is open as it auto-hides the  scrollbar automatically. Zag implements this for us as an a11y feature.
Here's the entire page source for reference if you would like to compare:

        <Modal
            bind:open={drawerState}
            triggerBase="btn preset-tonal"
            contentBase="bg-surface-100-900 p-4 space-y-4 shadow-xl w-[480px] h-screen overflow-y-auto"
            positionerJustify="justify-start"
            positionerAlign=""
            positionerPadding=""
            transitionsPositionerIn={{ x: -480, duration: 200 }}
            transitionsPositionerOut={{ x: -480, duration: 200 }}
        >
            {#snippet trigger()}Open Drawer{/snippet}
            {#snippet content()}

Drawer Example

                    Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, ab adipisci. Libero cumque sunt quis error veritatis amet, expedita
                    voluptatem. Quos repudiandae consequuntur voluptatem et dicta quas, reprehenderit velit excepturi?

                    <button type="button" class="btn preset-filled" onclick={drawerClose}>Close Drawer</button>

Force this section to scroll...

            {/snippet}
        </Modal>

Hello World

Homepage is working.

Force this section to scroll...

The only thing I could think of here is you've adjusted the modal style props or added a wrapping element that scrolls in some undesired fashion. But without a minimal reproduction I'm afraid we can't really troubleshoot any further here.
I'm going to go ahead and close your issue here, and recommend you review how you've implemented this feature. If you can, however, provide a minimal reproduction, share it here, then I'm more than happy to reopen and investigate that though.
EDIT
Also here's the list of project dependencies from pnpm list. This shows what versions I'm actually running. If any of your Skeleton dependencies are outdated, you might consider updating to see if this helps.

Oh thanks, no worries, Chris just asked me to make an issue incase it was something that should be fixed. I was able to 'fix' my issue by just not having text incorrectly scrolling off the page.
Just to be sure, I'll keep an eye out if I do it again then compare it to what you shared.

@ddxv this is Chris! :) Glad to hear you got it sorted. Let us know if we can help with anything else!


Rename all assemble and deploy rules: maven_assembly; npm_deployment, etc.

The top-level packages are named npm, pip, maven etc. while the rule names begin with assemble and deploy - there is a misalignment here.

npm, pip etc. are clearly stronger domains than assemble and deploy.
So what we should do, most likely, is rename assemble_maven to maven_assembly, deploy_maven to maven_deploy. assemble_pip to pip_assembly. deploy_npm to npm_deploy.
This also resolves the fact that assemble is a verb, which is strange for a bazel build target.

Let's make this change once we condense the GitHub repos, so that it's easier to propagate.

Indeed, let's rename them, but after we collapse the repositories.


Retarget Mixer expression language to use Mixer IL

We need to leverage Mixer IL for expression evaluation instead of the Go AST solution we use today. This will deliver improved performance and reduced resource usage.

Done.


Player color to transparent?

Hi I'm new to using jsmpeg.min.js
I am trying to display video using websocket and
I want set player/canvas background to remain transparent, if no stream is available or on Connection error connecting socket.
Thanks and Regards

Hi. I am looking for that too.

The solution is to use CSS and set the opacity of the canvas to 0. Then use the onSourceEstablished event and set it to 1 again.


TSkPaintBox import a PNG file (LoadfromFile / SaveToFile missing)

Hi
How i can to load a PNG in a  TSkPaintBox like LoadfromFile / SaveToFile ?
Load and save / export.
Thank you :)

Hi @maurobotta
Take a look in this sample: https://gist.github.com/viniciusfbb/0adbed0f95f2d9cff245a3e209d2a2f0
It basically loads a png and apply a resize and translation (offset) to make a "Fit and Crop" effect.
It also draws the image with rounded corners, but if you don't want it, just remove the lines of the rouded clip:
//  ACanvas.Save;
//  try
//    ACanvas.ClipRoundRect(TSkRoundRect.Create(ADest, 48, 48), TSkClipOp.Intersect, True);
    DrawImageFitCrop(ACanvas, ADest, LImage);
//  finally
//    ACanvas.Restore;
//  end;

I forgot to show you the SaveToFile example. I made a simple code for you to understand:
  var LSurface: ISkSurface := TSkSurface.MakeRaster(200, 200);
  // Draw here using the LSurface.Canvas
  // You can also call the SkPaintBox.OnDraw event:
  // SkPaintBox1Draw(nil, LSurface.Canvas, RectF(0, 0, 200, 200), 1);
  LSurface.MakeSnapshoot.EncodeToFile('a.png');

You can also ask quick questions on our telegram channel: https://t.me/skia4delphi

I will close it but few free to open a new one if you have more questions.


Add customizable metadata for peer awareness

What does this PR do?
Add customizable metadata for peer awareness. Currently the API only exposes client ID and there's no way to add extra information about the client during collaborative activities.
This works around WatchDocuments rpc call. In the WatchDocumentsRequest I add a new meta field, where you could put whatever peer's metadata there. The metadata then passed along with the WatchDocumentsResponse.
How should this be manually tested?
Any background context you want to provide?
https://github.com/yorkie-team/yorkie/pull/138 must be merged first.
What are the relevant tickets?

Fixes #106
Related with https://github.com/yorkie-team/yorkie/pull/138
Checklist

[x] Added relevant tests or not required
[ ] Didn't break anything

Really LGTM 👍 😄

Really LGTM 👍 😄


add batch inference

Closes #3

Codecov Report

Merging #17 (b8e6f20) into main (dfa4942) will increase coverage by 0.31%.
The diff coverage is 88.33%.

@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   87.02%   87.33%   +0.31%
==========================================
  Files           7        7
  Lines         131      150      +19
  Branches        8       12       +4
==========================================
+ Hits          114      131      +17
- Misses         14       15       +1
- Partials        3        4       +1

Flag
Coverage Δ

unittests
87.33% <88.33%> (+0.31%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

muse_as_service/client.py
70.37% <57.14%> (ø)

muse_as_service/endpoints.py
83.33% <71.42%> (ø)

tests/test_usage.py
96.00% <93.93%> (-4.00%)
:arrow_down:

muse_as_service/__init__.py
100.00% <100.00%> (ø)

muse_as_service/muse_tokenizer/tokenizer.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


No such file or directory tsc

I suspect this is a problem from using a relative entry in $PATH?
$ which tsc
node_modules/.bin/tsc

$ tsc
Version 1.5.3
Syntax:   tsc [options] [file ...]

Examples: tsc hello.ts
<snip>

$ ./run.sh
* Checking dependencies...
~/tmp/Eve ~/tmp/Eve
* Compiling Editor...
./run.sh: line 23: node_modules/.bin/tsc: No such file or directory
Failed to compile editor, bailing.
~/tmp/Eve

Yes. We need to change directory during the installation process. The tsc command is called in the ui subdirectory. Try using an absolute path and you should be fine.

If you're still having issues,please comment again and I'll reopen the issue for debugging.

Switching to an absolute path works fine. This is the first time I've run into such a problem though. Kind of odd.


C syntax supported?

I've tried to open a C file, but no information about the function was shown in the status bar.
It is supposed to support C, C++ files?

Yes.
If you don't mind, could you send your C file to my email (409745930@qq.com)?

My mistake. The information on the status bar it is only shown when I'm in the exact same column.
I think when I'm inside brackets, it shouldn't just show when I'm in the same column. If the cursor is after the last know column, it should show the name of bracket area. But that maybe is an extra feature


Add Feature to allow curators add Reported Traits to studies in bulk

curators upload csv of GCP and corresponding reported traits, and the reported traits are added to the concerned studies

Question: What information do you need to enter in the template require for this bulk upload action?
Here is the example template I got from @sprintell:
GCST	Curated reported trait
GCST90011301	C_Actinobacteria abundance
GCST90011302	C_Alphaproteobacteria abundance

It seems that you have to have a GCST to identify each study. However, for studies added manually in the curation interface (i.e. not created by a submission) there is no GCST until the study has been published. e.g.
http://snoopy.ebi.ac.uk:9680/gwas/curation/publication/33106475# (note the blank "Study accession" field)

How can Reported traits be added for studies that do not yet have a GCST? Suggest using "Study ID" instead (this should exist for all studies in the curation interface). @ljwh2 could you check if you agree?

@sprintell @eks-ebi  If it's straightforward to allow addition of traits based on study ID this functionality should be added. However if it's not straightforward we should leave it for now and have the bulk addition of reported traits only available for studies curated through the deposition app.


Add service accounts cloud-extension/azure as part of bee setup

I've been doing this manually every time I set up a BEE but it's time to automate it. We need both google and azure cloud-extension policies in Sam to support creating pets on both clouds.
Q: how do I test this? (My Go is rusty). Ideally there would be a way to create a new BEE based off this thelma branch.

@rtitle any chance this gets merged soon? It continues to be a pain point on new bees. I'm happy to lend a hand testing.

Some help testing would be great! I basically wrote this Go code but haven' tested at all.
Testing process:

Grab the thelma tarball from CI/CD (I just rebased this branch)
Install locally, run thelma bee create
Profit

cc @choover-broad as well

@rtitle and @aherbst-broad, I didn't realize this PR existed until it was mentioned in champions the other day. Most of us on DevOps have github notifications turned off because we have owner on so many repos, sorry we missed this but in the future it helps to drop a post in one of our slack channels to PRs like this :)
Were either of you successful in testing this, if not I can give it a whirl

Oh I see you did make a post apologies this must have gotten lost in the churn over the holidays.

I just tried creating a bee off this branch and got the following error from Sam
09:09 ERR 404 Not Found from https://sam.mflinn-rtitle-pr-test.bee.envs-terra.bio/api/resource/cloud-extension/azure/policies/fc-service-accounts ({"causes":[],"message":"Resource cloud-extension/azure not \
          found","source":"sam","stackTrace":[],"statusCode":404})

I assume this means that this call needs to happen first
curl -X 'POST' \
"https://sam/.${BEE_NAME}.bee.envs-terra.bio/api/resources/v2/cloud-extension/azure" \
  -H 'accept: */*' \
  -H "Authorization: Bearer $(gcloud auth print-access-token)" \
  -H 'Content-Type: application/json' \
  -d '{}'

https://terra.mflinn-rtitle-pr-test-2.bee.envs-terra.bio/ created successfully from this branch and sam cloud extension resource setup worked

Q: how do I test this?

This is good feedback, thanks @rtitle. I've updated the README accordingly


int32 enum transformed to number

Describe the issue
https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-03-01/managedClusters.json#L1372-L1386
"count" enum defined as
          "type": "integer",
          "format": "int32",

I assume it should produce
    type: integer
    precision: 32

in yaml.
However I got number instead.
  - &ref_1
    type: number
    defaultValue: 1
    precision: 32
    language:
      default:
        name: Number
        description: 'Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The default value is 1.'
    protocol: {}

** REQUIRED **
ModelerFour version: 4.10.250
AutoRest-core version: 3.0.6246
CommandLine :
OpenAPI/Swagger file: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-03-01/managedClusters.json

will be in #224

try 4.10.254+

Works great!


Ability to get file paste events

Is your feature request related to a problem? Please describe.
The Event::Paste event sent in ui.input().events only sends a string, which makes it unable to detect file paste events.

Describe the solution you'd like
Event::Paste could take some sort of enum that describes what this paste event was (file, or just text). Not sure if something like this is supported in winit (or the web) however.

Describe alternatives you've considered
I'm not sure if any exists.

Additional context

Does winit support this? Does web?

Does winit support this? Does web?

I know that web does, since I can upload things to different web apps (mainly Discord) by just copy pasting, usually images though. As for winit, I did a quick search in docs and issues, but haven't seen anything.

Does winit support this? Does web?

I know that web does, since I can upload things to different web apps (mainly Discord) by just copy pasting, usually images though. As for winit, I did a quick search in docs and issues, but haven't seen anything.

Note: i think this is probably done via differentiating the clipboards content using its mimetype, since you can set it's mimetype (at least on wayland). So it may have something to do with that.

Check out https://github.com/emilk/egui/blob/master/egui_web/src/lib.rs#L603 - perhaps you could try getting out the relevant data there and then add it to a new egui::Event (PastFile, PastImage, …), or generalize Event::Paste to take an enum PasteData { Text(String), File(…), Image(ImageData), … }

Looks like there is a .files() method on DataTransfer (what data is in that code). It returns a FileList, which looks like you can get files from (https://developer.mozilla.org/en-US/docs/Web/API/FileList). That contains Files, which can be read by .arrayBuffer() (https://developer.mozilla.org/en-US/docs/Web/API/File) which returns a Promise.
I'm not sure what would be a good way to expose this in egui, especially if we want to make this work crossplatform. I was thinking of providing a File struct that has a .read() method, that would return a future that resolves to a Vec<u8>. This is how the rfd crate also does it. And then this could be exposed via a Event::Paste(PasteData::File(...)). I'm not sure if using a future would be welcome, but I don't think there is another way for this on web, unless we instead provide a sync API using something like https://docs.rs/futures/0.3.19/futures/executor/fn.block_on.html for the web part.

Ok so it's a bit hacky, but for those who want it on the web I found a work around.
There might be something better but what I've done is in the index.html of added:
document.onpaste = function (event) {
  var items = (event.clipboardData || event.originalEvent.clipboardData).items;
  for (index in items) {
    var item = items[index];
    if (item.kind === "file") {
      var blob = item.getAsFile();
      var reader = new FileReader();
      reader.onload = function (event) {
        localStorage.setItem("pasted_buffer", event.target.result);
      };
      reader.readAsDataURL(blob);
    }
  }
};

And then in egui:
if let Some(storage) = _frame.storage() {
  let read_buffer: String = if let Some(a) = &mut storage.get_string("pasted_buffer") {
     // do stuff with read_buffer
  }
}


Create Generic Pages “about-me”

Automatically generated by Netlify CMS

👷 Deploy Preview for singular-moonbeam-50eeea processing.

Name
Link

🔨 Latest commit
5674748c4e7624dcffadc342bfb8b951f4d82143

🔍 Latest deploy log
https://app.netlify.com/sites/singular-moonbeam-50eeea/deploys/63de87d0385f1d000849428e


Editing the PDA ringtone crashes client.

Description
The text box in the PDA is causing a problem that's crashing clientside. I've tried understanding what it is. But I'm too inexperienced. Some sort of null expectation in the text box.
Reproduction

Open PDA
Select "Ringtone" tab
Attempt to edit any textbox

Some sort of null expectation in the text box.

It would be helpful if you posted the actual error as well. Just following those steps doesn't crash my client or cause any errors to get logged.


Flat iteration over DataArray

[ ] Tests added
[ ] Fully documented, including whats-new.rst for all changes and api.rst for new API

A very simple way to iterate over DataArrays, imitating numpy's flat iterator.
For a DataArray da, I implemented a flat iterator that works exactly like da.values.flat, but returns a singelton DataArray that has all the coordinates and meta data and whatnot.
I wrote it because I needed it for something and thought it would be useful for others too. I'd love to hear your opinions - if you think it's useful I'll write up some unittests.

@yohai It's a lot more efficient to simply iterate over the underlying array, ie. da.values.flat, if you can afford to hold everything in memory.
If you are instead using streaming computation based on dask, then you would have to do something similar on per-chunk basis.

Indeed this is extremely inefficient
You can get the same with a much faster one-liner: a.stack(__flat=a.dims).reset_index('__flat').
On related notes,

stack() could use a set_index=True optional parameter that avoids you from going through a MultiIndex if you don't need one
stack() should accept non-string hashables; this would allow avoiding potential collisions (e.g. flat = object())
there is an issue with the stack -> reset_index round-trip where it converts unicode variables to object #907

I'm afraid it's a -1 from me.

@crusaderky @corora Thanks for your comments, glad to see that there's a more efficient way to do it. The question is do you think it's useful enough to justify adding it as a built in function. I end up using my solution quite often

@yohai Iterating point by point in pure python over numpy data is horribly slow. numpy.ndarray.flat is there mostly to be used within cython/numba code. In a DataArray it's much worse than in a plain ndarray, because every time you invoke the slice operator to fetch a single element it's being applied to all coordinates too.
If you just need to iterate over the values of a DataArray, then DataArray.values.ravel().tolist() is the fastest option that I know of (ndarray.tolist() is much faster than list(ndarray)!).
If you need the coords as well, then I suspect you may be doing it wrong - could you show a simple example of your use case?

Mh. Actually it looks like ndarray.flat is actually the fastest way to iterate over numpy. Still considerably slower than a CPython iterator though
import numpy

N = 1000000
a = numpy.arange(N)

def exhaust(it):
    for _ in it:
        pass

%timeit exhaust(a)
24.8 ms ± 723 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
%timeit exhaust(a.flat)
20.4 ms ± 701 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
%timeit exhaust(a.tolist())
27.2 ms ± 1.16 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
%timeit exhaust(range(N))
10.5 ms ± 234 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)

@yohai : In short, no. It does not make sense to add a built-in function for iteration, if it is unable to augment the low-level functionality.


Error while building

When attempting to build my self hosting docs, here is the error I get. For reference, the content in my .mdx file is below.

Contents:

# Self Hosting Instructions
1. Clone and checkout the release branch (or download the the latest release at [releases](https://github.com/TheAwesomeCoder05/MusicComp-v2/releases)):
git clone https://github.com/TheAwesomeCoder05/MusicComp-v2.git
cd MusicComp-v2
git checkout release

OR

The semi-updated version using CDNs at here.

CD to the directory and install the package and dependencies using:

bash -f setup.sh

OR
Manually install the packages using:
 i. NPM:
npm install musiccomp-discord-bot --legacy-peer-deps

 ii. Yarn:
yarn add musiccomp-discord-bot

Please do note that yarn package will always be 1 version ahead of the npm package.

Edit the botconfig.js file and enter your Discord Token from here, along with a spotify API Token from here and a YouTube API Token from here.
Lastly run the following, to run the bot:

node index.js

Since GitHub keeps rendering it, this is the link to the raw file: https://raw.githubusercontent.com/TheAwesomeCoder05/nextra/master/pages/hosting/instructions.mdx

Hey! Looks like there is an unexpected character in there (based on the error). Could you try removing that?

Doesn't look like there is though. What is the unexpected character exactly, there is not "!".

The file link shows 404 for me. As per the error message, did you have a HTML comment somewhere?

If so please change it to {/* ... */}.

Oh sorry, my bad. I deleted the file later.
Here's the file:
https://raw.githubusercontent.com/CompeyDev/MusicComp-v2/production/docs/docs/SELFHOST.md

The file link shows 404 for me. As per the error message, did you have a HTML comment somewhere?

If so please change it to {/* ... */}.

Nope, I didn't.

Try changing the unclosed
 to
,  that could be the case.

Alright. Let me try that out.

Looks like the same error:

@CompeyDev did you try the latest beta version of nextra? Do you have this error while building your project locally?

Oh, I've not tried actually. And no, this error doesn't occur locally if I recall.

@CompeyDev do you have still an issue in the latest beta 2 version?

Just tried, seems to work perfectly! 👍


New Lasair query page

I would really appreciate a close look from you of the new Lasair query page that Ken and I built last week. We now have a truly freeform query mechanism. It is available on the dev system (username: flame, password: !flame). Please look at:
(1) Copy/paste some examples into the query box and click Submit Query. Is it clear what is happening?
(2) The text of query page itself https://lasair-dev.roe.ac.uk/objlist/. Are there other notes or caveats to include?
(3) The Example Queries on the same page. (Some stolen from Joe and Matt Jupyter notebooks.) It would be great to have a fuller explanation of why some of them look the way they do. Or modify them to be more informative.
(4) The schema page https://lasair-dev.roe.ac.uk/schema. I have guessed at which fields to include from sherlock_crossmatches, and guessed at the correct explanation. I have also reduced the ZTF candidate schema.
(5) We would also appreciate your opinion of the new object page, for example https://lasair-dev.roe.ac.uk/object/ZTF18aaxyspx/, which now has non-detections, Sherlock classification/annotation, and JSON output.

From Matt Nichol:
Looks great! A few initial thoughts:
— running the example queries is mostly clear and straightforward. I did notice that it breaks if I add LIMIT to the query, presumably because of the hard-coded LIMIT 1000. Maybe this doesn’t matter; I don’t know whether people would have any reason to want to specify manual limits.
— The examples named “classified as SNe” and “recent SNe” are slightly misleading in my view. Not a problem for dev version, but when you’re ready to put this on the main page, I would say that a sherlock ‘classification’ means “likely SNe”. And ‘recent’ sounds like a recent discovery (i.e. all candidates within an object are recent), whereas the query returns recent detections (any candidate that is recent regardless of how long the object has been known). This leads me on to the next point…
— Most SN-enthusiasts will be primarily interested in young SNe, i.e. that exploded recently and have rising light curves. Here’s a simple query that returns likely SNe first detected within the past week (using latest mags and mag ranges to quickly assess whether they are brightening or fading). Most of the objects returned do look like young SNe. I think this or something similar would make a good baseline query for SN folk:
SELECT objectId, jdmin-2400000.5 as first_discovered, jdmax-2400000.5 as last_seen, ncand, latestgmag, maggmax, maggmin,  latestrmag, magrmax, magrmin
FROM objects WHERE
jdmin > (unix_timestamp(now())/86400 + 2440587.5) - 7
AND sherlock_classification = 'SN'
ORDER BY jdmax DESC
— For sherlock info, I’m a bit confused about the redshift. The table on each object page gives “photoZ”, but the schema page only lists “z” under the sherlock_crossmatches table. If this z can be either photometric or spectroscopic (depending on the catalog or specific object) it’s important to differentiate (and spec should aways take priority). I remember talking about this at the Lasair meeting, and I think Dave said that sherlock does default to spec if available? If so, the sherlock_crossmatches table needs to keep track of phot or spec (e.g. with another column called something like “z_type”) and this should also be displayed on the object pages
— I also notice on many object pages that the redshift given in the bullet points (to calculate absolute magnitude) often differs a bit from that in the crossmatches table right under it. e.g. https://lasair-dev.roe.ac.uk/object/ZTF18acdzzyf/, https://lasair-dev.roe.ac.uk/object/ZTF18aceyjfx/
— minor point: each non-detection appears to be listed multiple times in the candidates table (i.e. identical times and limiting mags). I don’t know whether this is because of multiple exposures in a row, but it’s suspicious that the times are exactly the same.

Immediate issues to sort :

All the searches still return duplicate rows of the same object
Need to remove the limit of 1000 returned
the info in the returned table is not optimal

The summary table returned for each should have
objectId
ra
dec
discovery MJD
discovery mag
discovery filter
brightest mag
brightest mjd
discovery filter
sherlock_classification
redshift (from sherlock cross-match, if available)

The PanSTARRS sgscore selection line is not correct and should never be used like this
It says only select the object if Pan-STARRS sgscore < 0.49
Two problems with that

There are many large extended galaxies that Pan-STARRS has not catalogued properly.
This applies to the nearest Pan-STARRS catalogued object. So the nearest, faint star to an orphan (say 5 away) has no relation to the object.

What we want is the following, but I don't know how to code in SQL
To remove variables from the search, we will use this :
AND o.sherlock_classification != 'VS'
AND o.sherlock_classification != 'AGN'
AND o.sherlock_classification != 'CV'
AND o.sherlock_classification != 'BS'
and this is bit I need SQL for :
AND if distpsnr1 < 1 arcsec                            [meaning, if there is a Pan-STARRS obect within 2 arcsec)
then only select if sgscore < 0.49         [i.e. it has to be galaxy]
else don't use sgscore at all

New query now on the lasair site. Addresses most of the issues above - this seems a robust and useful query for all SN like candidates.

06/JUL/22

@RoyWilliams reported that better documentation and a simple query system are need to deal with this


Make readme great again

This tidies up the readme in the style we use in the arbitration_graphs repo.
This moves large parts of the existing readme into collapsible spoilers, adds shield.io badges, and a list of features.
#patch

I just rebased on main and integrated the parts about the python bindings into the feature list and the usage documentation.


Attempting to reconnect to backoff(elasticsearch(http://elasticsearch:9200))

Problem description
following the readme file and the setup configuration in order to use filebeat to ingest logs i get refused connection attemps and it keeps trying to reconnect
Stack configuration
just added FILEBEAT_INTERNAL_PASSWORD='changeme', BEATS_SYSTEM_PASSWORD='changeme' in the .env file
Docker setup
Client:
 Cloud integration: v1.0.35+desktop.4
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:32:48 2023
 OS/Arch:           windows/amd64
 Context:           default

Server: Docker Desktop 4.23.0 (120376)
 Engine:
  Version:          24.0.6
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       1a79695
  Built:            Mon Sep  4 12:32:16 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Docker compose
Docker Compose version v2.21.0-desktop.1

Container logs
docker-elk-main-elasticsearch-1  | {"@timestamp":"2023-10-03T10:32:59.484Z", "log.level": "INFO", "message":"adding component template [logs-endpoint.events.security@custom]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[elasticsearch][masterService#updateTask][T#3]","log.logger":"org.elasticsearch.cluster.metadata.MetadataIndexTemplateService","trace.id":"dd926bbe84f338dba743deae118efc9b","elasticsearch.cluster.uuid":"pV6dxUt2QveIs6jdoMSkCA","elasticsearch.node.id":"5pGROdFjSEiNbNTKr_rLUA","elasticsearch.node.name":"elasticsearch","elasticsearch.cluster.name":"docker-cluster"}
docker-elk-main-filebeat-1       | {"log.level":"error","@timestamp":"2023-10-03T10:50:00.312Z","log.logger":"publisher_pipeline_output","log.origin":{"file.name":"pipeline/client_worker.go","file.line":148},"message":"Failed to connect to backoff(elasticsearch(http://elasticsearch:9200)): 401 Unauthorized: {\"error\":{\"root_cause\":[{\"type\":\"security_exception\",\"reason\":\"unable to authenticate user [filebeat_internal] for REST request [/]\",\"header\":{\"WWW-Authenticate\":[\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\",\"ApiKey\"]}}],\"type\":\"security_exception\",\"reason\":\"unable to authenticate user [filebeat_internal] for REST request [/]\",\"header\":{\"WWW-Authenticate\":[\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\",\"ApiKey\"]}},\"status\":401}","service.name":"filebeat","ecs.version":"1.6.0"}
docker-elk-main-filebeat-1       | {"log.level":"info","@timestamp":"2023-10-03T10:50:00.312Z","log.logger":"publisher_pipeline_output","log.origin":{"file.name":"pipeline/client_worker.go","file.line":139},"message":"Attempting to reconnect to backoff(elasticsearch(http://elasticsearch:9200)) with 33 reconnect attempt(s)","service.name":"filebeat","ecs.version":"1.6.0"}
docker-elk-main-filebeat-1       | {"log.level":"info","@timestamp":"2023-10-03T10:50:25.811Z","log.logger":"monitoring","log.origin":{"file.name":"log/log.go","file.line":187},"message":"Non-zero metrics in the last 30s","service.name":"filebeat","monitoring":{"metrics":{"beat":{"cgroup":{"cpuacct":{"total":{"ns":20211100}},"memory":{"mem":{"usage":{"bytes":63901696}}}},"cpu":{"system":{"ticks":720},"total":{"ticks":1710,"time":{"ms":20},"value":1710},"user":{"ticks":990,"time":{"ms":20}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":15},"info":{"ephemeral_id":"2a2ffb2d-526c-4bf0-b795-4257b12bad6f","uptime":{"ms":1380146},"version":"8.10.2"},"memstats":{"gc_next":46202880,"memory_alloc":23455944,"memory_total":126976880,"rss":114532352},"runtime":{"goroutines":70}},"filebeat":{"events":{"active":686,"added":4},"harvester":{"open_files":2,"running":2}},"libbeat":{"config":{"module":{"running":4}},"output":{"events":{"active":0},"read":{"bytes":403},"write":{"bytes":310}},"pipeline":{"clients":4,"events":{"active":680,"published":4,"retry":50,"total":4}}},"registrar":{"states":{"current":2}},"system":{"load":{"1":0.12,"15":0.51,"5":0.16,"norm":{"1":0.0075,"15":0.0319,"5":0.01}}}},"ecs.version":"1.6.0"}}
docker-elk-main-elasticsearch-1  | {"@timestamp":"2023-10-03T10:32:59.785Z", "log.level": "INFO", "message":"adding index template [.logs-endpoint.action.responses] for index patterns [.logs-endpoint.action.responses-*]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[elasticsearch][masterService#updateTask][T#3]","log.logger":"org.elasticsearch.cluster.metadata.MetadataIndexTemplateService","trace.id":"dd926bbe84f338dba743deae118efc9b","elasticsearch.cluster.uuid":"pV6dxUt2QveIs6jdoMSkCA","elasticsearch.node.id":"5pGROdFjSEiNbNTKr_rLUA","elasticsearch.node.name":"elasticsearch","elasticsearch.cluster.name":"docker-cluster"}

unable to authenticate user [filebeat_internal] for REST request indicates the the filebeat_internal user was not created in Elasticsearch. In case you added Filebeat to a stack that has already been initialized, you need to run the setup command one more time to add the two users you mentioned.
Here is the step you possibly overlooked:

In case you haven't done that during the initial startup of the stack, please refer to How to re-execute
the setup to run the setup container again and initialize these users.
-- https://github.com/deviantony/docker-elk/tree/8.2305.1/extensions/filebeat#usage


[Bug] Optimization of UI No Response

Describe the bug
Hi, when I try to upload a dozen photos in this macOS app, around 100 MB size, the compression process will cause the interface to keep loading and not be able to do anything, so do we have any optimization plan to solve this problem?

@Christopher-Hayes Hi, I am glad to see that you are also involved in this project. Do you have any suggestions or solutions?

Hi @NumberCode I haven't been actively involved on this project for several months, so I can't offer any immediate fixes. I'll try to take a look at some point in December.
If you or anyone wants to try working on this - the first place I would take a look would be how file data is getting read into working memory and check if multiple files together are causing a spike that is freezing Electron. Optimization could involve making sure files are all gettings streamed (rather than put into working memory objects), checking for memory leaks / if any working memory file data is not getting garbage collected for some reason (Map vs WeakMap), or other ways to mitigate memory spikes.

Thank you so much for your response! It would be great if you were willing to take the time to solve this problem!
I like this software very much, but I am not a professional front-end developer and don't know how to solve it.
I tried searching the Internet and found that it seemed possible to use remote to create a hidden window to handle time-consuming tasks, how dou you think?

🥹 No one handles this~


Re-loading of files after a change outside of the modeler does not work

Describe the Bug
When having multiple diagrams open in tabs, when several of them change outside of the modeler (e.g. by a update of the local repository), only the currently open diagram is reloaded.
Steps to Reproduce

BPMN files A and B are located in a local repository
Modeler is open, files A and B opened in tabs. File A is shown.
Minimize modeler, perform switch of the repository to another branch so that the files are changed in their original location
Maximize modeler
Modeler asks on file A if the diagram should be reloaded as it has changed => click yes => works
Switch to tab with file B
Modeler asks if the diagram B should be reloaded => click yes => diagram B is not reloaded, "saving circle" is shown on tab
Save diagram => recent version B is overwritten by version of B from previous branch

Expected Behavior

Modeler asks if the diagram B should be reloaded => click yes => diagram B is reloaded

Environment

OS: Windows 10 Enterprise 64 Bit
Camunda Modeler Version: 4.5.0

Thanks for reporting! Can you maybe update your issue to fit our guidelines? It would especially help us in terms of your used environment.

Thanks for reporting! Can you maybe update your issue to fit our guidelines? It would especially help us in terms of your used environment.

Thanks for the link to the template, just updated the description.

Thanks for the link to the template, just updated the description.

Thanks a lot! Maybe we can even simplify the bug report. Can you verify the following steps?

Create a new diagram.
Save diagram on disk.
Move the diagram outside of the Modeler application.
Switch back to Modeler and focus diagram.
-> No reload happens

Thanks a lot! Maybe we can even simplify the bug report. Can you verify the following steps?

Create a new diagram.
Save diagram on disk.
Move the diagram outside of the Modeler application.
Switch back to Modeler and focus diagram.
-> No reload happens

I could verify your steps. No reload happens, saving after moving will create a new diagram in the old location.

I could verify your steps. No reload happens, saving after moving will create a new diagram in the old location.

I think we have problems a while now when open files change their location

via manual move
via manual deletion
via version control tools like git

Thanks for reporting this. I think we have no immediate need to tackle this problem. Let's see once we have further information on this due to more notifications.

I think we have problems a while now when open files change their location

via manual move
via manual deletion
via version control tools like git

Thanks for reporting this. I think we have no immediate need to tackle this problem. Let's see once we have further information on this due to more notifications.


Improve memory efficiency

The library Tweetonig used is a lot more efficient, e.g by not using String and a bunch of other optimizations for embedded devices. We should learn from that:
Tweetonig_RN2483.zip

@svenhaitjema will optimize the library once we have the public APIs (including those of the Node) ready.

Done by #130 for TheThingsNetwork, still some things to do, in particular for the node branch, but let's close this until we have concrete needs.


Question on initialization

The default initialization is PCA -- is that correct? So, is it using the top 50 PCs for the TSNE embedding?
If I wanted to just run my data as is -- what initialization would allow for this?
thanks!

That's right -- the default initialization is PCA. However, t-SNE embeds data into 2D, so we here take the top 2 principal components of the data matrix, and use that as the initialization for the embedding. However, this refers only to the starting positions of the points in the 2D embedding, not to the actual input to the t-SNE algorithm. openTSNE uses the full data matrix, so if you want to do any preprocessing, e.g., taking only the top 50 PCs and using that, you'll have to do this yourself.
So, to answer your question, if you want to construct a t-SNE embedding for your data as is, openTSNE does this by default.

OK. So, given a data matrix with features, openTSNE, as it's default initialization, calculates the PCs, then takes only the top 2 PCs for initialization. After initialization, the full data matrix with the original (non PCs) features is used to perform the embedding.
If I actually wanted to use e.g., the first 50 PCs as my features as input for the embedding, I would simply calculate this ahead of time and pass this to openTSNE. And to avoid having openTSNE calculate the PCs again, I would (as you showed in '04_large_data_sets') initialize with:
init = openTSNE.initialization.rescale(X[:, :2])
and then use:
openTSNE.TSNE(initialization=init ...)`
To be sure, the parameter n_components is the dimension of the embedding space for tSNE, and your PCA initialization has to use this same number of PCs as well.
Is this correct?
Thanks!

That's all spot on!

Thanks!


Upgrade Phoenix LiveView to 1.0

Hi there!
Phoenix LiveView 1.0 just came out! Would you consider updating the dependency?
Thanks for your amazing work on this project! 🙌

Hey Roman,
yes this is planned, I usually wait for one or two minor updates before updating dependencies.
do you know if there are any breaking changes?

I updated the dependency to 1.0.1 on the demo application.
It works flawlessly
Did you experience any issue?

Yep, they do have breaking changes: dropped the support for phx-feedback-for annotations, live_flash, and push_redirect. There was something else minor, related to dynamic tags handling... But after a quick look at the phoenix_storybook code, I couldn't find any dependency on the deprecated functions. So, it looks to me the migration shouldn't be painful, but, as author, you should still check the changelog and confirm compatibility.
They also added inline interpolation as opposed to embedded expressions so you can write hi<EMAIL_ADDRESS>instead of hi <%= @user.name %> now. But that one is backward compatible and doesn't require immediate update when upgrading to LV1.0.

I didn’t notice any breaking changes in the changelog, and I didn’t experience any issues with the demo app.
Could you clarify what you expect from me?
I believe keeping the dependency as {:phoenix_live_view, "> 0.18.7"} allows users to decide whether they want to use the latest version of LiveView or not.

If you want to use the new interpolation syntax, then it should be ~> 1.0.1, otherwise if you're ok with using <%= embedded expressions, it would probably make sense to set the dependency as or: ~> 0.18.7 or ~> 1.0.1. > could introduce compatibility issues if there was a new version to come out with breaking changes affecting the storybook codebase.

I'm sorry, I feel a bit stupid, but it seems we don't manage to understand each other 😅
The current phoenix_live_view dependency declared in phoenix_storybook  is "> 0.18.7"
There is no ~> in it.
So you can use 0.18.x, 0.20.x or 1.0.x without any issue
phoenix_storybook codebase itself will be updated to use the new embedded expression syntax in a couple of weeks.

hm, now it's time for me to feel stupid - I saw dependency compatibility issue in my project when installed storybook, and quickly judged the storybook to be the problem because I read ~> 0.18 instead of > 0.18. But now I see that's not the case and my issue was very likely somewhere else. I will try enabling storybook in my app once again and I guess it should just work. Sorry for the false alarm, I'm closing this issue.

@cblavier found/remembered the issue, it was with storybook indeed, I just forgot what it was 😅
here are the compiled assets https://preview.hex.pm/preview/phoenix_storybook/0.7.2/show/priv/static/js/app-752894c2093944cc7d8585668b225d03.js and the problem is that the assets are compiled with LV 0.20.17 (version() function returns "0.20.17"), which results in mismatch between client and server liveview versions:

its not obvious to me how to support both versions unless you can delegate assets compilation to end user

Awesome, thank you!

thanks for the tip ❤


Need access to workflow template functions

Need access to the following in order to create workflow templates:
Codeunit 1502 (Workflow Setup)

MarkWorkflowAsTemplate
InsertWorkflowTemplate
InsertEntryPointEventStep
InsertStep
InsertResponseStep
GetSequenceNumber
SetCustomTemplateToken

Also....why does InsertWorkflowTemplate not call MarkWorkflowTemplate directly? If it did, then we don't need access to the MarkWorkflowAsTemplate function.

What about this issue? Why is it closed?
From my point of view #929 does not fix this issue!?!
The methods are still "internal" so we cannot use it for creating workflow templates without the need to duplicate it...
Additionally to the named functions above, I need:

InsertEventArgument

@DominikDitoIvosevic @StanislawStempin
Same question here, this issue is open for a long time.
Other than what @StHillmann asked for, I need following procedures marked as "external":

PopulateWorkflowStepArgument
Encode

Wow! This issue has been around for a while! Let me look into it!

All the requested functions in this issue are local functions with rather simple logic in it. Ideally, we would like to avoid exposing local functions, as that reduces our possbilities to refactor and change our code. If we would expose all requested local functions in this codeunit, our possibilities to change any of the logic in the workflow functionality would be severly reduced, if we don't want to make any breaking changes (which we don't). Please allow me to look closer into, why it would be necessary for you to have access to these functions. I will get back to you later today.

Basically, to sum things up, if you want to extend and add new workflows, complete with new workflow templates, the functions that I identified are all needed. I would hope that we aren't expected to copy all of those into our solutions. Perhaps a nice facade wrapper or something can be done to allow us to achieve what we need. The workflow engine is great, but extending it to our own entities, etc. is key.

A nice facade would be prefereable here, but since we're a little low on time, we've decided to go for the "quick and dirty" solution, which is to expose all of the functions you request ;-) I will process this request later today!


Update calicoctl node run to optionally overwrite the node resource parameters

Currently the node run command takes --as, --ip and --ip6 parameters to allow you to configure the AS number and IP addresses on the node.
However, these are also configurable through the node resource.
We should make it so that if the parameters are omitted then we will use the currently configured values.  If a node resource has not been explicitly created and set these values then we will:

Auto detect an IPv4 address
Use the global default AS number

This is a tidy up of our API and as such needs to be addressed for the v1.0.0 milestone.


Dashboard Audit : "Activity Map by Actor Location" and "Activity Count by Actor Location" not showing up - Dashboard issue -Bug

Describe the bug
Do you have any suggestions or troubleshooting steps  why "Audit Log Activity"  is not showing any data? It seems existing SPL is not working
Activity Map by Actor Location"
Activity Count by Actor Location
Are there any additional steps needed from our end?

To Reproduce
Steps to reproduce the behavior:
Expected behavior
As per splunk https://splunkbase.splunk.com/app/5596/
We should be able to see the following dashboards

Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

Browser [e.g. chrome, safari]

Additional context
Add any other context about the problem here.
This is how i am getting the data

This functionality uses a lookup file, geo_attr_countries. Can you see if that lookup is visible in the app?


Move text object related functions to a separate file

I think it's OK to call the file textobject.c, just three more letters and less obscure.


Flexible backend iterative scheme

Make a flexible Flexible backend iterative scheme for low/medium/high precision and/or if/when new iterartion algos become available.

See also #111


Apply overworld enhancements to puzzle's restaurant scene

The customer seating area should be rendered with the same engine as the overworld. Hopefully this should simplify some things as far as layers and stuff. It should make #51 and #54 more fixable too, since panning a camera around an environment is easier than scaling a set of sprites.
Make sure you don't accidentally break spatial sound effects.

Ideally this would be absurdly seamless -- the player would run into the restaurant, and you'd just see sort of a splitscreen view, and the puzzle would overlay on top of it. It shouldn't even really feel like the player leaves the overworld.

We've created a restaurant interior scene; we should reuse it for the puzzles

We've created a restaurant interior scene; we should reuse it for the puzzles

Closed by #1376.


Generic TCP port checking

Use something like netcat to check if port is responding

https://github.com/heywoodlh/bash-uptime/commit/c7a36dc9eefcb75cd8d71258d50d233e9d95e315


Image slicing

Description

I am trying to slice a 3D image using indexing but I get one slice short of what one would expect. After looking into it, it seems the last slice is always missing.
Steps to Reproduce
Here’s a simple example using a simple array:
import numpy as np
import SimpleITK as itk

test_array = np.array([0,1,2,3,4] * 6).reshape(3,2,5)
test_array = test_array.swapaxes(2,0)
test_array

Out[2]:
array([[[0, 0, 0],
        [0, 0, 0]],
       [[1, 1, 1],
        [1, 1, 1]],
       [[2, 2, 2],
        [2, 2, 2]],
       [[3, 3, 3],
        [3, 3, 3]],
       [[4, 4, 4],
        [4, 4, 4]]])

If we convert this array to an Image and take every second slice in the third dimension and convert it back to a numpy array (for easier visualization), we expect to get an array of size (3,2,3), the same as one would by using the same operation on the array directly. Instead we get this
test_img = itk.GetImageFromArray(test_array)
sliced = test_img[:,:,::2]
sliced_array = itk.GetArrayFromImage(sliced)
sliced_array

Out[3]:
array([[[0, 0, 0],
        [0, 0, 0]],
       [[2, 2, 2],
        [2, 2, 2]]])

So the last slice
[[4,4,4],
[4,4,4]]

is missing. The same issue occurs when slicing with SliceImageFilter
slice = itk.SliceImageFilter()
slice.SetStep((1,1,2))
sliced_filter = slice.Execute(test_img)
sliced_filter.GetSize()

Out[14]: (3, 2, 2)

sliced_filter = itk.GetArrayFromImage(sliced_filter)
sliced_filter

Out[16]:
array([[[0, 0, 0],
        [0, 0, 0]],
       [[2, 2, 2],
        [2, 2, 2]]])

Environment
I have run the above experiment on Ubuntu 18.04 using both Python 3.6.8 and Python 3.5.2 and SimpleITK version 1.2.0.

Awesome, thanks!


trying to go to definition crashes language_server-ruby

See the following log from neovim's language server client.
D, [2017-10-12T12:43:06.091826 #4184] DEBUG -- : Receive: {
  "jsonrpc": "2.0",
  "id": 2,
  "method": "textDocument/definition",
  "params": {
    "textDocument": {
      "uri": "file:///path/to/app/views/index.html.haml"
    },
    "position": {
      "line": 13,
      "character": 43
    }
  }
}
/home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server/project.rb:15:in `find_definition
        from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server/definition_provider/
        from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server.rb:139:in `each'
        from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server.rb:139:in `flat_map'
        from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server.rb:139:in `block in
        from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server.rb:45:in `block in r
        from /home/tob/.gem/ruby/2.4.0/gems/language_server-protocol-0.4.0/lib/language_server/protocol/tr
        from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server.rb:34:in `run'
        from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/exe/language_server-ruby:8:in `<top (req
        from /home/tob/bin/language_server-ruby:23:in `load'
        from /home/tob/bin/language_server-ruby:23:in `<main>'

There are also crashes when completing:
D, [2017-10-12T13:04:43.384196 #6211] DEBUG -- : Receive: {
  "jsonrpc": "2.0",
  "id": 1,
  "method": "textDocument/completion",
  "params": {
    "textDocument": {
      "uri": "file:///redacted"
    },
    "position": {
      "line": 8,
      "character": 5
    }
  }
}
/home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server/project.rb:70:in `find_nearest_node': undefined method `modules' for nil:NilClass (NoMethodError)
	from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server/project.rb:28:in `constants'
	from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server/completion_provider/ad_hoc.rb:14:in `call'
	from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server.rb:130:in `each'
	from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server.rb:130:in `flat_map'
	from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server.rb:130:in `block in <module:LanguageServer>'
	from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server.rb:45:in `block in run'
	from /home/tob/.gem/ruby/2.4.0/gems/language_server-protocol-0.4.0/lib/language_server/protocol/transport/stdio/reader.rb:27:in `read'
	from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/lib/language_server.rb:34:in `run'
	from /home/tob/.gem/ruby/2.4.0/gems/language_server-0.7.0/exe/language_server-ruby:8:in `<top (required)>'
	from /home/tob/bin/language_server-ruby:23:in `load'
	from /home/tob/bin/language_server-ruby:23:in `<main>'

Note: I am using a globally installed language_server-ruby.

@ibotty Thank you for your reporting!
Could you tell me the file you were editing and project you were opening?

Unfortunately, it's a proprietary rails project. I will try to find a simple open source project to reproduce.

This is easy to reproduce - it is a startup condition.  If you rush the parser, this is what happens.  I will have a messy pull request to address this.
https://github.com/mtsmfm/language_server-ruby/issues/36


Fix Participant detail view if the User cannot manage participants

Current behaviour:
If a participant is not allowed to manage other participants then every participant detail view displays the icon for inactive users:

Payload if you are not allowed to manage:
{
"meeting_user/7752/id": 7752,
"meeting_user/7752/meeting_id": 288,
"meeting_user/7752/user_id": 7139,
"user/7139/default_vote_weight": "1.000000",
"user/7139/email": "",
"user/7139/first_name": "",
"user/7139/id": 7139,
"user/7139/is_physical_person": true,
"user/7139/last_name": "",
"user/7139/meeting_user_ids": [
7752
],
"user/7139/username": "fjyfyt"
}
user/7139/is_active: true

is missing from the payload
Reproduction:

create participant A
Activate Can see participants, Can see sensitive data, Can manage presence of others, Can update participants
Login as A and navigate into any participant detail view (make sure that the participant is not actually inactive)
The participant will (in the detail view) be displayed as inactive

Wanted behaviour:
A participant should only be displayed as inactive if they are indeed inactive

As far as I understand this problem: It is an autoupdate server problem.
The subscription participant-detail doesn't give is_active for an user with UsercanUpdate.
The subscription participant-detail give is_active for a user with admin rights.

@bastianjoel Can you verify this? How can we continue here?

This issue is incorporated in the issue #3552


Form Row - Margin Bottom

As per the documentation for Form Grids, it is recommended to use the following:
<form>

...

...

</form>

However, the margin-bottom for an element that contains the class attribute row is 0 and the margin-bottom for an element that contains the class attribute form-group is 1REM. Because of this difference, I propose changing the documentation to:
<form>

...

...

</form>

As to demonstrate consistent behavior regarding the margin-bottom attribute.

I apologize for the delayed response. To clarify, I opened the ticket it to point out that there is a lack of consistency with regards to the documentation. I think that it would benefit users who're following the documentation from the Form Grid section to include the form-group class in all of the examples. Doing this will provide the same behavior with regards to the margin-bottom attribute that is used throughout most of the other examples.
In fact, after re-reading the documentation, the inclusion of the form-group class is used in the second example of the Form Row as well as the examples in the Horizontal Form section. It is just not being used in neither the example found in the Form Grid section nor the first example in the Form Row section.

I see what you mean now, but the .form-group class isn't required in either of these situations for a single input without a label. It's not demonstrating the .from-group class, it's demonstrating the form row and column classes. For now, closing as a won't fix.


Ability to pass auxiliary data with output MLP

The ability to inject auxiliary information in the output MLP is a feature of neuralprocesses.construct_convgnp, but is not supported in deepsensor yet. This would allow for training downscaling models, for example, so is important to implement soon.

Closed by https://github.com/tom-andersson/deepsensor/commit/b50cb9e530c45d9bfac4b9c6571b20c52d5a34d3 - https://github.com/tom-andersson/deepsensor/commit/2afc73e11e900a32424bc114b87f472110d1f47e


perf(styles): ⚡ changed the reference to styles

Changed the reference to styles, which allows you to shorten the construction of styles and make the output css even smaller in size

:tada: This PR is included in version 1.6.1-beta.3 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.0-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Need to filter column test based on dataType

the test is available for all column types regardless of type (should replicate the behaviour of 0.11 and filter out certain tests based on column type)

Backend

need filter from the backend to get a filter test type

UI

Consume API provided by backend in UI

@TeddyCr let me know if you can take this up as well


jsonnet: Drop cAdvisor metrics with no (pod, namespace) labels while …

…preserving ability to monitor system services resource usage
The following provides a description and cardinality estimation based on the tests in a local cluster:
container_blkio_device_usage_total - useful for containers, but not for system services (nodesdisksservicesoperations2)
container_fs_.*                    - add filesystem read/write data (nodesdisksservices4)
container_file_descriptors         - file descriptors limits and global numbers are exposed via (nodesservices)
container_threads_max              - max number of threads in cgroup. Usually for system services it is not limited (nodesservices)
container_threads                  - used threads in cgroup. Usually not important for system services (nodesservices)
container_sockets                  - used sockets in cgroup. Usually not important for system services (nodesservices)
container_start_time_seconds       - container start. Possibly not needed for system services (nodesservices)
container_last_seen                - Not needed as system services are always running (nodesservices)
container_spec_.                  - Everything related to cgroup specification and thus static data (nodesservices5)

Description
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.
Backport of https://github.com/prometheus-operator/kube-prometheus/pull/1250
Type of change
What type of changes does your code introduce to the kube-prometheus? Put an x in the box that apply.

[ ] CHANGE (fix or feature that would cause existing functionality to not work as expected)
[ ] FEATURE (non-breaking change which adds functionality)
[ ] BUGFIX (non-breaking change which fixes an issue)
[x] ENHANCEMENT (non-breaking change which improves existing functionality)
[ ] NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry
Please put a one-line changelog entry below. Later this will be copied to the changelog file.

Drop high cardinality metrics from cAdvisor

Thanks for the backport 🙂


Bike Ride 3D still not working

I waited for 10 minutes and its still stuck on Registering event for Bike Ride 3D in Hamster FAM on the first account.

That's fine, Max is 20 minutes. 2*10


Verison 0.12 support

This merged version is now built and can be downloaded as a nuget from here.
https://www.nuget.org/packages/InfluxDB.MultiVersion.Client/


Composition API not working in components library.

Version
3.2.21
Reproduction link
github.com
Steps to reproduce

Clone the git repo.

This steps is to build a vue components library.

Open a terminal in vscode / others.
cd component-library/
npm i
npm run build (Build the components library using vite)
npm run dev  (This command is to run a test on the components in this package)
Open browser in  port http://localhost:3000/ and test the buttons.

This steps is to test the components library in another vue app.

Open another terminal
cd vite-app/
npm i
npm run dev
Open browser in port http://localhost:3001/ and test the buttons.

What is expected?
http://localhost:3001/ can perform same result as http://localhost:3000/
What is actually happening?
Can  refer to http://localhost:3001/.

"click" button is missing.
"click2" button click will no direct affect the UI like http://localhost:3000/
"click3" button function well as http://localhost:3000/

I am new to the vue3 and vite. I wish to create a components library with vue 3 composition API. Then, I meet this bug while creating the component library using vite. Then I create a sample to test the bug.
There are 3 kinds of reactive variables I used.

The first button "Click" that change reactive variable "Composition Api from outside TS file" I use composition API ref() which import in setup() from outside file. Can refer to "component-library/src/component/Component1.vue, Component2.vue, share.ts".
The second button "Click 2" that change reactive variable "Composition Api from inner setup" I use composition API ref() and declare inside setup(). Can refer to "component-library/src/component/Component1.vue".
The third button "Click 3" that change reactive variable "Optional APi" I use optional API data(). Can refer to "component-library/src/component/Component1.vue".

After that, I use vite to build a component library based on the documentation https://vitejs.dev/guide/build.html#library-mode.
After built the library, I create a new vite app to test the  library. I import the components from "component-library" and run the app.
The result I expected is the "vite-app" which use the components from "component-library" can perform the same result with the "component-library" in "npm run dev".
This means that the reactive variables from composition API is work when import from components library.
I am not sure this bug is come from vue or vite, or I am using wrong methods to build components library. I hope can get some advices from the community, thank you.

Duplicate of https://github.com/vuejs/vue-next/issues/1503


Definition for instanceof class

Closes #77

Current coverage is 87.77% (diff: 100%)

Merging #117 into master will increase coverage by 0.01%

@@             master       #117   diff @@
==========================================
  Files            31         31
  Lines           776        777     +1
  Methods         101        101
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            681        682     +1
  Misses           95         95
  Partials          0          0

Diff Coverage
File Path

•••••••••• 100%
src/Fqn.php

Powered by Codecov. Last update 8a354ba...beaf8a8

Thanks!


Raising because we don't have a provider

Hi there, we're using this gem without a webhook provider as we're just interested in the base functionality. When trying to upgrade to 0.8.0, we get this error:
Emailbutler::Configuration::InitializeError: At least 1 provider must be present (Emailbutler::Configuration::InitializeError)

Can you please make the provider optional again in 0.8.1? I can also work on a patch for this if you'd like.
Thank you so much!

@zachfeldman Hi, Zach, sorry for long response, are you interesting in just emails statistics and not receiving webhooks?

@kortirso no problem, sorry for my long response. I was off last week!
Yes, that's exactly it, and your gem is really useful for just that without the webhooks (for us) :)

Thanks @kortirso !

Thanks @kortirso !

you are welcome, thanks for using gem


PDF Open Parameters should be implemented

PDF documents can request certain viewer configuration options on open, including:

zoom level
page configuration (ie continuous/booklet/single page)
hide menu bar
hide tool bars
hide scroll bars
Request full screen
display bookmarks/thumbnails/layers/none

These settings can be embedded as properties within a document, or requested as URL parameters - see http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf
Many of these capabilities already exist in pdf.js so implementation should not be difficult?

I would kill to be able to hide the toolbar and fit the document horizontally (view=FitH)

Quite an underrated feature...it would be nice to know if maintainers would approve a pull requests which makes PDF.js comply with the default pdf viewer parameters. Else I won't waste my time trying.

it would be nice to know if maintainers would approve a pull requests which makes PDF.js comply with the default pdf viewer parameters.

In general it's unfortunately not really possible for anyone to guarantee beforehand that a particular PR will be accepted (most PRs also require changes in response to review comments); especially not having seen a patch, nor knowing what it will contain and how the solution is expected to look.

@Snuffleupagus surely we cannot expect an acceptance-guarantee. 😄 Knowing that a pull request(if done properly and revised if necessary) will not be refused for being "out of scope" is enough to start developing. If necessary, the parameters could still be split into groups of acceptable, and non-acceptable ones.

@Snuffleupagus surely we cannot expect an acceptance-guarantee. 😄 Knowing that a pull request(if done properly and revised if necessary) will not be refused for being "out of scope" is enough to start developing. If necessary, the parameters could still be split into groups of acceptable, and non-acceptable ones.

From this reply I take that such a PR is not out of scope and was just not fully addressed yet. Will reference my toolbar PR here later which should resolve a part of this issue.

From this reply I take that such a PR is not out of scope and was just not fully addressed yet.

There's a lot of relevant discussion in PR #3815 as well, and that one was also ultimately closed; whether or not something like this will be accepted probably depends quite a bit on the complexity of the solution as well given that it's somewhat of an edge-case (and keeping in mind that code needs to be maintained too).


i18n(pt-BR): Update configuring-astro.mdx translation

Update configuring-astro.mdx translation
Updates the pt-br translation of the configuring-astro.mdx guide.

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

pt-br
guides/configuring-astro.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.