CSLA-25: Fix hanging process when reading secret.key file on Windows

Before calling BSL.readFile we must ensure the secret.key file exists.
Using Turtle.Prelude.touch is too aggressive because it changes the existing
file's timestamp metadata and therefore acquires a write lock. However, doing
the same thing as Turtle.Prelude.touch, except handling pre-existing secret
files as a no-op works, regardless of whether secret.key exists.

I'll fix the travis build later. Tested locally and it indeed works!


fix(kafka-setup): Make topic name consistent with other images

Checklist

[ ] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[ ] Links to related issues (if applicable)
[ ] Tests for the changes have been added/updated (if applicable)
[ ] Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
[ ] For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

Are these changes backward compatible? Will they break folks with custom topic names?

They are not. Folks with custom topic names will have to change the environment variable names they are using to set names. This PR makes that name consistent for all components. Kafka-setup job was the outlier using inconsistent env var names compared to GMS & standalone consumers. I have made a note about this in updating-datahub.md


Upload new version to the python package index

Please up the version and upload to pypi.  Latest version (0.0.1) really doesn't work without the latest pull requests.

Done! (finally)


docs: Scrub all references to token-list

Problem
https://github.com/solana-labs/token-list has been archived for awhile, but our docs still recommend to use it.
Solution
Change to a link to Metaplex docs. Also, why was it referenced in the name service JS bindings? The world may never know

The docs CI passed, which is all that matters -- merging during CI!


⚠ Bofrost.at has degraded performance

In b971e40, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2751 ms

Resolved: Bofrost.at performance has improved in e84ff17 after 51 minutes.


[Feature request] Switch color palette with CSS variables

Proposal
Introduce CSS like the following, which assigns colors to CSS variables:
.indigo {
    --color-100: #e5edff;
    --color-200: #cddbfe;
    /* ... indigo 300-900 ... */
}

.red {
    --color-100: #fde8e8;
    --color-200: #fbd5d5;
    /* ... red 300-900 ... */
}

/* ... more colors sets ...*/

.text-color-100 {
    color: var(--color-100);
}

.text-color-200 {
    color: var(--color-200);
}

/* ... */

.bg-color-100 {
    background-color: var(--color-100);
}

.bg-color-200 {
    background-color: var(--color-200);
}

The benefit is that it would be much easier to toggle the color theme of a widget.
For example, to change this button from red to indigo:
<button class="p-2 text-red-100 bg-red-700 hover:bg-red-600">click me</button>

You have to replace all three of the "red" classes with "indigo" classes:
<button class="p-2 text-indigo-100 bg-indigo-700 hover:bg-indigo-600">click me</button>

With the proposed CSS:
<button class="p-2 red text-color-100 bg-color-700 hover:bg-color-600">click me</button>

To make the button indigo, you change only one class:
<button class="p-2 indigo text-color-100 bg-color-700 hover:bg-color-600">click me</button>

Benefits
There are two savings with this approach. First, there is a savings in the effort of toggling colors. This savings is biggest if you need to theme widgets that subtly change their color with all of the hover/focus/active states, like the buttons from Tailwind UI. This is especially true if you are toggling colors with JS (e.g. a status indicator that changes from green to red).
Second, there is a potential savings in file size. Currently you need number-of-colors * utilties-with-color-theme * number-of-variants classes. With this approach, you might get away with number-of-colors + utilties-with-color-theme * number-of-variants classes. In extreme cases, that would be a 90x reduction in file size. Admittedly, actual savings would be much smaller, assuming the use of purge, and considering that some widgets would still need to use multiple colors, or use different "lightness" values with different colors.
Drawbacks
This doesn't work if you need to mix colors on the same widget class="text-red-700 bg-blue-300". For that reason, some projects may still have a use for the per-color utilities.
If you intend to toggle colors on a single widget, you need the contrast to stay the same to maintain accessibility. That is, you need a palette where the visual intensity of each "lightness" is more consistent across colors, as in the palette from @tailwindcss/ui. Otherwise text-color-600 bg-color-100 might be legible with red, but illegible with yellow.
This doesn't account for "dark mode". In that case, instead of toggling colors, you're swapping lightness. (Although that drastically over-simplifies the effort needed to create a dark mode website.) As a first pass, you could do something like this, I suppose:
.dark-mode .red {
    --color-900: #fde8e8; /* usually assigned to --color-100 */
    /* ... */
}

The proposal above loses all the Opacity utilities. To do things right, you'd need RGB values for the vars too:
.indigo {
  --color-100: #e5edff;
  --color-rgb-100: 229, 237, 255;
}

.text-color-100 {
  --text-opacity: 1;
  color: var(--color-100);
  color: rgba(var(--color-rgb-100), var(--text-opacity));
}

No plans to make this change in core right now but you can do this in your own projects already by updating the colors in your config file to reference custom variables and adding the color-assigning classes to your custom CSS 👍


Kubernetes service discovery for initContainers

Proposal
The current Kubernetes service discovery implementation totally disregard initContainers.
https://github.com/prometheus/prometheus/blob/master/discovery/kubernetes/pod.go#L216
This would be useful to have them scrape because:

they may contain troubleshooting information.
We could detect problems.
We might want to observe how long initialization took.

Originally the problem appeared from https://github.com/grafana/loki/issues/575  while for metrics it is arguable that you might need this, for logs there is no question.
Alternatives could be to create a custom service discovery. /cc @gouthamve

If we do scrape them, how to deal with them if they die? Is that target going to be down forever? /cc @brancz?

Yes, init containers must complete before the "normal" containers are started. And yes they will be down forever once they complete, if not removed from discovery once they complete (which should be possible with discovery information from its status). Generally speaking though from the Prometheus perspective init containers can run for some time, and monitoring team would still be useful.


Day 13 (7/11)

[x] Fix the calendar mechanism while updating the buttons
Connect the calendar mechanisms to the Cart page

I have been able to obtain the day from each visible button, but no connections to the cart page has been made yet.


can't figure out how to add info to BYTE type fields

Hi,
I have been trying to figure out the way to convert a string for XPSubject into the required format.
Can anyone please provide more guidance / examples on how the conversion between BYTE to javascrpt Int works ? ( i am considering to put text into subject )
thank you

Which value do you want to add?
Example:
var s = "foo";
var bytes = [];
for (var i=0; i<s.length; i++) {
    bytes.push(s.charCodeAt(i))
}

bytes -> [102, 111, 111]

@hMatoba
I want to add a piece of text to those fields.
// XPTitle: // XPComment: // XPAuthor: // XPKeywords: // XPSubject
The example you provided doesn't output foo but outputs a chinese character :(
I use this to check: http://metapicz.com/#landing ( + also I do windows -> properties -> details tab to check ).
Any advice ?

It need to encode and decode as UCS2. Read the specification.
http://www.exiv2.org/tags.html

@klaussa finding the answer not straightforward, but this was my solution (using Node.js v12 and the new spread syntax):
exif[piexifjs.ImageIFD.XPTitle]: [...Buffer.from('Your XPTitle', 'ucs2')]

For more information, see:
https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
https://nodejs.org/api/buffer.html#buffer_buffers_and_typedarrays
Other background info:
https://www.npmjs.com/package/punycode
https://mathiasbynens.be/notes/javascript-encoding

its saying uncaught pack error, when i used [...Buffer.from('Your XPTitle', 'ucs2')] using vue 3 js

In my case this issue happened due to big number in exifObj['GPS'][piexif.GPSIFD.GPSTimeStamp].
But it definitely depends. It can be related to any EXIF field. Not only GPS related.


CI: update packages before build

Oops, I left this out. It should fix the spurious build errors (404 errors) in GitHub Actions from today.

Thanks!


Add seed node to testnet deployment

Is your feature request related to a problem? Please describe.
We're still seeing peering trouble on the public testnet, capping out around ~50 peers. Let's ship a seed node as part of the deployment, which should help with peering with large (~100) sets of peers.
Describe the solution you'd like
There's a tm config option called p2p.seed_mode: https://github.com/penumbra-zone/penumbra/blob/40f9de041c2c5cddaedebc05cd3696271f9c8cc7/testnets/tm_config_template.toml#L260-L264
Let's set that to true on the first fullnode in the deployment, which already has the DNS A record for e.g. "testnet.penumbra.zone" pointing to it. Doing so should ensure that new peers receive a list of current addrs, but don't hold onto a persistent connection on the backend.
Describe alternatives you've considered
We tried raising the max_num_inbound_peers to 50 across a 4-node deployment, hoping to raise the peer conn limit to ~200 (50 * 4). That doesn't solve the larger problem of wanting to make sure that new nodes even joining late in the testnet cycle can still peer.
Additional context
See relevant discussion in Discord. See also Tendermint docs describing seed behavior.

Unfortunately the naive approach in #1859 doesn't work as we'd hoped; testing with 10 client nodes joining the preview deployment, they aren't peering well:

I'd expect the peer count for each node to be ~3 (4 instances - 1 seed), but it's not. I'll do a bit more testing, but right now my inclination is to revert the commit for next week's testnet, and continue evaluating the seed/peer behavior separately.

Oops, my testing methodology was flawed: the client nodes were using outdated versions of pd. I deployed the seed_node=true change to a devnet environment, and peers running the latest pd from main worked just fine:

Had to raise our resource quotas on GKE yet again in order to run the devnet, but now I can test these types of config changes before merging to preview.

I went ahead and re-shipped this for the upcoming testnet; therefore closing.


Sort Files by File Name Length in File Explorer

Currently, VS Code does not offer the ability to sort files based on their file name length within the File Explorer. This feature would enhance user efficiency and flexibility when managing files that require organization or identification by name length.
Proposed Feature:
->  Introduce a new sorting option in the File Explorer context menu or settings.(filename length)
->  Enable users to sort files in ascending or descending order according to their file name length.(filename length asc /desc)

By implementing this feature, VS Code would provide a valuable tool for users who rely on file name length for various tasks and organizational purposes.

@lramos15 is this a good first issue considering there is the explorer.sortOrder setting?
@BeltonMenete how should folders be sorted relative to the files?

Closing as duplicate of https://github.com/microsoft/vscode/issues/27286
We need to find an extensible way to sort the explorer as there are just too many feature requests for various ways people wish to do this.


Making sure that the SQL command is properly displayed in the logs

This change allows for the information related to sqlCommand to be displayed correctly in the logs.
At first, I thought this was a bug in my prompt/code because I was seeing the following output:
SQLQuery:NaN
SQLResult: [{"COUNT(*)":0}]
Answer:

