Uninstalling Tellurium notebook does not remove files

On Windows, even after 'uninstalling' Tellurium notebook, the core seems to be untouched at Users\AppData\Roaming\Tellurium

I looked into this when I was originally writing the code. There isn't a cross-platform way to fix this afaik. On Mac, to uninstall an app, you just drag it to the bin. There's no opportunity for scripts to run to clean up files etc. On the other hand, options for platform-specific scripts are usually pretty limited in Electron, so even if there was a platform-specific fix I doubt there's a way to implement it...

In 2.0.14 it does overwrite the old Python environment with a new one, however.

That's sounds like sloppy work by the Electron developers. Applications
shouldn't leave their detritus after an uninstall. Imagine if every
application did that, a user's harddrive would just fill up with unwanted
files. After an uninstall the only thing that tends to be left behind are
user created files, since the uninstaller isn't aware of those. Anything
installed by the installer is removed. I don't know how Electron
applications work but I assume they can be installed using standard
installers? If it comes with its own installers then  it sounds like very
poor design on their part. Using standard installer on Windows would mean a
clean uninstall.
On the Mac does the application copy files outside where it is installed?
In not then dragging to the trash would be sufficient.
Herbert
On Tue, Mar 20, 2018 at 9:27 PM Kyle Medley<EMAIL_ADDRESS>wrote:

I looked into this when I was originally writing the code. There isn't a
cross-platform way to fix this afaik. On Mac, to uninstall an app, you just
drag it to the bin. There's no opportunity for scripts to run to clean up
files etc. On the other hand, options for platform-specific scripts are
usually pretty limited in Electron, so even if there was a
platform-specific fix I doubt there's a way to implement it...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sys-bio/tellurium/issues/351#issuecomment-374831337,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAZDrXz8M5UXVgNzCrIeec-jpUvqLXAks5tgdaZgaJpZM4SwRir
.

That's quite unfortunate, especially because the installation is quite large (~2 GB), and the install directory is generally hidden for the most users.  From a quick search, there might be a way to remove AppData on uninstall through some custom script. Or maybe we should switch to NSIS instead for windows installer specifically?

If it's possible, I agree use either nsis or inno setup. The later is
particularly easy to use. We can't leave 2gb on a user machine after an
uninstall.
Herbert
On Wed, Mar 21, 2018 at 1:40 AM Kiri Choi<EMAIL_ADDRESS>wrote:

That's quite unfortunate, especially because the installation is quite
large (~2 GB), and the install directory is generally hidden for the most
users. From a quick search, there might be a way to remove AppData on
uninstall through some custom script. Or maybe we should switch to NSIS
instead for windows installer specifically?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sys-bio/tellurium/issues/351#issuecomment-374865878,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAZDj16q-B1ERgK3b3SvbRez6FVer4hks5tghHsgaJpZM4SwRir
.

Again, on the Mac, it isn't possible to do this due to the operating system not providing a way. On Linux it isn't possible for different reasons. It might be possible on Windows through some sort of custom script, but that would only cover 1/3 of the supported platforms. I'll look into it to see if there is a way on that one platform...

On Mac ans Linux, I presume you are supposed to delete the directory? You can do the same on Windows, but the problem is Tellurium is installed to appdata, which is a hidden directory. Probably the majority of Windows users doesn't even know that such directory exists. I think we can simply add a documentation somewhere (maybe even add a notice in the notebook) and call it a day.

The professional approach is to do it properly, and in the case of Windows
we know how to do it unless Electron apps are doing something very weird.
If you pick the right installer, e.g. Innosetup, there aren't even any
scripts to write, innosetup knows what files it installed and where they
are stored and it will automatically uninstall the files.
Kyle, on the Mac and Linux are you suggesting that these OSes copy files
out of the install directory and not record this information?
As I said we can't leave 2gb of material on a user's hard drive when they
uninstall. On windows that is frowned upon, on the Mac and Linux things may
be different and users aren't so worried about accumulating dead installs.
Herbert
On Wed, Mar 21, 2018 at 9:35 AM Kiri Choi<EMAIL_ADDRESS>wrote:

On Mac ans Linux, I presume you are supposed to delete the directory? You
can do the same on Windows, but the problem is Tellurium is installed to
appdata, which is a hidden directory. Probably the majority of Windows
users doesn't even know that such directory exists. I think we can simply
add a documentation somewhere (maybe even add a notice in the notebook) and
call it a day.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sys-bio/tellurium/issues/351#issuecomment-375008509,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAZDl-rmT1Ntop3KGLDPK1VoQzr6FHeks5tgoE-gaJpZM4SwRir
.

The install directory on Mac/Linux isn't user-writable, so the viewer has to copy files to a user-writable directory (otherwise the user can't install new Python packages, which is one of the requirements the notebook viewer was designed to satisfy). Since the user-writable directory is outside of the installation directory, it doesn't get deleted when you uninstall the app. Windows is different so it might be possible to run a custom script on uninstall to remove the extra files.

On windows you should be able do a clean uninstall, it won't uninstall user
created files as it won't know about those, but that's the user
responsibility. I feel sorry for the Mac users who over time have to put up
with accumulated detritus
Herbert
On Wed, Mar 21, 2018 at 10:53 AM Kyle Medley<EMAIL_ADDRESS>wrote:

The install directory on Mac/Linux isn't user-writable, so the viewer has
to copy files to a user-writable directory (otherwise the user can't
install new Python packages, which is one of the requirements the notebook
viewer was designed to satisfy). Since the user-writable directory is
outside of the installation directory, it doesn't get deleted when you
uninstall the app. Windows is different so it might be possible to run a
custom script on uninstall to remove the extra files.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sys-bio/tellurium/issues/351#issuecomment-375037410,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAZDtKQwen7iQVrb6nveRcwtjv0R-rdks5tgpORgaJpZM4SwRir
.


fooddetails component bug fixed

Pull Request
Related Issues:
Fixes #18
Description:
I've fixed the bug that opens a particular product by clicking the product image on the inventory page.
Checklist:

[x ] I have tested my changes.
[ x] My code follows the project's coding standards.
[ x] I have updated the documentation (if applicable).

Screenshots:

@shrey802
Kindly redesign the UI.

@shrey802
Are you done with this issue ?


Fix asset creation

This PR resolved my issues with asset creation in JAMF. Please feel free to use or modify if it helps! Closes #93

Thanks!!


bunnyhop hitchance

hitchance based (0-100%) legit bunny hop

thanks

I think we can add randomly +jump before and after to simulate mouse scroll

Can you make a SMAC free version ?, I add this hitchance and still get banned by smac

++++++

how to fix it after getProperty changed in code

And max bhops in a row too

@designer1337 getProperty fix?

Yes please❤❤🤠

New update?
Danial change the bunnyhop function from misc.h to misc.cpp

Does it still work?

Would you be able to update this so that it works? Would be appreciated!


Sometimes when exporting the layer 0 in the UFO data does not match that in the JSON MFEK data.

We're considering abandoning the idea of using the UFO file format as our internal format, and simply using JSON that's converted back upon export. The problem being when external tools are used they might modify layer 0 and make MFEK data attached to that layer. There are two ways to solve this problem:

Check our internal layer 0 against the UFO layer 0 and prompt the user to clear the associated MFEK data.
Abandon the idea of trying to maintain a UFO compatible layer 0 and save only in JSON format until export.

I believe I just fixed this in 4ae573f3778356c843a02a57a90e02dff424bdfa.


Mustache escapes ''  in {{{.}}}

According to the documentation, {{{}}} will render pure html, not escaped, however i just observed it does escapes \ character.
To see it in action, try Mustache.render('
{{{.}}}
','<input id="email" pattern="^.{5,20}@\w{3,8}\..{2,5}$">');
its output will be
<input id="email" pattern="^.{5,20}@w{3,8}..{2,5}$">
.
Instead it should be
<input id="email" pattern="^.{5,20}@\w{3,8}\..{2,5}$">

Its due to not escaping the string literal properly. You'll need to add a couple of backslashes for it to work as you intended:
Mustache.render('
{{{.}}}
','<input id="email" pattern="^.{5,20}@\\w{3,8}\\..{2,5}$">')


Select and TextArea components duplicated border classes

Hi, I love the new update, it's awesome ❤
I found that the border-neutral-200 and dark:border-neutral-800 classes on the select.tsx component are duplicated.
I'm using "cssVariables": false.

The duplicate class is caused by this:
https://github.com/shadcn/ui/blob/aea12e97623699e7c7b2d75fc671ea21b0cf8887/packages/cli/src/utils/transformers/transform-css-vars.ts#L143-L145
When a component has the border class it gets replaced with border border-border and, since the select has already border-input this brings two border color classes when the colors are resolved.
List of affected components:

select
textarea
radio-group
alert (destructive variant)
checkbox
input

I encountered this issue with the radio-group and checkbox components today.
On the Checkbox component I get border-gray-200 border-gray-900 and dark:border-gray-50 dark:border-gray-800.
On the RadioGroupItem component I get border-gray-200 border-gray-900 and dark:border-gray-50 dark:border-gray-800.
I am using the latest tag for the cli command.
My components.json is
{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "default",
  "rsc": true,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.js",
    "css": "src/styles/globals.css",
    "baseColor": "gray",
    "cssVariables": false,
    "prefix": ""
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils"
  }
}


Session within a Session

Is it possible to have a Session within another Session?

I am afraid that this is impossible.
Session is basically a RAII wrapper for ssh multiplex master.
They are independent of each other.
Can you please provide more information on what you are trying to archive here?

I would like to connect from local to server1 and from there to server2 and then run commands.
local > server1 > server2

Are you using server1 as a proxy?
Currently, SessionBuilder doesn't have the option to set proxy, but it should be trivial to add one given that we simply pass that to ssh multiplex master

Are you using server1 as a proxy?

yes

I just realized there is one way to do this in the current version of openssh by using SessionBuilder::config_file, which enables you to set an alternative config file.
You can then provide a config file where ProxyJump is set to the proxy "sever1".
ssh would handle the rest.

Or you can do something like this:
Create a Session to server1, then launch another ssh on server1.
Though this method cannot handle error in creating connection to server2 in server 1 well.

Another method that works in #26 :
Connect to server1, then launch the ssh multiplex master on it.
Then use port forwarding to forward the control socket for the master into the local machine, and use openssh-mux-client directly to connect to server2.

Thanks a lot @NobodyXu

You are welcome.


Update request: krita 5.2.3 → 5.2.6

Package name: krita
Latest released version: 5.2.6

Current version on the unstable channel: 5.2.3
Current version on the stable/release channel: 5.2.2

[X] Checked the nixpkgs pull requests

Notify maintainers

@abbradar
@sifmelcara

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

cc the other maintainer @nek0
I tried simply updating the version and removing the outdated patch file we have, but I hit a lot of error message like this
/build/krita-5.2.6/build/plugins/extensions/pykrita/sip/_tmp/krita/sipkritapart0.cpp: In member function 'virtual bool sipManagedColor::event(QEvent*)':
/build/krita-5.2.6/build/plugins/extensions/pykrita/sip/_tmp/krita/sipkritapart0.cpp:4373:28: error: too few arguments to function
 4373 |     sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[0], SIP_NULLPTR, sipName_event);

