validateState of type string supplied to InsertModal, expected object

Hi @AllenFang
Thank you for this complete and helpful table.
I create this issue to keep track of the fix (later I may fall back again in the trap?).
Maybe it will help others to fix by themselves.
Situation:
I used default insertModal (no custom modal).
After validating, modal stayed open and in DEV I could see a warning:

validateState of type string supplied to InsertModal, expected object

The origin had nothing related to validation but was just I was using twice the same dataField:

// this column just displays a button to trigger an action specific to a row
<TableHeaderColumn
  // dataField="id"   // Source of the issue: this dataField is already used as the key of the table
  hiddenOnInsert
  dataSort={false}
  dataAlign="center"
  dataFormat={this.formatEditColumnModifiers}>
 Modifiers
</TableHeaderColumn>

So when you encounter this issue be sure not to use the same dataField multiple times in the table.
Even if you need the same value in 2 different columns, dataFormat is a function passing ALL ROW:
formatEditColumnModifiers = (cell, row) => (<YourComponent {...row}/>);

fix is the issue description

Had another issue with v4.0.5, you may encounter this exact issue if you use async-await for onAddRow (you return a promise by using async await).
Don't use async-await on your onAddRow callback (us it in an inner function if you still prefer async await way):
// don't :  onAddRow = async () => {}

onAddRow = () => {
 // inner async function
 const innerAsyncFct = async () => {
   // some async stuff
 }
 // call innerAsyncFct
 innerAsyncFct();
}


Use only one image for the user photo

Instead of using two different photos, use one photo with a transparent background and change the background color with CSS style.

thanks for your contribution again


[FEAT] Canonical URL Service

:bulb: Feature request
Feature Name
Canonical URL Service
The Desired Behavior
I want to be able to upsert and remove a canonical URL for a document.
Your Use Case
As a developer, I have to be able to change the canonical URL of a document easily. Currently, with Angular v12, there's no "nice" way to do this.
Prior Work
Web.dev has a nice article here -- https://web.dev/canonical/
Additionally, Lighthouse has an audit that validates canonicals too.
Possible Implementation
I think this warrants a new package called @daffodil/seo as that is the chief purpose of this feature.
export interface DaffCanonicalService {
  upsert(url :string): void;
  remove(): void;
}

Environment

Daffodil version: 0.36.1
Angular version: 12.0.0

So we should handle the edge case where a canonical link tag already exists in the page?

I think so yes.


Always get 'Too many request'

Hi i use your plugin to translate my website, and I love it!
From time to time i get an error "Too many request", if I used the API to much. After some time it worked again.
But since today, I get it from the start...
Do you think they changed something, so that this plugin is not working anymore?
Best
Beat

Hello,
thank you for reporting this behaviour. I'm going to check it.

Yep, getting the same response.

a) The API has changed
b) Using the API without an API key is no longer possible

Just for your information, I seek to (finally) add support for authentication. Doing so should answer the question if  a) or b) is the reason.
However, there is no schedule yet.

Do you have any idea, when you will include the API auth. into deeply?

DeepLy 2 is under development and will be released soon. It will support DeepL Pro. I recommend to switch to DeepLy 2 as soon as possible.

It work's (again) => https://github.com/chriskonnertz/DeepLy/releases/tag/v1.6.0
so I'm closing this issue.


Discord-linux app dose not open

A JavaScript error occurred in the main process Uncaught Exception: TypeError: Cannot read property 'minTray' of undefined     at Object.<anonymous> (/usr/local/bin/discord-linux-x64/resources/app/main.js:22:17)     at Module._compile (module.js:434:26)     at Object.Module._extensions..js (module.js:452:10)     at Module.load (module.js:355:32)     at Function.Module._load (module.js:310:12)     at Object.<anonymous> (/usr/local/bin/discord-linux-x64/resources/atom.asar/browser/lib/init.js:123:10)     at Object.<anonymous> (/usr/local/bin/discord-linux-x64/resources/atom.asar/browser/lib/init.js:125:4)     at Module._compile (module.js:434:26)     at Object.Module._extensions..js (module.js:452:10)     at Module.load (module.js:355:32)

Please check ~/.config/Discord/ for an init.json file. If it does not exist, create it and paste this inside
{"bounds":{"x":0,"y":26,"width":1920,"height":1025},"minTray":false,"useCSS":false}

If it doesn't exist the program should handle it, but it might not if it does exist and minTray is undefined. Are you sure you're on the newest build?


Redundant  added while filling template with data

Given following snippet:

the output would be:

Header value from service

Some body content from service

Surrounding
 should not be added, because in edge cases page can be rendered/styled incorrectly.
Expected output:

Header value from service

Some body content from service

Fixed in https://github.com/Cognifide/knotx/pull/35


feat: support windows for the justfile

Description
Added a line that sets the windows-shell for the Justfile to Powershell. This doesn't change any non-windows platforms.
Benchmarking does not work because the setup-bench recipe uses sh specific syntax. Maybe this could be rewritten? This could be in either a shell agnostic way or have multiple recipes, one for Windows and one for UNIX, alternatively, it's not the end of the world if benchmarking only works on unix.
A rough powershell equivalent would be
foreach ($i in 0..10) { cp -r ./temp/three/src ./temp/three10x/copy$i/ }
echo "" > temp/three10x/entry.js
foreach ($i in 0..10) { echo "import * as three$i from './copy$i/Three.js'; export { three$i }" >> temp/three10x/entry.js }

Test Plan
While it works on my device, somebody else testing it on Windows might be helpful. I'm not certain of how Windows handles some environment specific things for ex: what happens if Just or Rust is installed through Windows Subsystem for Linux.

Happy to tell that we have rewritten it. https://github.com/rolldown-rs/rolldown/pull/526
We want to ensure the development could be done in windows too, so it's welcome to tell if there are something wrong in windows.


Not an issue Adding php support  and golang

How can i add php support for this

You can simply import the PHP LazyVim extra, as I did for ESLint and Tailwind. See the example here: https://github.com/wochap/nvim/blob/main/lua/custom/plugins/lang-web.lua#L17-L19.
local constants = require "custom.utils.constants"

return {
  {
    enabled = not constants.first_install,
    import = "lazyvim.plugins.extras.lang.php",
  }
}


Fix German translation for opening/closing milestones

"offen" is German for "open" (adjective, not verb).
"geschlossen" means "closed", not "close".
This fixes the Milestones action links "Open" and "Close" to also use verbs in German.

I think this should be done here (crowdin)


Update "typography" page

Automatically generated by Netlify CMS

Changes:

Added links to the paragraph and headings pages under the "related items" section.
Added guidance under the "accessibility" section that text shouldn't be used in illustrations or other graphics. Removed old guidance on how to check accessibility of text in graphics


FOI: what consumes/requires space in the image - minimize somehow?

ATM I see
❯ docker images
REPOSITORY                             TAG                            IMAGE ID       CREATED         SIZE
datalad-registry                       dev                            0fd3d4b208cf   8 days ago      1.14GB
datalad-registry                       debug                          3bff492fbced   8 days ago      1.14GB

so it is over a GB image. Sounds like too much ...
I have ran it and installed ncdu and debian-goodies to investigate. Here are the heaviest debian pkgs:
root@44d72652f233:/app# dpigs -n 20
73283 git-annex
51125 gcc-10
44132 guile-2.2-libs
35133 python3-pycryptodome
35084 git
33152 libicu67
27869 libperl5.32
27441 g++-10
25613 cpp-10
19944 libpython3.9-dev
17752 libstdc++-10-dev
17478 coreutils
17455 perl-modules-5.32
16014 locales
14502 libc6-dev
13897 binutils-common
13474 libgcc-10-dev
12833 libc6
9631 libasan6
8926 libtsan0