With the new code this should now display the actual Command the LLM is suggesting.

Thanks!


JavaScript: Add queries.xml to test directory.

As discussed on Slack, this might help compilation caching for the tests.

Tests aren't noticeably faster and results change due to qltest pecularities, so this doesn't seem worth it.


[Bug] For ncmdump-go foobar2000 reports "Unsupported format or corrupted file"

Bug 描述
This issue is for ncmdump-go. I posted it here since I couldn't register an account for the repo where it belongs.
foobar2000 reports "Unable to open item for playback (Unsupported format or corrupted file)" when importing NCM songs unlocked with this tool. When tested with foobar2000's integrity verification tool it shows the following:
Error: Corrupted FLAC stream
Error: Unsupported format or corrupted file
复现方法
复现此 Bug 的方法

unlock NCM songs with ncmdump-go
import the songs into foobar2000
发生报错

预期行为
foobar2000 shouldn't be showing any errors.
屏幕截图

环境

OS: Windows 11
软件版本: 1.6.0, vanilla foobar2000 v2.24

附加内容
添加更多其他内容以帮助开发者更好地了解这个 Bug。

请提供源文件样本以供分析

sample.zip
Integrity verification report included

Using Chrome, ffplay, and MPC players can open, decodate and play the file normally, please try different software.

It seems to be an issue with ncmdump-go. Please wait for me to locate and fix the bug.

This is caused by the metadata lib go-flac, I'm currently woking on it and contacting with the author of it.

It seems that NetEase Cloud Music 3.0.5 has started to embed metadata with album cover images in music files again. Maybe you can try using the C++ version. I tested several files and did not encounter the problem of missing cover images.

Fixed
See Release 1.7.0: https://git.taurusxin.com/taurusxin/ncmdump-go/releases/tag/1.7.0


BUG:In footer some copyright content written two times.

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?

Here as we seen this text is written two times.
I will fix it.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Assigned 👍


Added instructions for running on dev environment

Coverage remained the same at 58.065% when pulling 65e2aa3388f28fa3e579aac50023dba0df2697b2 on Improvement/update-docs into 89ced2b17e79b5003a416eef59d7024c8459d685 on master.

Coverage remained the same at 58.065% when pulling 65e2aa3388f28fa3e579aac50023dba0df2697b2 on Improvement/update-docs into 89ced2b17e79b5003a416eef59d7024c8459d685 on master.

Coverage remained the same at 58.065% when pulling 65e2aa3388f28fa3e579aac50023dba0df2697b2 on Improvement/update-docs into 89ced2b17e79b5003a416eef59d7024c8459d685 on master.


[Bug]Iilad validator node disconnecting all the time

🐛 Bug
Iilad validator node constantly disconnecting from Premainnet.

some related chat:
https://toroeng.slack.com/archives/CMWHASSPR/p1586286519025300
https://toroeng.slack.com/archives/CH2CR4EL9/p1585948112071700
To reproduce
Code snippet to reproduce
# Your code goes here
# Please make sure it does not require any external dependencies

Stack trace/error message
// Paste the output here

Expected Behavior

System information
Please complete the following information:

Additional context
Add any other context about the problem here.

@aching @phlip9 @gregnazario


terser.js error from wgpu_canvas_context_get_current_texture

I got the not very helpful error MOZ_TO_ME[node.type] is not a function while working on updating to the current lib_webgpu.
I added a debug print statement into the terser.js from_moz function to see what was throwing it off, and saw it was a chainexpression node. Looks like terser.js doesn't support them, and the line:
{{{ wassert('!(texture.derivedObjects?.length > 1000)'); }}}
in wgpu_canvas_context_get_current_texture caused the error.

Hmm, I think the issue is an old version of terser.js (or maybe wrong spec standard input flags passed to it). The rationale for using ?. is that it shortens code size and all browsers that will support WebGPU will also support ?.. However given that this is only an assert, code size is not important, so adjusting the code to drop this use in above commit.

What were the Emscripten cmdline flags (build optimization flags especially) that you were running with?

I believe the optimization flags being passed are -O3 -g2 for the builds I've been doing

It does look like an old version of terser.js being used by this version of emscripten, 3.14.1, while the latest is 5.7.1

Are you on latest Emscripten (does this look like something that needs update in upstream Emscripten repo?) - or would updating Emscripten locally help for you?

Looks like the main branch of Emscripten is on 3.14.1, https://github.com/emscripten-core/emscripten/blob/main/third_party/terser/package.json


Insert required numpy version.

Not sure what requirements.txt is used for, but unit testing is failing for me because of the dtype option in np.linspace.

:ship:

Are you making fun of my 7 character PR, Steven?
This PR was only partially a joke.

NumPy 1.9 changed a whole bunch of internals, such that we really shouldn't be depending on anything earlier anyway. I think this is a good change, and should be merged in. The build failures seem to be related to the same BS where the root conda env can no longer run on 3.3 due to conda's dependency on rumel_yaml. We should fix that by doing everything in a new env instead of the root, but that shouldn't affect this PR.

@scasagrande Ah, that makes more sense.

On that note, I'll merge this in now. Thanks!


Inspector.CancelProcessing does not work

It appears that Inspector.CancelProcessing does not work, or something is required to get it to work
There are currently no tests provided for CancelProcessing, but there are tests for PublishCancelation that it directly calls, but no issues seem to occur for those tests, though I have not looked into what those tests do in particular
I have added my own test in branch cancel-testing, which currently fails. There is also cancel tests in content-fabric that try to use CancelProcessing but fail
It may be worth investigating further what the issue is, though we anticipate having to change the cancelation logic anyway, given work to remove waiting on channels in the processor
These open asynq issues may also be relevant, especially the first one
https://github.com/hibiken/asynq/issues/524
https://github.com/hibiken/asynq/issues/532

Update: so with the help of @elv-gilles, learned that some configurations are needed to make sure the cancelation mechanism runs (in a timely manner), e.g. HeartBeaterInterval and PubsubPollingInterval (rqlite/sqlite specific)
But, it was also determined that asynq decides to push tasks into retry state instead of archived state when the task is canceled. This is very unusual/unexpected behavior, so I figure that we should fix that


feat: kubectl exec support

Description of what you did:
Redirect kubectl exec commands to ! and make ! for internal plugin-to-plugin use only
Fixes #2117

My PR is a:

[ ] 💥 Breaking change
[ ] 🐛 Bug fix
[ ] 💅 Enhancement
[x] 🚀 New feature

Please confirm that your PR fulfills these requirements

[x] Multiple commits are squashed into one commit.
[x] The commit message follows Conventional Commits, which allows us to autogenerate release notes; e.g. fix(plugins/plugin-k8s): fixed annoying bugs
[x] All npm dependencies are pinned.

tests for kubectl exec?

covered by #2250


Particle App does not recognize devices with Android v 6.0.1

The Photon in my kit has not worked correctly. My friend, who has a lot of experience with these tried to help me but he believes there is something wrong with the Photon as well. You can see his posts on your support site.https://community.particle.io/t/photon-continually-blinking-blue-a-couple-things-to-eliminate/22317/11
I tried connecting with the USB cable and command line steps but it did not work either, similar to the other user on the forum.
I got a new Photon and it couldn't connect with my Android. I have two Particle accounts and it wouldn't see it on either one. Rather than try the USB interface again, I took it to my friend's office to see what he could do with it. He was able to log in with both Photons on his own account using an iPhone 6s and latest operating system. After reflashing the original Photon he was also able to use the iPhone to connect both Photons on my account. I was not able to connect either Photon on either of my Particle accounts using my Android device. It can see it on the WiFi but not on the app.
I am using a Samsung Galaxy S7 (model SM-930V) Android version 6.0.1, Kernel version 3.18.20 and Particle app version 4.2.
Out of curiosity I then used the Particle app on my Samsung Note4 running Android version 5.1.1 and it recognized both of them. I reflashed both of them and they worked. Then I used the Particle app on the Galaxy S7 and this time both units could be seen and controlled by the tinker app!
I have no idea why this happened. Apparently the Photon doesn't like Android 6.0.1, at least to install the app but okay with running it.

Very odd; thanks for the bug report!
I'll get my hands on a Samsung device and try this out.

I've read the friends post and I have a Samsung Galaxy S6 with Android 6.0.1. I get stuck at the same point with a new Photon when the wifi "smart network switch" is enabled. When I disable it I can easily setup and claim a new Photon as I did today. I can't say this is exactly the problem but maybe @danieldmarks can replicate or test if this creates and solves the problem (wifi - advanced settings menu in Android).
If that is the case, perhaps instead of a bug it should be a feature type request that the Particle Tinker app doesn't just 'hang' at that point but at minimum return with a helpful error message to direct someone to turn off the smart network switch. And better, with a tap of a button take them to that settings menu.


[Feature] static support multiple commodity

we refact current statistic api's response to calculated amount
{
   "data":{
      "balance":{
         "calculated":{
            "number":"106826.04944",
            "commodity":"USD"
         },
         "detail":{
            "VACHR":"-13.0",
            "USD":"79046.70944",
            "IRAUSD":"0.0"
         }
      },
      "liability":{
         "calculated":{
            "number":"-2703.29",
            "commodity":"USD"
         },
         "detail":{
            "USD":"-2703.29"
         }
      },
      "income":{
         "number":"0",
         "commodity":"USD"
      },
      "expense":{
         "number":"0",
         "commodity":"USD"
      }
   }
}

and display statistic box in style


Getting plus cursor moving out of spin widget

Seems like I get this moving out of slider as well

should be fixed now.


Cannot run on Flutter, dart:cli not found

I have my own so file, but compiler still fails.
TruongSinhs-8GB:flutter_style_transfer truongsinh$ flutter run
Launching lib/main.dart on Pixel 2 in debug mode...
Initializing gradle...                                              0.8s
Resolving dependencies...                                           2.0s

Compiler message:
../../../.pub-cache/hosted/pub.dartlang.org/tflite_native-0.2.2/lib/src/bindings/dlib.dart:5:8: Error: Not found: 'dart:cli'
import 'dart:cli' as cli;
       ^