I won't have time/equipment to look into this in the next 1-2 weeks, can someone else take a look?

The updated version including the patchfile builds fine, so I guess it's not as outdated as initially assumed.


No point yielding if there is more todo. Just get it over with.

@toregge and @havardpe  PR
@geirst FYI

what will this block and for how long?

It should not block anything. It will just continue to drain the Q if there is more. Which is very likely since you have been writing to disk with direct IO since you checked last time. So instead of adding yourself to the end of the Q you will just continue.


Experiencing "Bad Gateway" error when trying to login to web UI

I have seen several issues online of people that have ran into issues trying to connect to the web UI. Many people get the "Bad Gateway" error. I have done a lot of research and it doesn't seem like there is a clear cut solution to fix this. I have attached the docker compose file that I am using to start up the Proxy Manager. I replace the passwords with real ones when I go to start it up. Any help that you can provide would be greatly appreciated.
docker_compose.txt

I have been trying to follow these instructions... https://www.youtube.com/watch?v=iFHbzWhKfuU. Seems like a few people in the comments have had similar issues, but again... no one really seems to have a resolution. If you need anymore information to further trouble shoot, just let me know and I can provide it to you.

I'll chime in and say that I am also experiencing this problem. More info if needed, just tell me what that info is.

This looks like a docker config issue, that docker compose changes both the container port and exposed port for http from 80 to 82, are you changing /etc/nginx/conf.d/default.conf inside the container? If not then you have broken http. I guess you mean 82:80, i.e. port 80 still in the container, but exposed as port 82 on the host.

Yeah, I kinda gave up on this tool for now because of this issue. There's no clear documentation on how SSL is actually handled, how the hostname is obtained and used for the purpose of generating an SSL cert with LE, etc.. There's no good error reporting / testing, etc.
Don't get me wrong I think it's a great start and a good product to build which deserves to exist, and I might help and contribute code/scripts in my free time, but for now it's easier for me to just configure the environment myself since I know how to configure nginx with my eyes closed.

Closing this issue for now as I no longer using Nextcloud and am not experiencing this error anymore.


Add configuration of Mssql server

Allow usage of custom user & database catalog

How test Can pass on Windows & fail on unix ? There is a custom setup Somewhere ? I think that all test relies on the same test fixture - and pswd + credential seems ok in the log no ?

How test Can pass on Windows & fail on unix ?

Windows and Linux run different tests. Not all images are available on both operating systems. MsSqlTestcontainerTest runs on Linux.

There is a custom setup Somewhere ? I think that all test relies on the same test fixture - and pswd + credential seems ok in the log no ?

Sorry, I don't understand what you mean by that.

@aygalinc
Hi!
What is your implementation based on? I see you use environment variables

MSSQL_DATABASE
MSSQL_USER
MSSQL_PASSWORD

but I can not find them in Microsoft documentation about running MS SQL Server containers.
Regards,
Eugene


crash client in new version  immersive-portals-0.23-mc1.16.1-fabric

The crash happens instantly when you start the game
Fabric API Version: fabric-api-0.16.0+build.384-1.16.1
Loader: 0.9.0+build.204
crash-2020-07-28_10.11.17-client.txt
latest.log

probably get fixed on 0.24

it happened to me to

@Imacat-PlaysGames shiw the crash report

Same issue here, running 0.24
crash-2020-07-27_15.15.30-client.txt

@ttamttamS The crash report shows that you are using 0.21

I take it back, I thought I updated to 0.24 but I was actually using 0.23

That's weird that it lists it as 0.21, regardless the issue is gone for me after updating. Apologies for wasting your time

I still get this error in 0.27 [1.16.1]


Write a class diagram for Shogun's GP framework

This is a preliminary task for the http://www.shogun-toolbox.org/page/Events/gsoc2014_ideas#variational_learning project
Since we will be adding some inference methods to the existing GP infrastructure in Shogun, it is essentially to understand how all the classes and methods play together. This task is to write a class diagram (in dia, like the one here https://github.com/karlnapf/shogun-mcmc-prototype/tree/master/doc/uml ) that tries to capture the general structure of the framework. This should include all important interfaces/methods/variables to illustrate the way we represent GP inference in Shogun. Try to avoid unnecessary details such as methods inherited from CSGObject - the diagram should be simple yet illustrative.
Eventually, we will be discussing how to implement the new algorithms within this diagram when the project is running.
Have a look at the unit tests and examples how methods work together
@votjakovr and @karlnapf are ready to take any questions on this - dont be afraid to ask :)

@karlnapf
This is related to deep GP.

yep


allow custom icon names

I use fontawesome so would like to set "fa fa-angle-left" and "fa fa-angle-right" as the icon names.

Thanks!


Investigate possible memory leaks

Use tools to Investigate possible memory leaks
https://github.com/square/leakcanary

I will work on this .


add golang-hint static analysis tools for workflow, etc

To make the code more standardized, it is necessary to add static analysis tools and code checking tools such as gofmt and golang-hint for ci

#170

thanks!


TSC Meeting 2023-05-18

Please respond to this issue with items you would like to see added to the agenda.
Items from attendees of TSC Meetings are prioritized above others, though ad-hoc reprioritization and discussion will occur.
Previous action items:

@maxnbk: Check with LF Marketing to see what kind of town hall format we can use. Can we do a real town hall with our community and do a Q&A and interactive polls?
@maxnbk: Reach out to Deadline devs.

Current agenda below:

ASWF

Adjustments to governance document: https://github.com/AcademySoftwareFoundation/rez/pull/1474 and https://github.com/AcademySoftwareFoundation/rez/pull/1473.

Discussions

Bug fix: https://github.com/AcademySoftwareFoundation/rez/pull/1485
Nice progress on https://github.com/AcademySoftwareFoundation/rez/pull/1475!
https://github.com/AcademySoftwareFoundation/rez/pull/1469
Proposal to move version our of rez.vendor: https://github.com/AcademySoftwareFoundation/rez/discussions/1484

Meeting notes published at https://github.com/AcademySoftwareFoundation/rez/blob/master/ASWF/TSC/meeting-notes/2023-05-18.md


Add ADR for keys derivation

Signed-off-by: Andrew Nikitin<EMAIL_ADDRESS>

@ankurdotb We use the default cosmos path in both VDR tools and cheqd-noded which is m/44'/118'/0'/0/0 as @anikitinDSR pointed. Integrations should be smooth.

Task linked: DEV-341 ADR: Secure key derivation from mnemonic for VDR Tools CLI


UI Touchups

Summary
This PR touches up some UI aspects
-Moods are lowercase with first letter capitalized
-Add button is now blue and white
-Made the Feed/Friend Activity UI match the UI mockups
-Changed the font
-Login/register button are now Material buttons to get rid of custom resource
(Material allows more customization options)

@WJXHenry Reverted the changes to getDisplayName()

LGTM


colorin, flotilla

This pull request was generated by the 'mq' tool
[test]
flake rate: 0.4
logical conflict every: 100
sleep for: 300s
[pullrequest]
requests per hour: 30
deps=[c,f]

/trunk merge


Incorrect font selection with Iosevka TTC fonts

Contour Terminal version
<IP_ADDRESS>
Installer source
something else (please specify below)
Operating System
Void Linux
Architecture
x86-64
Other Software
No response
Steps to reproduce

Install Iosevka font, super-ttc version
Set Iosevka Fixed as font family, regular weight
Open terminal

Expected Behavior
Terminal should correctly select Iosevka Fixed Regular as a font (wezterm used for screenshot)

Actual Behavior
Terminal either incorrectly selects Iosevka Fixed Extralight or breaks rendering entirely

Additional notes
EDIT: Contour installed from Void Linux repos

Problem isn't reproducible with any other terminal, just Contour

Hey. Many thanks for your interest and feedback on this behavior. We're actually "just" using fontconfig for matching fonts.
If there's anything to fix on our side, I'd like to get that included in a potential christmas release (hohoho!), but for that, maybe you can provide me with the little snipped from contour.yml that shows what you've configured to show that font.
Ideally also with a link to the font file you have downloaded?
I'll be trying to look into this ASAP.
And sorry for the inconviniences.

Sure.
Iosevka TTC
contour.yml

Also tested with st (which also just uses fontconfig) - everything is correct, so looks like it's not fontconfig problem

@christianparpart tried to set strict_spacing to false. Nothing changed.

Okay I can reproduce this. I'll look into it ASAP.

If I install Iosevka from ttf files and then these fonts work. But setting weight to ultra light doesn't work which is a weight option that Iosevka comes with.

I think this is how it should look like instead. I'll create a PR soon, @AlexKurisu - are you also able to build from source?

@christianparpart yes, I can

Grreat. You can checkout the branch from #941 (run ./scripts/install-deps.sh first, but we don't have Voice Linux support in that script, maybe you can help us adding it?).

Lol, sorry, I actually forgot that I didn't install Contour from Void repos but made a package myself

@christianparpart #941 fixed the problem, thanks


Hardlink Bug?

Describe the bug
When files are hardlinked by Sonarr or any other software, they are only recognized as hardlinks if both paths involved in the hardlinking process are present simultaneously in the file system. This can cause confusion or lead to incorrect detection of hardlinked files.
To Reproduce