may be we could remove -dev and all the build tooling...
ncdu shows that lots coming from /usr/local/lib/python3.9/dist-packages
--- /usr/local/lib/python3.9/dist-packages -------------------------------------------------------------------------------------------------------
                         /..
   88.6 MiB [##########] /scipy
   60.7 MiB [######    ] /pandas
   37.8 MiB [####      ] /bids
   36.3 MiB [####      ] /numpy.libs
   35.5 MiB [####      ] /numpy
   34.2 MiB [###       ] /scipy.libs
   17.4 MiB [#         ] /sqlalchemy
   13.0 MiB [#         ] /pip
   11.3 MiB [#         ] /pydicom
   11.1 MiB [#         ] /nibabel
   10.1 MiB [#         ] /boto
    9.4 MiB [#         ] /pydantic
    8.1 MiB [          ] /datalad
..

here is what we have in /usr
--- /usr -----------------------------------------------------------------------------------------------------------------------------------------
                         /..
  451.3 MiB [##########] /local
  442.6 MiB [######### ] /lib
  201.4 MiB [####      ] /share
  143.9 MiB [###       ] /bin
   23.4 MiB [          ] /include
    4.2 MiB [          ] /sbin
   16.0 KiB [          ] /libexec
e   0.0   B [          ] /src
e   0.0   B [          ] /games

so just filing for our information (FOI) but not worth probably messing with it ATM

may be we could remove -dev and all the build tooling...

-dev is just the naming of the image. We didn't actually install any packages specified in requirements_.txt or .[dev] in this image. Can packaging the datalad-registry app in to a package help eliminating the need of installing those build tooling in the image?
We can also consider basing our image on one of the official Python images.

may be we could remove -dev and all the build tooling...

-dev is just the naming of the image.

I was talking about -dev debian packages like libpython3.9-dev

I was talking about -dev debian packages like libpython3.9-dev

I was talking about -dev debian packages like libpython3.9-dev

I just checked. Both libpq-dev and python3-dev are specifically required by psycopg2, the DB driver for Postgres.
I think we will have to find other ways to reduce the size of the image.

most likely they are required only during installation so it could be built but then could be uninstalled...  E.g. if we were installing all components as already built and packaged in debian (e.g. python3-psycopg2 etc) and not with pip install - those -dev would not be needed and size would have been smaller.
But as I have mentioned -- that is more of an information for us, we aren't really at demand to reduce the size atm.  I just was surprised a little that it is that large.  Let's close for now


Debugging in VS Code using Debugger for Chrome extension of the project generated by CLI 1.7.3 not working properly.

Background
After some break time with Angular I came back to it and needed to create frontend for my project. I wanted to start with the latest version so, I updated the CLI, generate new project and started it, to see if everything working properly. It worked, great. Next I added a launch.json with base Launch Chrome against localhost configuration. Afterwards I served app and started debugging to see if it works. And that's why I'm here, because debugging behaves weird. My breakpoint was moved few lines away, and when breakpoint was hit, VS Code opens read-only file with Webpack comment on the end of the file. Breakpoints (and whole debugging process) live their own lives 😀. With CLI 1.4.3 (had this version before update to 1.7.3) everything works as it should. Details below.
Versions
I tested it on macOS Sierra 10.12.6, Windows 10 Pro and ArchLinux using different Node versions ( 8.4.0, 8.6.0, 9.9.0 ) on each system mentioned before and with CLI 1.4.3 everything works like a charm, in opposite to CLI 1.7.3. NPM version: 5.6.0.
Repro steps

install latest CLI (1.7.3) using npm install -g @angular/cli
generate new project using ng new frontend
add launch.json with default Launch Chrome against localhost configuration

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "chrome",
      "request": "launch",
      "name": "Launch Chrome against localhost",
      "url": "http://localhost:4200",
      "webRoot": "${workspaceFolder}"
    }
  ]
}

add test funtion in app.component.ts

  public test() {
    alert('test');
  }

add click event in app.component.html to any a tag:
Tour of Heroes
place breakpoint in test() function on alert('test');
start app using ng serve
start debugging with configuration mentioned above
run the application to the breakpoint (click on the Tour of Heroes text if you followed steps)

Observed behavior
Debugging behaves weird. It does not work as it should.
Desired behavior
Debugging should work as using version 1.4.3 which, "just works".
Other details
Command used to install CLI 1.4.3 after deleting 1.7.3 version:
npm install -g<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>(sudo on ArchLinux).

Same frustrating problem here. Downgrading to 1.6.8 seems to fix things.

I had the same problem too, and I had to modify my launch.json with the following and it started working again
{
      "type": "chrome",
      "request": "launch",
      "name": "Chrome",
      "url": "http://localhost:4200",
      "webRoot": "${workspaceFolder}/app/src",
      "sourceMapPathOverrides": {
        "webpack:///./src/*": "${webRoot}/*"
      }
},

I basically had to change the webRoot and sourceMapPathOverrides and it works again. I'm not sure if this is or will be included when creating a new App (I didn't try), but I leave it here to help others and remove frustration. I also can't live without the debugger.
For more info on how to find the WebPack sourceMap, you can read VSCode Chrome Debug - SourceMap

@ghiscoding Yeah, this was related to sourcemaps. I thought about it but I didn't know how to fix it because I had never faced such a problem.
This launch.json works:
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "chrome",
      "request": "launch",
      "name": "Launch Chrome against localhost",
      "url": "http://localhost:4200",
      "webRoot": "${workspaceFolder}",
      "sourceMapPathOverrides": {
        "webpack:/*": "${webRoot}/*"
      }
    }
  ]
}

For more details - see this comment.

@Bardr Thanks - this now works for me with the updated launch config.


[beboro] flutter pub get --no-example Resolving dependencies... Because every version of get from git depends on web >=0.4.0 <0.6.0 and firebase_core_web >=2.18.0 depends on web ^1.0.0, get from git is incompatible with firebase_core_web >=2.18.0. And because firebase_core >=3.5.0 depends on firebase_core_web ^2.18.1, get from git is incompatible with firebase_core >=3.5.0. So, because beboro depends on both firebase_core ^3.6.0 and get from git, version solving failed.

[beboro] flutter pub get --no-example
Resolving dependencies...
Because every version of get from git depends on web >=0.4.0 <0.6.0 and firebase_core_web >=2.18.0 depends on web ^1.0.0, get from git is incompatible with firebase_core_web >=2.18.0.
And because firebase_core >=3.5.0 depends on firebase_core_web ^2.18.1, get from git is incompatible with firebase_core >=3.5.0.
So, because beboro depends on both firebase_core ^3.6.0 and get from git, version solving failed.

Hi, Could you please elaborate more?
This error doesn't make sense. It's saying that get depends on web version >=0.4.0 <0.6.0.
That's not true.
https://github.com/jonataslaw/getx/blob/master/pubspec.yaml#L15
Are you using a old version?
Try run:
flutter pub upgrade

Oh, I thought i was using the latest version, just checked now it's working
now. Thanks
On Thu, Oct 24, 2024 at 9:43 PM Jonny Borges @.***>
wrote:

Hi, Could you please elaborate more?
This error doesn't make sense. It's saying that get depends on web version

=0.4.0 <0.6.0.

That's not true.
https://github.com/jonataslaw/getx/blob/master/pubspec.yaml#L15
Are you using a old version?
Try run:
flutter pub upgrade
—
Reply to this email directly, view it on GitHub
https://github.com/jonataslaw/getx/issues/3247#issuecomment-2435767489,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIRXJSCNLEILOBKR5MBMQULZ5EPRHAVCNFSM6AAAAABQRPUFW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZVG43DONBYHE
.
You are receiving this because you authored the thread.Message ID:
@.***>


Fix swing issue

Fix swing issue -> OFF, ON, VERTICAL, HORIZONTAL

Thanks @JulienADD 👍

With pleasure,
I'll do something cleaner later maybe because I modified your climate file rather than the fork you made of xerxes87
But xerxes87's file didn't handle the swing too well

With pleasure, I'll do something cleaner later maybe because I modified your climate file rather than the fork you made of xerxes87 But xerxes87's file didn't handle the swing too well

Oh yes, it should be cleaned up. Feel free to contribute, you're welcome 👍
Please open another PR if any other fix should be applied.


Update CLI documentation for lease commands

Details of what the documentation should include can be found at https://github.com/build-trust/ockam/issues/4759

Duplicate of https://github.com/build-trust/ockam/issues/4778


Adding my profile

I want to add my profile to this project so can u pls assign this to me?

Assigned to you


Possibility of having the OS number in addition to the name in mac the same or similar as in windows

Currently we can access [os_version] and get the name of the OS (ex: Big sur).
Would it be possible to obtain, in addition to the name, the version number with something similar to [os_number_version] ?
Edit:
I just checked in windows and the number does appear (ex: 10, in the case of Windows 10).
Would it be possible to have the same on mac?
Thanks

This is possible, but historically it's more common to think of MacOS releases by code name.
I will consider getting additional numerical release names in the future releases.


Mojave Support

Any chance we can get support for Mojave 10.14.2
Just continually throws the error:
fatal error: attempted to read an unknown reference but the object was already deallocated
Thanks!

Can you provide a full crash log? I'm running it right now on my Mojave server just fine. You'll need to enable Full Disk Access in Privacy settings but other than that it didn't require any changes

I added it to Full Disk Access but still had the issue.  Thanks!
Was working fine till I upgraded to Mojave of cource.  I should have stayed where I was I hardly use my Mac Mini anyway.  Mostly just to relay messages to my Android and Chrome OS devices :)
I attached the crash dump from MacOS.
MessageProxyDump.txt

If you use the StartIMProxy I believe you need to grant terminal (or whatever emulator) full disk access. I haven’t been use the script lately as I haven’t experienced any crashes but that’s just me.

I added Terminal to Full Disk Access and that did it!  Thanks for the Support!


Pairing a device in Unity freezes the editor afterwards

I recently discovered 32Feet and I love how easy to use it is. I use a Bluetooth device as a source of input for my Unity project, but I noticed an issue that pops up after my code runs BluetoothSecurity.PairRequest.
After running a pair request and exiting play mode, I noticed that any action that requires me to refresh Unity causes it to get stuck. For example, if I try to enter play mode again, it gets stuck on Application.Reload or if I need to recompile my project after updating a script, it gets stuck on Reloading Script Assemblies. I have to forcefully end Unity through Task Manager because it even gets stuck on Application.Quit if I just try to exit per usual.
private async Task<bool> AttemptPairAsync(BluetoothDeviceInfo btDevice, string pin = null)
{
    Func<bool> func = () =>
    {
        if (btDevice.Authenticated)
           return true;
        CheckCancellation();
        bool result = BluetoothSecurity.PairRequest(btDevice.DeviceAddress, pin);
        btDevice.Refresh();
        return result;
    };
    return await Task.Run(func);
}

My Unity version is 2020.3.19f1
My InTheHand.Net.Bluetooth package is version 4.0.22 and was added using NuGet for Unity.

This may be related to #162 and sounds like a problem with the callback function. Currently investigating...

Alright, thank you for the fast response. I hope you find the solution soon.

There was an issue in the callback code. Fixed in 4.0.24


Use ZWLR_LAYER_SHELL_LAYER_BOTTOM

If you put this in the top layer, it will render on top of floating windows, dmenu, etc. swaybar goes in the bottom layer instead.

Okay, so that's why, thanks for info.
Done in 7d05f6c612976ebf1e713ad29f6e2fcafd8f2f32

Nice :)


weird things happen when I pass a large int to "org.labrad.registry.set"

When I pass a large integer like<PHONE_NUMBER>2 the registry key gets set to 651589040. Works for smaller integers or floating points. Not sure where the problem is.
Also, not sure if this is an actual problem (probably never need numbers this big). I only broke it when trying to test random inputs for my new fangled expandable input component. Probably should return an error though.

30716360112 is not a valid labrad integer because it doesn't find in 32 bits. It overflows to the value you're seeing:
>>><PHONE_NUMBER>2 & 0xFFFFFFFF
651589040

I've filed an issue with scalabrad to fix this.

Closing this since it sounds like there is nothing to be done in Scalabrad-web to fix it.


move worker related setting to values

Why this pr:
Now worker setting (image, pull policy) is hard-coded in controller, hope moving this to values will be more configurable.

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

This is fantastic! Can you please rebase? Then I will manually test and merge.

@technosophos  rebased, tks.

Testing right now!


lensfun can't update lens database

Describe the bug
lensfun-update-data fails requiring python3 installed, and even then fails to load a necessary python module
$ lensfun-update-data
/usr/bin/env: ‘python3’: No such file or directory

$ nix-shell -p python3 --run lensfun-update-data
Traceback (most recent call last):
  File "/nix/store/cgcad5zjda9zpn0vlb30rbzpvd6cpcfr-lensfun-2020-09-25/bin/lensfun-update-data", line 46, in <module>
    import lensfun
ModuleNotFoundError: No module named 'lensfun'

To Reproduce

Enter a shell with lensfun installed
run lensfun-update-data
Observe the above error

Expected behavior
The database in .local/share/lensfun is updated
Additional context
The lensfun derivation needs to install the generated python modules, and wrap the lensfun-update-data executable with a wrapper which provides python3 and an appropriate PYTHONPATH
Notify maintainers
@enzime
Metadata
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.62, NixOS, 20.09.git.4a755116d57 (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.7`
 - nixpkgs: `/home/j/src/nixpkgs`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
  - lensfun
# a list of nixos modules affected by the problem
module:

I took a quick look at the script - it apparently expects stuff to be in /usr/{local/}share/lensfun - which won't work on NixOS.
Also, both "update servers" (http://lensfun.sourceforge.net/db/ and http://wilson.bronger.org/lensfun-db/) seem to be offline, and https://lensfun.github.io/ has a blog post from early 2019 searching for new maintainers.
There seem to be some updates in their git repo - instead of trying to hack the updater into some working state, we should probably just not ship the lensfun updater scripts at all, and replace $out/share/lensfun/version_2 should contain a more recent snapshot of the database - either by doing this in nixpkgs, from a snapshot, or by helping out upstream with a new release ;-)

Highlighting darktable nixpkgs maintainers and editors: @cillianderoiste @flosse @mrVanDalo @danieldk @adisbladis

I opened https://github.com/NixOS/nixpkgs/pull/108991 which should ship a more recent lensfun database.

I opened https://github.com/NixOS/nixpkgs/pull/108991 which should ship a more recent lensfun database.

Thanks!
On Mon, Jan 11, 2021, 8:44 AM Florian Klink<EMAIL_ADDRESS>wrote:

I opened #108991 https://github.com/NixOS/nixpkgs/pull/108991 which
should ship a more recent lensfun database.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/99009#issuecomment-757574574,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGRJXHRJDRXI7FZEJQNQGDSZJCWLANCNFSM4R4QI3MQ
.

Thanks!
On Mon, Jan 11, 2021, 8:44 AM Florian Klink<EMAIL_ADDRESS>wrote:

I opened #108991 https://github.com/NixOS/nixpkgs/pull/108991 which
should ship a more recent lensfun database.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/99009#issuecomment-757574574,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGRJXHRJDRXI7FZEJQNQGDSZJCWLANCNFSM4R4QI3MQ
.


FIX Don't swallow relevant BadMethodCallExceptions from ViewLayerData

Without this PR, scenarios "exception thrown outside __call()" and "exception thrown in __call() in a different class hierarchy" would fail.
Issue

https://github.com/silverstripe/silverstripe-framework/issues/11481

I'm fairly sure the inmemorycache CI run failure is unrelated - I've spun up a CI run on the 6 branch to confirm.


Uncaught AuthenticationError in utils.py line 8062

Aider version: 0.60.0
Python version: 3.10.13
Platform: macOS-15.0-arm64-arm-64bit
Python implementation: CPython
Virtual environment: No
OS: Darwin 24.0.0 (64bit)
Git version: git version 2.47.0
An uncaught exception occurred:
Traceback (most recent call last):
  File "openai.py", line 907, in completion
    raise e
  File "openai.py", line 825, in completion
    self.make_sync_openai_chat_completion_request(
  File "openai.py", line 683, in make_sync_openai_chat_completion_request
    raise e
  File "openai.py", line 672, in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
  File "_legacy_response.py", line 353, in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
  File "_utils.py", line 274, in wrapper
    return func(*args, **kwargs)
  File "completions.py", line 704, in create
    return self._post(
  File "_base_client.py", line 1268, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
  File "_base_client.py", line 945, in request
    return self._request(
  File "_base_client.py", line 1049, in _request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'API key credit limit reached. You can change it on https://openrouter.ai/keys', 'code': 401}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 1999, in completion
    response = openai_chat_completions.completion(
  File "openai.py", line 914, in completion
    raise OpenAIError(
litellm.llms.OpenAI.openai.OpenAIError: Error code: 401 - {'error': {'message': 'API key credit limit reached. You can change it on https://openrouter.ai/keys', 'code': 401}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
  File "main.py", line 776, in main
    coder.run()
  File "base_coder.py", line 730, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 773, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1212, in send_message
    saved_message = self.auto_commit(edited)
  File "base_coder.py", line 1895, in auto_commit
    res = self.repo.commit(fnames=edited, context=context, aider_edits=True)
  File "repo.py", line 110, in commit
    commit_message = self.get_commit_message(diffs, context)
  File "repo.py", line 195, in get_commit_message
    commit_message = simple_send_with_retries(
  File "sendchat.py", line 46, in wrapper
    return decorated_func(*args, **kwargs)
  File "_sync.py", line 105, in retry
    ret = target(*args, **kwargs)
  File "sendchat.py", line 104, in simple_send_with_retries
    _hash, response = send_completion(**kwargs)
  File "sendchat.py", line 85, in send_completion
    res = litellm.completion(**kwargs)
  File "utils.py", line 1086, in wrapper
    raise e
  File "utils.py", line 974, in wrapper
    result = original_function(*args, **kwargs)
  File "main.py", line 2847, in completion
    raise exception_type(
  File "utils.py", line 8194, in exception_type
    raise e
  File "utils.py", line 8062, in exception_type
    raise AuthenticationError(
litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenrouterException - Error code: 401 - {'error': {'message': 'API key credit limit reached. You can change it on https://openrouter.ai/keys', 'code': 401}}

Thanks for trying aider and filing this issue.
This looks like a duplicate of #2071. Please see the comments there for more information, and feel free to continue the discussion within that issue.
I'm going to close this issue for now. But please let me know if you think this is actually a distinct issue and I will reopen this issue.


Replace AccountNumber with string

Needs to be done in both C++ and rust.
Check /[0-9a-z_]+/ and 12 char limit on account creation

Also ban consecutive underscores, as simple phishing mitigation


Use com.hortonworks.spark instead of com.hortonworks

This closes at https://github.com/hortonworks-spark/spark-llap/commit/e1a906c99cec80f3276b0c4c4cdd85d1b0daa1e8 .


pull request for e2e test at 01/23/2017 23:26:15

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


HADOOP-7930. Kerberos relogin interval in UserGroupInformation should be configurable. Contributed by Robert Kanter. (harsh)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1389783 13f79535-47bb-0310-9956-ffa450edef68
Some of the prediction jobs are failing with some salsConexionIssue due to kerberos Ticket cache renewal/expired
We currently think that it is due to all jobs renewing at the same time the kerberos ticket through a kinit -R command which leads to a file being corrupted.
Then when the saslConnexion issue happens it should renew the ticket but due to the refresh time it doesn't do it and failed.
With this patch we will be able to allow renew after 1 senconds and not after 10 min by default

+1


For data preprocessing scripts

Hi,
Would you please share the scripts for preprocessing the raw datasets (Amazon csv files)? I am confused about "filter out cold-start item entry in the test set from BiTGCF" in your paper. What do you mean by "cold-start item"? BiTGCF paper states that they retain the items with number of ratings greater than 10. Thank you very much.

@ cjx96

@cjx96

Hi, for this issue, we find some items are cold-start in the test set of original Bi-TGCF preprocessed datasets.
(cold-start means the item does not show in the training set).
Therefore, we filter such entries in our versions.

Thank you for your reply.


variablize the items parameter

In my application, an administrator can add/delete tables in a database.
When the user loads the app, an ajax call is made to populate the table list to ensure that all recent table changes are reflected in the UI. The user can then switch from one table to another,
How do I use the table list retrieved from the db (obviously formatted to a string needed by contextMenu's items: ) in a contextMenu?  This (i.e. hardcoded) works fine:
$.contextMenu({
selector: '.select_list',
trigger: 'hover',
callback: function(key, options) {
change_list(key);  // a function to get data from db and redisplay page
},
items: {
"all": {name: "All"},
"TableA": {name: "TABLEA"},
"TableB": {name: "TABLEB"},
"TableC": {name: "TABLEC"}
}
});
I'd like to assign the whole items: string (form { to }) to a variable and use that instead.  Is that possible?
When I try it (checking carefully to ensure the string is identical to the above), I get a jQuery error:
TypeError: invalid 'in' operand a

Also something I want. The solution for me could be allow items to be a function (apart form an array like now)
That would allow the user to fully customize the menu in any way they want, by example change the text of an items from "Copy" to "Copy 8 items" depending of some external selection.

| When I try it (checking carefully to ensure the string is identical to the above), I get a jQuery error:
items isn't supposed to be a string. It's an object. You can try declaring it beforehand:
var menuitems={
            edit: {name: "Edit", icon: "edit"},
            cut: {name: "Cut", icon: "cut"},
            copy: {name: "Copy", icon: "copy"},
            paste: {name: "Paste", icon: "paste"},
            delete: {name: "Delete", icon: "delete"},
            sep1: "---------",
            quit: {name: "Quit", icon: "quit"}
        };

    $.contextMenu({
        selector: '.context-menu-one',
	callback: function(key, options) {
	    var m = "clicked: " + key;
	    window.console && console.log(m) || alert(m);
	 },
	items: menuitems
    });

If you retrieve the menuitems variable with an Ajax call, and the backend sends a properly formatted json, you can have jQuery parse it so you don't have to, and instantiate the contextMenu using that object as items
$.ajax({
    url:'/backend/tables.php',
    type:'GET',
   dataType:'json'
}).done(function(jsonResponse) {

    $.contextMenu({
        selector: '.context-menu-one',
	callback: function(key, options) {
	    var m = "clicked: " + key;
	    window.console && console.log(m) || alert(m);
	 },
	items: jsonResponse
    });

});

don't try to manually mimic or parse json. It won't work and it's meant to be machine readable.

This seems answered, thank you @amenadiel. :)


[🐛 BUG]: Delete all items from the priority queue on the pipeline destroy command

No duplicates 🥲.

[X] I have searched for a similar issue in our bug tracker and didn't find any solutions.

What happened?
When the user calls rpc.Destroy for the pipeline, some jobs might already be in the priority queue. Since the priority queue is global for all pipelines, jobs from the destroyed pipeline might reach the worker. RR won't be able to ACK/NACK these JOBS, but they might sometimes break user logic inside the worker.
We should delete all associated JOBS from the PQ and wait for the msgInFlight == 0 to be sure that there are no JOBS inside the PQ or currently processing by the PHP worker.
Version (rr --version)
<= 2.12.1
How to reproduce the issue?

Start RR.
Use a simple JOBS worker with a sleep(1).
Push a lot of JOBS and call rpc.Destroy with the pipeline name simultaneously.

[x] AMQP
[x] SQS
[x] Beanstalk
[x] NATS
[x] Kafka
[x] in-memory
[x] localdb

The second part of this bug is to introduce an option to wait for the jobs currently being processed by a worker.


Could you add a node to fully work with chat?

Could you add a node to fully work with chat (or a switch that disables automatic generation of prompt)?

something like that?

i added "SimpleChat Node"

you can ask anything to it


Removed old spells.

Removed spells that got pruned. Still need to recheck the spells to account for any changes and add new spells.

Yes I guess this is still in a bit of a flux, since spells can still come and go.


MF - 1887 - Add Support For Google Login

Signed-off-by: Rodney Osodo<EMAIL_ADDRESS>What does this do?
Add support for Google login
Which issue(s) does this PR fix/relate to?
Closes #1887
List any changes that modify/break current functionality

Add a google-callback method to handle Google logins
Removes restrictions on the secret field for clients i.e. Enable empty secrets
Remove mandatory ID generation for new users as Google provides a unique ID for a user
Enable token parse for both Google and internal

Have you included tests for your changes?
Manually tested it
Did you document any new/modified functionality?
https://github.com/mainflux/docs/pull/163
Notes

https://developers.google.com/identity/openid-connect/openid-connect

Closing this one as a duplicate of #2103.


Video frame server performance

Hello @lukasf,
I have been playing around with the video frame server mode in MediaPlayer.
It looks pretty interesting and allows quite a few fancy things, including video effects (yes, i gave up on the official version).
I've been worried about excessive audio processing causing desync between audio and video. So you have any experience about it?
Thanks.

It is a back and forth really. I added a task delay in the frame processing event and it seems to induce frame drops. So it's not really that nice for audio & video together, but should work for ads lol.

Did you try using MediaPlayer.GetSurface() instead of doing custom rendering? The surface can be used with Composition and will update automatically. Then it should be possible to apply composition API effects.


Linting

Fixes #413

Fixes dart format  CI check
Adds flutter analyze CI check
Adds pre-commit hook to automatically run dart format before commit
Adjust line length to 120 chars (previously 80)
Adds linting rules from lint
Changes some analyze rules to error (e.g. unused_error)
Disable implicit_casts

While there are lots of changes, the important things to review are relatively small:
https://github.com/digitalfabrik/ehrenamtskarte/pull/431/files/0faf9323d8a7bb50519a9a4f917e13ad6d807ead..4c15ecd0d1ae407534515556ca92eff86bc8875d
All other linting rules were done in a separate commit and are easily reviewable if wanted. Let me know what you think.
I'll create an issue to enable the rule use_build_context_synchronously as it seems relatively important but would have changed behavior too much to include in this PR.

And please squash and merge the changes before merging such that we only have a single commit.


Add Docker image

Add a Docker image option for running LongReadSum.

@umahsn can you provide the example docker file so Jon can build docker image as part of the continuous integration and testing. Thank you.


Feature request : Delete songs from a room

The title says it all. Can there be a function implemented that support deleting songs from a room?

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/11057768-feature-request-delete-songs-from-a-room?utm_campaign=plugin&utm_content=tracker%2F9578624&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9578624&utm_medium=issues&utm_source=github).

You can delete songs from a room if you are an administrator.  To find out who is an admin in your room, type "/listadmins" into the chat window.  Also, all users can remove their own adds to a room too (a trash icon appears on the track for the adder / admin).  Top tip: you can hold ctrl whilst clicking remove track to bypass the confirmation dialog, to delete a few in a row.  Also room admins can use /clearall to start afresh.

Dear pdaddyo,
I just checked the administration list using /listadmins and it confirmed that i was indeed an Administrator. Sadly I am still unable to remove tracks that other users added in my room (strangers). As you can see in this screenshot i can't delete the added song : http://gyazo.com/77a780600de291116a07f300df607657
Thanks in advance,
Tim

I found the issue.. I was logged in using facebook instead of my actual Spotify ID. It seems that these 2 users aren't equal to eachother so i wasn't an administrator anymore.
Is there a way to assign an admin? I also would like to give my friend permission to delete songs.
Thanks in advance!
Tim

I've currently disabled the ability to add further admins to a room but should be re-enabling in the coming weeks.

OK this is back, thanks.


fix(manage-merge-queue): set commit status when pr is removed from queue

:pencil: Description

Currently the commit status is not updated to pending when a PR is removed from the merge queue. This resolves that issue!

:tada: This PR is included in version 1.24.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Easy way to create a scrolling SelectField or DropDownMenu

You all have made great progress in the past couple of months.
It would be great to be able to create a scrolling select field or drop down menu by setting a property or even setting a style. Right now, this doesn't seem possible without editing the base implementation, or am I missing something.
This seems like something that lots of people would find useful.
Thanks

Thanks @bblumberg - Dupe of #642


prom_scraper should support counters

If I have a summary on my metrics endpoint like
# HELP http_requests_total The total number of HTTP requests.
# TYPE http_requests_total counter
http_requests_total{method="post",code="200"} 1027

I expect it to be converted to the a counter:
{"tags":{method: "post",code: "200"}, "counter": {"name": "http_requests_total", "delta": 0, "total": 1027}}

This has been completed


"ERROR Invalid permission format" (from USER_ROLE_PERMISSIONS)

On some deployments, when superset (web service) or superset-worker startup, I see this in the logs:
2024-08-29T01:24:24.315606244Z 2024-08-29 01:24:24,315:ERROR:root:Invalid permission format: ('all_datasource_access',)
2024-08-29T01:24:24.339490398Z 2024-08-29 01:24:24,315:ERROR:root:Invalid permission format: ('all_database_access',)
2024-08-29T01:24:24.339563299Z 2024-08-29 01:24:24,316:ERROR:root:Invalid permission format: ('all_query_access',)
I notice that these values are likely coming from the USER_ROLE_PERMISSIONS environment variable: https://github.com/ConservationMetrics/superset-deployment/commit/a2e4c7dc3997a148e4984f33a1e3abd032592e25
Downstream consequences
I am not 100% sure right now what the implication of these log messages will be.
The deployment I'm looking at is struggling to start, but I don't know if that is related to these errors in the logs.

I'm guessing that superset does not like the tuple.   I can confirm that our own logic is creating this tuple ('all_datasource_acccess',) even though the env variable does not use a tuple:
Following code here: https://github.com/ConservationMetrics/superset-deployment/blob/9271eee7b9248b5b745ab5f8b7214f5c2eefa60f/docker/pythonpath/superset_config.py#L180-L185
>>> USER_ROLE_PERMISSIONS = "(can_read,Chart),(all_datasource_access),(all_database_access),(all_query_access)"
>>> user_role_pvms = [
...         tuple(permission.strip("()").split(","))
...         for permission in USER_ROLE_PERMISSIONS.replace("),(", ")|(").split("|")
...     ]
>>> user_role_pvms
[('can_read', 'Chart'), ('all_datasource_access',), ('all_database_access',), ('all_query_access',)]

And sample setting:
https://github.com/ConservationMetrics/superset-deployment/blob/9271eee7b9248b5b745ab5f8b7214f5c2eefa60f/docker/.env.sample#L30


Split out object models into separate package?

It would be useful to have a lightweight package for easily reading, interrogating, manipulating, and doing analysis of the JSON analysis files we generate from fah-xchem. To do this, we currently need to install the whole fah-xchem package (including several fragile pip+git installs), which is not friendly for any downstream users.
We should consider splitting the object models into a second package, perhaps harmonizing these with perses and the OpenFE effort.
Use cases might include:

Browsing the datasets for use in generating new compound designs
Analyzing accuracy of free energy calculations and interrogating failure modes
Training machine learning models to predict free energies or difficulties of transformations
Experimenting with better network construction or network free energy analysis methods

We could have fah_xchem the library and fah_xchem_schema for the pure-schema structures, but keep them side-by-side in this repo. Do you see any problem with this proposal?

Main take-away lessons are:

We don't need the entire object model to always live here
Much of the schema / object model is actually general, with xchem applications having specific interpretations of various fields (e.g. xchem_project is the specific project name, but all projects will have names; xchem_fragment_id is just a unique ID for the reference X-ray structure used)
We can refactor within this repo to generalize the object model and then eventually migrate into general FAH alchemy infrastructure as appropriate
Nothing is urgent


docs(docsWeb): update the spanish version of getting started

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] The commit message follows our guidelines: https://github.com/scullyio/scully/blob/master/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Other... Please describe:

Updates the spanish version of the getting started markdown
What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

thanks @facurodriguez


No fracture notifications for manual fractures

When we manually fracture the moons before the autofracture happens we do not seem to get a fracture notification on discord an the moon doesnt seem to get added to the fracture_notices table at all. Is there something wrong in our setup or is this a design for some reason?

if($diff_manual->days == 0 && $diff_manual->h <= 1 && $diff_manual->invert == 1 && !is_null($notification->extraction_webhook)) {           if(is_null($fracture_notice) || $fracture_notice->notice == FALSE) {
So this is the logic around Manual fracture notifications. There is nothing in the extraction API that says When a manual fracture was done. So my logic says
If the the time left before it fractures is equal to or less than 1 hour, and its not in the past already, then we make sure you have saved an extraction webhook, and that we haven't sent a notice already.
So have you done the following:

Extraction webhook is saved for the character who is providing that structure

So the notification should come within an hour of when the chunk arrives and it could be manually fractured.

Were you by chacne using slack webhooks?

Aright thx. We are using discord hooks. But this clears things up, when we see the notification show up we know that we can then pop it instead of assuming notification to show up at autofracture instead.

So were you getting notifications? just not when you were expecting them?

Yeah we are getting notifications indeed but not just when we expected them ^^

ah ok! yeah I really need to make a FAQ, the automatic fractures notifications will be clsoe to 3 hours after the arrival time


Taking away helpers

taking away helpers

:goose:

Coverage increased (+2.07%) to 11.875% when pulling eb87369f914d5a677070721d05fd71bf3bf00c8e on feature-moving-out-helpers into 56162d9c5576cf81a5a754a96eff6a7ab9d87ad0 on master.


Add the ability to schedule a job on one or multiple endpoints

This feature will be limited to the agent setup on standalone hosts only.
We want to give the ability to an administrator user to schedule the execution of a custom script on a specific host.
This feature depends on:

ability to upload files on a host: #2182
ability to run custom scripts on a host: #2181

This feature will require the creation of the views specified below.
Task creation view
This view must give the user the ability to plan a script execution. It must have the following fields:

Name
Multiple upload steps, for each step: a file input allowing the user to choose a file from their computer and a text input to specify the path where this file will be located on the host
One custom script step allowing the user to create a custom script (similar to the script feature above, e.g. webeditor/file upload)
Target endpoint selection (multi-select, only allow standalone hosts)
Scheduling
Retry policy

Task list view
This view will provide the user with the list of all scheduled executions across all the endpoints.
Task details view
This view gives details about a specific execution (with logs if available). It will also allow the user to edit the execution (name, steps, targets, scheduling and retry policy).

Update on this topic.
We need to give the ability to an administrator user to schedule the execution of a job (depends on #2181) on one or multiple endpoints.
Specs
UI/UX
Sidebar
A new entry in the sidebar must be created: "Job scheduler". This entry will redirect to the schedule list view.
Schedule list
A new schedule list view will be introduced.
This view will provide:

List all the schedules across all the endpoints inside a datatable
Available columns in this datatable: Name, schedule and creation date
Each entry in the datatable should be selectable and should allow the use of the "Delete" action
A "Add schedule" button redirecting to the schedule creation view
On click on a schedule name, it will redirect to the schedule details view

Schedule creation
This view will contain a form allowing a user to create a schedule.

Form fields: Name, file (upload), script (web editor), endpoints (multi select), schedule
Similar to the job creation view (https://github.com/portainer/portainer/issues/2181), provide a way to specify a script via the web editor or via file upload
Ability to select one or multiple endpoints via a multi select component
**  When selecting a classic Swarm endpoint (no agent setup), the following warning message should be displayed close to the multi select component: You have selected a Swarm manager as a target. This job will only be executed on this node, NOT on all the nodes inside the cluster.
A simple text input for the schedule (cron expression)
A schedule action button, redirects to the schedule list view on success

Schedule details view
This view will give some details about an existing schedule.

Available information: name, target endpoints and schedule (cron expression)
This view will give an administrator user the ability to update any of these fields
Also gives the ability to delete the schedule

Small question, is this available for every type of setup or only standalone + agent ?

This feature will be limited to the agent setup on standalone hosts only.

** When selecting a classic Swarm endpoint (no agent setup), the following warning message should be displayed close to the multi select component: You have selected a Swarm manager as a target. This job will only be executed on this node, NOT on all the nodes inside the cluster.

@xAt0mZ all Docker setups (standalone, standalone+agent, Swarm, Swarm+Agent).
Please refer to these specs only: https://github.com/portainer/portainer/issues/2183#issuecomment-428429267


FlatList support

Will this move to FlatList instead of ListView ??
FlatList has a handy feature scrollToItem that I would like to use with this library.

As always, PR Is welcome.

i like this repository. I hope you will support FlatList

Would be nice to see this since newer versions of React Native don't support ListView anymore.

@mrbrdo ListView is depreciated not removed, I haven't switched to FlatList because there are still some minor issues with it

@nihgwu i'd love to hear about the issues you have found with FlatList. May help me with future tasks

Will be uploading my FlatList version of this library to a repo soon. It is a WIP. Would love some assistance with finishing it off.
For anyone interested I will post a link here when it is up.

Hey everyone. I've uploaded to a repo. My version is a WIP.
I need help finishing off functionality. Specifically around the animation for empty row that appears between rows when you are dragging around.
https://github.com/vTrip/FlatListSortable

@vTrip the scrollToItem can be easly done using current code.
you can use internal layoutMap which contains array of all rows layouts (xPos, yPox, height, width)
Example function:
scrollToIndex = (index, animated) => {
    const y = this._list.layoutMap[index.toString()].y
    this._list.scrollTo({ x: 0, y: y , animated: true });
};

I use it to scroll to when adding new element or on load. I'm using setTimeout as i'm waiting for redux to update the store and for list to catch up with the data update.
  componentDidMount() {
    setTimeout(() => {
      this.scrollToIndex(this.props.selectedConfigIdx, false);
    }, 300);
  }

  componentDidUpdate(prevProps, prevState) {
    if (prevProps.selectedConfigIdx !== this.props.selectedConfigIdx && this._areWeDuringAddNewConfig) {
      setTimeout(() => {
        this.scrollToIndex(this.props.selectedConfigIdx, true);
      }, 100);
    }
  }

  _addNewConfig = () => {
    if (this._areWeDuringAddNewConfig) {
      return;
    }

    this._areWeDuringAddNewConfig = true;
    this.props.onConfigAdd();
  };

  scrollToIndex = (index, animated) => {
    const y = this._list.layoutMap[index.toString()].y;
    this._areWeDuringAddNewConfig = false;
    this._list.scrollTo({ x: 0, y: y, animated: animated });
  };


Need to tool/framework to simulate HTTP error response for negative tests

Need to tool/framework to simulate HTTP error response for negative tests in the CI suite

This is the approach we use for testing 404's and other errors like 401, 403, 409 and 422. Checking the spy should ensure that if the path responds with 20x status, the test should fail.
HTTP error  approach we use for testing 404's and other errors like 401, 403, 409 and 422. Checking the spy should ensure that if the path responds with 20x status, the test should fail.
'use strict';
const chai = require('chai');
const chaiHttp = require('chai-http');
const spies = require('chai-spies');
chai.should();
const { app } = require('../server');
chai.use(chaiHttp);
chai.use(spies);
describe('Wrong paths', function () {
it('should respond with 404', function () {
const spy = chai.spy();
return chai.request(app)
.get('/v1/foobar')
.then(spy)
.catch((err) => {
const res = err.response;
res.should.have.status(404);
})
.then(() => {
spy.should.not.have.been.called();
});
});
});


Reduce Chef requirement to >= 15.3

There is no technical reason to require >= 16.0 at this point and this allows additional users to keep using this cookbook. In addition, this aligns with what requirements we're setting on other cookbooks as we enable unified_mode.
Also, fix spelling mistakes in changelog.
Signed-off-by: Lance Albertson<EMAIL_ADDRESS>

hooray 😂


Support all kinds of JVM args, not only java properties

Describe what needs to be done and why
I'm trying to run a local Spark job as a shebang script. On modern JDKs, Spark requires certain args to be provided to JVM  (e.g., --add-exports java.base/sun.nio.ch=ALL-UNNAMED). The current implementation of scala-cli can only propagate java properties (using JAVA_OPTS or .scala-jvmopts), but not other vm args. I receive the following warning:
Warning: Only java properties are supported in .scala-jvmopts file. Other options are ignored: --add-exports java.base/sun.nio.ch=ALL-UNNAMED

It's not the case for sbt, for example, as it supports such kind of args both in JAVA_OPTS and in .jvmopts file.
Describe alternatives you've considered
I've considered scala-cli --power run --spark-standalone, it starts to download JDK 8, but it's not what I want.
It's not about running Spark at all costs, or inability to downgrade JVM. I believe scala-cli should be able to propagate all kinds of args to JVM.

JVM args other than Java properties indeed aren't supported in the JAVA_OPTS env at the moment, as well as in the .scala-jvmopts file.
A warning was missing for when invalid JVM args are being passed in the env vars, I linked a quick fix PR (I just add the missing warning, so it doesn't solve this feature request).
Java options can instead be passed via command line options, check the relevant doc.
scala-cli . --java-opt --add-exports --java-opt java.base/sun.nio.ch=ALL-UNNAMED


Can you also add the simple code to run purgecss in production?

This repository is great because it simply showcases how to use tailwind with create-react-app without other modules.
I would love just to see these few lines added to the tailwind config file to configure purge.
  purge: [
    './public/**/*.html',
    './src/**/*.tsx',
    './src/**/*.jsx',
  ],

Will you be able to add this lines @kriswep to help out newcomers? Do you prefer a Pull Request with this?

Yes, that sounds good.
A PR would be appreciated for sure.


Overwatch More Custom Support and CSGO Mouse Stutters

For the overwatch I  think there should be more like customization cuz you cant really do anything outside of the defaults and also for CSGO I get major mouse stutters and its not that my comp/mouse is trash lol, whenever i quit aurora its fine,,,, please fix!!

Overwatch does a decent job of LED illumination. There's nothing really to add.
As for CSGO, what processor are you using? A dual core?

No but like for overwatch I wanna be able to customize it cuz like i dont
like how hanzos green looks and some other heroes and also its not my
computer because without Aurora no problems.. heres my specs anyways
https://pcpartpicker.com/list/4fPYm8
On Tue, Jan 10, 2017 at 6:47 PM, Anton Pupkov<EMAIL_ADDRESS>wrote:

Overwatch does a decent job of LED illumination. There's nothing really to
add.
As for CSGO, what processor are you using? A dual core?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/antonpup/Aurora/issues/356#issuecomment-271734847,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXVQEOUNotiDI-lkx6Q345NrZVMG1L9Vks5rRBiVgaJpZM4LgAJv
.

Was the CSGO issue happening on the previous version?

No Dx
On Tue, Jan 10, 2017 at 7:20 PM, Anton Pupkov<EMAIL_ADDRESS>wrote:

Was the CSGO issue happening on the previous version?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/antonpup/Aurora/issues/356#issuecomment-271740419,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXVQECUVRMQ5DeW89t6OTKIJ9vJ3u8ajks5rRCBqgaJpZM4LgAJv
.

Oh and now my overwatch lighting wont work either..
On Tue, Jan 10, 2017 at 7:46 PM, Will Friend<EMAIL_ADDRESS>wrote:

No Dx
On Tue, Jan 10, 2017 at 7:20 PM, Anton Pupkov<EMAIL_ADDRESS>wrote:

Was the CSGO issue happening on the previous version?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/antonpup/Aurora/issues/356#issuecomment-271740419,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXVQECUVRMQ5DeW89t6OTKIJ9vJ3u8ajks5rRCBqgaJpZM4LgAJv
.

Make sure to repatch it with the new wrapper.

Ok thanks but yeah the thing with csgo really needs to get fixed... i know
its not my computer also
On Tue, Jan 10, 2017 at 8:16 PM, Anton Pupkov<EMAIL_ADDRESS>wrote:

Make sure to repatch it with the new wrapper.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/antonpup/Aurora/issues/356#issuecomment-271749614,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXVQEFaiLRp3zJjbenZoEibbc9D35nmyks5rRC1cgaJpZM4LgAJv
.

Can you please try the following version?
https://puu.sh/tibOZ/c0dcd5935c.zip

Will do tomorrow!
On Tue, Jan 10, 2017 at 9:33 PM Anton Pupkov<EMAIL_ADDRESS>wrote:

Can you please try the following version?
https://puu.sh/tibOZ/c0dcd5935c.zip
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/antonpup/Aurora/issues/356#issuecomment-271761231,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXVQEHuAaeMJm0gOdyyPsOy9Ee1X9qYlks5rRD95gaJpZM4LgAJv
.

That fixed it!!!
On Tue, Jan 10, 2017 at 9:58 PM, Will Friend<EMAIL_ADDRESS>wrote:

Will do tomorrow!
On Tue, Jan 10, 2017 at 9:33 PM Anton Pupkov<EMAIL_ADDRESS>wrote:

Can you please try the following version?
https://puu.sh/tibOZ/c0dcd5935c.zip
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/antonpup/Aurora/issues/356#issuecomment-271761231,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXVQEHuAaeMJm0gOdyyPsOy9Ee1X9qYlks5rRD95gaJpZM4LgAJv
.

Well there feels like minimal stuttering but its a lot more playable but
that could just be me
On Wed, Jan 11, 2017 at 2:14 PM, Will Friend<EMAIL_ADDRESS>wrote:

That fixed it!!!
On Tue, Jan 10, 2017 at 9:58 PM, Will Friend<EMAIL_ADDRESS>wrote:

Will do tomorrow!
On Tue, Jan 10, 2017 at 9:33 PM Anton Pupkov<EMAIL_ADDRESS>wrote:

Can you please try the following version?
https://puu.sh/tibOZ/c0dcd5935c.zip
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/antonpup/Aurora/issues/356#issuecomment-271761231,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXVQEHuAaeMJm0gOdyyPsOy9Ee1X9qYlks5rRD95gaJpZM4LgAJv
.

Well after some more playing it seems like the stuttering is still there
but its getting better... I guess playing against real players helps figure
it out XD
On Wed, Jan 11, 2017 at 2:16 PM, Will Friend<EMAIL_ADDRESS>wrote:

Well there feels like minimal stuttering but its a lot more playable but
that could just be me
On Wed, Jan 11, 2017 at 2:14 PM, Will Friend<EMAIL_ADDRESS>wrote:

That fixed it!!!
On Tue, Jan 10, 2017 at 9:58 PM, Will Friend<EMAIL_ADDRESS>wrote:

Will do tomorrow!
On Tue, Jan 10, 2017 at 9:33 PM Anton Pupkov<EMAIL_ADDRESS>wrote:

Can you please try the following version?
https://puu.sh/tibOZ/c0dcd5935c.zip
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/antonpup/Aurora/issues/356#issuecomment-271761231,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXVQEHuAaeMJm0gOdyyPsOy9Ee1X9qYlks5rRD95gaJpZM4LgAJv
.


[Hybrid] Reconnect to available node

If current connection is lost, find available node and reconnect.
Previously, This recovery work is done by user application.
Let's make the users don't care about this work when using MQTT-HYBRID.
edgesrc and tensor_query_ should be updated after this change.

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #193. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

:octocat: cibot: @gichan-jang, src/libnnstreamer-edge/nnstreamer-edge-internal.c does not include Doxygen tags such as @file @brief @author @bug. You must include the Doxygen tags in the source code. Please refer to a Doxygen manual at http://github.com/nnstreamer/TAOS-CI/blob/main/ci/doc/doxygen-documentation.md


Add optional PRODUCT.yaml fields

Ensures that the following fields in PRODUCT.yaml are optional:

repo_url
product_logo_url

It builds and the tests pass in trial-implementation (this needs a better placing and name).
Just need an lgtm.
cc @zz, @Riaankl

For clarification on this, if someone includes an optional field, that field's content must match its datatype?  For example, it is okay for someone to not include repo_url and their pr (assuming all other tests pass) will be a valid PR.  But if someone does include repo_url, and its field doesn't match the 'text/html' field type, then it is not a valid PR.  am I understanding that right?

For clarification on this, if someone includes an optional field, that field's content must match its datatype? For example, it is okay for someone to not include repo_url and their pr (assuming all other tests pass) will be a valid PR. But if someone does include repo_url, and its field doesn't match the 'text/html' field type, then it is not a valid PR. am I understanding that right?

Updated per discussion elsewhere:

update required fields check
add check for resolving urls to given data types if present


Jenkins image version mismatch

Hi,
Pulling and running the Jenkins 2.235.1 reports that it is actually version 2.176.2.
The same result with docker pull icr.io/ibmz/jenkins@sha256:31350a9b6a4275448bd1224ab66d6f5fc2645ba88372b4896c61a2201e80a09f
(from https://ibm.github.io/ibm-z-oss-hub/containers/jenkins.html)
or docker pull icr.io/ibmz/jenkins:2.235.1
Is it possible to get this updated to match the listed version or newer?
Thanks,
John.

This issue should now be resolved:
2022-03-23 21:33:08.841+0000 [id=1]	INFO	hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
2022-03-23 21:33:09.198+0000 [id=1]	INFO	o.e.j.s.handler.ContextHandler#doStart: Started w.@2eb917d0{Jenkins v2.235.1,/,file:///var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war}
2022-03-23 21:33:09.322+0000 [id=1]	INFO	o.e.j.server.AbstractConnector#doStart: Started<EMAIL_ADDRESS>(http/1.1)}{<IP_ADDRESS>:8080}

Please update to the version tagged here: https://ibm.github.io/ibm-z-oss-hub/containers/jenkins.html


feat: docs

very wip
closes #12.

#13  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ToastedDev and the rest of your teammates on  Graphite


closes #138

Current coverage is 92.69% (diff: 100%)

Merging #139 into master will not change coverage

@@             master       #139   diff @@
==========================================
  Files            26         26
  Lines          2874       2874
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           2664       2664
  Misses          210        210
  Partials          0          0

Powered by Codecov. Last update 706763a...4cc47f2


Create a jupyter notebook

Create a jupyter notebook to work with the dataset.Please do not upload into the repository.

I used the opendataset library to download the dataset from kaggle, you need an user and an api key to get the csv files into your repository.


No checkbox next to the new Log API calls in the console option label

Please ensure:

[X] The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.

Description
In today's release 21.8.14, PR #4656 was merged.
Unfortunately, as you open the extension's Options, you'll notice there's no checkbox next to its "Log API calls in the console" label (see screenshot below).
I also tested it in a fresh Chrome/Firefox profile, with only RG (w/ token).
There's no error in console.
Screenshot

Console errors

Example URL
Any page, e.g. this one
Browser(s) used
Chrome 92, Firefox 91

My mistake. That should not be visible at all.
It's only intended for development use.


Impossible to download data with snapshot_download

Describe the bug
I'm trying to download 253 parquet files with the following code:
from huggingface_hub import snapshot_download
snapshot_download(
      repo_id=f'mlfoundations/datacomp_medium',
      repo_type='dataset',
      allow_patterns='*.parquet',
      local_dir='medium',
      cache_dir='medium/hf_cache',
      local_dir_use_symlinks=False,
  )

In random moments one of the workers raises ConnectionError. So, I add parameter resume_download=True and wrap function call in while True with try-except inside (see reproduction code).
However, after each ConnectionError the function snapshot_download seems to start from scratch (progress bar shows 0/253 files). I guess that the whole progress gets lost. How to manage with this situation?
Reproduction
from huggingface_hub import snapshot_download
while True:
    try:
        snapshot_download(
            repo_id=f'mlfoundations/datacomp_medium',
            repo_type='dataset',
            allow_patterns='*.parquet',
            local_dir='medium',
            cache_dir='medium/hf_cache',
            local_dir_use_symlinks=False,
            resume_download=True,
        )
        break
    except:
       pass

Logs
No response
System info
- huggingface_hub version: 0.16.4
- Platform: Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.27
- Python version: 3.9.17
- Running in iPython ?: Yes
- iPython shell: ZMQInteractiveShell
- Running in notebook ?: Yes
- Running in Google Colab ?: No
- Token path ?: /home/oleg/.cache/huggingface/token
- Has saved token ?: False
- Configured git credential helpers:
- FastAI: N/A
- Tensorflow: N/A
- Torch: N/A
- Jinja2: 3.1.2
- Graphviz: N/A
- Pydot: N/A
- Pillow: 9.4.0
- hf_transfer: N/A
- gradio: N/A
- tensorboard: N/A
- numpy: 1.23.5
- pydantic: N/A
- aiohttp: N/A
- ENDPOINT: https://huggingface.co
- HUGGINGFACE_HUB_CACHE: /home/oleg/.cache/huggingface/hub
- HUGGINGFACE_ASSETS_CACHE: /home/oleg/.cache/huggingface/assets
- HF_TOKEN_PATH: /home/oleg/.cache/huggingface/token
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: False
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False

However, after each ConnectionError the function snapshot_download seems to start from scratch (progress bar shows 0/253 files). I guess that the whole progress gets lost. How to manage with this situation?

Yes I understand that this is a bit counter-intuitive. The thing is that snapshot_download (download a repo) is built on top of hf_hub_download (download a single file). hf_hub_download is made in such a way that if the file is already cached locally, it will only do an http HEAD call to the Hub to check the file hasn't changed and directly return the cached  file (in the case it hasn't changed). What snapshot_download do is to list all the files to download and loop through them with a tqdm progress bar. That's why you see 0/253 files again when it restarts. There is still a small delay per file but much less than if you were actually re-downloading the file.
Does that make sense? In the end, the progress bar should show 0/253 but must be very fast at the beginning while it catches up the files that are already downloaded.

I have a similar issue. When using the snapshot_download() method for downloading, the program consistently gets disconnected.
It's necessary to encapsulate it within a try-catch block and a loop; otherwise, the snapshot_download() method never succeeds in downloading the entire repository in one go.
After a certain number of iterations of this loop for handling disconnected errors and re-downloading, it seems that the local files have the complete repository content. However, the download doesn't seem to conclude properly. I'm unsure whether the download has actually finished. Especially when training based on specific base models, it's often necessary to download the entire repository, and this snapshot_download() method appears to be malfunctioning.
Here is the code:
while True:
    try:
        snapshot_download("Meina/MeinaMix_V11", revision="main",
                          cache_dir="D:\\CodeRepository\\python-service\\huggingface_downloader\\temp_cache_dir",
                          local_dir="D:\\CodeRepository\\python-service\\huggingface_downloader\\local_dir",
                          token="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                          resume_download=True)
        break
    except Exception as e:
        print("error retry：" + str(e))

Indeed, this method becomes an infinite loop since the snapshot_download() function doesn't effectively verify the presence of existing files in local_dir, resulting in the process getting stuck and temp_cache_dir full of useless cache.
And how I fix this is just remove the local_dir param and get the result from cache file, and that works fine.

"symlink" looks pretty decent, but what happens if I cp the whole model parameters to another device? Such as from Linux to Win.

@blizzardwj depends on how you make the cp. Most probably the whole file will be copy-pasted, losing the reference with the cache. But I'm not sure to see the use case (or see an alternative for that?)

In random moments one of the workers raises ConnectionError. So, I add parameter resume_download=True and wrap function call in while True with try-except inside (see reproduction code).

I have a similar issue. When using the snapshot_download() method for downloading, the program consistently gets disconnected.

@sedol1339 @WilliamChen-luckbob last update on this matter. I implemented and merged a built-in retry mechanism in the download process (see https://github.com/huggingface/huggingface_hub/pull/1766). What it does is to automatically resume the download as soon as a ConnectionError happens, without redownloading anything that is already downloaded. The patch will be shipped in the next release but in the meantime, you can install huggingface_hub from source if you need it. Please let me know if you still encounter network issues. Hopefully, it should be definitely solved :)

Just small proof, from huggingface_hub now is working

Thanks alot, @Wauplin :
I've already resolved the issue differently by adjusting parameters to skip exceptions. Although the code is still raising some connection exceptions, it's acceptable to overlook them and retrieve the correct file from the cache directory. Here's my solution.
```
from huggingface_hub import snapshot_download
import argparse
import logging
    # Press the green button to download the Hugging Face model from the Hugging Face Hub
    if __name__ == '__main__':
    # get command line arguments
        parser = argparse.ArgumentParser(description="downloading script ignoring exceptions")
    parser.add_argument("--repository_name", required=True, help="repository name")
    parser.add_argument("--cache_dir", required=False, help="cache file dir", default="./temp_cache_dir")
    parser.add_argument("--token", required=False, help="token", default="your auth code")
    args = parser.parse_args()

    # setting logger
    logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
    logger = logging.getLogger(__name__)

    # specify the cache_dir, otherwise it will be set to disc C by default and may blow your system disk
    # by default, set directory to current project root directory/temp_cache_dir
    cache_dir = args.cache_dir

    # specify the repository name
    repository_name = args.repository_name

    # specify a hugging face token
    token = args.token

    # using try catch + loop because the downloading will be failed thousands of times while downloading
    while True:
        try:
            # do not specify local_dir, it will always be failed in windows
            # just set like below is OK
            # after download, you can find the whole repository in cache_dir
            snapshot_download(repo_id=repository_name,
                              revision="main",
                              cache_dir=cache_dir,
                              token=token,
                              resume_download=True)
            logger.info(
                "download success, check the repository " + cache_dir + " and your file shall be in [model_name]/snapshots/[temp_id]")
            break
        except Exception as e:
            logger.error("error retry：" + str(e))

    ```

I've already resolved the issue differently by adjusting parameters to skip exceptions. Although the code is still raising some connection exceptions, it's acceptable to overlook them and retrieve the correct file from the cache directory. Here's my solution.

Your script is indeed valid. I'd be curious to know if you still need it now that the PR has been merged. Maybe you are facing more than 5 connection errors in a row? (and in this case, it fails and you need your retry-script).


Missing animations when minimizing/maximizing/restoring undecorated window

Describe the bug
I want to have custom title bar for my Desktop application (especially important to implement dark theme).
So, I set undecorated = true.
In Windows OS, when maximizing or minimizing a window or restoring a window already minimized to taskbar, the window does not animate. Decorated windows, in contrast, have proper animations:

Decorated window
Undecorated window

I tried the workaround in #3166 but it does not seem to work for undecorated windows (window minimizes but with no animation):
fun minimize() {
    User32.INSTANCE.ShowWindow(
        WinDef.HWND(Pointer((window as ComposeWindow).windowHandle)),
        User32.SW_MINIMIZE // == 6
    )
    // OR
    User32.INSTANCE.CloseWindow(
        WinDef.HWND(Pointer((window as ComposeWindow).windowHandle))
    )
}

Electron seems to have had this problem too in the past:

https://github.com/electron/electron/issues/32993
https://github.com/electron/electron/issues/751

This is the code they use to set proper windows decoration and preserve animations:
https://github.com/electron/electron/blob/3a5e2dd90c099b10679364642a0f7fa398dce875/shell/browser/native_window_views.cc#L367-L390
So, then tried setting just the flags that Electron sets like this for the window:
window(// ...) {
    val frameStyle = User32.WS_OVERLAPPED or User32.WS_MINIMIZEBOX
    User32.INSTANCE.SetWindowLong(
        WinDef.HWND(Pointer(window.windowHandle)),
        User32.GWL_STYLE,
        frameStyle
    )
    App()
}

OR modifying the existing window flags:
window(// ...) {
    val defaultStyle = User32.INSTANCE.GetWindowLong(WinDef.HWND(Pointer(window.windowHandle)), GWL_STYLE)
    val newStyle = defaultStyle and User32.WS_THICKFRAME.inv() and User32.WS_DLGFRAME.inv()
    User32.INSTANCE.SetWindowLong(
       WinDef.HWND(Pointer(window.windowHandle)),
       User32.GWL_STYLE,
       newStyle
    )
    App()
}

The default close, maximize, minimize buttons are removed but cannot get rid of the title bar. Disabling User32.WS_CAPTION by removing (or User32.WS_CAPTION) removes the title bar but again the animation does not work.
The IntelliJ IDEA 2023.1 is undecorated and has proper animations.
Maybe you could consider getting a little help from them?
Fixing this problem could probably resolve or help resolve all the following issues:

https://github.com/JetBrains/compose-multiplatform/issues/3295
https://github.com/JetBrains/compose-multiplatform/issues/3164
https://github.com/JetBrains/compose-multiplatform/issues/2062
https://github.com/JetBrains/compose-multiplatform/issues/1472

Affected platforms

Desktop

Versions

Kotlin version*: 1.8.20
Compose Multiplatform version*: 1.4.1
OS version(s)*: Windows 10, Windows 11
OS architecture (x86 or arm64): x64
JDK (for desktop issues): Oracle JDK 17.0.5

To Reproduce
Compare app minimize animation in these two:
decorated (default title bar):
fun main() {
    application {
        Window(
            state = rememberWindowState(size = DpSize(400.dp, 300.dp)),
            undecorated = false,
            transparent = false,
            onCloseRequest = ::exitApplication,
        ) {
            Text(text = "This is an example text")
        }
    }
}

undecorated (custom title bar):
fun main() {
    application {
        Window(
            state = rememberWindowState(size = DpSize(400.dp, 300.dp)),
            undecorated = false,
            transparent = false,
            onCloseRequest = ::exitApplication,
        ) {
            Surface(
                modifier = Modifier
                    .fillMaxSize()
                    .border(Dp.Hairline, Color.Gray, RoundedCornerShape(8.dp))
                    .clip(RoundedCornerShape(8.dp))
            ) {
                Column {
                    WindowDraggableArea(modifier = Modifier.fillMaxWidth().height(30.dp)) {
                        Row(
                            horizontalArrangement = Arrangement.SpaceBetween,
                            modifier = Modifier.fillMaxWidth()
                        ) {
                            Text(text = "Title")
                            Row {
                                Box(
                                    contentAlignment = Alignment.Center,
                                    modifier = Modifier
                                        .width(48.dp)
                                        .fillMaxHeight()
                                        .clickable { window.isMinimized = true }
                                ) {
                                    Icon(
                                        imageVector = Icons.Custom.Minimize,
                                        contentDescription = null,
                                        modifier = Modifier.size(12.dp)
                                    )
                                }
                                Box(
                                    contentAlignment = Alignment.Center,
                                    modifier = Modifier
                                        .width(48.dp)
                                        .fillMaxHeight()
                                ) {
                                    Icon(
                                        imageVector = Icons.Custom.Close,
                                        contentDescription = null,
                                        modifier = Modifier.size(14.dp)
                                    )
                                }
                            }
                        }
                    }
                    Text(text = "This is an example text")
                }
            }
        }
    }
}

Expected behavior
Undecorated windows should have animations when minimizing/maximizing/restoring them.

Relates to https://github.com/JetBrains/compose-multiplatform/issues/3166

A good example:

https://github.com/rossy/borderless-window
https://discourse.glfw.org/t/making-a-custom-titlebar/2392/3

https://github.com/JetBrains/compose-multiplatform/assets/29678011/0078bab6-6833-4fe8-b064-713effc475ac
Fixed the problem in Windows (don't know if the problem applies to Linux or macOS).
Tried it successfully in Windows 7, Windows 10, Windows 11.
Adopted from https://github.com/kalibetre/CustomDecoratedJFrame which provides solution for Swing (Jframe) windows.
With this, native animations for window appearance (open), window disappearance (close), window minimize, window restore, and (possibly) window maximize work correctly. The repo above also implemented Aero snap feature (and possibly, shaking window title to hide other windows) but I omitted it.
The only missing thing is the native window border and shadows.
Also, the window cannot be made transparent (otherwise, it loses animations).
To be honest, I don't know how the CustomWindowProcessor below works. But made it to work.
implementation("net.java.dev.jna:jna-jpms:5.13.0")
implementation("net.java.dev.jna:jna-platform-jpms:5.13.0")
// ...

import com.sun.jna.Native
import com.sun.jna.Pointer
import com.sun.jna.platform.win32.BaseTSD.LONG_PTR
import com.sun.jna.platform.win32.User32
import com.sun.jna.platform.win32.WinDef.*
import com.sun.jna.platform.win32.WinUser.WM_DESTROY
import com.sun.jna.platform.win32.WinUser.WindowProc
import com.sun.jna.win32.W32APIOptions
// ...

fun main() = application {
    Window(
        undecorated = false, // This should be set to false, but the window will be undecorated
        transparent = false,
        // ...
    ) {
        val windowHandle = remember(this.window) {
        val windowPointer = (this.window as? ComposeWindow)
                ?.windowHandle
                ?.let(::Pointer)
                ?: Native.getWindowPointer(window)
            HWND(windowPointer)
        }
        remember(windowHandle) { CustomWindowProcessor(windowHandle) }
        MyAppContent()
    }
}

@Suppress("FunctionName")
interface User32Ex : User32 {
    fun SetWindowLong(hWnd: HWND, nIndex: Int, wndProc: WindowProc): LONG_PTR
    fun SetWindowLong(hWnd: HWND, nIndex: Int, wndProc: LONG_PTR): LONG_PTR
    fun SetWindowLongPtr(hWnd: HWND, nIndex: Int, wndProc: WindowProc): LONG_PTR
    fun SetWindowLongPtr(hWnd: HWND, nIndex: Int, wndProc: LONG_PTR): LONG_PTR
    fun CallWindowProc(proc: LONG_PTR, hWnd: HWND, uMsg: Int, uParam: WPARAM, lParam: LPARAM): LRESULT
}

class CustomWindowProcessor(windowHandle: HWND) : WindowProc {
    // See https://learn.microsoft.com/en-us/windows/win32/winmsg/about-messages-and-message-queues#system-defined-messages
    private val WM_NCCALCSIZE = 0x0083
    private val WM_NCHITTEST = 0x0084
    private val GWLP_WNDPROC = -4
    private val USER32EX_INSTANCE = Native.load("user32", User32Ex::class.java, W32APIOptions.DEFAULT_OPTIONS)
    private var DEF_WND_PROC = if (is64Bit()) {
        USER32EX_INSTANCE.SetWindowLongPtr(windowHandle, GWLP_WNDPROC, this)
    } else {
        USER32EX_INSTANCE.SetWindowLong(windowHandle, GWLP_WNDPROC, this)
    }

    override fun callback(hWnd: HWND, uMsg: Int, wParam: WPARAM, lParam: LPARAM): LRESULT {
        return when (uMsg) {
            WM_NCCALCSIZE -> { LRESULT(0) }
            WM_NCHITTEST -> { USER32EX_INSTANCE.CallWindowProc(DEF_WND_PROC, hWnd, uMsg, wParam, lParam) }
            WM_DESTROY -> {
                if (is64Bit()) {
                    USER32EX_INSTANCE.SetWindowLongPtr(hWnd, GWLP_WNDPROC, DEF_WND_PROC)
                } else {
                    USER32EX_INSTANCE.SetWindowLong(hWnd, GWLP_WNDPROC, DEF_WND_PROC)
                }
                LRESULT(0)
            }
            else -> { USER32EX_INSTANCE.CallWindowProc(DEF_WND_PROC, hWnd, uMsg, wParam, lParam) }
        }
    }

    private fun is64Bit(): Boolean {
        val bitMode = System.getProperty("com.ibm.vm.bitmode")
        val model = System.getProperty("sun.arch.data.model", bitMode)
        return model == "64"
    }
}

To minimize the window, instead of using
(window as? ComposeWindow)?.isMinimized = true use User32.INSTANCE.CloseWindow(windowHandle):
@Composable
fun WindowScope.MyCustomMinimizeButton() {
    val windowHandle = remember(this.window) {
        val windowPointer = (this.window as? ComposeWindow)
            ?.windowHandle
            ?.let(::Pointer)
            ?: Native.getWindowPointer(window)
        HWND(windowPointer)
    }
    Button(onclick = { User32.INSTANCE.CloseWindow(windowHandle) }) {
        Text("Minimize")
    }
}

@pjBooms Fixed the problem with native animations and shadows as described in the above comment.
Can they be incorporated into Compose Multiplatform code?

@mahozad currently we are busy with other tasks

OK, no problem.

@mahozad
I tried this,it works, but I can't resize the window.

@sheng-ri
My app did not need to be resized (I set resizable = false).
Sorry.

@sheng-ri My app did not need to be resized (I set resizable = false). Sorry.

I found a solution for resizable window base your code. You need make window style has WS_CAPTION.
.

@sheng-riРазмер моего приложения не нужно было изменять (я установил resizable = false). Извини.

Я нашел решение для изменения размера окна в вашем коде. Вам нужно, чтобы стиль окна имел WS_CAPTION. .

how to set this style?

@sleinexxx
See win32 api
You can convert this to use JNA.
Here a example(Using FFI):
final var style = (long)GetWindowLongA.invoke(hWnd, GWL_STYLE);
SetWindowLongA.invoke(hWnd, GWL_STYLE, style |  WS_CAPTION);

@sleinexxx
See win32 api You can convert this to use JNA. Here a example(Using FFI):
final var style = (long)GetWindowLongA.invoke(hWnd, GWL_STYLE);
SetWindowLongA.invoke(hWnd, GWL_STYLE, style |  WS_CAPTION);

I tried to do this, but it didn't work. WS_SIZEBOX too

I tried to do this, but it didn't work. WS_SIZEBOX too

@sleinexxx
I forget one thing,This solution need set undecorated=true
I still can't undertstand that, but seems this works.

I tried to do this, but it didn't work. WS_SIZEBOX too

@sleinexxx I forget one thing,This solution need set undecorated=true I still can't undertstand that, but seems this works.

it works! thanks a lot

No undecorated = true required

Hit test handled by SkiaLayer's Canvas，See TransparentDecorationWindowProc
if hit non client area return HTTRRANSPARENT that will pass the event  and make ComposeWindow handled the NCHITTEST event，then we return the non client area hit test in the CustomWindowDecoration.
Another issue was HTMAXBUTTON will intercept the mouse event that will cause custom maximize button can't recieve the click event, so we need redirect the mouse event when hit area is HTMAXBUTTON
Skia Layer hit test
    override fun callback(
        hwnd: WinDef.HWND,
        uMsg: Int,
        wParam: WinDef.WPARAM,
        lParam: WinDef.LPARAM
    ): WinDef.LRESULT {

        return when(uMsg) {
            WM_NCHITTEST -> {
                val x = lParam.toInt() and 0xFFFF
                val y = (lParam.toInt() shr 16) and 0xFFFF
                val point = POINT(x, y)
                USER32EX?.ScreenToClient(windowHandle, point)
                val offset = Offset(point.x.toFloat(), point.y.toFloat())
                point.clear()
                hitResult = hitTest(offset)
                when(hitResult) {
                    // 1 is client area, 9 is HTMAXBUTTON
                    1, 9 -> LRESULT(hitResult.toLong())
                    else -> LRESULT(-1)
                }
            }
            WM_NCMOUSEMOVE -> {
                //dispatch the mouse event to custom maximize button
                USER32EX?.SendMessage(contentHandle, WM_MOUSEMOVE, wParam, lParam)
                WinDef.LRESULT(0)
            }

            WM_NCLBUTTONDOWN -> {
                //dispatch the mouse event to custom maximize button
                USER32EX?.SendMessage(contentHandle, WM_LBUTTONDOWN, wParam, lParam)
                LRESULT(0)
            }

            WM_NCLBUTTONUP -> {
                //dispatch the mouse event to custom maximize button
                USER32EX?.SendMessage(contentHandle, WM_LBUTTONUP, wParam, lParam)
                return LRESULT(0)
            }

            else -> {
                USER32EX?.CallWindowProc(defaultWindowProc, hwnd, uMsg, wParam, lParam) ?: WinDef.LRESULT(
                    0
                )
            }
        }
    }

finally: i implement the window decoration like the video shows.
https://github.com/JetBrains/compose-multiplatform/assets/26089739/750ee5a7-7126-41eb-b5b0-1c94fda402c0

@Sanlorng Can you please share how you obtain the contentHandle?
or even better, share your whole code for window decoration?

@Sanlorng Can you please share how you obtain the contentHandle?
and your hitTest() function?
or even better, share your whole code for window decoration?

I will share it when i rearrange the code

@Sanlorng Can you please share how you obtain the contentHandle?
and your hitTest() function?
or even better, share your whole code for window decoration?

contentHandle is HWND(SkiaLeyer.canvas)

@Sanlorng Can you please share how you obtain the contentHandle? and your hitTest() function?
or even better, share your whole code for window decoration?

@mahozad  i open a Pull Request which include the whole implementation in the one commit and reference this issue, you can fork the code at your app and try it

It works! Thank you.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Create a "File Handler" for user defined SafeSecrets file type.

It is important that SafeSecrets not have a pre-defined file type that would let anyone with access to a file know what software use used to open the file. Let users specify their own file extension/type and then register that file extension with a PWA File Handler. This way when a user taps/clicks on one of their SafeSecrets files it will automatically open the SafeSecrets app, but only on the one device where the user accesses SafeSecrets files.

File handlers must be registered in the PWA manifest, which is not updatable after publication. The only way to implement this feature is to have a utility create a custom publication of SafeSecrets for each user on their own device. A local webserver would be required for HTTPS context, if the code requires HTTPS context.  :|


Update is slow on complex views

In some cases if you have a complex view that returns quickly, it will still be extremely slow to update (~40s). We have a way to fix it and are working on it.
We've traced it to a possible query plan bug, when envelope runs this query:
SELECT count(*),
        SUM(CASE WHEN md5(change_stamp::text) = hash_change_stamp
                 THEN 1
                 ELSE 0
            END)
    FROM cto.torder_budget
    INNER JOIN temp_update ON temp_update.id = torder_budget.id

It is slow, however this:
SELECT count(*),
        SUM(CASE WHEN md5(change_stamp::text) = hash_change_stamp
                 THEN 1
                 ELSE 0
            END)
    FROM cto.torder_budget
    INNER JOIN temp_update ON temp_update.id = torder_budget.id
    WHERE torder_budget.id = ANY (array(SELECT id FROM temp_update)) -- This line is new

It is fast. So I am working on getting this in envelope.

Was this fixed? You added a commit but gave nothing further.

I just haven't gotten around to upgrading the server that had the issue, so I don't know for sure if it is fixed yet.


Daily Load not visible in full mode

In the "full" mode the se"show_daily" under load doesn't seem to change anything.
I would like to be able to see the daily consumption of the house (connected to the load terminal).

I just realized that the value is visible if "show_aux" is set to "no".
That solves it for me as I don't need the aux value but that may not be the case for everyone.

Yes I need to relook at that and see if we can reposition the daily values when Aux is enabled

Fixed in 1.5.1. Thanks for the feedback.


Arrays: display stats

List View

1 line / array type
column: Nb Instances, total size, average size

double click: open arrays from this type = list view

1 array / line
columns

address
length
null ratio

null ratio can be very slow because it needs to test each element and ofr very large arrays, it can take some time so it's done in a separate analysis


Similar licenses being reported as the same

I have a repository using the FPL, but it's being registered as an ISC license. I'm guessing that's because:

By calculating the percent changed from the known license to the license file, you can tell, e.g., that a given license is 95% similar to the MIT license, that 5% likely representing legally insignificant changes to the license text.

The textual difference is small, but reporting the condition of "License and copyright notice" above a license without that condition is no bueno. What are the steps to resolve errors like this? Thanks!

@christianbundy can you point to the repo? Unless it is very recent, this has likely been resolved (see #149) and the license just needs to be re-detected for the repo.

Hey, thanks for the quick response. Here are some samples:

https://github.com/fraction/fraction.github.io/blob/master/LICENSE
https://github.com/fraction/guess-who/blob/master/LICENSE
https://github.com/fraction/meteor-exports/blob/master/LICENSE
https://github.com/fraction/node-hacker-news-api/blob/master/LICENSE
https://github.com/fraction/exports-polyfill/blob/master/LICENSE
https://github.com/fraction/whereami/blob/master/LICENSE
https://github.com/fraction/news/blob/master/LICENSE
https://github.com/fraction/dollar-sign/blob/master/LICENSE
https://github.com/fraction/meteor-stellar/blob/master/LICENSE
https://github.com/fraction/murder/blob/master/LICENSE
https://github.com/fraction/set-timer/blob/master/LICENSE
https://github.com/fraction/readme-boilerplate/blob/master/LICENSE
https://github.com/fraction/sshcd/blob/master/LICENSE
https://github.com/fraction/homebrew-formulae/blob/master/LICENSE
https://github.com/fraction/free-public-license/blob/master/LICENSE

It looks like the current licensee code will not get a false positive:

$ script/git-repo https://github.com/fraction/fraction.github.io
License file: LICENSE
License hash: 5536d279d8edc41e2cf0a8a7c7acec1e968d1a3f

If you send that list of repos and request license redetection for them to https://github.com/contact the detected license should disappear.
For a longer term fix (ie detection of the correct license), note the problems in  https://github.com/github/choosealicense.com/issues/464 and feel free to help the various parties resolve them, if you wish to bang your head against a wall. 😬
I'm going to close this as I don't think there's anything to be fixed in licensee currently, but feel free to continue discussing if needed.

Thanks @mlinksva, and sorry to waste your time over something so trivial. I'll check out that other issue and see if it's worth the potential concussion. Cheers!


Feat/align with cere requirements

Apply changes of CERE on top of Substrate Node
Notion url
Document about changes (url)

The needed changes are in dev-cere branch.