../../../.pub-cache/hosted/pub.dartlang.org/tflite_native-0.2.2/lib/src/bindings/dlib.dart:49:19: Error: Method not found: 'waitFor'.
    final blobs = cli
                  ^^^^...
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Acli; message=StandardFileSystem only supports file:* and data:* URIs)
#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
#1      asFileUri (package:vm/kernel_front_end.dart:578:37)
<asynchronous suspension>
#2      writeDepfile (package:vm/kernel_front_end.dart:755:21)
<asynchronous suspension>
#3      FrontendCompiler.compile (package:vm/frontend_server.dart:407:15)
<asynchronous suspension>
#4      _FlutterFrontendCompiler.compile (package:frontend_server/server.dart:29:22)
<asynchronous suspension>
#5      starter (package:frontend_server/server.dart:127:27)
<asynchronous suspension>
#6      main (file:///b/s/w/ir/k/src/flutter/frontend_server/bin/starter.dart:8:30)
<asynchronous suspension>
#7      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:303:32)
#8      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

Compiler failed on /Users/truongsinh/Dev/ml/flutter_style_transfer/lib/main.dart

FAILURE: Build failed with an exception.

* Where:
Script '/usr/local/Cellar/flutter/stable/packages/flutter_tools/gradle/flutter.gradle' line: 765

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebugArm64'.
> Process 'command '/usr/local/Cellar/flutter/stable/bin/flutter'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                         9.2s
Gradle task assembleDebug failed with exit code 1
TruongSinhs-8GB:flutter_style_transfer truongsinh$

FYI, im working on tflite_native on Flutter Androdi

@truongsinh I thought this would be cool to support initially but I think that https://github.com/shaqian/flutter_tflite might be a better bet for you at this time. This library specifically supports desktop use cases right now and we load the tflite dynamic library in a way that's incompatible with Flutter. Flutter looks to have its own asset management system that would likely be a better fit for registering and loading a dynamic library through FFI. @sjindel-google can probably speak more knowledgeably about it.

I think https://github.com/flutter/flutter/wiki/Binding-to-native-code-via-FFI might help.

@lambdabaa I had used https://github.com/shaqian/flutter_tflite that previously, but it uses platform  channel, rather than FFI, which is what i'm interested in.
Actually, I manage to get tflite_native running on Android already (loading lib, loading 2 tflite models, resizing tensors, invoking) https://github.com/truongsinh/tflite_native/tree/working-on-android . Now I'm researching iOS.

@lambdabaa I had used https://github.com/shaqian/flutter_tflite that previously, but it uses platform channel, rather than FFI, which is what i'm interested in.

Out of curiosity why do you want to use FFI instead of Flutter's platform channel? Is it related to model prediction latency?

Out of curiosity why do you want to use FFI instead of Flutter's platform channel? Is it related to model prediction latency?

Yes, FFI in theory should have less overhead than platform channel (through JNI), though I'm aware both the tflite C API and Dart FFI now are highly experimental.
A question back to you, is there any reason this repo is using experimental C API of tensorflow lite? (or do you use some other communication channel that we can use to discuss further)?

A question back to you, is there any reason this repo is using experimental C API of tensorflow lite? (or do you use some other communication channel that we can use to discuss further)?

There isn't yet a non-experimental, TensorFlow Lite C API. This one https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/experimental/c is the only public API. We do need to go ahead and update to the latest version though https://github.com/dart-lang/tflite_native/issues/18.


Add attributes to  tag

Is it possible to set attributes for the  tag?
I couldn't find a dedicated function for it, as it seems that the only way to create the body tag, is by creating a new HtmlPage.
Consider the most basic example:
use build_html::*;
fn main() {
    let html: String = HtmlPage::new().to_html_string();
    println!("{html}");
}

That produced the basic Html structure:
<!DOCTYPE html>

However, I would like to be able to set an attribute to the body tag like so:
<!DOCTYPE html>

Is there a workaround for it, maybe again with .with_raw?
I feel like it would be nice if access to these elements would be exposed with some functions.

This is not currently supported by the library, although it could probably be added relatively easily. You do have a couple options to work around it for now though:
You could put a div tag inside the body tag and put your attributes on that. That's probably the "preferred" way, but that does change the "meaning" of the page somewhat.
You could directly modify the output string:
let new_page = page.to_html_string().replace("", ""):

If you're attempting to create an entire page that's somewhat complicated, I might recommend writing the base layer of "static" elements in a separate file, then using build_html to inject the content that your Rust code needs to generate. That way, you can use linters and syntax highlighting for the "base" HTML before filling in the details with this library.

<!DOCTYPE html>

Here's my article:

    {article}

// main.rs

let template = include_str("./template.html");
let article = Container::new(ContainerType::Article)
    .with_paragraph("Here's the content of the article!")
    .to_html_string();

let page = format!(template, article=article)


Range selection in message-list

Requirements

Messages can be selected by "ranges" using shift key
Range selection to resemble gmail behavior.

Range selection will work when shift key is pressed
Range will consist in the messages between the last selected message and the current message to be selected


chore(main): release 1.0.1

:robot: I have created a release beep boop
1.0.1 (2022-05-16)
Bug Fixes

not upper case in package name (dfb3bad)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/jobo322/linearSumAssignment/releases/tag/v1.0.1 :sunflower:


feat: disapproves modifications to .github

Fixes #24

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 13

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 12

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 5

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 144

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 30

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 112

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

See the complete overview on Codacy


Turn error messages in examples from comments into 'exit' statements

Wherever there is a catch block with a (fatal) error message in the examples in the README, replace the error written out as a comment with an exit statement that contains the same message as its sole argument.
For example,
catch (\Delight\Auth\InvalidPasswordException $e) {
	// invalid password
}

should become
catch (\Delight\Auth\InvalidPasswordException $e) {
	exit('Invalid password');
}

to stop the script’s further execution when the examples have just been copied and no proper error handler has been inserted yet, as in https://github.com/delight-im/PHP-Auth/issues/117.

Updated in https://github.com/delight-im/PHP-Auth/commit/c0baa517fa8f2a53186274bae5d2decc23b6d2ff (and https://github.com/delight-im/PHP-Auth/commit/ad90c7d04af8a3167e838f8e5f88c6497053b6a7).


python312Packages.gradio: 4.36.1 -> 4.40.0

Description of changes
diffs:
https://github.com/gradio-app/gradio/compare/gradio<EMAIL_ADDRESS>https://github.com/gradio-app/gradio/compare/gradio_client<EMAIL_ADDRESS>
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

private-gpt fails on hydra: https://hydra.nixos.org/build/268268132


Fix missing curly bracket on seo_schema partial

This missing curly bracket was preventing minified builds of projects using the theme to succeed.

Hi @liuzc, first of all, thanks for the neat Hugo theme!
I'm aware of #51, but since it introduces a new taxonomy I thought it'd be a good idea to create a PR with just the needed changes to allow minified build to run.


gas reporting

I'm going to attempt to start optimizing but there's no gas reporting built in? truffle has a gas reporter, not sure If you've been using something different.
The first thing that needs additional benchmarking is the _mint function so I would like to start adding those tests but a gas reporter is necessary.

Now I see that you are using scripts to  benchmark gas reports. I've also added hardhat-gas-reporting to my branch. The following commit demonstrates optimizations to the mint function using assembly. Optimizations are evident based on the diffs in the reports, all of which show several hundred in savings. I also updated the ERC721A library and the solidity compiler version to 8.17.0.
https://github.com/nidhhoggr/ERC721Psi/commit/752fcd800ca983cb829b5d149345b2f8ce598d0e


Release OREO on Hugging Face

Hello @jwhj 🤗
I'm Niels and work as part of the open-source team at Hugging Face. I discovered your work through Hugging Face's daily papers as yours got featured: https://huggingface.co/papers/2412.16145.
The paper page lets people discuss about your paper and lets them find artifacts about it (your models for instance), you can also claim the paper as yours which will show up on your public profile at HF.
I see that the code is 'coming soon' at https://github.com/jwhj/OREO. Would you like to host the model you've pre-trained on https://huggingface.co/models?
Hosting on Hugging Face will give you more visibility/enable better discoverability. We can add tags in the model cards so that people find the models easier, link it to the paper page, etc.
If you're down, leaving a guide here. If it's a custom PyTorch model, you can use the PyTorchModelHubMixin class which adds from_pretrained and push_to_hub to the model which lets you to upload the model and people to download and use models right away.
If you do not want this and directly want to upload model through UI or however you want, people can also use hf_hub_download.
After uploaded, we can also link the models to the paper page (read here) so people can discover your model.
You can also build a demo for your model on Spaces, we can provide you an A100 grant.
Let me know if you're interested/need any guidance :)
Kind regards,
Niels

We just published our code. We have uploaded a policy model and a value model fine-tuned with OREO to huggingface. The current uploaded models use Qwen2.5-Math-1.5B as the base model. We are planning to release more checkpoints in the future.

We've updated the model cards.


CubeMapShadows not working correctly.

Release 3.9:
In DX9 dynamic CubeMapShadows missing.
In DX11 CubeMapShadows not working at all.

I think they never worked correctly, they being missing might be a new, but it does not really help much since they were not usable before as well.

Almost all my shadowmaps are cubemaps and they work perfectly well at least in DX9. Also the dynamic type is easy to add btw.

Maybe it has been fixed inbetween, it was quite a long time ago when I tested them.

Hey Rich, sorry for the delay on responding to this.
When you say 'not working at all' can you clarify? Are you getting no shadows? Can't even spawn the light?
When I'm testing, I get artifacting, which I've started looking into, but the light and shadows at least appear in DX11 mode.

No problem Areloch, it's a little bit difficult to explain so I have made a vid, showing this scene (which is DX9) with DX11.

The video is here
The on/off switching of the shadow (dualparaboloid) is another thing which also occurs with DX9 with cubemapshadows (I think this might be a culling issue). I switched of the ScatterSky so all gets dark. Now moving around the pointlight (the selected light in the image) you can see that there is some kind of shadow, but it seems to be completely wrong. My guess is that there is some issue with the viewing direction/frustum or so...

Sorry, my fault, old shader was called, problem does NOT exists, so closing issue.


Switch to GitHub actions

The pipeline can be verified here: https://github.com/b1zzu/wifiscanner/actions
What:

Execute the CI workflow on each push except for changes to README.md
Execute cargo check, cargo fmt -- --check and cargo clippy on ubuntu
Execute cargo test on: ubuntu/macos & rust: stable/beta/nightly after previous tests passed
Fix an issue on macos

Closes: #19

@booyaa wdyt?

LGTM!


Join both "text-field" and "password" element into one

We don't want a field to have the name "password" as that could be a vector for exploiting, in the sense that someone could fake the message being from Symphony asking for their password, so we want to remove the "password" idea from the field and this become more of a generic "masked" text-field behavior.

Done on #128


Upgrade to latest OpenSSL