Set up the following folder structure:
/data
├── torrents
│   ├── animes
│   ├── movies
│   └── series
└── media
├── animes
├── movies
├── series

Files on torrents/series are hardlinked to media/series, if you run gdu command inside the torrents folder, no hardlink tags are shown, they only appear if you run gdu on the root of both folder, on the /data
Expected behavior
Files in /data/media/series should remain tagged as hardlinks, even if the gdu command is ran outside the folder.
System (please complete the following information):

OS: Debian 12
Terminal: Termius/powershell
Version: 5.22.0-1+b1

You are right. Thanks for the report!


Topics and scoring support for 'Global' catch-all questions

If topic does not match, an item with no topic assigned should be preferred over an item that has a topic assigned.

Thanks for report @GGONCONCENTRIX, and for the fix @rstrahan! Released as of v5.2.0


SMTP localnet accept on PVE is not IPv6 compliant

On PVE, /etc/postfix/main.cf has the following line (network obscured):
mynetworks = <IP_ADDRESS>/8 <IP_ADDRESS>/22 [fe80::5a47:caff:fe74:8c3c]/64
'ss -lnt' shows what I believe to be the correct line:
[::]:25
As a "guess", postfix's SMTP is listening correctly, but I am not competent to open up the IPv6 firewall correctly.
I'm going to move along at this point until I develop the competence to resolve this later.

Going to postpone for the moment. IPv4 can work, and the IPv6 requirement is "nice to have once I learn how to do it correctly."

Going to postpone for the moment. IPv4 can work, and the IPv6 requirement is "nice to have once I learn how to do it correctly."

https://x.com/Romaq/status/1794416900757463396 is where I reached out to @_WunderTech for help. Hopefully a response.


Bug on layout in view field

The view layout seems to be getting styles from the edit layout (.simple-repeatable>:nth-child(2)) which is making it ignore the width and throw off the layout compared to fields around it.

Hi! Thank you for the report. The issue is now fixed in version 1.4.1. :)


[bug] refmt format

reported by @yyc-git (https://github.com/BuckleScript/bucklescript/issues/2099)
before format:
let getCallArgsFromEmptyStub (stub: Js.t {..}) (index: int) => {
  let call = stub##getCall index;
  Array.to_list (Array.get call##args 0)
};

after format:
let getCallArgsFromEmptyStub (stub: Js.t {..}) (index: int) => {
  let call = stub##getCall index;
  Array.to_list call##args.(0)
};

when use "bsb -clean-world -make-world" to compile,  the "Array.to_list call##args.(0)" cause error message:

Error: Js object ## expect syntax like obj##(paint (a,b))
ninja: error: rebuilding 'build.ninja': subcommand failed

but this will not cause error, why?
let getCallArgsFromEmptyStub (stub: Js.t {..}) (index: int) => {
  let call = stub##getCall index;
  let args = call##args;
  Array.to_list args.(0)
};

or
let getCallArgsFromEmptyStub (stub: Js.t {..}) (index: int) => {
  let call = stub##getCall index;
  Array.to_list (call##args).(0)
};

Yep, this is #1004. Fixed in master


JavalinVue stateFunction allows Javascript injection

Actual behavior (the bug)
We are storing the current user in the JavalinVue state function in order to access it from the frontend Vue code.
Unfortunately, JavalinVue can be broken by user input in this scenario.
For example, if the state function returns the current user name and the user chooses his name to be "", the Vue component will no longer render.
Additionally, it is possible to include arbitrary Javascript in the state function.
Expected behavior
All user data should be properly escaped and JavalinVue should render correctly, even if a string contains a  tag.
To Reproduce
I have created a minimal example to demonstrate this behaviour. All files are taken from the JavalinVue example on this page: https://javalin.io/tutorials/simple-frontends-with-javalin-and-vue except for the main function, which now looks as follows:
import io.javalin.Javalin
import io.javalin.plugin.rendering.vue.JavalinVue
import io.javalin.plugin.rendering.vue.VueComponent

fun main() {
    val app = Javalin.create { config ->
        JavalinVue.stateFunction = {
            mapOf("some_userdata" to "some string with the </script> tag in it")
        }
    }.start(7000)

    app.get("/", VueComponent("<hello-world></hello-world>"))
}

Additional context

@ClemensElflein Shouldn't the person writing the state function be responsible for escaping the content?
We do escape query-params, but chose to leave the state function alone, as you have complete control over that yourself.

First of all: Thank you for the very quick response and for the work on this great framework!
I too thought about escaping the user input before returning it from the state function, but I think that the approach is not optimal in this case for the following reasons:

Since the JavalinVue state function allows us to return arbitrary objects and internally handles the serialization to a JSON object, it should also ensure that the serialized JSON does not break the page. I agree that the data passed in the state function should not be sanitized for display purposes (i.e. Javalin should not replace special characters with HTML entities).
Some escaping is already done during serialization: If the user input contains quotes or even a JSON string, serialization to JSON works fine, but in this case the serialization breaks the page.
The JavalinVue state function is introduced as an easy way to share server side state with the client Vue code (which is a great concept btw), but It's kind of strange to think about sanitizing user input at this stage since the data does not even need to be displayed in order to inject javascript into the resulting page. Of course its clear that the data needs to be serialized in some way in order to make it to the frontend, but I did not expect that I would be able to pass a state that breaks the rendering of the resulting page (without even rendering the user input).

I think that we should at least update the documentation and specify for which user inputs the return value of the stateFunction must be checked by the Javalin user, since it is not clear that the return value has to be sanitized. Maybe we should also update the official JavalinVue tutorial, since logging in as  user will also break the page in the unmodified tutorial code.

Thank you for the very quick response and for the work on this great framework!

Appreciated!

I think that we should at least update the documentation and specify for which user inputs the return value of the stateFunction must be checked by the Javalin user, since it is not clear that the return value has to be sanitized. Maybe we should also update the official JavalinVue tutorial, since logging in as  user will also break the page in the unmodified tutorial code.

I will create a much more comprehensive docs page for JavalinVue for Javalin 4 (you're welcome to get started on this now if you're eager).
I largely agree with your points, I'm just worried about messing with the developer's variables. The developer can easily escape the data in the state-function themselves. Hmm. What if we create JavalinVue.escapeState which is true by default, but can be set to false?

I agree that Javalin should not modify the data sent by the developer. The goal should be to transport arbitrary (serializable) POJOs from the server to the frontend in a safe way without any modifications to the data.
I have now looked at the implementation for the state, query and path parameters in the $javalin object and noticed that the path and query parameters are escaped by replacing some characters with their HTML entities:
https://github.com/tipsy/javalin/blob/07ba3de99f36e9944600245b42a6171f4486b941/javalin/src/main/java/io/javalin/plugin/rendering/vue/JavalinVue.kt#L71-L77
by using this escape function:
https://github.com/tipsy/javalin/blob/07ba3de99f36e9944600245b42a6171f4486b941/javalin/src/main/java/io/javalin/plugin/rendering/vue/JavalinVue.kt#L157-L167
Currently the escaping is reversed by creating an invisible text area, setting the value of the text area to the encoded string and reading the decoded string back into the $javalin object:
https://github.com/tipsy/javalin/blob/07ba3de99f36e9944600245b42a6171f4486b941/javalin/src/main/java/io/javalin/plugin/rendering/vue/JavalinVue.kt#L79-L87
My proposed change is simple, does not break existing code and would hopefully fix all issues:
If we encoded the JSON string to base64 instead of replacing HTML Entities and decoded the string in Javascript instead of passing it through the textarea, everything should be fine, since the base64 alphabet is safe (i.e. does not allow any quotes or < > characters). We also don't modify the developer's data, since all we do is JSON encode and decode without modifying the data at all. The base64 encoding and decoding is only needed in order to prevent the browser from actually interpreting the state data as HTML.
The implementation is also quite simple and does not need many changes. The only requirement is that the browser supports the atob() function to decode the base64 encoded strings. As far as I can tell, all modern browsers support this: https://caniuse.com/?search=atob
I have created a fork of Javalin to test the implementation and it seems to work well. You can see the changes here:
https://github.com/tipsy/javalin/compare/javalin-3x...ClemensElflein:bugfix/javalin_state

That's a much nicer solution than what we have currently. Would you like to make a PR for the master branch?

Thank you for the feedback! Unfortunately, the base64 encoding has issues with non-ASCII characters. After some reading I decided to move from base64 encoding to URI encoding, which is also available in most browsers and supports UTF-8 strings directly. The Kotlin implementation is simple as well, since Java already provides an URLEncoder class.
Additionally, instead of printing a Javascript object and then looping over the key-value pairs to replace the encoded strings, I simply encoded the whole $javalin object directly.
I tested the code with all kinds of special characters and emojis and it works as expected. Since the original source decoded the html entities for path parameters anyways, the new implementation should be fully compatible to the current one.
I have implemented the changes on the current Javalin 3.14.4 tag and will create a PR for it. Additionally, I will implement the changes on the master branch as well so that it also works in Javalin 4.0. Would it be possible to include the fix in Javalin 3 as well, since 4 is currently in alpha?

That's unfortunate, I thought it was a very elegant solution. What issues did you have with base64?
I googled a bit on the difference between Java and JavaScript here, and there appears to be a few more differences: https://stackoverflow.com/questions/607176/java-equivalent-to-javascripts-encodeuricomponent-that-produces-identical-outpu

Yes, I also thought that the solution would be elegant, but it turns out that the base64 decoding does not work when using non-ASCII characters. The encoding in commit https://github.com/tipsy/javalin/pull/1214/commits/49bf46d08a43c673a32c0e8c05e25851324d1b96 does not work with special characters like ÄÖÜ, or emojis.
First I tried to fix the problem using base64, but the proposed solutions are more workarounds than solutions. I found a very detailed StackOverflow post here: https://stackoverflow.com/questions/30106476/using-javascripts-atob-to-decode-base64-doesnt-properly-decode-utf-8-strings
Since basically any encoding supported by the browser works to fix the original issue, I implemented it using the URI encoding. It works well for any UTF-8 string and is widely supported.

I googled a bit on the difference between Java and JavaScript here, and there appears to be a few more differences: https://stackoverflow.com/questions/607176/java-equivalent-to-javascripts-encodeuricomponent-that-produces-identical-outpu

I also checked the documentation for Java's URLEncoder vs Javascripts encodeURI and it turns out that Java simply does encode more characters to the escaped form than Javascript. This is not an issue, since Javascript decodes the additional characters just fine. I have written a test case to demonstrate the behavior in this commit: https://github.com/tipsy/javalin/pull/1214/commits/f2c42b0886dafe3c51e52128bfc5cd2f861a1d5e

Very nice work @ClemensElflein ! Are both PRs ready for merge?

I see there is a println left over. You could also replace
// This is just encodeURIComponent('{"pathParams":{},"queryParams":{},"state":{}}')
val encodedEmptyState = "%7B%22pathParams%22%3A%7B%7D%2C%22queryParams%22%3A%7B%7D%2C%22state%22%3A%7B%7D%7D"

with
val encodedEmptyState = encodeURIComponent('{"pathParams":{},"queryParams":{},"state":{}}')

?

Thank you for the reply! I'm glad you like the implementation so far.
I have removed the println() call as well as replaced the hard coded strings with dynamically encoded ones for readability. Originally the idea was to hard code the test strings in order to detect any changes in Java's URLEncoder implementation. If a new Java version were to change the implementation, the tests would now still pass.
But it's not really an issue since we also have the Selenium tests which really execute the Javascript side of things and those will fail as soon as the encoding changes.
The pull requests should be ready now!
I also have an idea how to improve on the states of VueComponents, but this probably deserves its own thread as it has nothing to do with the issue here.

I also have an idea how to improve on the states of VueComponents, but this probably deserves its own thread as it has nothing to do with the issue here

Sounds good, please make another issue :)

And again, really nice work on this!


Named Queries

What problem does this solve or what need does it fill?
The most simple of systems require a lot of ugly boiler plate code such as:

a for loop
destructing operations
hard to read queries
hard to debug

What solution would you like?
#[derive(Query)]
pub struct PointMassQuery{
    position: &mut Position,
    momentum: &Momentum,
    mass: &Mass
}

pub fn newtons_first_law(point_mass: PointMassQuerry, time: Res<Time>) {
    point_mass.position += time.delta_seconds() * point_mass.momentum / point_mass.mass;
}

fn system_with_queryable(q: Query<PointMassQuery>) {}

What alternative(s) have you considered?
#2252 but that requires all param to be mutable to be useful. it is possible to make a macro to generate an all inclusive named query for early development to address this use case.
The old school for-each sytanx  but that is not very flexible
Additional context
Figuring this out will make the relation system way cleaner and more usable.

I think this is actually multiple orthogonal requests:
Named Queries
Named queries are already possible in a number of ways:
Type Aliases
pub type PointMassFetch<'a> = (&'a mut Position, &'a Momentum, &'a Mass);
fn newtons_first_law(query: Query<PointMassFetch>, time: Res<Time>) {
}

pub type PointMassQuery<'a> = Query<'a, 'a, (&'a mut Position, &'a Momentum, &'a Mass)>;
fn newtons_first_law(query: PointMassQuery, time: Res<Time>) {
}