This update is a bit messy, I appologize in advanced for the lack of structure.  I ended up doing a lot of hacking to try to address a few bugs I was dealing with in my own code.
Major things I've done here include:

Updating to the latest Rust-OpenSSL

This fixes a bug wherein creating secure data connections would fail, due to a segfault in rust-openssl (or openssl itself)

Switch the type contained by FtpError::SecureError from SslError to Box<Error> since the latest rust-OpenSSL contains several different errors in different modules, but we don't want to have to distinguish them
Have FtpStream now contain an SslContext since it implements Clone, and Ssl doesn't
Add an FTP server written in Python (using pyftpdlib) to test rust-ftp against
Add a certificate and key to test TLS (FTPS) against
Add an example program that uses the test cert to connect to the FTP server included to make sure encrypted control and data channels work

I know it's not great to have things all mixed up like this and again, I'm sorry for the lack of organization.  Since I use this library for work, a lot of what I'm doing with it is being added in incrementally according to my immediate needs.  I hope you'll agree that, even with an FTP server written in Python instead of Rust, all of these additions add value to the project.
Let me know if there's anything I can do to make this better.

@zsck Looks like the build is broken.

cargo test is trying to run the example I included which uses TLS, but we don't have any setup to have that happen.

I am ok with the server being in python. Just having a server to test with I think is a big plus. Are you going the fix the example ?

The example isn't broken, there just isn't any setup in place to have the Python server running before it runs.  It doesn't compile because cargo test isn't using the secure feature flag, so openssl isn't being compiled. I don't have any ideas in mind for taking care of that right now.

I would like the build to pass before merging this in. Could we have the tests startup the python server ? Could we just have the test use the secure feature flag ?


Check for further options to further simplify organization

For example, in https://github.com/solid/community-server-recipes/blob/0062443b2c76f629a636542608e5f72600c80b28/penny/config-penny.json, I might want to import urn:solid-server:default:ResourceStore_Index rather than having to specify it. (Also config/util/index/example.json sets tupe to PassthroughStore, but that does not work because no source is set.)
In https://github.com/solid/community-server-recipes/blob/0062443b2c76f629a636542608e5f72600c80b28/mashlib/config-mashlib.json, we need to set a lot of boilerplate just to serve custom error pages.
A slight change in configuration might simplify that.

For example, in https://github.com/solid/community-server-recipes/blob/0062443b2c76f629a636542608e5f72600c80b28/penny/config-penny.json, I might want to import urn:solid-server:default:ResourceStore_Index rather than having to specify it.

Solution would be to have a third option for that feature that only exports the index resourcestore (and then mentions to define the other one as in the example).

(Also config/util/index/example.json sets tupe to PassthroughStore, but that does not work because no source is set.)

Ah right, this is actually a problem. It is impossible to disable the index resource store in a simple way like this since the source parameter is dependent on the class name :/ https://github.com/solid/community-server/blob/a3f10bc7667f77a51d005ef2eb7a0c4f8ce56725/config/storage/middleware/default.json#L17
So will have to rethink how to make a feature so the users can enable or disable the store. Might need another layer in the store config for that.

In https://github.com/solid/community-server-recipes/blob/0062443b2c76f629a636542608e5f72600c80b28/mashlib/config-mashlib.json, we need to set a lot of boilerplate just to serve custom error pages.
A slight change in configuration might simplify that.

This would be very easy to fix if only we could remove entries from lists in RDF ;). This one is actually harder to fix due to the templating engine change, otherwise we could have just given a default path to the ErrorToTemplateConverter if the path is not set. Then you would just have to set the 2 template paths in your main config. We can still do that of course but then we can't use the default template of the engine. Another disadvantage of this solution is that the user is required to edit settings of something that is not exposed as a feature in the configs.
The other solution would be to introduce a new config feature specifically for the ErrorToTemplateConverter so only that part has to be replaced if something custom is needed. My one fear there is that we'll have to end up doing something like that for everything that takes a path as input.
Or we could have it as a CLI parameter but I don't think we want that.

Closed by #868


fix(productImport): Add missing dependency - extract-zip

Coverage remained the same at 88.917% when pulling 847dcad0bfb0b2f4e6644b34acc252604a720eac on product-import-missing-dependency into f499e09e38ff33f963fd7112f01febed67450aa8 on master.

Coverage remained the same at 88.917% when pulling 3393261a5a70096d077ed88f6b946559c92a70ad on product-import-missing-dependency into f499e09e38ff33f963fd7112f01febed67450aa8 on master.


Failed host lookup on android device in release mode

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Add http to dependencies
Make an GET request to any host
Run "flutter build apk"
Copy apk on android device and run

Expected results
Successful request
Actual results
ClientException with SocketException: Failed host lookup
Code sample
Code sample
main() async {
var client = HttpClient();
try {
var response = await _client.get("https://flutter.dev");
}
catch (e) {
 log(e.toString());
}

Screenshots or Video

Logs
No response
Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.13.2, on Microsoft Windows [Version 10.0.19044.3324], locale ru-RU)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.2)
[√] Android Studio (version 2022.3)
[√] VS Code (version 1.81.1)
[√] Connected device (4 available)
[√] Network resources

• No issues found!

Is there any way to completely disable ipV6 support in flutter/dart?

Hi @KostyaLocal. Thanks for filing this. Can you confirm you have internet permission enabled in your main AndroidManifest.xml? Kindly confirm you have
<uses-permission android:name="android.permission.INTERNET"/>

added to your android/app/src/main/AndroidManifest.xml
If yes, can you run flutter run --release -v and see if it shows any error in the log and provide the same here?

Hi @KostyaLocal. Thanks for filing this. Can you confirm you have internet permission enabled in your main AndroidManifest.xml? Kindly confirm you have

Yes, thank you, that was the point. I forgot to specify permission in the manifest.xml.


Update README.md

Codecov Report

Merging #58 (c7fae58) into main (27d7d49) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main      #58   +/-   ##
=========================================
  Coverage     95.83%   95.83%
  Complexity       21       21
=========================================
  Files             4        4
  Lines            72       72
=========================================
  Hits             69       69
  Misses            3        3

Flag
Coverage Δ

unittests
95.83% <ø> (ø)

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

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 27d7d49...c7fae58. Read the comment docs.


[release helper]Update assignee for Go

https://github.com/Azure/sdk-release-request/pull/2423

/check-enforcer override


Image to movie

Is there any way to create a movie from images?

You do not need this library to create a movie from images. AVFoundation should be sufficient for your needs.

AVFoundation is slow.

@siam009 You need to use a real device to test it. it has problems on the simulator.


How to interpret the following output during the fit

Hi,
when I fit an AFT model I get the following output during the fit process:
...
(23.71504157218443, None) True 1.0 0.0 <lifelines.utils.DataframeSliceDict object at 0x7f5ce49558d0>
(39.14159108151598, None) False 1.0 0.0 <lifelines.utils.DataframeSliceDict object at 0x7f5ce48ea7f0>
(39.14159108151598, None) False 1.0 0.0 <lifelines.utils.DataframeSliceDict object at 0x7f5ce48ea6a0>
(39.14159108151598, None) False 1.0 0.0 <lifelines.utils.DataframeSliceDict object at 0x7f5ce49558d0>
(39.14159108151598, None) True 1.0 0.0 <lifelines.utils.DataframeSliceDict object at 0x7f5ce48ea7f0>
(39.14159108151598, None) False 1.0 0.0 <lifelines.utils.DataframeSliceDict object at 0x7f5ce48ea6a0>
(39.14159108151598, None) False 1.0 0.0 <lifelines.utils.DataframeSliceDict object at 0x7f5ce49558d0>
(39.14159108151598, None) False 1.0 0.0 <lifelines.utils.DataframeSliceDict object at 0x7f5ce48ea7f0>
...

Is there something wrong? The model still converges, but it would be nice to know what this output means. From a fast reading of the code I couldn't figure it out. In this example I was trying the WeibullAFTFitter, but I get the same output with other custom models.

Uh I think I left an errant print statement somewhere

To confirm: you are using robust=True?

Yes. I was using that option.

So, I guess this was addressed by 155e9bb9e913e19858a91885a36ac844931c1eee, right? It works for me at least. Thanks!

yea, but I should make a new release as well.


What are your definitions of Air Quality Status?

It would be nice to see in your documentation what exactly is considered Excellent, Good, Fair, Inferior, Poor. I also would like to adjust this myself so it aligns exactly with Purple Air's guidelines if it isn't already. Then I can configure my notifications to match the proper language of purple air. Something like
Good is 0-50
Fair is 51-100
ETC
Then let me override these in settings if I'd like to.

@dmthepm the mapping is here

Note that HomeKit does not allow for custom descriptive category values, hence the Excellent, Good, Fair, Inferior, Poor scale which is not exactly same wording as official AQI categories. This is a limitation of HomeKit. Regardless of wording, the ranges are in line with the AQI categories. Unsure how useful customization of these would be.


COMP: Use and move ITK_DISALLOW_COPY_AND_ASSIGN call to public section

Use the ITK_DISALLOW_COPY_AND_ASSIGN macro to enhance consistency across
the the toolkit when disallowing the copy constructor and the assign
operator.
Move the ITK_DISALLOW_COPY_AND_ASSIGN calls to public section following
the discussion in
https://discourse.itk.org/t/itk-disallow-copy-and-assign/648

@jhlegarreta @dzenanz FYI:  I have flagged almost 300 cases where this may still be necessary.  I have my undergraduate student starting to work on this next week.

Sounds good. Thanks Hans.


Implement a tool to provision & scale disco worker farm

Ultimately, this type of scaling should happen automatically.

No longer relevant.

Do we have a similar tool for Celery?

Azure has Autoscaling for its VMs, though I don't know the details. I'll reopen this til we're sure it covers our needs.

See also:

http://celery.readthedocs.org/en/latest/userguide/monitoring.html
https://github.com/mher/flower#screenshots

With our current setup, you can use any external tool to fire up more workers.  Closing for now, will open something on cesium-ml/cesium-web


original paper using deepcut to fuse body part info

From the  code i cannot find body part fusing.
Is the fusing step in provided h5 model?

I think fusing body part information is the property of the StackNet

I think fusing body part information is the property of the StackNet @shensheng27

@chenyuan1994 Thanks for reply.
I think the paper indicate that the input of stacknetpose is two image patch and their seven body part detection result. Well, author did refer stacknet as network which input is two image stack.
I found the repo is quite computation infeasible, using dmax=100 will cost too much time. And deepmatching is quite show too.  After long time, MOT16-02 calculate 30 million cost and output edge.txt and liftedge.txt, but running c++ code for graph solver result in "cannot relocate memory". Any idea?

@shensheng27
Sorry, I ignored the input of the stacknet in the repo . the repo do not include pose estimation net as I know. the result of the repo is not match the result in paper in my practice.
The deepmatching has GPU version . it is faster but it also cost much time because there are too much image pair. it is available here. http://lear.inrialpes.fr/src/deepmatching/
And I had meet the problem  of the shortage of memory. I found out that all the images were loaded in the memory first. So I change to load images when they needed.

@chenyuan1994  Thanks for reply.
Deepmatching do has a gpu version which is quite hard for me to configuration. I found the docker version which is useful.  However, using downscale 2 will over 8gb gpu memory, so i just take slow cpu version.
By the way, I am using poi detection which has 14092 detection on MOT16-02 and 30million edges graph when dmax=100, the graph solver run for 3days and no result yet. Is this normal?

I have take 2 GPU for graph solver, each batch would coast 10 second. And the deepmatching has been completed prior to it.

@chenyuan1994 @shensheng27 I also want to use gpu version of deepmatch....Please tell me how to set up it!!

@MADONOKOUKI I set up gpu version of deepmatching follow the step in https://github.com/lpplbiubiubiub/DeepMatchingGPU

I also used cpu for graph Algorithms, but it took not much time as you spent, maybe 8 hours for MOT16-11.

@chenyuan1994 thank you!!

@chenyuan1994  @shensheng27 Can you download the model .h5 file in line 56 in MultiplePeopleTracking.py: "reid = StackNet64x64(data_root)"?


Cache Explorer

Closes #24
This PR adds a Cache Explorer view on the left-hand side of the main window.
Features include:

Able to view file type, size, date modified
Opening files in:

Output Views
Default App
Explorer

Live-view of the file structure
Basic folding controls (ex: Collapse, Expand Recursively)
Copying of both the file path and contents
Deletion of both files and directories

Documentation and version number are also updated.


print api url on deploy, closes #109

@southpolesteve just want to verify that this is what you wanted

yep!


Supported Algorithms, Operations, Providers

The current issue is just a dashboard for all algorithms/operations/providers supported or planned to be supported by the library. Status is updated after release where specific item is implemented. List is ordered only by release version and doesn't represent priority in which new items will be implemented.
Feel free to comment if you are missing something from or outside the list!
For detailed information about which provider support which algorithms please consult documentation: https://whyoleg.github.io/cryptography-kotlin/providers/

Status is provided in format of [ ] when it’s not implemented and [x] (X.Y.Z) when it’s implemented in version X.Y.Z

Algorithms

[x] (0.1.0) MD5 (hash)
[x] (0.1.0) SHA1 (hash)
[x] (0.1.0) SHA256, SHA512 (hash)
[x] (0.1.0) HMAC (mac)
[x] (0.1.0) AES-CBC (cipher)
[x] (0.1.0) AES-GCM (cipher)
[x] (0.1.0) RSA-OAEP (cipher)
[x] (0.1.0) RSA-PSS (signature)
[x] (0.1.0) ECDSA (signature)
[x] (0.2.0) SHA224, SHA384 (hash)
[x] (0.2.0) SHA3 family (hash)
[x] (0.2.0) RSA-PKCS1-V1.5 (signature)
[x] (0.3.0) AES-CTR (cipher)
[ ] AES-KW (key wrap/unwrap)
[ ] ChaCha20-Poly1305 (stream cipher)
[ ] ECDH (key agreement)
[ ] PBKDF2 (prf)
[ ] HKDF (kdf)
[ ] Agron2 (prf)
[ ] scrypt (prf)
[ ] brcypt (prf)
[ ] CMAC (mac)
[ ] Blowfish (cipher)
[ ] Blake (hash)
[ ] TOTP/HOTP (otp)
[ ] SHAKE (hash)
[ ] Ed25519 curve (signature)
[ ] AES-ECB (cipher) - LEGACY
[ ] RSA without padding (cipher/ signature[?]) - LEGACY

Operations

[x] (0.1.0) Hashing
[x] (0.1.0) Cipher and AEAD Cipher
[x] (0.1.0) Signature generation and verification
[ ] Key agreement
[ ] Key derive (kdf/prf)
[ ] Multi-key agreement support
[ ] Key wrap/unwrap
[ ] OTP (One Time Password) support
[ ] Hybrid Encryption

Providers

[x] (0.1.0) WebCrypto
[x] (0.1.0) Apple
[x] (0.1.0) JDK
[x] (0.1.0) OpenSSL3
[ ] CryptoKit
[ ] Windows CNG
[ ] AWS/GCP KMS provider
[ ] BorringSSL (optional, in addition to openssl)
[ ] NodeJS engine
[ ] OpenSSL3 KMP (JVM , may be JS/Wasm)
[ ] wasi-crypto or via component model

Hi, I have a project which requires AES-ECB for iOS and Android. It would be great if you could implement this mode. Thanks!

Hey @dominikkv, could you please describe a use case for AES-ECB just in case?

Hi @whyoleg, in this project we communicate with a bike lock via BT LE. During the authentication process the lock sends us a challenge, which we have to decrypt, modify, and encrypt again, to send the result back to the lock.
Thanks for considering the implementation of AES-ECB!

Thanks @dominikkv!
I will add AES-ECB to plans, though, as this algorithm is some kind of "legacy/unsafe", I'm not sure yet, what will be the best way to show this when using the library.
Still, I will try to come up with something!

Hi @whyoleg, one idea would be to annotate the function / class with a "Unsafe to use" opt-in annotation: https://kotlinlang.org/docs/opt-in-requirements.html

Yeah, that't the simplest way here...
But there are some usability issues with opt-in:

the declarations are still present in completion
IDEA will allow to opt-in into this in a one click - not really convenient as AFAIK users are frequently ignoring what annotation say
API reference will still have all those declarations in one place

On current moment I thinking about introducing of additional module for this, so that if it's REALLY needed it will be possible to add module and so use those algorithms.
But I'm not yet finalised design here, so, thanks for your comment!

Hi @whyoleg, I'm planning to use this lib in my crypto lib but some critical hashes and functions are missing. can we add RIPEMD160 and prioritize it? SHA256 and RIPEMD160 are fundamental hashes in Bitcoin.

Hey @huskcasaca, RIPEMD160 is rather specific hash and is not supported out of the box even in JDK (only with BouncyCastle). So may be it will be much simpler to use it from somewhere else. I do think, that we can try to implement RIPEMD160 from scratch, but I would like to avoid introducing from scratch things as much as possible.
Also, what do you mean by prioritize it? Just implement it earlier or something else?
PBKDF2 will be supported in upcoming release. The story with scrypt is similar to RIPEMD160.
Also, I do have a plan to introduce better integration with BouncyCastle (via separate provider), so that we could have BouncyCastle+openssl combination for Android+iOS cases at least. No dates for when this will happen.
If you are willing to contribute something, please create a separate issue and let's discuss possibilities

@whyoleg Yes, it would be nice to implement it earlier since the most widely used scenarios for crypto libraries are for cryptocurrencies, and RIPEMD160 and PBKDF2 are key algorithms for that.
I will do some research first for future contributions.

IOS need the AES-GCM，how to do?

KMP platform IOS need the AES-GCM，how to do?

Hey, you just need to add dependencies as shown here and then you can take a look on AES-GCM example on how to use library APIs

KMP platform IOS need the AES-GCM，how to do?

Hey, you just need to add dependencies as shown here and then you can take a look on AES-GCM example on how to use library APIs

Unfortunately at this moment AES-GCM is not supported by iOS provider, do you plan to add it in near future?
Thanks!

Hi @whyoleg
Thank you for creating this fantastic library! I was wondering if there are any plans to add support for AES-GCM to the iOS provider. Since AES-GCM has become the recommended way for AES encryption, having this feature would be a great addition.

Hey @Bingoliallen, @sgozdzik , @ajeeb-bin-hamid !
It's nice to hear great words regarding library!
Unfortunately, AES-GCM is not supported in Apple provider not because I don't want to support it, but because it's not available via Apple CoreCrypto APIs. AES-GCM is available on iOS/macOS/etc only via CryptoKit which is Swift only framework. On current moment, there is no direct swift-import in Kotlin/Native, but it's still possible, for example using swift-klib-plugin.
I would like to add support for this, but unfortunately, I don't have a lot of time recently. Still, If someone is willing to contribute, I'm happy to help here!

Awesome library!
I'm very glad to see you have ChaCha20-Poly1305 on the list.
I'll be waiting.
Thank you! :heart:


Implement Robot Name as Spock specification

This is an attempt to implement the tests for Robot Name as a Spock specification, bringing it into line with other tests.

Ulgh.  Do not merge this yet, please.  I just noticed the class name of the Specification doesn't match the file.  It works, but... seriously?

Okay— I'm happy enough with this implementation.  At least happy enough for someone else to give it a once-over.
I'll leave it open for a couple days to give a chance for comment.