We are also currently experimenting with "lifetimeless fetch impls" in the new renderer, which would look like this:
pub type PointMassFetch = (Write<Position>, Read<Momentum>, Read<Mass>);
fn newtons_first_law(query: Query<PointMassFetch>, time: Res<Time>) {
}

SystemParam derives
#[derive(SystemParam)]
struct PointMassQuery<'a> {
    query: Query<(&'a mut Position, &'a Momentum, &'a Mass)>,
}

Fetch Derives
Some people would prefer to access query results with pre-defined field names instead of typing them out on the "left hand side" in the returned tuple. This is a relatively straightforward derive impl.
#[derive(Fetch)]
pub struct PointMassFetch {
    position: &mut Position,
    momentum: &Momentum,
    mass: &Mass
}

pub fn newtons_first_law(point_mass: Query<PointMassFetch>, time: Res<Time>) {
}

Single-entity "for-each" systems
Bring back for-each systems by allowing Fetch alongside system parameters. This will be a divisive topic (that deserves its own issue) because they were removed (for good reasons) in #798.

We are also currently experimenting with "lifetimeless fetch impls" in the new renderer, which would look like this:
pub type PointMassFetch = (Write<Position>, Read<Momentum>, Read<Mass>);
fn newtons_first_law(query: Query<PointMassFetch>, time: Res<Time>) {
}

Would it be virtually possible to have a Removed<T> fetch such that it retrieves a component that has just been removed? I think it could be the best solution for #2148.

I think this is actually multiple orthogonal requests:
Named Queries
Fetch Derives

This really needs to be documented in the book. Is it documented in the book?

@tigregalis I gave a glance at the WIP new book and it looks that named queries are not currently documented. @alice-i-cecile what do you think about adding query type aliases and/or #[derive(SystemParam)] as patterns for named queries?
Fetch derives are not merged yet, but they can also be documented somewhere once they are.

Yep, I'm on board with mentioning those in the ECS chapter! Feel free to leave a note on that PR; or make a PR to my branch to add them.


Include test for #1859

Fixes #1897

Pull Request Test Coverage Report for Build 59986

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 66.014%

Totals

Change from base Build 59959:
0.0%

Covered Lines:
4009

Relevant Lines:
6073

💛  - Coveralls

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll


[Bug]: Can't deploy twice demo1 the app Deployment has two argocd apps that want to manage it

What is your environment, configuration, and command?
idpbuilder create -p examples/ref-implementation
What did you do and What did you see instead?
When creating app with aws resources the deployment, service and bucket gets deploy to namespace default deploying another demo it deploys again to default namespace this creates a conflict where 2 argocd apps have conflicts for the Deployment and Service.
Additional Information. Logs.
I updated my template to create the ArgoCD app in a namespace with `${{ parameter.name }}`
https://github.com/csantanapr/cnoe-examples/blob/main/examples/devopsdays2024/ref-implementation-devopsday-local/backstage-templates/entities/app-with-bucket/template.yaml#L111

    - id: create-argocd-app
      name: Create ArgoCD App
      action: cnoe:create-argocd-app
      input:
        appName: ${{parameters.name}}
        appNamespace: ${{parameters.name}}
        argoInstance: in-cluster
        projectName: default
        # necessary until we generate our own cert
        repoUrl: http://my-gitea-http.gitea.svc.cluster.local:3000/giteaAdmin/${{parameters.name}}
        path: "kustomize/base"

The template fails because the namespace doesn't exists. You have to create the namespace in advance.
When I tool a look at the argocd plugin, they hardcode CreateNamespace=false
https://github.com/RoadieHQ/roadie-backstage-plugins/blob/main/plugins/backend/backstage-plugin-argo-cd-backend/src/service/argocd.service.ts#L447
```typescript
        syncPolicy: {
          automated: {
            allowEmpty: true,
            prune: true,
            selfHeal: true,
          },
          retry: {
            backoff: {
              duration: '5s',
              factor: 2,
              maxDuration: '5m',
            },
            limit: 10,
          },
          syncOptions: ['CreateNamespace=false', 'FailOnSharedResource=true'],

Wonder if we should submit a PR to allow to override?

This does sound like a bug. We should fix it.

@nabuskey a bug in upstream? https://github.com/RoadieHQ/roadie-backstage-plugins/blob/main/plugins/backend/backstage-plugin-argo-cd-backend

Then we will be able to update our code in cnoe to provide the parameter in the backstage action

Yeah it's a bug in the roadie plugin imo. Of course, we can work around this by using our own version of argo CD service: https://github.com/cnoe-io/backstage-app/blob/139a3674c035bfe9f486f50aa8cb3deee8b25fd5/packages/backend/src/plugins/argocd.ts#L124


Upgrade sidekiq to latest

This PR aims to upgrade convection to the latest sidekiq, here's the doc for that:
https://github.com/mperham/sidekiq/blob/master/6.0-Upgrade.md
I read through it and don't see anything that should trip us up, but I intend to do some QA on staging before promoting this to production.

Ok going to merge, set a deploy block on horizon and then QA this on staging before promoting to production.


Cypress: implement SWAP mode for PSoC6

Signed-off by Bohdan Kovalchuk<EMAIL_ADDRESS>

@d3zd3z , @utzig please, review this draft code so we can progress on SWAP implementation for PSoC6
please, ignore // TODO and 1362 for now since the code isn't final
I'd appreciate your inputs on design
thanks

closing as unacceptable implementation


Dev

I can't seem to get --date-start and --date-end to work beyond querying ctran.

Actually this is in an issue for this sprint, nevermind.


Impl stack

This change is

Current dependencies on/for this PR:

main

PR #3014   👈

PR #3015

This comment was auto-generated by Graphite.

This reduced total test time by about 4 minutes

Not sure how great the benefit is right now. A lot of rewrites still happen.


iOS 13 getPermissionSubscriptionState invalid token

Description:

Seems like on iOS 13 the push token that is returned is badly formatted.
Note that the only thing I changed in the output of the console.log is the "*" which replaces the value of the real push token.
OneSignal.getPermissionSubscriptionState((data) => {
        const pushToken = data.pushToken;
        const userId = data.userId;
        console.log(pushToken); //"{length=32,bytes=0x6d0ede****************8e7e42...399**********60}"
});

Environment
Yarn with React Native 0.59.9 & react-native-onesignal 3.2.12 on iOS 13
Steps to Reproduce Issue:

Install react-native-onesignal on iOS 13 & React Native 0.59.9
Call getPermissionSubscriptionState to request a token

Hello @amitassaraf ,
Thank you for bringing this up. Because iOS 13 is still in Beta, this issue may be resolved before the release this fall. However, we will keep a close eye on this leading up to the release. Thanks again

Will close in this repo as this is a general iOS issue. Please follow the same issue on the iOS SDK repository: https://github.com/OneSignal/OneSignal-iOS-SDK/issues/504


Identifying which lines are covered by a statement

Howdy! Its been a while! I hope things are going well.
Is your feature request related to a problem? Please describe.
As you may recall I maintain diff_cover. Recently an issue was opened up that honestly kinda shocked me as it seems like something that should have come up years ago.
https://github.com/Bachmann1234/diff_cover/issues/270
Diff cover attempts to compare a diff to a coverage report to identify what changes have been covered by tests. However, coverage reports identify statements. While diffs cover lines. So in an example like this coverage is like "Well this statement is not covered". While diff cover happily looks at this diff. Sees the line is not in the report at all and assumes its fine (things like comments would not show up in a coverage report and we would not want to flag those as 'not covered')
(this example is showing the html report as it is clearer for humans. In practice we use the xml report)

Describe the solution you'd like
Well, ill be honest I am open to ideas here. I was thinking of two potential ones.

Is there something that could be added to the xml report the indicate the range of lines covered by each statement
Maybe a setting to measure line coverage instead of statement coverage?

I am somewhat concerned that neither of these are technically feasible... as I wonder if you run into the same issue I run into where the data you collect can only see statements and the 'knowledge' of statements broken up into multiple lines is lost in the analysis.
Describe alternatives you've considered
The alternative solution would be for me to do static analysis on the code. Essentially identify the statement a line is a part of. I worry this is a fools errand as I would have to identify which version of python im looking at and successfully parse the text to trace back to the original line.
*I am quite open to ideas on the core issue btw. If you know of alternatives that don't require modifications to coverage im game. *
Thank you for your time simply reading this :-). I am game to be the implementer if there is a feature to be added here. Though I realize that even that may be asking a lot if the feature is a niche as it seems to me.

Hi Matt, sorry I've let this sit so long.  I'm not understand the problem you are trying to solve.  Maybe I'm not well-versed enough in what diff-cover would show in this case.  What specifically is diff-cover reporting that is wrong?

Not a problem at all!
Ok, so remember that diff-cover tries to highlight coverage gaps in a diff.
So take a project whose report is the following. We see and uncovered function on line 9.

If I have a branch where I make a tiny change (like this diff where I add a kwarg to this method call). Line 11

So diff cover sees that line 11 of this file is changed and looks at that line in the report and "sees" this.

So it does not see the line as 'covered' or 'uncovered'. So it assumes the line is not relevant. However, I would argue diff-cover is being 'dumb' here. I have touched a function that is not being covered. Diff-cover should report it.
However, in order to do so I would need some way of knowing that the uncovered statement on line 9 spans lines 9 though 12.
Does that make sense? I don't know if this is even possible.

I see now.  Coverage.py actually has this information already.  If you run your program with --branch, and then turn on some debugging:
COVERAGE_AST_DUMP=1 coverage report -m

you will get a ton of AST output, but at the top you will also see this:
Statements: {1, 4, 5, 8, 9}
Multiline map: {9: 9, 10: 9, 11: 9, 12: 9, 1: 1}

Meaning, there are statements on lines 1, 4, 5, 8, and 9.  The multiline map means that line 9 is part of the statement on line 9, as are lines 10, 11, and 12.  (TBH, I'm not sure why "1: 1" is in there...).
So coverage.py already has code to get what you need.  The question is, how to usefully expose that without it seeming too strange.

So including it in the cobertura XML as an attribute would be ideal however, I don't see a way of doing that without violating the schema by adding a new attribute to the line tag.
<?xml version="1.0" ?>
<coverage version="6.2" timestamp="1642646712426" lines-valid="5" lines-covered="4" line-rate="0.8" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
	<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
...
    <line number="9" multiline-statement"9,12"  hits="0"/>
...
</coverage>

My assumption here being that convincing cobertura to add a 'multiline-statement' attribute or something to their schema would be very unlikely.
However, if you would be willing I could look into what it would take for me to add this info into the json report I added sometime back.
{
...
  "files": {
    "app.py": {
      "executed_lines": [
        1,
        4,
        5,
        8
      ],
     "multiline_map": {9: 9, 10: 9, 11: 9, 12: 9},
      "summary": {
        "covered_lines": 4,
        "num_statements": 5,
        "percent_covered": 80,
        "percent_covered_display": "80",
        "missing_lines": 1,
        "excluded_lines": 0
      },
      "missing_lines": [
        9
      ],
      "excluded_lines": []
    }
  },
...
}

then on my end I would look into taking in the json report as an option and paring the additional info.


Missing keycode 171

Windows 10
Firefox 43.0.4
QWERTZ - German Layout
(*+~) key

Hi,
As a first timer in the open source I would like to contribute on this issue.
Just checking but no specific rules for a PR?
Thanks.

Nope! Go for it - I'd love to have your contributions.


dwavebinarycsp ignoring min_classical_gap

Description
Setting a min_classical_gap to a non-default values does not affect the BQM from stich()
Steps To Reproduce
In [3]: csp_eq = dwavebinarycsp.ConstraintSatisfactionProblem('SPIN')
In [4]: csp_ne = dwavebinarycsp.ConstraintSatisfactionProblem('SPIN')
In [5]: csp_eq.add_constraint(operator.eq, ['a', 'b'])
In [6]: csp_ne.add_constraint(operator.ne, ['a', 'c'])
In [7]: bqm_eq = dwavebinarycsp.stitch(csp_eq, min_classical_gap=2.0, max_graph_size=2)
In [8]: bqm_ne = dwavebinarycsp.stitch(csp_ne, min_classical_gap=4.0, max_graph_size=2)
In [9]: bqm_ne
Out[9]: BinaryQuadraticModel({'a': 0.0, 'c': 0.0}, {('a', 'c'): 1.0}, 1.0, Vartype.SPIN)
In [10]: bqm_eq
Out[10]: BinaryQuadraticModel({'a': 0, 'b': 0}, {('a', 'b'): -1}, 0.0, Vartype.SPIN)
Difference between energies for gap of 2 is correct:
In [11]: bqm_eq.energy({'a': -1, 'b':-1})
Out[11]: -1.0
In [12]: bqm_eq.energy({'a': -1, 'b':1})
Out[12]: 1.0
Difference between energies for gap of 4 is incorrect (still 2):
In [14]: bqm_ne.energy({'a': -1, 'c':1})
Out[14]: 0.0
In [15]: bqm_ne.energy({'a': -1, 'c':-1})
Out[15]: 2.0
Expected Behavior
A different BQM based on the gap set
Environment

OS: Windows 10
Python version: 3.something_supported

Additional Context
Add any other background information about the problem.

Note: This issue should be closed.


There is not sample

Looks like you deleted the sample page... do you have any other sample page?

Yea... over the past few years its gone bad due to improved/changing SVG support in browsers. I figured no one was following this thing any more. BTW... I think https://github.com/frontsideair/react-clockpicker probably works way better at this point and has more active support. thinking about killing this repo

thanks for the response, but yeah I end up using that one for the little thing I needed it . thanks


Feature/sg 36 yolox loss

Adding YOLOX loss function with:

center sampling
dynamic k-matching

discussed in the paper in 2.1 in sections Multi positives and SimOTA
Notes:

The implementation is based on the original code with many added comments. I can totally add many more comments and docstrings.
The input is expected in the same shapes as those produced by YoloV5, just for consistency, but for an anchorless model.

Im closing this PR along with the other ones related to yolo X integration as it has been stale for a while.
Let's reopen it once we continue working on yoloX.


When user chooses to not make email publicly available change display text

Instead of saying "None provided" can we do one of two things?
a) not show that field at all
b) say "None publicly disclosed"

Fixed -- field is now hidden if the user doesn't have a public email.


python manage.py migrate cant migrate limits

hello its me again :( sry,
i have another modoboa instance broken, its no real issue from ur code but mby u can help me.
someone upped modoboa to version 1.5.3 and i get internal errors now as i try to access users, i tried python manage.py migrate and got:
Operations to perform:
  Apply all migrations: authtoken, core, limits, lib, sessions, admin, modoboa_postfix_autoreply, auth, sites, reversion, contenttypes, modoboa_amavis, modoboa_imap_migration, relaydomains
Running migrations:
  Rendering model states... DONE
  Applying limits.0003_auto_20160413_1046...Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py", line 200, in handle
    executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
  File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 92, in migrate
    self._migrate_all_forwards(plan, full_plan, fake=fake, fake_initial=fake_initial)
  File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 121, in _migrate_all_forwards
    state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 198, in apply_migration
    state = migration.apply(state, schema_editor)
  File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/migration.py", line 120, in apply
    operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/operations/special.py", line 183, in database_forwards
    self.code(from_state.apps, schema_editor)
  File "/usr/local/lib/python2.7/dist-packages/modoboa/limits/migrations/0003_auto_20160413_1046.py", line 40, in move_limits_to_user
    content_type=name_to_content_type[limit.name])
KeyError: u'relay_domain_aliases_limit'

and i cant say from which version and how the customer uppgraded.
any ideas pls.
thx
matthias

You need to clean the limits_limit table. Remove all entries with a name starting with 'relay_domain'.

its not only relay_domain so i have to clean them all and it shuld work?
thx i'll try it tonight
On 09.06.2016 07:45, Antoine Nguyen wrote:

You need to clean the limits_limit table. Remove all entries with a
name starting with 'relay_domain'.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tonioo/modoboa/issues/889#issuecomment-224822949,
or mute the thread
https://github.com/notifications/unsubscribe/AEul09rKUhnqfpj-YrTYFu3znPG693kkks5qJ8R_gaJpZM4IxheB.

If you remove the relay_domain entries, then the migration will work as expected. You can also remove all entries but you'll lost existing limits...

thx solved 50%.
for the other 50% i had to change "/usr/local/lib/python2.7/dist-packages/modoboa_amavis/modo_extension.py" line 45
replaced some code:
#domalias_pattern = "@{0}".format(domalias.name) <= replaced with next line
domalias_pattern = "@{0}".format(domalias.name.encode('utf-8'))

anyway thx for ur support and great software.


Solved - MQTT Connection drops after few seconds with using Adafruit NeoPixels

Hello,
I'm working on a little project, where i can control my LED Strips over MQTT (with animations).
Every millisecond strip.show() gets called and everything works great with receiving commands.
But after a few seconds (~30) the connection to the broker fails and it tries to reconnect but everytime it fails (this doesn't happen without strip.show()). I tested the WiFi connection but everytime it tries to reconnect the WiFi connection seems ok.
When I call strip.show() on a single command coming via mqtt everything's fine.
In Issue #411 someone seems to have a simmilar problem and he should use an async mqtt client.
Should this work for me too and if yes, why? Whats the difference?

I am facing a somewhat similar problem.  Occasionally the NeoPixel displays the wrong color, seems always GREEN at max brightness.  Depending on how the commands are run, the NeoPixel could not switch off the max GREEN.  Is ther esome interrupt conflict?  I seemed to trace down to the client.connect("") command causing the problem...

Hey, i don't remember exactly what the problem was but i'm using the fastled library now, which is working perfectly while being connected to a mqtt broker


Fix markers for starting/ending run for activation

Fix markers (problem reported by Matt Arnold).

Rebased and merges as 1b35ad2.


Highlighting parts of code

Often in tutorials one wants to only highlight the part of code that changed from the previous snippet.
We could introduce a microsyntax for that (like **text**) and wrap it in  elements that the author could then style (we could include some rudimentary styling).
This will be a fun plugin to write, and I’d love to write it myself at some point. Thoughts?

Shouldn't it be part of the line-highlight plugin? I mean, a plugin that enable to highlight any part of the code, may it be lines or fragments of line?

Hmmm, yes, you’re right. I was thinking that the implementation would be completely different, but that’s a bad way to think. Users don’t care about implementation, they care about function.
Speaking of that, it should also be possible to highlight lines without knowing their number, just by marking them up somehow.

But we need to find a way to mark them that will not conflict with any language.
The example you gave before (**) is already in conflict with the Markdown syntax, and probably with the "power" operation in some languages, like python (2 ** 3 ** 4).

Yeah, that was just an example.

My point was that it may be hard to find a single pattern that would play well with all languages. Unless the marking is based on some configuration specific to the block of code.

Hmmm, perhaps it could be user-defined…

I don't know if this issue is still relevant or not, but what about passing the code to highlight as an attribute of the code tag ?
Something like this:

p {
  color: red
}

And we can think about more complex syntax in this attribute, like lines range, column position, column range, multiple ranges, etc.


search_error

{
"code": "search_error",
"message": "could not find major div: playwright: timeout: Timeout 10000ms exceeded."
}

您好！您的邮件我已收到。

I encountered same problem


EOS-19399: Create design RFC for AUX multipools layout generation

Need to create design document RFC, for generation of layout parameters
for auxiliary (AUX) pools, during multipools cluster bootstrap.
This PR is used to update the RFC indexes only.
Detailed document is published at confluence at link :
https://seagate-systems.atlassian.net/wiki/spaces/PUB/pages/184746420/23+MPAUX+Multipool+Auxiliary+Layout+Parameters+Generation
It addresses the comments from PR:
https://github.com/Seagate/cortx-hare/pull/1585/
Signed-off-by: Suvrat Joshi<EMAIL_ADDRESS>
View rendered rfc/README.md

@suvratjoshi, as discussed let's have the rfc in github and have a page in confluence with the github link.

@knekrasov had some comments on confluence page. I will first try to answer those here to confirm answers from @mssawant so that I can update the confluence page accordingly :
@mssawant, can you please help to get /correct answers (in case mine are wrong) to queries posted by @knekrasov .
[KN] After I read the document, I still don’t quite understand:
[KN] 1. Does motr identify auxiliary pool just automatically? Or do we need to use special naming or types for that?
[SJ] To my understanding, yes motr identifies it automatically. No special naming convention needs be followed.
[KN] 2. It sounds like the only task for Hare is to generate all probable subsets for every given pool.
[SJ] Yes. Correct.
[KN] 3. If [2] is correct, then we probably need to clarify:
[KN] 3a. How to calculate “allowed_failures” vectors for each such a generated aux pool. I guess it will not be equal to the source “allowed_failures”, right? A short formula or a schematic algorithm is highly appreciated.
[SJ] If I undersood this question correctly - the generated AUX pool itself comes into picture after disk failures, so again no additional allowed failures will be "allowed" than the original ones.
[KN] 3b. What pools need to be embellished with auxiliary pools? All pools that we have in CDF? Or mabye all “sns” pools in CDF? Else?
[SJ] I think creating AUX pools will be applicable for SNS pools only and not DIX. (Probable reason would be data_units allowed currently are not more than 1). AUX pools will be generated for all SNS pools.
[KN] 3c. Do we want to generate aux pools just always? Or maybe we’ll want to disable this generation by some flag in cfgen?
[SJ] Yes, always generated and no flag control.


Function to filter strong emotions(highly expressive) based on probability scores?

Can we have a function to filter strong emotions and display bounding boxes and emotions corresponding to only those highly expressive frames by putting threshold on probability scores?

Can we have a function to filter strong emotions and display bounding boxes and emotions corresponding to only those highly expressive frames by putting threshold on probability scores?

Hi, @bharadwaj-kg! It is definitely a good idea! Could you make a PR with such feature?


version 1.0.4 /backoffice/installer.ascx does not exist

Trying to install the package v1.0.4 and getting this error -- any thoughts?

closing as this is no longer relevant


Scalability in Visualizations: For large studies, add warning about wait time

wait for UMSP or MALED to be loaded

this ticket duplicates https://github.com/VEuPathDB/web-eda/issues/810 so I am closing it


Size incorrect in IE

It seems the height/width are around half the size they should be when viewing a circular progress bar in IE. This applies not only to my project, but also your project website's examples. Open your site in IE11 to see what I mean.

Hmm strange, I'll look into this at some point. Probably a CSS problem where svg does not resize to its container

What's the status of this issue ?

Also, in IE 9/10 if you use a progress line setting the stroke-width option doesn't seem to affect how thick the line is, rather the container controls it -- as my container for the progress bar has extra padding to go with the rest of the document, it means the progress bar is really thick in IE... (not an issue in Chrome or Firefox)
I have to set the width and height of the svg element for the progress bar in the css to get it to work-- would be nice if this can be fixed

@wwymak that is intentional behavior. You should set the height of the container to control the width of Line bar.

This should be automatically fixed in new release<EMAIL_ADDRESS>Demo page is not updated to new version yet as I'm redesigning it.

The demo page still not working

Where I can find update version<EMAIL_ADDRESS>?

This issue is not happening with the new demo page.
@pink-bunny newest unminified code is here: https://github.com/kimmobrunfeldt/progressbar.js/blob/master/dist/progressbar.js or in NPM.


Makes the focus indicator more visible

We don’t currently have a focus style for keyboard/ screenreader users. This PR makes the focus indicator more visible for these users.
Before

The above screenshot is when the user has scrolled - leaving the point on the page but with focus still on the link.
After

Why the bright yellow? Doesn't that reduce the contrast? Also, the yellow doesn't really go with the general aesthetics of the site.

Hey @mdo it does reduce the contrast - but that's OK. Users who need the focus rely on screenreaders - it's about saying "Hey" this is where I am on the page. That's the reason I chose yellow here and why other sites do to.
Any suggestions to make it more GitHubby?

Use the same shade of yellow as the emphasis tag perhaps?
http://primercss.io/forms/#checkboxes-and-radios

@brianjenkins94 that could be a good call - what you think @mdo?

Gentle bump @mdo

I agree our focus states need improvement, but adding a yellow highlight on focus seems excessive and not all that helpful. Can we start with something simpler?
Also, this is what I see on tab focus to elements in Safari:

Do we want to move further away from browser defaults on more elements? Currently we override focus styles for textareas, inputs, and buttons only.

Closed out - lets look in to this again when we have more time


No documented way to get an error message

Unless I'm missing something. :)
The marpa_g_error() doc says

When a method fails, this method allows the application to read the error code. p_error_string is reserved for use by the internals. Applications should set it to NULL.

There is marpa_error_description in marpa_codes.c, but do documented way to access it, AFAIK.
Or is it by design that the app must set up and use its own error messages based on those suggested in the doc?

For external purposes, Libmarpa does not deal in strings, except for the default "out of memory" message.  p_error_string was for debugging -- when I was evolving the error codes, I could make some errors a "catch all", and explain in the string.  When development was done, the strings were eliminated in favor of separate error codes.
The codes in marpa_codes.c are  suggested defaults, and inaccessible via Libmarpa's interface by design.  Kollos and Marpa::R2 both use them and you can look at them for examples of how you use marpa_codes.c in a real application.


Process OS build into a dedicated field

The processor joins the operating system version and build into a single field.
While this is a common way to represent the version, it is convenient to have
them separate.

I'm considering to split the version completely into its parts, and then adding
convenience methods to join them back together. Does someone have a preference?


Support tfstate conversion

This converter plugin currently supports converting a Terraform program into a Pulumi program, but does not yet support converting a .tfstate file to a Pulumi state file.  We would like to support both of these in the coverter.
This is dependent on adding the user interface to pulumi import and pulumi convert to leverage this as part of https://github.com/pulumi/pulumi/issues/5953#issuecomment-1688602915.

This is now supported, the 3.87.0 release of the cli put in the last main parts of this.


handle optional in Jackson

create bean Jdk8Module and ObjectMapper
Fix #10751

@DamnClin
Jackson was not available in the spring boot core module.
In a first version I've just imported jdk8Module from jackson-datatype-jdk8 but in the end, I preferred use the existing starter web
I don't know what do you think about it

@DamnClin Jackson was not available in the spring boot core module. In a first version I've just imported jdk8Module from jackson-datatype-jdk8 but in the end, I preferred use the existing starter web
I don't know what do you think about it

Importing the starter-web leads to side effects (especially with Spring cloud), so I just import jackson-datatype-jdk8

@DamnClin Jackson was not available in the spring boot core module. In a first version I've just imported jdk8Module from jackson-datatype-jdk8 but in the end, I preferred use the existing starter web
I don't know what do you think about it

This is probably the wrong module to add it so :). There should be a module with this dependency already on and his must be done here.
We can't add the web starter in this module if it wasn't there since SpringBoot can be use for other needs (like batch), my bad on identifying the sweet spot

To avoid errors, use default spring boot jackson configuration and enrich with jdk8Module
Source : https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonAutoConfiguration.java


Set allow-plugins for Composer 2.2

This new configuration has been introduced with Composer 2.2: https://github.com/composer/composer/releases/tag/2.2.0-RC1

Can you send this to the 4.2 branch please? :)

The PR has been updated to target the 4.2 branch.

Thanks.


[Bug] failed to run custom build command for dart-sys v3.1.12

Describe the bug
Hi, it's me again. 😂😂😂
flutter_rust_bridge = "1.62.0"
cargo-ndk = "2.12.6"
It's strange! I followed the tutorial to integrate Android again today, re-entered the commands in the tutorial, so the libraries should have been updated! But Android is unable to compile now.
fatal error: 'assert.h' file not found
 Compiling bzip2 v0.4.4
   Compiling allo-isolate v0.1.14
   Compiling zstd v0.11.2+zstd.1.5.2
   Compiling zip v0.6.4
   Compiling dart-sys v3.1.12
The following warnings were emitted during compilation:

warning: INFO: build log is located at: `/Users/ken/codes/hs_project_root/test_res/test_2/rust/target/armv7-linux-androideabi/debug/build/dart-sys-46e53f82cb928d91/out/build.log`

error: failed to run custom build command for `dart-sys v3.1.12`

Caused by:
  process didn't exit successfully: `/Users/ken/codes/hs_project_root/test_res/test_2/rust/target/debug/build/dart-sys-9bd5cd6c06da5acf/build-script-build` (exit status: 101)
  --- stdout
  cargo:warning=INFO: build log is located at: `/Users/ken/codes/hs_project_root/test_res/test_2/rust/target/armv7-linux-androideabi/debug/build/dart-sys-46e53f82cb928d91/out/build.log`

  --- stderr
  /Users/ken/.cargo/registry/src/github.com-1ecc6299db9ec823/dart-sys-3.1.12/dart-sdk/include/dart_api.h:24:10: fatal error: 'assert.h' file not found
  thread 'main' panicked at 'ERROR: Failed to generate dart_api_dl binding: ClangDiagnostic("/Users/ken/.cargo/registry/src/github.com-1ecc6299db9ec823/dart-sys-3.1.12/dart-sdk/include/dart_api.h:24:10: fatal error: 'assert.h' file not found\n")', /Users/ken/.cargo/registry/src/github.com-1ecc6299db9ec823/dart-sys-3.1.12/build.rs:666:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2023-02-02T08:10:26Z INFO  cargo_ndk::cli] If the build failed due to a missing target, you can run this command:
[2023-02-02T08:10:26Z INFO  cargo_ndk::cli]
[2023-02-02T08:10:26Z INFO  cargo_ndk::cli]     rustup target install armv7-linux-androideabi

rust on  master [?] is 📦 v0.1.0 via 🦀 v1.65.0 took 14s

However, when I executed flutter clean cargo-clean on my previous project and recompiled, there were no problems. There was no output of "Compiling Dart-sys" during the compilation.
So I checked the Cargo.lock, it should be 1.62.0, which added the library dart-sys compared to 1.61.1.

1.62.0

[[package]]
name = "flutter_rust_bridge"
version = "1.62.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a943fe1e3cf0477300f919946088f12b16e79daad9a0cfb4f87f0d63e908bf80"
dependencies = [
 "allo-isolate",
 "anyhow",
 "build-target",
 "bytemuck",
 "cc",
 "chrono",
 "console_error_panic_hook",
 "dart-sys",
 "flutter_rust_bridge_macros",
 "js-sys",
 "lazy_static",
 "libc",
 "log",
 "parking_lot",
 "threadpool",
 "wasm-bindgen",
 "web-sys",
]

1.61.1

[[package]]
name = "flutter_rust_bridge"
version = "1.61.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8079119bbe8fb63d7ebb731fa2aa68c6c8375f4ac95ca26d5868e64c0f4b9244"
dependencies = [
 "allo-isolate",
 "anyhow",
 "build-target",
 "bytemuck",
 "cc",
 "chrono",
 "console_error_panic_hook",
 "flutter_rust_bridge_macros",
 "js-sys",
 "lazy_static",
 "libc",
 "log",
 "parking_lot",
 "threadpool",
 "wasm-bindgen",
 "web-sys",
]

There must have been changes last week.

frb_rust/Cargo.toml

@@ -24,7 +24,7 @@ allo-isolate = { workspace = true }
libc = "0.2"
parking_lot = { version = "0.12.1" }
threadpool = { version = "1.8.1" }
- dart-sys = { git="https://github.com/rogurotus/dart-sys.git", branch="whatif", features = ["dart_api_dl"] }
+ dart-sys = { version = "3.1.12", features = ["dart_api_dl"] }

[target.'cfg(target_family = "wasm")'.dependencies]
console_error_panic_hook = { version = "0.1.7", optional = true }

The dart-sys was updated to 4.0 just a few hours ago. and I don't know what caused the issue, but I can only roll back the version by running cargo update --package flutter_rust_bridge --precise 1.61.1
Codegen logs with RUST_LOG=debug environment variable
Compiling bzip2 v0.4.4
   Compiling allo-isolate v0.1.14
   Compiling zstd v0.11.2+zstd.1.5.2
   Compiling zip v0.6.4
   Compiling dart-sys v3.1.12
The following warnings were emitted during compilation:

warning: INFO: build log is located at: `/Users/ken/codes/hs_project_root/test_res/test_2/rust/target/armv7-linux-androideabi/debug/build/dart-sys-46e53f82cb928d91/out/build.log`

error: failed to run custom build command for `dart-sys v3.1.12`

Caused by:
  process didn't exit successfully: `/Users/ken/codes/hs_project_root/test_res/test_2/rust/target/debug/build/dart-sys-9bd5cd6c06da5acf/build-script-build` (exit status: 101)
  --- stdout
  cargo:warning=INFO: build log is located at: `/Users/ken/codes/hs_project_root/test_res/test_2/rust/target/armv7-linux-androideabi/debug/build/dart-sys-46e53f82cb928d91/out/build.log`

  --- stderr
  /Users/ken/.cargo/registry/src/github.com-1ecc6299db9ec823/dart-sys-3.1.12/dart-sdk/include/dart_api.h:24:10: fatal error: 'assert.h' file not found
  thread 'main' panicked at 'ERROR: Failed to generate dart_api_dl binding: ClangDiagnostic("/Users/ken/.cargo/registry/src/github.com-1ecc6299db9ec823/dart-sys-3.1.12/dart-sdk/include/dart_api.h:24:10: fatal error: 'assert.h' file not found\n")', /Users/ken/.cargo/registry/src/github.com-1ecc6299db9ec823/dart-sys-3.1.12/build.rs:666:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2023-02-02T08:10:26Z INFO  cargo_ndk::cli] If the build failed due to a missing target, you can run this command:
[2023-02-02T08:10:26Z INFO  cargo_ndk::cli]
[2023-02-02T08:10:26Z INFO  cargo_ndk::cli]     rustup target install armv7-linux-androideabi

rust on  master [?] is 📦 v0.1.0 via 🦀 v1.65.0 took 14s

To Reproduce
No response
Expected behavior
No response
Generated binding code
No response
OS
No response
Version of flutter_rust_bridge_codegen
No response
Flutter info
No response
Version of clang++
No response
Version of ffigen
No response
Additional context
No response

to me, it's the same bug but different logs:
warning: INFO: build log is located at: `/Users/kingfisher-phuoc/DevTool/AndroidDevTool/Workspace_Flutter/goong_speed_limit/GoongSpeedLimit/native/target/aarch64-linux-android/debug/build/dart-sys-65b67597f37148e9/out/build.log`

error: failed to run custom build command for `dart-sys v3.1.12`

Caused by:
  process didn't exit successfully: `/Users/kingfisher-phuoc/DevTool/AndroidDevTool/Workspace_Flutter/goong_speed_limit/GoongSpeedLimit/native/target/debug/build/dart-sys-5df1e9e54eee9cdb/build-script-build` (exit status: 101)
  --- stdout
  cargo:warning=INFO: build log is located at: `/Users/kingfisher-phuoc/DevTool/AndroidDevTool/Workspace_Flutter/goong_speed_limit/GoongSpeedLimit/native/target/aarch64-linux-android/debug/build/dart-sys-65b67597f37148e9/out/build.log`

  --- stderr
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/cdefs.h:882:2: error: Unsupported architecture
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/machine/_types.h:36:2: error: architecture not supported
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types/_wchar_t.h:34:9: error: unknown type name '__darwin_wchar_t'
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/machine/types.h:39:2: error: architecture not supported
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  thread 'main' panicked at 'ERROR: Failed to generate dart_api_dl binding: ClangDiagnostic("/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/cdefs.h:882:2: error: Unsupported architecture\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/machine/_types.h:36:2: error: architecture not supported\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/_types/_wchar_t.h:34:9: error: unknown type name '__darwin_wchar_t'\n/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/machine/types.h:39:2: error: architecture not supported\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\n")', /Users/kingfisher-phuoc/.cargo/registry/src/github.com-1ecc6299db9ec823/dart-sys-3.1.12/build.rs:666:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
[2023-02-02T15:31:28Z INFO  cargo_ndk::cli] If the build failed due to a missing target, you can run this command:
[2023-02-02T15:31:28Z INFO  cargo_ndk::cli]
[2023-02-02T15:31:28Z INFO  cargo_ndk::cli]     rustup target install aarch64-linux-android

any though?

So, does #1006's solution solve the bug?

no, it does not. I must set flutter_rust_bridge = "=1.61.1" in rust and other stuff in dart.

Hmm cc @rogurotus who implemented the good dart-sys related things, and maybe @gutenfries who updated dart-sys recently

no,  i see #1006  use cargo-ndk = 2.12.5 to solve it.    2.12.5, 2.12.6, 2.12.4  I tried them all, it didn't work.
like @kingfisherphuoc say.
roll back any flutter_rust_bridge_xxx to 1.61.1. include  Cargo.lock

Thanks @kingfisherphuoc , I was having the same problem, but when i rolled back flutter_rust_bridge to 1.61.0
Everything went back to normal

no, i see #1006 use cargo-ndk = 2.12.5 to solve it. 2.12.5, 2.12.6, 2.12.4 I tried them all, it didn't work. like @kingfisherphuoc say. roll back any flutter_rust_bridge_xxx to 1.61.1. include Cargo.lock

Just for context, while solving this issue, i didnt put cargo-ndk = 2.12.5 in my cargo.toml. I simply used the command cargo install cargo-ndk --version 2.12.5
Reference:
https://cjycode.com/flutter_rust_bridge/template/setup_android.html

@SupremeDeity yes, I saw your issues yesterday, and according to your issues I tried cargo install<EMAIL_ADDRESS>@2.12.4 @2.12.6, none of which worked for me. but my other 1.61.1 projects can build success, so I guess it may be the fault of dart-sys.

@SupremeDeity yes, I saw your issues yesterday, and according to your issues I tried cargo install<EMAIL_ADDRESS>@2.12.4 @2.12.6, none of which worked for me. but my other 1.61.1 projects can build success, so I guess it may be the fault of dart-sys.

At this point i dont even know what is happening because i tried using frb 1.61.1 and it wasnt working for me. I had to waste like 2-3 days. Just using ndk 2.12.5 worked

@fzyzcjy:
@rogurotus and I ARE AWARE that certain versions of https://github.com/dart-sys/dart-sys are broken and we are working through different difficulties.
I would ask that you yank any versions of FRB that implement Dart-sys <v4.0.2 and please test and review extensively before actually merging changes concerning the inclusion of Dart-sys.
I believe that v4.0.2 is stable and platform-independent, however I think more extensive testing should be done before merging the use of Dart-sys into FRB again.
please also read: #1023

@gutenfries
Given that the current frb version is broken, I would like to merge the new updates of dart-sys (given that it cannot be worse than broken) to at least master. But yes, according to your advice, I will not release new version after merge, but put it to master and see whether it resolves the bugs here.

#1023 is already merged. Could you please check whether the bugs related to dart-sys is resolved now?

#1023 is already merged. Could you please check whether the bugs related to dart-sys are resolved now?

@fzyzcjy, it has been a few days since #1023 and I haven't found any issues, and there do not appear to be any newly opened issues related to Dart-sys. I think that we (finally lol) have a good build of dart-sys.
In the near-ish future, @rogurotus and/or I (@gutenfries) will open another PR/issue when I have refactored Dart-sys to support 100% opt-in style bindings, as is used in web-sys (https://github.com/rustwasm/wasm-bindgen/tree/main/crates/web-sys).
This should future PR should present no breaking changes, and will result in faster build times and smaller bundles for FRB. :)

(@fzyzcjy) related/duplicate issue: #1022

@WangJiaJun8922  This issue is fixed for me in 1.62.1!

Great job! 🎉

I'm facing this issue when trying to build with FRB 1.64.1. See the "Execute build scripts" step in this job: https://github.com/AstroxNetwork/agent_dart/actions/runs/4229506512/jobs/7345944137
......
   Compiling dart-sys v4.0.2
error: failed to run custom build command for `dart-sys v4.0.2`
Error: failed to run custom build command for `dart-sys v4.0.2`

@AlexV525 Hmm the CI in this repo works well, so maybe it can be solved by mimicking it? https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/.github/workflows/ci.yaml

https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/.github/workflows/ci.yaml

Thanks. The example helps, changing the cargo build to cargo ndk ... build solves this.


[IMPROVEMENT][2.0] Add a confirmation dialog when deleting a property.

Add a confirmation dialog when deleting a property. The user should confirm the deletion of a property in order not to make mistakes.
TODO:

Create a dialog for confirmation of deleting a property.
Show the dialog when the "Delete property" is clicked.

This should be implemented with commit: f33a2eadfebf17a5839ed054aec6304d1c5c705e


DPG, design on HEAD operation

We actually had 2 type of HEAD operation.

isExists type: service return 200/404 and no header. Codegen already handled it to return boolean: true for 200, false for 404.
getResourceInfo type (or think it as "get metadata of the resource", e.g. size of a file): service return 200 with lots of headers representing the "ResourceInfo". Codegen on DPG currently only return a Void for convenience API (the protocol API would return a Response<> which contains the headers.

In the latter scenario, we should have a discussion on the design.
A candidate is:
ResourceInfo getResourceInfo(String resourceName);

The implementation would extract the header and populate the ResourceInfo.

see https://github.com/Azure/azure-sdk-for-java/issues/41015


Feature request: Add response validation

For development, it's very helpful to also have response validation to make sure the schema is up-to-date with the implementation code. Please add an option to perform response validation like existing on swagger-tools.

I just found, that response validation is part of the router logic. So for getting that validation using the router is mandatory. Is there any reason to tie the response validation to the routing? It would be great to have it even when using some different routing mechanism

Greetings!
@robaca @raffrearaUS
Is there a way to turn off the response validation? I think I don't want this feature and I assume there will be also performance overhead.

Greetings!
@robaca @raffrearaUS
Is there a way to turn off the response validation? I think I don't want this feature and I assume there will be also performance overhead.

Some cases, if you are merely relaying external server's responses, then you can't guarantee the response schemas anyways (I am in that situation).

Some cases, if you are merely relaying external server's responses, then you can't guarantee the response schemas anyways (I am in that situation).

Since v3.0.0, the response validation has been taken out from the router logic and can now be disabled separatedly. Check out the documentation.


support initial password

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
current import user and credential like
- username: user
  credentials:
  - type: password
    value: pass
    temporary: true

but this will override the password if already exists
Describe the solution you'd like
support a initialPassword like
- username: user
  credentials:
  - type: password
    value: pass
    temporary: true
    ifNotExists: true # import initial password

Describe alternatives you've considered
none, do not reimport user
Additional context
used terraform provider before, they support the initialPassword field https://github.com/mrparkers/terraform-provider-keycloak/blob/master/docs/resources/user.md

Hi,
thanks for your suggestion. I want to support this but I will verify there are alternatives without add new json keys. Modify the json scheme is quite complex, since i'm using the Keycloak representation classes and I wont copy and patch them.

@jkroepke thanks, a global flag for create credential if not exists is also ok to me.

I figure out, something like:
{
    "users": [
        {
            "username": "user",
            "email"<EMAIL_ADDRESS>            "enabled": true,
            "credentials": [
                {
                    "type": "password",
                    "userLabel": "initial",
                    "value": "start123"
                }
            ]
        }
    ]
}

Could work. userLabel is mainly used for OTP/WebAuthn.
Please take a look at #493 and verify if the documentation is useful.

looks good to me, I'll test this when released.


Cannot restore the original order using Shift + Click

Thanks for fixing #391 and I have discovered a related problem: if you click the table header holding Shift, you cannot really cancel sorting, i.e. the original order is not restored after the Up/Down arrows are gone. It is easy to reproduce the problem with any table, e.g. http://datatables.net/examples/basic_init/table_sorting.html You can see the original order in the HTML panel under the table, and you cannot go back to the original order using Shift + Click.

The bug here is really that you shouldn't be able to shift click to remove sorting. There shouldn't be any option to remove sorting by clicking on the headers.
Probably not what you wanted to hear I guess, but that is what my intention was.

Fixed in the above commit.

Fair enough, I successfully shot myself in the foot :sob:
I fully respect your decision, but it is actually a very nice feature to be able to cancel sorting and restore to the original order. I believe I'm not alone here: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=datatables reset sorting It is too bad that we can never go back after we sort a column.
You also have a plug-in for this task: http://datatables.net/plug-ins/api/fnSortNeutral I will truly appreciate it if this can be a built-in feature.

Yes, there is a plug-in for this, the old fnSortNeutral and the new order.neutral() methods (which will be deployed to the DataTables site soon).
I don't currently have any plans to integrate this ability into the core.

Thanks for the pointer to the new method. I tried order.neutral() and it does not seem to work correctly. You can reproduce the problem by opening an arbitrary example, say, http://datatables.net/examples/basic_init/zero_configuration.html Register the plug-in, and run
$('#example').DataTable().order.neutral().draw();

The order seems to be removed, but you see Jena Gaines is the third person in the table, which actually should be Ashton Cox (looking at the HTML source table).
Back to my request, I think it is 1) super useful to restore the order in the case of a single ordered column, and 2) confusing when we are able to remove the ordering in case of multiple columns but are not able to do so in case of a single column. I wonder what your concerns are.
Prior to this fix, I could at least tell my package users that it was possible to remove ordering using the server-side processing mode, because the original data is stored on the server (in R), and when the order is removed, I can send the original data back. Now you have disabled this feature, I will have to lose my last solution.
Even if we have got a plug-in working correctly, the question is what the best way is to trigger the neutral order: I think Shift + Click is a perfect place to call order.neutral(). It will be awkward to provide a separate button such as Remove Sorting in the UI that does this job.

Thanks for pointing out the error with the order.neutral() plug-in. I've committed the fix](https://github.com/DataTables/Plugins/commit/d1ba8bde45e2ee).
As to why I don't currently thing this should be in the core, removing sorting from the table isn't something that I would find useful int he tables I have created myself, and it is a relatively unusual feature. Having said that, I don't have a problem with including it as such - if it could be done with a little less code that the plug-n uses (I'm not sure why it needs the inner sorting function...) then it is something I would consider.
I'll repoen and mark this as a feature.

Excellent! Tears rolling down my face again :joy:

Just a polite annual ping :smiley:

Hi - thanks for the ping. This isn't something I feel I'm likely to include in the DataTables core at the moment. There is the plug-in method and I will look at adding a way to call external methods such as that for the next major version, but the ability to remove ordering completely from a table isn't a request that comes up very often, and I think could potentially be confusing to some.

I do not see how it could be confusing, but anyway, I think it will be nice to make this configurable, e.g. through an option orderRestore (false by default).

:+1:

:+1:

:+1:

If I select data from MySQL it will be sorted on id. But in DataTables I am not showing the id column as it does not have any value for my clients. When data is arriving at the client it is ordered by id and than if the client is clicking on one of the headers they never will get the original order back again.
That is for my a reason to support the request for a 3 state; up-down-neutral.


Icon Editor not keeping added icons

After building and installing the SVGIconImageList, I added the two components to a project.  Then I tried to Add a new Icon.  I browsed to the file and it looked like it added, as I saw the preview and could adjust the size.  Clicking OK closed the window.  And I tried to set a SVGIconImage component to that index "0".  But nothing showed.  And when I re-opened the editor, the image is gone.
I also tried opening the SVGIconItems and manually adding it.  But I could add the new item, I was unable to paste the text in the SVGText box.  It appears to only allow a very minimal amount of text and the was no way to bring up a larger window to enter or edit the text.
I even tried to add several of the sample Icons and was unsuccessful.

I'll fix this problem in the next release, tomorrow...

Resolved in 1.2 version.

It is working now.  Thank you.