I've added a few commits here that I feel split the differences, or at least mitigate the issues above.
Seems pretty lonely in cricketland™ ( 😄 — really, it's fine )... so I'm going to take this line: I'm going to leave this open to comment for a week, and then merge in absence of objection.


rm mage

Remove mage
Add makefile
Remove GCP bucket publishing from goreleaser manifest

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

safe/assert.go
0
27
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.4%

Covered Lines:
2793

Relevant Lines:
4589

💛  - Coveralls


A required privilege is not held by the client

On Windows, as a non-administrator, running rez-bind --quickstart yields the following stack trace.
$ rez-bind --quickstart
Binding platform into C:\Users\me\packages...
16:28:43 WARNING  Skipping installation: Package variant already exists: C:\Users\me\packages\platform\windows\package.py[]
Binding arch into C:\Users\me\packages...
16:28:43 WARNING  Skipping installation: Package variant already exists: C:\Users\me\packages\arch\AMD64\package.py[]
Binding os into C:\Users\me\packages...
16:28:43 WARNING  Skipping installation: Package variant already exists: C:\Users\me\packages\os\windows-10.0.17134\package.py[]
Binding python into C:\Users\me\packages...
Traceback (most recent call last):
  File "c:\Python27\Lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\Python27\Lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Users\me\Dropbox\dev\anima\rez\Scripts\rez\rez-bind.exe\__main__.py", line 2, in <module>
  File "c:\users\me\rez\lib\site-packages\rez-2.29.0-py2.7.egg\rez\cli\_main.py", line 144, in run
    returncode = run_cmd()
  File "c:\users\me\rez\lib\site-packages\rez-2.29.0-py2.7.egg\rez\cli\_main.py", line 136, in run_cmd
    return opts.func(opts, opts.parser, extra_arg_groups)
  File "c:\users\me\rez\lib\site-packages\rez-2.29.0-py2.7.egg\rez\cli\bind.py", line 75, in command
    quiet=True)
  File "c:\users\me\rez\lib\site-packages\rez-2.29.0-py2.7.egg\rez\package_bind.py", line 112, in bind_package
    quiet=quiet)
  File "c:\users\me\rez\lib\site-packages\rez-2.29.0-py2.7.egg\rez\package_bind.py", line 176, in _bind_package
    parser=bind_parser)
  File "c:\users\me\rez\lib\site-packages\rez-2.29.0-py2.7.egg\rez\bind\python.py", line 86, in bind
    pkg.post_commands = post_commands
  File "c:\Python27\Lib\contextlib.py", line 24, in __exit__
    self.gen.next()
  File "c:\users\me\rez\lib\site-packages\rez-2.29.0-py2.7.egg\rez\package_maker__.py", line 217, in make_package
    make_root(variant_, root)
  File "c:\users\me\rez\lib\site-packages\rez-2.29.0-py2.7.egg\rez\bind\python.py", line 70, in make_root
    platform_.symlink(exepath, link)
  File "c:\users\me\rez\lib\site-packages\rez-2.29.0-py2.7.egg\rez\utils\platform_.py", line 506, in symlink
    raise ctypes.WinError()
WindowsError: [Error 1314] A required privilege is not held by the client.

Related

https://github.com/nerdvegas/rez/issues/340

Presumably, because users on Windows can't (soft) symlink files without administrative privileges.

One solution might be to simply not symlink Python, but just copy it.
Another is to use hardlink rather than softlink which does work without admin privs, but doesn't work across mounts, e.g. from C:\source.txt to D:\dest.txt.

Temporary Workaround
Here's how I got over this initial hurdle.

Log in as administrator; now your ~/ directory won't point to your user anymore, so rez-bind --quickstart won't actually help install anything there.
As admin, "change" your user. See below.

:: Change user at run-time
$ set USERPROFILE=c:\users\<your-nonprivileged-user>
$ rez-bind --quickstart
$ rez-bind --quickstart
Binding platform into c:\users\me\packages...
Binding arch into c:\users\me\packages...
Binding os into c:\users\me\packages...
Binding python into c:\users\me\packages...
Binding rez into c:\users\me\packages...
Binding rezgui into c:\users\me\packages...
Binding setuptools into c:\users\me\packages...
Binding pip into c:\users\me\packages...

Successfully converted the following software found on the current system into Rez packages:

PACKAGE     URI
-------     ---
arch        c:\users\me\packages\arch\AMD64\package.py
os          c:\users\me\packages\os\windows-10.0.17134\package.py
pip         c:\users\me\packages\pip\1.5.6\package.py
platform    c:\users\me\packages\platform\windows\package.py
python      c:\users\me\packages\python\2.7.14\package.py
rez         c:\users\me\packages\rez\2.29.0\package.py
rezgui      c:\users\me\packages\rezgui\2.29.0\package.py
setuptools  c:\users\me\packages\setuptools\3.6\package.py

To bind other software, see what's available using the command 'rez-bind --list', then run 'rez-bind <name>'.

Now the user has symlink privileges, and will write into the proper directory. However, this still won't work.
Both the python and pip symlinks are broke, because soft symlinks are terrible. So you can:

Copy a system-wide Python, e.g. c:\python27 into ~/packages/python/.../bin, overwriting the soft symlink with a hard copy.
Replace the pip symlink with a .bat file like the one below.

pip.bat
@echo off
python -m pip %*

And presto, it works.
$ rez-env python
> $ python -c  "import sys;print(sys.executable)"
C:\Users\me\packages\python\2.7.14\platform-windows\arch-AMD64\os-windows-10.0.17134\bin\python.exe

In retrospect, I'd probably build and release Python and Pip manually, rather than have --quickstart do it for me. But getting --quickstart to do it shouldn't be an issue if soft symlinks was either replaced with a hard symlink or a plain copy.

try to  enable Developer Mode on windows.


Warn if working with incompatible version of core

Plugin should provide a warning if it detects it is being used with a version of iopipe-js-core less than v1.13.0. Older versions of iopipe-js-core don't include the file upload functionality and as such are incompatible.

Isn't this solved by virtue of dependency management? https://github.com/iopipe/iopipe-js-logger/blob/master/package.json#L51


Feat/files grouped by day

DL-2878
(sorry I accidentally reformatted the code, if that's a problem I can redo the pr)

Some basic remarks:

It may be handy if the formatting could be undone. It makes it hard to review what has effectively changed & I'm weary of version conflicts with feature/update-configuration-api which should receive some attention too (I already hold my heart for doing the exact same reformatting accidentally but I guess merging upstream changes will become near impossible otherwise).
configuration seems to come from /cfg rather than /config which is where I think it should come from.  /config/ can be overridden by the user at runtime and I guess these are configuration parameters?
The branch is named feat/files where the naming convention is feature/files.  Not a big one but possibly nicer to keep that consistent.

Could you add a motivation as to what you're aiming to achieve and why?  I can guess on the value but your four sentences explaining it will be more insightful :-)
Lastly, to the perceived target change: I think this makes sense.  I did not test-drive the code but looking at the creation of the folder and moving of the file, that looks like a sensible approach.

I'll undo the reformatting, np :D
For the config change (from config to cfg), it looked to me to be a bug in the repo (I couldn't make it run otherwise),
SECRET_KEY, SYNC_LOGIN_ENDPOINT are indeed in cfg, but I may misunderstood it.

Reverted the formatting

@nbittich @madnificent
Sorry to be such a pain, but currently not sure what the state of master is. So i would suggest to start the changes by branching of the latest tagged version, do them, and apply these to master too.

closed in favor of https://github.com/lblod/delta-consumer/pull/5


Weird bucket size for 2nd bucket

Is there a reason the first and second bucket both have a size of 1 because this seems like a very odd choice at a first glance because this leads to additional saturating_sub calls and such and adds more complexity to id conversion. See for example: https://github.com/Amanieu/thread_local-rs/blob/master/src/thread_id.rs#L65

I would like to propose the following format:
let bucket = usize::from(POINTER_WIDTH) - ((id + 1).leading_zeros() as usize) - 1;

This leads to a mapping that looks like this
id       bucket
0 -> 0
1 -> 1
2 -> 1
3 -> 2
4 -> 2
5 -> 2
6 -> 2
would you be okay with me changing to impl to use this bucket layout? This would allow for a standard power of two bucket layout

Sure that sounds fine.

Btw i implemented a version of this crate which calls the destructor of the values inside the entries if the threads exit. It was a bit tricky to get working but now it works pretty good. Is there any interest in me cleaning up the impl and providing said implementation to this crate as another kind of thread local to choose from? My implementation which contains other stuff that is tailored specifically to my needs and which i would get rid of, currently lives here if you want to take a look at it (but it's not cleaned up and uses a ton of unsafe currently): https://github.com/terrarier2111/thread_local-rs/tree/metadata

I don't think I want this in my crate, it's a lot of complexity for a feature that is rarely needed. But feel free to keep your fork going or even publish it on crates.io if you feel it would be useful to others.

@terrarier2111 Your API isn’t sound:
use std::thread;
use thread_local::ThreadLocal;

fn main() {
    let x = ThreadLocal::<_, ()>::new();
    let r: &str = thread::scope(|s| {
        s.spawn(|| {
            let r: &str = Box::leak(Box::new(x.get_or(|_| String::from("Hello World!"), |_| ())))
                .value()
                .as_str();
            println!("now it exists: {r}");
            r
        })
        .join()
        .unwrap()
    });
    println!("now it’s gone: {r}");
}

now it exists: Hello World!
now it’s gone: ����[�L


feat(deps): upgrade runtime dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-runtime-dependencies-2.x" workflow

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

Questions ?
Please refer to the Backport tool documentation


FR: firewalld integration

Is your feature request related to a problem? Please describe.
The feature to use a static port is really useful.
But currently when using Firewalld on Fedora Linux for example, there is no "localsend" profile to choose.
Describe the solution you'd like
figuring out what kind of traffic needs to be allowed. Create a PR for a profile upstream in firewalld for that connection.
Is the port always 53317? Or just for me?
Describe alternatives you've considered
manually enable the port. TCP and UDP, then it works.
Additional context
No response

Yes, 53317 is the current default port but I am thinking to use another secondary port if 53317 is already used.
See https://github.com/localsend/protocol/issues/12


[[Java SDK]]: Topic reader freezes due to high CPU consumption in Batch Pool

the reason this issue was created is forgotten. Hence I'm closing the issue.


Remove trusted/untrusted runtime support starting with 1.14

As mentioned in the documentation related to RuntimeClass, CRI-O deprecated the use of trusted/untrusted annotations for 1.12 and 1.13 versions, and 1.14 should remove the support for it.
Because 1.14 release will be cut soon, we should be ready to remove those annotations support from CRI-O, as this will simplify the code.

/cc @egernst @mrunalp


Virus warning on Windows

Downloading CC-main.zip and extracting with 7zip, 7zip says: "Operation did not complete successfully because the file contains a virus of potentially unwanted software."
Windows Defender/Security blocks and reports threat as "Trojan:Script/Wacatac.H!ml"
https://go.microsoft.com/fwlink/?linkid=142185&name=Trojan:Script/Wacatac.H!ml&threatid=2147814524

Edition		Windows 10 Home
Version		21H2
Installed on	29.06.2022
OS build		19044.2486
Experience	Windows Feature Experience Pack 120.2212.4190.0

Thanks for letting me know!
I tested on Windows 11 and got the same result. But I'm having trouble replicating the problem because after Windows flagged the file once, it refused to re-download it. And once I specified that the file is safe so that I could re-download it, Windows stopped scanning it altogether.
I can see other Github projects have experienced similar problems with false positives. What's interesting is that this particular repository contains no binaries, just text. I'll have to explore the issue more. It appears that I may be able to submit the file to Microsoft to be manually checked and flagged as safe in the next update to antivirus definitions.
In the meantime, all you need to use the library is cc.h. Optionally, you can grab unit_tests.c and tests_against_stl.cpp too. The other files in the repository are just stuff related to presentation on Github.
Alternatively, the zip files associated with the releases don't seem to be triggering Windows security.


fix cevapla button cursor pointer

closes #271

In my opinion, it would be better to define the cursor property for the Button component inside the kampus-ui library. This way, all the buttons used throughout the application would automatically have the cursor: pointer style applied.

I tried it but it didn't work, and I wasn't sure if the same style should be applied to other buttons, so I found this solution.

Added hover to Button.tsx instead of the specific button. Thanks @mertsabinov


Change redirect status code from 302 (Found) to 303 (See other)

Fixes #100 Clarify POST-redirect-GET status code.

+1 for merging if we decide to go with the 303 status code. See this comments for details.


[Snyk] Fix for 2 vulnerabilities

Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json
package-lock.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

601/1000  Why? Recently disclosed, Has a fix available, CVSS 6.3
Cross-site Scripting (XSS) SNYK-JS-COOKIE-8163060
No
No Known Exploit

559/1000  Why? Has a fix available, CVSS 6.9
Regular Expression Denial of Service (ReDoS) SNYK-JS-FASTXMLPARSER-7573289
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Cross-site Scripting (XSS)
🦉 Regular Expression Denial of Service (ReDoS)

👷 Deploy Preview for cerulean-empanada-70eddc processing.

Name
Link

🔨 Latest commit
bb7607a77e2ea4161a4db865279f7f08147ba08f

🔍 Latest deploy log
https://app.netlify.com/sites/cerulean-empanada-70eddc/deploys/670b150a046bc50008bbc3cb


TypeScript typing for fela-tools StyleSheet

Type: Bug

Packages
Version

fela
10.6.1

Description
TypeScript type definitions of fela-tools are not correct / missing.

Steps to reproduce

Install fela together with fela-tools
Create a stylesheet / rule set like in the following code example.

Expected Behavior
import { StyleSheet } from 'fela-tools';
const styles = StyleSheet.create({...});

Should work without TypeScript error.
Actual Behavior
Module '"fela-tools"' has no exported member 'StyleSheet'.ts(2305)

Feel free to PR those types. I'm not using TypeScript and thus not writing the types myself.


train

hello~~~i want to ask why the size of the model I trained is about 257M, It's more than twice the size of the model on the website~
My training orders are: bash ./tools/dist_train.sh configs/ReDet/ReDet_re50_refpn_1x_dota15.py 4

https://github.com/csuhan/ReDet/blob/44825e60a9ac7adc2aa84783982f1955fdf9740e/tools/publish_model.py#L17-L19

Thank you for your reply！！！！ i have another question :  why  did i use this weight file of 257M to detect but the inference speed faster~~~

The speed should be same as we load it once only in the beginning.


someone changed wiki . and I am confused.

https://github.com/angular-ui/ui-router/wiki/Nested-States-and-Nested-Views/_compare/ec5f02dd30f0de1ec2d119fc4cba95c00b5d0425...0279d28c2cedf3fb7b3dda58d6eda9fda4a08fa4
which one is true ? and which version ?

The phrasing has always been confusing.
I changed it to:

If you want a child resolve to wait for a parent resolve, you should injected the parent resolve keys into the child.

Hope this helps.

Thanks.


Anchor free model

Any plan to add anchor free models?
BBox + landmarks regression:
https://arxiv.org/abs/1904.07850
https://arxiv.org/abs/1911.03599
BBox + segmentation:
https://arxiv.org/abs/1911.06667

Currently there are no active plans to add these models.
On Fri, Nov 22, 2019 at 11:19 PM gowthamkpr<EMAIL_ADDRESS>wrote:

Assigned #424 https://github.com/tensorflow/hub/issues/424 to @akhorlin
https://github.com/akhorlin.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/hub/issues/424?email_source=notifications&email_token=AG52OTAEAJ7AVZWP6NNPWC3QVBLIRA5CNFSM4JQHBDRKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOVBPFBHY#event-2824753311,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG52OTG22XYZ3FAZVY3ZVRLQVBLIRANCNFSM4JQHBDRA
.

--
Andrey Khorlin | Software Engineer |<EMAIL_ADDRESS>|<PHONE_NUMBER>   🔧

@akhorlin If anchorfree was not already evaluated in previous internal meetings you can talk about these internally in the next one. Then if you will confirm the negative evaluation we can put the label contribution welcome

Just to add a fresh entry to anchor-free for pose:
https://arxiv.org/abs/1911.07451

New interesting findings:
https://arxiv.org/abs/1912.02424

Anchor free for direct E2E Multi-Person Pose Estimation https://arxiv.org/abs/1911.07451

CVPR 2020 anchor-free segmentation:
https://github.com/youngwanLEE/centermask2/
Many of this are naturally integrated in Pytorch Detectron2 as it attracts many CV models at a quite fast rate.
If you talk/interact with "Garden team" see also https://github.com/tensorflow/community/pull/130#issuecomment-542133134

/cc @xuannianz if he Is interested to contribute a PR. He has already some interesting reimpl in Keras/Tensorflow

I add SMOKE to then list. Code will be released soon at https://github.com/lzccccc/SMOKE.
It Is the authors official reference impl in Pytorch obviously.

Another anchor-fee face detector https://arxiv.org/abs/2003.07543

/cc @jaeyounkim as you have talked about a new computer vision library at https://github.com/tensorflow/models/issues/8278#issuecomment-628310079 feel free to move this in the model repo with community suggestion label if you think that it is a better place to monitor this request.

Hi @bhack -- are you still interested in these models, and would you be willing or able to contribute them to the TF Hub repository? Just checking to see if these are still useful.

We have now some anchor-free models for object detection https://tfhub.dev/s?q=centernet


[Crash] with Extended Drawers 2.1.0

Minecraft Version
1.20.x
Mod Loader Version
0.14.25
Mod Version
1.0.1
Describe the Issue
Crash with newest update of base mod
latest.log
https://gist.github.com/xR4YM0ND/b1b07102e6a420fe6f41c18dd801c761
Do you use any other mods except the required ones?
No response

(I'm the dev of extended drawers). This is probably caused by me refactoring out shared code between compacting drawers and normal drawers into a shared superclass. Should probably just need a few tweaks to the mixins.

I think I updated it properly ;)

Is there a resolution to this issue?  I have the same issue when running on a server.  The client runs fine but I get the same "Could not execute entrypoint stage 'main'" error message when loading on a server.

Fixed definitely with https://github.com/Globox1997/ExtendedDrawersAddon/commit/cf29804fa5a6ddb33577194e772f06fa2ae744f4


Form error message outputting raw special characters

(SS 3.6)
when setting a field to required on a form and then submitting the form without the required field, the output error message is always returning with the special characters as text instead of html:
"I agree to Lorem Ipsum's Terms and Conditions" is required
I have tried changing:

$Message

to:

$Message.RAW

in the template, as well as .XML and every other variation i could think of.
After looking into the code, it appears to be the translation engine adding the characters as removing the quotes from required fields removes the quotes.

this must be some casting issue with the error messages
is this 3.6 only? or is 3.5 affected?

3.5 is affected as well, I've found the same issue occurring on some older projects.

I have seen this happen on all iterations of SilverStripe 3. Trouble is you don't often see it because chrome usually stops form submissions if a required field is present and doesn't have a value.

I've tested this in 3.x-dev and can't replicate the problem :(

Tested and unable to replicate. SS 3 is also in limited support now., which means only critical fixes will be done. If this was a widespread issue then I'd consider resolving it, but seeing as there has been little activity I'll assume it isn't.


About using the Sentcap dataset and setting parameters for train.py

Dear author, I would like to use this code on the Senticap dataset. May I ask for the parameter settings for train.py, such as the number of epochs, the backbone of CLIP, noise_ variance et al

Thank you for your interest in our work. Generally, I recommend using the default hyperparameters as a starting point, which are the values defined in the arg-parser. The number of epochs may depend on the size of the dataset, so it is worth considering this when selecting hyperparameters. We suggest training for approximately 20 epochs, but it is important to choose the weights from the epoch where the test error begins to increase.

Thank you very much for your reply.

Thank you very much for your reply.

Hello, I also need to use the Senticap dataset, but I don't know how to use it. I would like to ask for your advice. Thank you

You can use the pre trained weights provided by the author, and then use the SentiCap dataset for fine-tuning.

You can use the pre trained weights provided by the author, and then use the SentiCap dataset for fine-tuning.

OK,thank you very much


Getting 404 error from GitHub during oauth login

Team,
After instaled and configured plugin , after clicking github icon i am getting 404 forbitten error from GITHUB , kindle provide the solution.
Thanks in advance

I'm seeing the same issue as well

It's working fine on my end

I'd initially seen a 404 issue, but then realised that this was due to misconfiguration at my end. You'll need to add your GoCD instance as an OAuth application on Github first, not within GoCD. I also set up a personal Github token with the appropriate permissions. Then, I'd entered the Github OAuth credentials, and the token into the plugin's settings.


fix: validate package.json exists before attempting to load

Description
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (change to docs, jsdocs, comments, etc)
[x] Style (change to code style, formatting, and/or linting)
[ ] Refactor (change which doesn't affect functionality)
[ ] Other (change which doesn't fit into any of the above categories)

Checklist

[x] My code follows the code style of this project.
[x] I have updated the documentation accordingly if needed.

:tada: This PR is included in version 0.0.34 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.30 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.21 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.12 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.19 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.27 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.22 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


Add a combined source without #line directives into the dist package

Related to #362. Prototype how duktape.c would work without #line directives:

[x] Add optparse to combine_src.py
[x] Add a --line-directives option to combine_src.py
[x] Emit a file/line metadata file into dist/src/metadata.json
[x] Disable line directives in dist combine_src.py step
[x] Add an utility to resolve a combined source line into original file/line using dist/src/metadata.json
[x] Drop #line directives, or provide both combined source files? => include both, as both variants have relevant use cases
[x] Dist documentation changes
[x] Other documentation changes; website note and point to wiki?

The file/line metadata map is useful for Duktape development: with a combined source traceback line it can resolved to an original source file/line, e.g.:
$ python util/resolve_combined_lineno.py dist/src/metadata.json 12345
duktape.c:12345 -> duk_builtins.c:793

I'll give a few days before merging this so that if anyone has a strong opinion one way or another they'll have some time to comment.
The concrete impacts of this change are:

Debuggers will be less confused about file/line and source file mappings. The debugger will step through the combined source and not the individual sources as e.g. gdb did before.
Some packaging tools (see #362) should work better without changes.
Error tracebacks will contain duktape.c and a combined line number rather than uncombined source file/line.

To illustrate the traceback issue, before the change:
$ ./duk
((o) Duktape 1.3.99 (v1.3.0-45-g22a33b2-dirty)
duk> decodeURIComponent('%ff')
URIError: invalid input
	duk_bi_global.c:343
	decodeURIComponent  native strict preventsyield
	global input:1 preventsyield

After the change:
$ ./duk
((o) Duktape 1.3.99 (v1.3.0-42-ge19dec5-dirty)
duk> decodeURIComponent('%ff')
URIError: invalid input
	dist/src/duktape.c:29866
	decodeURIComponent  native strict preventsyield
	global input:1 preventsyield

$ python util/resolve_combined_lineno.py dist/src/metadata.json 29866
duktape.c:29866 -> duk_bi_global.c:343

The impact for troubleshooting is that if the Duktape source file/line matters, you'll need to figure out the uncombined file/line from the combined line somehow. The pull adds a utility to do that, and adds the necessary metadata into the dist, so that this will be relatively easy at least for official releases.

By the way MSVC behaves similarly to gdb, which threw me off at first: it won't step into duktape.c but instead prompts for the location of the original source files.  Normally I don't mind but it can become an issue when prototyping changes directly in the combined source as then the two copies don't match.
On the other hand, it adds an extra level of indirection when deciphering debug prints.  So there are pros and cons, and I'm not really sure which way is better.

For application programming the impact in tracebacks should be mostly minimal: tracebacks have a function .name too (decodeURIComponent() above) which usually identifies the relevant internal function quite well for troubleshooting.
With lightfuncs it's a bit different because the virtual lightfunc .name just contains a raw pointer and flags but no function name. This mostly matters when using DUK_OPT_LIGHTFUNC_BUILTINS because then almost all built-ins will be lightfuncs.

Hm, debugging may actually be hindered by this: It seems MSVC doesn't like source files with more than 64k lines:
https://connect.microsoft.com/VisualStudio/feedback/details/728010/visual-studio-10-c-debugger-doesnt-work-on-files-with-64k-lines

That sounds vaguely familiar. So, without adding both combined source variants we'll have to choose between either:

Causing issues with some packaging tools
Causing issues with MSVC debugger

We can add both file variants into the distributable if that's the only workable option though. It's just a bit awkward to explain. Concretely this would mean either adding a third source directory (so e.g. src/, src-no-line-directive/, and src-separate/, maybe abbreviated) or add a second file into src/ (e.g. src/duktape.c-no-line-directive or src/duktape-no-line-directive.c).

No consensus here yet? :)

Any choice will lead to grumbling so I've yet to determine the path of least grumbling ;)
I'll try to get this merged soonish, I've been busy with some other stuff.

Ok, so as a compromise the pull now provides the following dist source structure:

src/duktape.c: current single source version with #line directives
src-noline/duktape.c: variant without #line directives, directory also contains headers etc
src-separate/: current separate source version

The dist README has this note:
* ``src-noline/``: contains a variant of ``src/duktape.c`` with no ``#line``
  directives which is preferable for some users.  See discussion in
  https://github.com/svaarala/duktape/pull/363.

Hopefully this is a reasonable compromise :)

This seems reasonable.  I like that you chose to put it in a separate directory, keeps things neat.

Yeah, I thought it best not to change the src/ directory; someone may be building with the wildcard src/*.c so having two .c files would have been an unwelcome surprise.

Thanks, everyone. I'll be updating for the next release on Soletta soon.

I'm a bit confused -- are there any releases contemplating this change yet?

It's in master, which means it will be in the next Duktape release (1.4.0).

Thanks a lot :)


ingress-kong pod crashing when Knative is installed

Hi,
I have been fighting with the KIC for the last couple of days in my Knative environment. I am trying to run the Kong ingress gateway to serve as the ingress for my Knative environment and I am running into an issue.
Here is my environment:
OS
ubuntu 22.04.2 LTS
Kubernetes
rke: 1.24
kubernetes: 1.24.10

Knative
v1.8.3

but I have tried v1.9.3 with the same result.
Kong
v2.9.0

but I have also tried v2.9.2 with the same result.
MetalLB
v0.13.9

I am using MetalLB as my load balancer.
Installation process
To install Knative and Kong, I have followed the guide provided here: https://docs.konghq.com/kubernetes-ingress-controller/2.9.x/guides/using-kong-with-knative/, but here is a summary:

Installed Knative:

kubectl apply --filename https://github.com/knative/serving/releases/download/knative-v1.8.3/serving-crds.yaml
kubectl apply --filename https://github.com/knative/serving/releases/download/knative-v1.8.3/serving-core.yaml

Installed Kong:

kubectl apply -f https://raw.githubusercontent.com/Kong/kubernetes-ingress-controller/v2.9.0/deploy/single/all-in-one-dbless.yaml

After waiting for everything to settle down, when I looked at my ingress-kong pod, I see that it has restarted a few times. Looking at the logs, it shows this:

Early in the log, I get this error message:

time="2023-04-06T18:34:10Z" level=info msg="Starting Controller" logger=controllers.Ingress.KnativeV1Alpha1
time="2023-04-06T18:34:10Z" level=error msg="kind must be registered to the Scheme" error="no kind is registered for the type v1alpha1.Ingress in scheme \"pkg/runtime/scheme.go:100\"" logger=controller-runtime.source

And then later on, these:

time="2023-04-06T18:36:10Z" level=error msg="kind must be registered to the Scheme" error="no kind is registered for the type v1alpha1.Ingress in scheme \"pkg/runtime/scheme.go:100\"" logger=controller-runtime.source
time="2023-04-06T18:36:10Z" level=error msg="Could not wait for Cache to sync" error="failed to wait for Knativev1alpha1Ingress caches to sync: timed out waiting for cache to be synced" logger=controllers.Ingress.KnativeV1Alpha1
time="2023-04-06T18:36:10Z" level=info msg="Stopping and waiting for non leader election runnables"
time="2023-04-06T18:36:10Z" level=info msg="Stopping and waiting for leader election runnables"
time="2023-04-06T18:36:10Z" level=info msg="context done: shutting down the proxy update server" subsystem=dataplane-synchronizer
time="2023-04-06T18:36:10Z" level=info msg="Shutdown signal received, waiting for all workers to finish" logger=controllers.KongClusterPlugin

after which the pod continues shutting down, until it shows this:
time="2023-04-06T18:36:10Z" level=info msg="Stopping and waiting for caches"
time="2023-04-06T18:36:10Z" level=info msg="Stopping and waiting for webhooks"
time="2023-04-06T18:36:10Z" level=info msg="Wait completed, proceeding to shutdown the manager"
time="2023-04-06T18:36:10Z" level=info msg="stopping telemetry manager"
Error: failed to wait for Knativev1alpha1Ingress caches to sync: timed out waiting for cache to be synced

I am not totally sure what is happening here.
The Kong service is successfully getting an IP address from the load balancer, so that's working. I can also curl that IP address and see that Kong is responding.
If I continue with the Kong set up and deploy a Knative service, it gets stuck in IngressNotConfigured state, which I think is related to this.
Thoughts?
Thanks a lot,
Bertrand.

Hi @dbblackdiamond 👋
It seems that our documentation doesn't reflect the current state of affairs w.r.t to our feature flags :/ (a PR to rectify this is already on its way).
What you're experiencing is a typical: "it's not a bug, it's a feature" 🙃
We recently introduced a "feature" of only enabling the scheme's in the controller that are enabled via the featured flags: #3539. Given this and the fact that knative feature flag is disabled by default (not as stated in the documentation as of now) should yield in the behavior that you're seeing.
Enable knative by either --feature-gates=Knative or by the env KONG_CONTROLLER_FEATURE_GATES=Knative and it should work just fine for you.

Adding feature gate really helps:
  ingressController:
    args: [ "--feature-gates=Knative=true"]

Without this feature flag it fails with
Error: failed to wait for Knativev1alpha1Ingress caches to sync: timed out waiting for cache to be synced for Kind *v1alpha1.Ingress


ui: redesign implementation: notify user when redirecting to freesound.org for oauth

We currently don't notify the user before redirecting them to freesound for oauth, which results in a pretty poor user experience (UX). We should open a prompt alerting the user about the redirection:

Here's some pseudo code:
onLoginClick =() => {
  showModal()
}

onModalConfirmClick =() => {
  redirectToFreesound()
}

<Header>
  <LoginButton onClick={onLoginClick} />
  <Modal onConfirmClick={onModalConfirmClick} />
</Header>

Implementation

use react-modal

Documentation for react-modal, in case someone on this page needs it in the future!


Feature request: common queue for different project

In cases where two or more project will conflict if run simultaneous, it would be nice to have the jobbs added to a queue "FIFO" .
Second best solution would be the ability to mark projects as conflicting, and then disable conflicting project until running process is done.

Yes, I was thinking about implementing some kind of a queue. On the other hand, there are projects that won't conflict, so they don't have to wait in the same queue, so I guess there should be many queues for projects conflicting with each other, that way it will be more efficient.
Have you encountered problems when running the deploy service with conflicting projects?

Now when I think about it, isn't it like all services that belong to a project are conflicting? So they can have their own queue, I guess?

I would like the ability to simply tag each script/service/thing (let's call them Thing for now) with an optional queue name/id and the appropriate number of queues would be created for me. If a Thing does not have the queue specified it will be allowed to run in parallel with all other Things.
Would that work?

what if you have really a lot of scripts in the settings file? you will then have to remember which queue id you assigned to one script, remember which scripts are conflicting and assign the same id to them. isn't it easier to utilize the concept of "project" to define conflicting scripts. What would be the advantage of tagging scripts with a queue id over using projects for the same purpose?

Makes sense to have "project" as the grouping of conflicting scripts. I can see how adding queue on script level could be error prone.

Grouping is fine by me too. (instead of tagging)
I think "Project" is too vague though. In our use-case most Things™ in the same config file will be part of the same project (business perspective).
How about calling the queue grouping "Queue"? :)

Yes, I agree. "Project" is a bit misleading, I like changing project-thing into queue-thing. I will start with the implementation :) Thanks for the suggestions!

Long time no see ;) I have implemented basic queues for services that belong to the same "group" which is converted into a queue internally. Project™ is renamed into Group™. I updated the client project according to the api changes. Let me know if there is anything else you would like to have fixed/implemented :)

Sweet, I will update and try it out later this week!