Domain-specific document/workspace uploading

For example, I often want the Developer purpose to understand the context of the project I am working on. It would be great if there was an easier way to do so across multiple files, a la gpt-repository-loader
I think this could expand the "Paste code" option. Perhaps it could be selected during Purpose selection, and the repository could be preloaded with some prompt engineering around it.
Care would need to be taken to avoid going over token limits.
What other similar domains and use-cases would there be to work on specific documents/projects that may be split over many files, and updated during the chat session?

Good insights, as usual.

For example, I often want the Developer purpose to understand the context of the project I am working on. It would be great if there was an easier way to do so across multiple files, a la gpt-repository-loader

Right now what I do, is that I drag the files that are going to be related to my question. E.g. if I need to add a setting to this App, I would ask the question, and drag/drop Settings.tsx, store-settings.ts, ApplicationBar.ts, up to when I fill the context window. This is the way of providing context (I used WebStorm as IDE, drag/drop doesn't work with VSCode, but would work dragging files from any file browser).
Do you find yourself using this process above? ^ It's manual, but it's a primitive way to do "context injection".

What other similar domains and use-cases would there be to work on specific documents/projects that may be split over many files, and updated during the chat session?

I have friends using it for: Research (1+ PDFs about AI for instance), or that use it for writing Biosciences paper, where the context would be PDFs about their field.
Trying to dissect your suggestion, on a small roadmap:

(easy-ish) Token usage indication, to fill up those context windows
Definition of "Context" to be Purpose-related (e.g. code and API docs for developers), to be carried between sessions and injected/referenceable in prompts
Adaptation of the Workspace to add easy context injection in the chats
Development of "Developers", "Scientist" context, and maybe "Generic" context, for collections of URLs (e.g. grabbing documents for the Executive profile)

Wdyt? One limitation of the pure-web interface, is that it won't be able to refresh the files on your local disk (maybe the NodeJS deployment can, but not the browser).

(easy-ish) Token usage indication, to fill up those context windows

this part is done - all the others are not

Definition of "Context" to be Purpose-related (e.g. code and API docs for developers), to be carried between sessions and injected/referenceable in prompts

I'm not sure this is needed. Perhaps we will need different format handlers (e.g. .zip, urls, .tsx, jpg, etc.) that distill the content into a prompt.

Adaptation of the Workspace to add easy context injection in the chats

I would like to hear more about your thoughts on this? I am interpreting as maybe a container for a set of chats with some associated context?
That may be the only abstraction we need to pull this off!

Checking back on this issue. Is the purpose to have something like RAG, or like the documents that can be attached to OpenAI GPTs (as announced last week).
Note: for openAI GPT, they perform "prompt stuffing" with the documents, if not too large. Followed by "pagination" (so I was told by an openai engineer), and if the docs are huge I guess they'll perform embeddings on a per-persona basis.
Have you found different ways of doing this, and what's your latest and greatest thinking on this?


Switch locale prompt's title is not localized

@James-Sangalli pending for your translation strings

PR sent
https://github.com/AlphaWallet/alpha-wallet-android/pull/483


Prototype SchoolRoutes layer

Currently we have the PCT layer which provides good estimates of long-term cycling potential along key corridors, but is a bit out-of-date, does not provide good estimates in residential areas, has low mesh density and has nothing on walking.
The SchoolRoutes project will overcome some of these limitations. It would be great if we can get a demo of how to include the outputs in ATIP's browse tool. Good news: I come with test data, generated by od2net: https://github.com/acteng/netgen/releases/download/v0.1.0/output_pct_govtarget.pmtiles

When you have nationwide results you're happy with, it's quite easy for us to add a layer, sure :)

Ace. On me to generate them!


Ability to set notification timeout

Using the sway window manager with the mako notification daemon.
It would be nice if there was a way to get done notifications to automatically disappear after a certain amount of time.

I have this in mine which IIRC was so the notifications would persist, so try changing the settings:
[app-name=fish]
ignore-timeout=1
default-timeout=0

Have you tried playing around with your mako config?
I have this in mine which IIRC was so the notifications would persist, so try changing the settings:
[app-name=fish]
ignore-timeout=1
default-timeout=0

That worked, thank you!
The options I used:
[app-name=fish]
default-timeout=5000

(At least for my use case I don't need to set ignore-timeout)


fix(dropdown) no longer directly accesses the state

for #163
we no longer access the state directly; know using setState

:+1:


Loading packages not working

First of all, thanks for a great extension!
This example isn't working for me:
format:
  revealjs:
    drop:
      engine: webr
      webr:
        packages:
          - ggplot2
          - dplyr

When I try to make a plot with ggplot2 I get:
Error in ggplot(mtcars, aes(wt, mpg)) : could not find function "ggplot"

Hi, thanks for the kind words!
Does it work if you explicitly load the library with library(ggplot2) before calling the ggplot() command? It may be that the package is installed but not loaded automatically.

Sometimes it is useful to have a package that is installed, but not loaded with library(), which is why that is the default behaviour.
We can add an additional yaml configuration option to also load the package once it has finished installing.

That would be a welcome addition.


"Completed" count broken when using goals

Hi there,
The CSV generator only includes completion count for conversions without any goal. Such is the behavior of Alternative#completed_count when called without an argument. See usage at /lib/split/export.rb:21.
The to_csv method seems like it should return completion counts for all alternatives. If I understand Split correctly, this would mean summing all goals for each alternative and returning that.
I've attached a screenshot demonstrating the discrepancy between what I'm seeing in my dashboard and what the exporter is returning.

Conversion Rate and Z-Scores are also broken when using goals. The former is a trivial fix, but the latter will be more involved. I'm working on it on in my own fork (along with another feature I need) so I'll send a pull request when it's done.

Thanks for looking into this, I've not used this project in a very long time so feel free to make any changes needed to get it working again


README.md: copying docs to README

I wanted to copy the docs over to a README.md file for Github to be able to view it. I've been looking for something like this module for a while and never came across it.  I had just started writing my own when I found this and I'd rather build on what you have than start from scratch.

LGTM. Thanks!
Idk if you are into Python3/asyncio, but I also maintain aiogremlin: https://github.com/davebshow/aiogremlin

I need this all in Python 2.7 because that's what my company uses.  I want to write a mogwai style wrapper around this for use with models and other abstractions.

Got it.
That's fine the community seems to be into that anyway, I will merge whatever PR's you make as long as there are tests. Also, I would like to keep at least the core class, gremlinrestclient really simple with only the one public method. Thanks!

Of course. Everything I do, I plan on wrapping things.  I like the idea of wrapper classes about simple interfaces.

Me too. Sounds great. Looking forward to your contributions.


feat: add type definitions

Fixes #103

nice addition!
but can you run npm run standard and/or npm run standard:fix to remove the ; please.
this project uses standard formatting.

nice addition!
but can you run npm run standard and/or npm run standard:fix to remove the ; please.
this project uses standard formatting.

It looks like my IDE got in the way. Done.

i'll get this merged and released later this morning. nice addition for the community! thanks Edouard!

released as v1.1.0 https://github.com/dotenvx/dotenvx/blob/main/CHANGELOG.md#110


World readable/writable config files, including secrets

A new setup for a first time Bruno user, on Ubuntu 22, Bruno 0.16.2 from AppImage:
$ ls -lg .config/bruno/
total 68
drwx------ 1 scop    20 Sep 29 09:40  Cache
drwx------ 1 scop    12 Sep 29 09:40 'Code Cache'
-rw------- 1 scop 20480 Sep 29 09:40  Cookies
-rw------- 1 scop     0 Sep 29 09:40  Cookies-journal
drwx------ 1 scop    18 Sep 29 09:40  Crashpad
drwx------ 1 scop    58 Sep 29 09:40  DawnCache
drwx------ 1 scop    30 Sep 29 09:40  Dictionaries
drwx------ 1 scop    58 Sep 29 09:40  GPUCache
drwx------ 1 scop    14 Sep 29 09:40 'Local Storage'
-rw------- 1 scop   849 Sep 29 09:56 'Network Persistent State'
-rw------- 1 scop    57 Sep 29 09:40  Preferences
-rw------- 1 scop   203 Sep 29 09:40  TransportSecurity
drwx------ 1 scop    72 Sep 29 09:40  blob_storage
-rw-rw-rw- 1 scop    73 Sep 29 10:00  preferences.json
-rw-rw-rw- 1 scop   266 Sep 29 10:03  secrets.json

The preferences.json and secrets.json files are world readable and world writable. As the other files have 0600 (dirs 0700) perms, that would sound appropriate for these files, too, especially the latter.

Sure.
We are using electron-store underneath to save these files. Need to see how to update the perms
I'd also like to add a note on how secrets get saved in secrets.json, The secret vars get encrypted via OS level encryption (with fall back to AES256 based on unique machine id if OS level encryption was not available). Here is the encryption helper: https://github.com/usebruno/bruno/blob/main/packages/bruno-electron/src/utils/encryption.js


Not working

I've tried reinstalling the plugin, reenabling it, readd intellij on discord settings and also restart IntellIj IDEA multiple times, but the rich presence doesn't seem to be working, it only shows the playing status with no rich presence, I've checked intellij logs and there's nothing related to the plugin except the plugin list.

Could you provide a bit more information so I can actually try to help you?
Useful information includes but is not limited to:
-Plugin Version
-IDE + Version
-OS
-Discord Client (Stable/PTB/Canary), one or more

Plugin version 0.4.0
IntellIj IDEA 2017.3.1
Windows 10
Stable & Canary installed, running canary build 8746

Sorry for the late response, didn't get to it earlier. Anyway, the exact same configuration works perfectly for me.
Do you get any error notification(s)?
If not my next guess would be that you start IntelliJ before Discord but in order to detect the RPC connection Discord has to be started first.

I tried closing both IDEA and Discord, then start up discord and when it was open start IDEA, and it still doesn't work. IDEA doesn't throw any error notifications also.

That is weird. Can you check if other RPC applications work for you?

I used my spotify integration to test it out and it seems that the auto register doesn't get the app added to the games list and the ready callback is never called.

If your Spotify integration also doesn't work it seems like a client issue. You should try reinstalling the client, it helped fixing many different problems in the past.

I've reinstalled discord and it works now, thank you for the help.

I currently am having this issue. Reinstalling discord did not fix the issue. Spotify integration, Lunar client integration, and all other RPC connections function as intended.

I currently am having this issue. Reinstalling discord did not fix the issue. Spotify integration, Lunar client integration, and all other RPC connections function as intended.

Same

any fixes for this?


[WIP]HIVE-24751: Add authorization flag check for KillQueryImpl

What changes were proposed in this pull request?

In this PR, it is proposed to add a check for the authorization config value and provide admin access to hive server user in case authorization is disabled.
Why are the changes needed?

Following changes are required to enable Workload Manager thread to have kill query access in a non authorized environment.
Does this PR introduce any user-facing change?

No
How was this patch tested?

Patch tested manually on Azure HDInsight cluster

@pvargacl, @szlta, @sankarh  Can you please review this PR?


new Instance not refresh properties when save method has fields config.

I have this table...
id: number;
name: string;
age: number;
And this instance...
const info = new Info({ id: 7845, name: "Santi", age: 23 })
If I call
info.save({ fields: ["name", "age"] })
I expect Sequelize brings the new generated id by the DB in the field info.id but instead I get the previous id. However in the DB is persisted the generated id.
I tested with Info.create and works fine, also I have tried Info.reload() after calling .save() but it throws an exception.
Thank you!

https://github.com/sequelize/sequelize/issues/9207


Update dlp-sensitivity-label-as-condition.md

@ybhargav1995 Thanks for your feedback! New issues and pull requests for this content are closed while we update this content to support upcoming feature improvements.


Ortophography for Portugal is not well positioned.

Description
Preface: I didn't know where else to complain about this, so here it is.

So, I was using RapiD to do some quick building marking in my area. However I encountered a problem.
This is how it looks on RapiD:

However, this is the same region on regular iD:

Notice how some buildings are way off like these ones:

Is this a problem with the positioning/scaling of the photographies?
Thank you
Version
1.1.9
What browser are you seeing the problem on? What version are you running?
Firefox 108
Steps to reproduce
Compare RapiD with regular iD on the Northern Portugal region.
The browser URL at the time you encountered the bug
https://mapwith.ai/rapid#background=Maxar-Premium&datasets=fbRoads,msBuildings&disable_features=boundaries&map=19.60/41.07776/-8.30996

My problem is that I feel I can't use RapiD because the buildings will not be right when viewing on OSM. And many buildings will collide with roads and etc drawn from OSM if accepted on RapiD, like the one in the centre of the screenshot (which is wrong anyway, but you get the point).

Yes this makes sense.. We do have issue #270 which would allow users to adjust the alignment of the data layers, maybe that would be an acceptable solution?

Well, any way to adjust the layer with the AI "proposals" relative to the data layer would sort the problem out.
I'll close as a duplicate then.
Duplicates #270.


Save run times

Coverage decreased (-0.09%) to 70.365% when pulling faf3e972d9408fc6a0ad04146eb2432abddb45f0 on mdboom:save-run-times into 1acf9612abc37ec993f62536b94673a08c2cc5cc on spacetelescope:master.

What should the behavior be when not all benchmarks in the file were not run at the same time?
E.g. some benchmarks added later on, and re-run for old commits.

Addition to docs/source/dev.rst could be useful.

Superceded by #428


Update tests to use Hiera 5

migrate Fixtures-Hiera to Hiera 5
sort YAML-Files alphabetically

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

Looks good. Have you used some tool to rewrite the yaml files? I think that the explicit ~ in better than emptiness, and some quoting was changed, but I can live with this. I started to work on a tool that focus on sorting YAML files but keep comments and values the way they are written, maybe you used something i am looking for?

The "Tool" I used is "25 Lines of plain Ruby": read in  the YAML, sort the Keys with the Exception of lookup_options, which come to the Top, and then write out the YAML.
To my Convenience I use Vim with this Command:
for f in $(find data -type f -name '*.yaml'); do ~/bin/hiera-sort.rb "$f" | vim -c "vsp $f" -; done

Too bad, the Comments have to migrated manually.

@cocker-cc just released yaml-sort if you want to give it a try :stuck_out_tongue_winking_eye:

@cocker-cc just released yaml-sort if you want to give it a try stuck_out_tongue_winking_eye

This looks very well implemented.  Is there a Place to discuss it?

This looks very well implemented. Is there a Place to discuss it?

@cocker-cc  I opened issues on the project page ;-)


Carry #23007 :  Say something useful during docker load

Carry #23007 with documentation updates.
Closes #23007
Closes #21660
/cc @thaJeztah

During a docker load there are times when nothing is printed
to the screen, leaving the user with no idea whether something happened.
When something is printed, often its just something like:
1834950e52ce: Loading layer 1.311 MB/1.311 MB
5f70bf18a086: Loading layer 1.024 kB/1.024 kB

which isn't necessarily the same as the image IDs.
This PR will either show:

all of the tags for the image, or
all of the image IDs if there are no tags

Sample output:
$ docker load -i busybox.tar
Loaded image: busybox:latest

$ docker load -i a.tar
Loaded image ID: sha256:47bcc53f74dc94b1920f0b34f6036096526296767650f223433fe65c35f149eb

IOW, show the human-friendly stuff first and then only if there are no tags
default back to the image IDs, so they have something to work with.
For me this this is needed because I have lots of images and after a
recent docker load I had no idea what image I just imported and had a
hard time figuring it out.  This should fix that by telling the user
which images they just imported.
I'll add tests once there's agreement that we want this change.
Signed-off-by: Doug Davis<EMAIL_ADDRESS>

LGTM, thanks!

LGTM just waiting on janky


Python 3.10 support

Proposed changes:

...

Status (please check what you already did):

[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog (please check changelog for instructions)
[ ] reformat files using black (please check Readme for instructions)

I made this library work on python 3.10, and then I tested it on my computer with our project and it worked. I have also back tested 3.7, 3.8, and 3.9 and those all work properly.

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


updated assignment_2.ipynb

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
I updated the RNN model to enhance its text generation capabilities.
What did you learn from the changes you have made?
I discovered that optimizing RNN parameters improved text coherence and relevance.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
n/a
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
I faced challenges with overfitting and maintaining text coherence over long sequences. I overcame these challenges by using dropout regularization and experimenting with different RNN architectures to improve generalization and coherence.
How were these changes tested?
I tested the changes by evaluating text coherence and relevance and comparing performance metrics.
A reference to a related issue in your repository (if applicable)
n/a
Checklist

[x ] I can confirm that my changes are working as intended

Reviewed and marked as completed


Is the website hacked?

Just notice that the website seems broken and with odd links and copy.

It appears so, truly saddening

This is the wrong repository, this is not Voxel.JS. This one is https://github.com/voxel


make monitor shows up in new terminal but code is unreadable

Hi,
i am trying to use the Bluetooth of esp32 and running the code in eclipse IDE which is installed on virtual machine Ubuntu. the code is running fine but when i build target of make monitor in eclipse it runs but after that is shows an unreadable code. please help

yes in menuconfig FLASH SPI is 26 Mhz

Not spi speed, Main XTAL frequency

where is the option in menuconfig to set this XTAL frequency ?

https://esp-idf.readthedocs.io/en/latest/get-started/index.html#monitor

thanks @negativekelvin  code is working now. but the ESP32 bluetooth is not appearing in the andriod phone i am using nRF UART app. do you have any idea ?

@ahmedawais You are likely going to want to create a new issue for a completely different topic or else post a question to the ESP32 forum found here:
https://esp32.com/index.php

@ahmedawais , yes please ask this question on the forum. Provide as many details there as you can.


Added indexes to Pool and Entry entities

These indexes are mainly used in cronjobs. Your MySQL server will approve ;)

Thanks @TomCan!


Скласти таймлайн

Скласти список всіх (важливих) життєвих подій, визначних дат, досягнень, періодів, що дали приємний і неприємний досвід, тощо. В цьому конкретному випадку довгих списків не буває, натомість бувають погано згорнуті, тому пакуємо сюди все підряд, а про "лишні" події можна буде промовчати пізніше. Список повинен бути систематизованим і посортованим в такий спосіб, щоб читач швидко зрозумів "паттерн" і міг легко орієнтуватись в просторі і часі цього резюме.

Experience

Recent

2018

Amongst many fighters of the past was featured in the movie "Ready Player One". Ryu ready always!

2017

United with unknown until then to me Power Rangers to defea resurrected M.Bison.Damn good fighters they are, even not
                knowing karate ways!

2016

In "Street Fighter V" once and for all erased M.Bison from earth and tamed my inner Evil Ryu. Also spent some time on a
                side-project, mini-series "Street Fighter: Resurrection".

2014

Filmed in a martial arts tutorial "Street Fighter: Assassin's Fist""Street Fighter: Assassin's Fist", revealing to audience forgotten art of Ansatsuken.

2012

The gods of intenet concluded me in the animated movie "Wreck-It Ralph", but rewarded me with a good drink for it!

2008

My evil alter ego sneaked out of control and became a boss in "Street Fighter IV".

2006

Borrowed my famous ripped gi to Soki in "Onimusha: Dawn of Dreams", gods informed me he needed that for the battle.

1998

Defeated M. Bison in "Street Fighter Alpha 2", bastard wanted to use my heroic body for his evil intentions, but
                retreated with shame. Also this year I encountered Marvel universe in "Marvel vs. Capcom: Clash of Super Heroes"
                fighter, loyal to my employer, Capcom, of course.

1997

Reunited with Ken, my friend and opponent in "Street Fighter III". Men's friendship works mysteriously. Also helped with
                Arika project "Street Fighter EX".

1996

Took care of villainous Akuma in "Street Fighter Alpha 2". As a freelance on "Super Puzzle Fighter II Turbo""Super Puzzle Fighter II Turbo" tried
                myself in a new genre, puzzle games. Let the wrath of seven heavens come upon these malicious enigmas, never again!

1995

Kept fighting in "Street Fighter Alpha: Warriors' Dreams".

1994

Screened in a movie "Street Fighter", so that the batllesof past would not be forgotten by millenial generation.

1991

Was promoted to "Street Fighter II". Didn't stay there for long, celebrations and office dwelling is not for me!

1987

Started working for Capcom project "Street Fighter". My partner was Ken Masters, the boss'name was Sagat.

PUBLICATIONS

2011

The true and humble story of me under pseudonim Tyler Wilde in an article "The evolution of Ken
                  and Ryu".

2003 – 2018

For 15 years I have published comic books with Udon Entertainment depicting my adventures,
                bitter lessons and great victories.

ACHIEVEMENTS

#1 in "Top 25 Street Fighter Characters" by IGN, who also called me "fancy", "icon" and "a testament to the virtue of simplicity" <g-emoji class="g-emoji" alias="heart" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2764.png">❤</g-emoji>

#2 in "Top 20 Street Fighter Characters of All Time" by GameDaily, same council found me worth of #6 place in "Top 25 Capcom Characters of All Time", which I proudly share with my partner Ken

I was named "5th Most Powerful Street Fighter Character" by Screen Rant-san

#71 in "Top 100 Heroes of All Time" by UGO Networks, also recognized #2 in their list of "Top 50 Street Fighter Characters"

In a survey of 4000 online matches for Super Street Fighter IV, I got to be the most popular character, with 16.6% of players choosing my side

thank you


#3:0

Hi,
      ODatabaseDocument db = new ODatabaseDocumentTx("remote:localhost/New");
      try {
         db.open("admin", "admin");

         db.command(new OCommandSQL("create class Product extends V")).execute();
         db.command(new OCommandSQL("create property Product.data EMBEDDED")).execute();

         db.getMetadata().getSchema().reload();

         ODocument image = new ODocument();
         image.field("url", "images.google.com");
         image.field("size", "80x80");

         ODocument data = new ODocument();
         data.field("image", image);
         data.field("price", 300);

         ODocument product = new ODocument("Product");
         product.field("data", data);
         product.save();
      } finally {
         db.close();
      }

Then from studio:

Why is #3:0 is being created?

You did not define property data.image as EMBEDDED, so a new document is stored in the default cluster #3:0. So it should be:
data.field("image", image, OType.EMBEDDED);

Also note:

You do not need to reload the schema
ODocument offers a fluent / builder style API
You are mixing the Document DB with GraphDB (extends V)

Also note my previous remark about support vs issues :)

Hi @rmuller,
I'm reloading because of this #3480.
I now I'm mixing. It's not advisable?
(This morning I posted my new question on stackoverflow, as you recommended)
Thanks again.

Okay, was not aware of #3480. Thanks! (BTW without reloading, it just works for me, just checked).
Mixing Document and Graph commands in this example is strange imo. I do not have a opinion on being good or bad, you should be aware of it.

@rmuller, I guess you are using PLOCAL. In case of remote engine you need to reload: I have this issue too.
@vitorenesduarte , I recommend creation of classess and properties through API. Reloading of schema can lead to unpredictable errors if you are caching somewhere OClass and OProperty

@PhantomYdn yes, I use plocal. Using remote I have the same issue. Did not know that. Thanks!
I fully agree that defining the meta data by API is far better. I do it that way, and have zero issues.

Hi @PhantomYdn.
My schema is created with a script. I don't need OClass neither OProperty. And to be honest, I haven't take a look to that part of the API. But I will.
Thanks :+1:


Bug: Unable to retrieve applications

Bug description
I am using Portainer to manage my local kubernetes environment.
When I go to the applications page, the following error occurs: "Unable to retrieve applications" and there are no applications shown.
Expected behavior
The Applications should be listed correctly.
Portainer Logs
023/01/18 08:24PM INF portainer/main.go:530 > encryption key file not present | filename=portainer
2023/01/18 08:24PM INF portainer/main.go:549 > proceeding without encryption key
2023/01/18 08:24PM INF boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/01/18 20:24:18 server: Reverse tunnelling enabled
2023/01/18 20:24:18 server: Fingerprint e0:32:84:cf:14:56:78:f0:81:cf:3b:32:b4:d5:1a:55
2023/01/18 20:24:18 server: Listening on <IP_ADDRESS>:8000...
2023/01/18 08:24PM INF portainer/main.go:789 > starting Portainer | build_number=25294 go_version=1.19.3 image_tag=linux-arm64-2.16.2 nodejs_version=18.12.1 version=2.16.2 webpack_version=5.68.0 yarn_version=1.22.19
2023/01/18 08:24PM INF http/server.go:337 > starting HTTPS server | bind_address=:9443
2023/01/18 09:24PM http: TLS handshake error from <IP_ADDRESS>:64351: remote error: tls: unknown certificate
2023/01/18 08:36PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:36PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:37PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:37PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:37PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:38PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:38PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:38PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:38PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:39PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:42PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:42PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/18 08:42PM ERR client/client.go:94 > unexpected status code | status_code=403

Steps to reproduce the issue:

Go to 'Applications'

Technical details:

Portainer version: latest
Docker version (managed by Portainer):
Kubernetes version (managed by Portainer): {Major:"1", Minor:"25", GitVersion:"v1.25.5+k3s2", GitCommit:"de654222cb2c0c21776c32c26505fb684b246a1b", GitTreeState:"clean", BuildDate:"2023-01-11T21:17:53Z", GoVersion:"go1.19.4", Compiler:"gc", Platform:"linux/arm64"}
Platform (windows/linux): linux/ubuntu
Command used to start Portainer: helm install --create-namespace -n portainer portainer portainer/portainer  --set service.type=LoadBalancer --set tls.force=true
Browser: Google Chrome
Use Case: Using Portainer to manage my personal webpages
Have you reviewed our technical documentation and knowledge base? Yes

Additional context
The Chrome devtools show the error "notifications.ts:50 Can't interpret 524288e3" which seems to be caused in
getApplicationsAsync @ applicationsController.js:141.
When searching for that value in the network tab, it is revealed that the value comes from /api/endpoints/1/kubernetes/v1/namespaces/mynamespace/pods
"resources": {
              "limits": {
                "cpu": "500m",
                "memory": "524288e3"
              },
              "requests": {
                "cpu": "500m",
                "memory": "524288e3"
              }
            },

When viewing the memory using kubectl get pod mypod --output=yaml --namespace=mynamespace, the memory limit show as  524288000.

@levno-710
Thank you for the information.  I am working on trying to reproduce this.  When I create an application using the following:
          resources: {
                    "limits": {
                    "cpu": "500m",
                    "memory": "524288000"
                  },
                  "requests": {
                    "cpu": "500m",
                    "memory": "524288000"

My application generates the following:
        resources:
          limits:
            cpu: 500m
            memory: 524288k
          requests:
            cpu: 500m
            memory: 524288k

I am unable to reproduce the e3.   How did you create this Pod?  Is this Helm or Manifest?  Can you share your code?
Thanks!

I created the application using a docker-compose manifest

Where can I find the docker-compose manifest of an deployed application, if I can't view the application through portainer?

@levno-710
You would launch the >_kubectl shell and run the following command kubectl get deploy <deploymentname> -o yaml
Thanks!

Okay, so this seems to be a bug in the generator from docker-compose to kubernetes manifest, because the out out of that contains the following:
resources:
          limits:
            cpu: 500m
            memory: "524288e3"

@levno-710
Can you share your yaml?
Thanks!

Seems like i have something similar going on. No idea how i got there though.
I have tried to deploy a new pihole container that suddenly stopped to work. Deleted the old one, created a new one which did never appear in Portainer as container.
After this i have the same log messages as described by levno-710:
2023/01/22 09:43PM INF portainer/main.go:530 > encryption key file not present | filename=portainer 2023/01/22 09:43PM INF portainer/main.go:549 > proceeding without encryption key  2023/01/22 09:43PM INF boltdb/db.go:124 > loading PortainerDB | filename=portainer.db 2023/01/22 21:43:14 server: Reverse tunnelling enabled 2023/01/22 21:43:14 server: Fingerprint 8c:17:ac:0f:66:b0:bf:9d:13:c9:32:e3:a7:28:51:bd 2023/01/22 21:43:14 server: Listening on <IP_ADDRESS>:8000... 2023/01/22 09:43PM INF portainer/main.go:789 > starting Portainer | build_number=25294 go_version=1.19.3 image_tag=linux-amd64-2.16.2 nodejs_version=18.12.1 version=2.16.2 webpack_version=5.68.0 yarn_version=1.22.19 2023/01/22 09:43PM INF http/server.go:337 > starting HTTPS server | bind_address=:9443 2023/01/22 09:43PM INF http/server.go:322 > starting HTTP server | bind_address=:9000 2023/01/22 09:43PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:43PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:43PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:44PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:45PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:45PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:45PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:46PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:46PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:46PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:47PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:48PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:49PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:51PM ERR client/client.go:94 > unexpected status code | status_code=403 2023/01/22 09:53PM ERR client/client.go:94 > unexpected status code | status_code=403

2023/01/22 09:43PM INF portainer/main.go:530 > encryption key file not present | filename=portainer
2023/01/22 09:43PM INF portainer/main.go:549 > proceeding without encryption key
2023/01/22 09:43PM INF boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/01/22 21:43:14 server: Reverse tunnelling enabled
2023/01/22 21:43:14 server: Fingerprint 8c:17:ac:0f:66:b0:bf:9d:13:c9:32:e3:a7:28:51:bd
2023/01/22 21:43:14 server: Listening on <IP_ADDRESS>:8000...
2023/01/22 09:43PM INF portainer/main.go:789 > starting Portainer | build_number=25294 go_version=1.19.3 image_tag=linux-amd64-2.16.2 nodejs_version=18.12.1 version=2.16.2 webpack_version=5.68.0 yarn_version=1.22.19
2023/01/22 09:43PM INF http/server.go:337 > starting HTTPS server | bind_address=:9443
2023/01/22 09:43PM INF http/server.go:322 > starting HTTP server | bind_address=:9000
2023/01/22 09:43PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:43PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:43PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:44PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:45PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:45PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:45PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:46PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:46PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:46PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:47PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:48PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:49PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:51PM ERR client/client.go:94 > unexpected status code | status_code=403
2023/01/22 09:53PM ERR client/client.go:94 > unexpected status code | status_code=403


Not able to create batchDelegateToSchema with stitching directive SDL

I was following your schema-stitching-handbook and it's a great resource. I was trying to migrate from gateway level stitching to stitching directive SDL but unable to convert batchDelegateToSchema to stitching directive. And after debugging I can see dataloader is throwing error because of the key & value length mismatch. Please check the code below.
// Division schema
const typeDefs = `${stitchingDirectivesTypeDefs}

type Division {
  id: ID
  name: String
  districts: [District]
}

type District {
  id: ID
}

type Query {
  divisions(ids: [ID]): [Division] @merge(
    keyField: "id"
    keyArg: "ids"
  )
  _sdl: String!
}`

// division resolvers

const resolvers = {
  Division: {
    districts: (division) => ([{id: division.id}])
  },
  Query: {
    divisions: async (_, { ids }) => {
      if (!ids) {
        return divisions;
      }
      return divisions.filter(division => ids.includes(division.id))
    },
    _sdl: () => typeDefs
  }
}

// ------------------------------------------------------------

// District schema
const typeDefs = `
${stitchingDirectivesTypeDefs}

type District {
  id: ID
  name: String
  divisionId: ID
  division: Division
}

type Division {
  id: ID
}

type Query {
  districts(ids: [ID]): [District] @merge(
    keyField: "id"
    keyArg: "ids"
  )
  _sdl: String!
}`

const resolvers = {
    District: {
      division: (district) => ({id: district.divisionId})
    },
    Query: {
      districts: async (_, { ids }) => {
        if (!ids) {
          return districts;
        }
        return districts.filter(district => ids.includes(district.divisionId))
      },
      _sdl: () => typeDefs
    }
  }

While districts works as expected divisions query throws error in dataloader - > https://github.com/graphql/dataloader/blob/3e62fbe7d42b7ab1ec54818a1491cb0107dd828a/src/index.js#L330
# throws error
query divisions{
  divisions {
    id
    name
    districts {
      id
      name
      divisionId
    }
  }
}

# works fine
query districts{
  districts {
    id
    name
    division {
      id
      name
    }
  }
}

Resolver working as expected and returning batch response but dataloader unable to map key value together due to mismatch length.
Am I doing it wrong? I would love to hear your suggestion about this. Thanks in advance.
I have a repo where you can reproduce the issue -> https://github.com/fahadbillah/stitching-directive

Not sure what you mean by unable to convert batchDelegateToSchema to stitching directive... there should be no direct conversion. If you are using batchDelegateToSchema somewhere then you are presumably doing something custom, at which time you'll need to retain your custom implementations. Stitching directives only work for boilerplate field mappings, at which time the SDL example is about as robust of a working explanation as I can offer.


translation file

amazing modification! really adds things that should come from the factory. Please add an external translation .json file to change the language of the items and their respective descriptions

This would be a nice quality of life improvement for the future. I will add this option if I have the time to do so. Otherwise I can easily add more translations to the mod in it's current state if they are submitted to me. This is the English translation file, all that needs to be done is change the descriptions for your language and submit the file to me for review so I can include it in the mod.
Submissions can be shared via a pull request or sent to me directly through discord. I am quickest to respond to discord messages.


Build issue on client

static/css/main.fff05fa9.css from Css Minimizer plugin Error: Expected a pseudo-class or pseudo-element.

Issue fixed. There was a space after the css psuedo selector.

Issue fixed. There was a space after the css psuedo selector.


Failed to flash GIRIER Smart Plug with monitoring JR-PM01

Main and MCU Tuya version 1.1.7
Connects to AP but fails to flash.
I have flashed with my setup about 10 other devices.
I attache the logs.
smarthack-psk.log
smarthack-udp.log
smarthack-web.log
smarthack-wifi.log
smarthack-mqtt.log

Unsupported firmware. Duplicate of #483.


Accessing velocity in children-function

Hi Cheng
Firstly, Awesome library! I've been having a lot of fun with it the past few days :smile:
So, I had the idea that the current velocity of a animated property is a nice value to animate specific css-properties with. However I haven't been able to acces the velocity using the current api. (Maybe, I have just overlooked something.)
So I forked react-motion and crudely exposed the velocities in StaggeredMotion's children-function as a second argument and tried driving translateZ and box-shadow with the current velocity
I'm pretty happy with the result, but I feel like my approach is too difficult..
I'd love it to have your opinion on this. :)

Hey!
This is #60. Haven't gotten around doing it yet. I want it too, so that this + gestures gives you the flick animation =)
What's your use-case of velocity in the link? Not sure I see it.
Tentative API is <Motion velocity={currentVelocity => driveVelocity ? changeVelocity(currentVelocity) : currentVelocity} style={...} />

This is #60.

I'm not sure #60 is the same use case as I am describing. I'm only interested in getting the current velocity, not influencing it. But ill look more closely at #60 later this week. :)

What's your use-case of velocity in the link? Not sure I see it.

I use the velocity to drive the translateZ (and also box-shadow offset). So the faster a card moves up, the more forward it comes. And also the faster it moves down the further back it goes.  Because cards moving a greater distance also move faster, all cards naturally move past each other in the z-direction.

This could also lay some useful groundwork for #252.

I'm interested in this as well. My use case is to apply some class on "leaving" elements, but not on "entering" elements. I don't need velocity specifically, but I can see it being an elegant way to get the information I want.


Is it possible to execute http streams using routes

Is it possible to execute http streams using routes when writing custom functions?

I is no clear what do you mean. Please elaborate more on your use case and what you are trying to do in a Q&A discussion.


feat: add support for oSnap

We should add support for oSnap in the UI. oSnap is an integration built by UMA on snapshot.org to execute transactions from Snapshot proposals. It uses UMA as an oracle to confirm onchain if a proposal pass. oSnap is a Safe module that works a bit like a Timelock contract, when a proposal pass, anyone can send a tx to start a challenge period, during the challenge period someone can challenge the proposal result and can stop execution using UMA resolution. You can learn more about it here: https://osnap.xyz
For this integration we need to allow space having oSnap to setup a proposal with execution. The execution is stored in the parameter "plugins" from the proposal. A space can have multiple oSnap Safe modules, on multiple chain. We should allow a proposal to have execution for multiple oSnap module / treasury.
Here is an example of space using oSnap: https://snapshot.org/#/cow.eth
Here is a proposal using oSnap execution: https://snapshot.org/#/cow.eth/proposal/0x7456f84721dbbe164b30324112accf976ff3be397b1957e68abe6953801a1f97
The execution should be visible on the proposal page, similar to how SX-EVM executions are displayed.
With this integration it should also be possible to initiate tx to be populated in a proposal from the treasury page with the send, stake, walletconnect or transfer action.

@bonustrack what features should be supported on SX-UI?

Creating proposal with execution on oSnap
Initiating execution by creating a bond.
Executing transaction.

Anything else?

@Sekhmet That's it yes. There are others features that we will have to add, but it can be done later on within another PRs, these features are:

Add the ability to import and export txs based on Safe format, see how it's done in Snapshot for import: https://x.com/UMAprotocol/status/1780977115652886750
Add ability to setup execution for a space that is not using oSnap (but having treasury setup)
Add support for SafeSnap (this is more complex cuz the format support multiple batch of txs per Safe).

One thing that I didn't mention here and that would require some design is to display the treasury address or execution strategy name within the execution section of the proposal.

@bonustrack I see that it's possible that there are multiple treasuries each having its own execution within single proposal with oSnap.
Should we work on this task first to make it possible to use it? https://github.com/snapshot-labs/sx-monorepo/issues/138
I assume it will be needed.

@Sekhmet I think so

I think it should define not only the network but also the address executing the txs (the treasury)


Fix link to Compatibility notes

For me at least on GitHub the current link doesn't work..

Thanks!


How to get onchange file info of all files individually

Question
Lets say I have a widget with this onChange handler which just logs to the console:
     onChange={(e) => { handleFileUpload(e)}}

    function handleFileUpload(files) {
        console.log(files);
    }

This outputs:
{
  cdnUrl: "https://ucarecdn.com/<uuid>"
  count: 2
  isImage: true
  isStored: true
  name: "2 files"
  size: 521019
  uuid: "<uuid>"
}

How can I get this information for each individual file? I want to get the information after upload of all the files.
Relevant information
@uploadcare/react-widget": "^1.3.8"

I got it with this code:
onFileSelect={(files) => {
                        files.files().forEach(file => {
                            file.then(f => {
                                console.log(f);
                            });
                        });
                    }}


PT Run: Changing font has no effect on the hints

Microsoft PowerToys version
0.77.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
Go to settings and change the font to something really obvious (e.g. 12 or 24), then open PT Run. Observe that the change had no effect on the hints. Type something and observe that the change did effect both query and results. Erase that and observe the 16pt hints again.
✔ Expected Behavior
Hints' font size changes with the rest of the text
❌ Actual Behavior
Hints stay at 16pt
Other Software
No response

I think this is expected, according to the original PR. https://github.com/microsoft/PowerToys/pull/30541
@niels9001 , perhaps changing both is expected?


Appstudio update mvp-test-component

Pipelines as Code configuration proposal

Pipelines as Code CI/mvp-test-component-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
9 seconds
init

✅ Succeeded
21 seconds
clone-repository

✅ Succeeded
3 minutes
build-container

✅ Succeeded
23 seconds
sanity-inspect-image

✅ Succeeded
36 seconds
deprecated-base-image-check

✅ Succeeded
37 seconds
clair-scan

✅ Succeeded
20 seconds
sbom-json-check

✅ Succeeded
2 minutes
clamav-scan

✅ Succeeded
13 seconds
sanity-label-check

✅ Succeeded
13 seconds
sanity-optional-label-check

✅ Succeeded
17 seconds
show-summary


closes #1022

[ ] This patch includes any updated documentation of the proposed changes
[ ] This patch includes tests that verify the proposed changes work as expected

Codecov Report

Merging #1024 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1024      +/-   ##
==========================================
+ Coverage   77.12%   77.13%   +<.01%
==========================================
  Files          52       52
  Lines        5614     5616       +2
==========================================
+ Hits         4330     4332       +2
  Misses       1284     1284

Impacted Files
Coverage Δ

vent/helpers/meta.py
73.82% <100%> (+0.15%)
:arrow_up:

Continue to review full report at Codecov.

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


Find All Reference from requiring file to module file works only if not default CommonJS exports

From @Hoishin on February 28, 2018 4:58

By "default CommonJS exports" I mean module.exports = something, rather than module.exports.foo = something or module.exports = {foo: something}

Might belong to https://github.com/Microsoft/vscode/issues/21507, but I thought it is a bit different.

VSCode Version: 1.20.1
OS Version: macOS High Sierra Version 10.13.3

Steps to Reproduce:

module.exports something

const f = 1234;
module.exports = f;

require it

const f = require('./above-file');
console.log(f);

The f in console.log doesn't show references across files in Find All References. You can find references across files if you Find All References from the module file.

However,

module.exports.foo something

const f = 1234;
module.exports.foo = f;

require it

const {foo} = require('./above-file');
console.log(foo);

The foo in console.log DOES show reference across files in Find All References. You can find references across files if you Find All References from the module file.

Does this issue occur when all extensions are disabled?: Yes
Copied from original issue: Microsoft/vscode#44700

The f in console.log doesn't show references across files in Find All References. You can find references across files if you Find All References from the module file.

The bug here is that find all references shows the f in ./above-file. the f there is a different name, and should not be in the reference set.

The foo in console.log DOES show reference across files in Find All References. You can find references across files if you Find All References from the module file.

this makes sense, since you are referencing a property on the module.

The following test cases crashes currently (with no modifications) because of the failure to find a symbol:
/// <reference path='fourslash.ts'/>

// @allowJs: true

// @Filename: /a.js
////function [|{| "isWriteAccess": true, "isDefinition": true |}x|]() {};
////module.exports = [|x|];

// @Filename: /b.ts
////import [|{| "isWriteAccess": true, "isDefinition": true |}x|] = require("./a");
////[|x|];

const [r0, r1, r2, r3] = test.ranges();
verify.referenceGroups(r2, [/*todo*/]);

Does #23570 fix this? It makes module.exports= an alias, just like export= is.

@sandersn That fixes the second example, but iti looks like const x = require("./a"); is still not an alias. So it will still crash in the first example (given the modification to isNodeImport).

I think fixing #25533 would fix this.

Typescript behaviour on this front is so broken that it needs to be fixed before fixing Javascript:
// @Filename: welove.ts
const g = 4567;
export = g;
// @Filename: app.tsx
import good = require('./welove')
console.log(good/*1*/)

Find-all-refs at /*1*/ finds all four references, which is arguable, since g and good have different names. Rename at /*1*/ renames all four references, which seems bad since g and good are not the same name, and welove.ts is likely a d.ts where renaming is going to cause a break.
// @Filename: welove.ts
const g = 4567;
export const good = g;
// @Filename: app.tsx
import { good } from './welove'
console.log(good/*1*/)

Here, find-all-refs at (1) finds the last 3 lines, which seems fine. But it does even with the import is import { good as go }, which seems wrong in the same way as the export= example. Rename is just broken. Renaming at (1) renames the last line, renames the import to import { good as go } and then incorrectly renames export const go = g.
This may be fixed in some version of VS but it's broken in VS Code and emacs. I'll see if there's an existing bug.


Confirm password field on register

Confirm password should be there to make sure the user doesn't enter a typo in their password
Describe the solution you'd like

Check if the given password is the same as the 'confirmed password' upon onSubmit form
and if it is then just trigger the dispatch and if not then render set message error that it is not the same.

Just added this. I will close the issue.


SumDecimal always returns nullable=true

Describe the bug
SumDecimal currently hardcodes nullable=true, and this is correct when ANSI mode is not enabled, because overflows cause null values. However, in ANSI mode, overflows cause exceptions. If the input is non-nullable then SumDecimal should probably also be non-nullable. The same is true for AvgDecimal.
Steps to reproduce
No response
Expected behavior
No response
Additional context
No response

I will be working on this.


Build plugins using Flutter assemble for Android

Context: https://github.com/flutter/flutter/issues/36842#issuecomment-516220880
The alternative is to build the plugins as AAR in the tool using Flutter assemble before calling Gradle.
The downside is that folks using include_flutter.grovy in add to app scenarios need to run the Flutter tool before building the host app.
Proposal to remove include_flutter.grovy: flutter.dev/go/remove-include-flutter-groovy.
@xster suggested that this can be addressed in a IntelliJ plugin. The plugin would provide a button that calls the Flutter tool before calling Gradle. If this is the case, let's answer:

How does the IntellJ plugin knows about the location of Flutter module. (This is require to build the module's plugins)
How does it know about flavors and custom build types?

cc @creativecreatorormaybenot

Will I have to run flutter config --enable-build-plugin-as-aar manually again or will you be able update that via the PR when you do manage to build during Flutter assemble?

yeah, the flag would need to be re-enabled manually. Once the feature is stable, then this will happen automatically even if you turned it off before.

the Android project doesn't know the Flutter source location but it has to know the Flutter aar location. Can we leave a breadcrumb back from the maven repo back to the Flutter project root?

Splitting concerns from sync meeting: from the add to app perspective, the work remaining is documenting that build aar and include_flutter.groovy works with androidx via a flag.


how to setting Monitor resources

how to setting Monitor resources ?
monitor:
  image: oliver006/redis_exporter:v1.13.1

  resources:
    requests:
      cpu: 1
      memory: 1Gi
    limits:
      cpu: 1
      memory: 1Gi

how to setting Monitor resources ?
monitor:
  image: oliver006/redis_exporter:v1.13.1

  resources:
    requests:
      cpu: 1
      memory: 1Gi
    limits:
      cpu: 1
      memory: 1Gi

this is mine


Need help in latest version 1.8.20 is not showing latest changes from master

Latest package 1.8.20 https://www.npmjs.com/package/dicom-parser is not reflecting changes from index.d.ts
Latest package 1.8.20 shows file index.d.ts line 104 as
constructor(byteArrayParser: ByteArrayParser, byteArray: ByteArray, position: number): ByteStream;
However on master branch https://github.com/cornerstonejs/dicomParser/blob/master/index.d.ts#L104
we have constructor(byteArrayParser: ByteArrayParser, byteArray: ByteArray, position: number);
is there plan to publish this change ? if yes when that will be available in npm ?
on higher version of node 18 & typescript , its not working & getting error Error: node_modules/dicom-parser/index.d.ts:104:92 - error TS1093: Type annotation cannot appear on a constructor declaration.

+1

+1

Until fixed: https://www.npmjs.com/package/@knopkem/dicom-parser

Should be fixed in latest release (1.8.21). Please reopen if that isn't the case. Thanks!


Update changelog

A few updates:

rst style
renamed verbs to use added/enhanced/updated/fixed
reorder things: added first, fixed last
added introduction sentence

If you want I can add the silx icon with a black or white background for a few second at the beginning of the video / gif. Not sure this is very needed and relevant but as you like...


Require that hop_to_executor eventually actually takes an executor

Currently the SIL hop_to_executor instruction can take either a Builtin.Executor or an actor reference.  The runtime operation requires an executor, and custom executors mean that the distinction is important.  We want to be able to optimize executor hops, including eliminating the actor-to-executor derivation, but we also want to be able to statically optimize the executor lowerings that we actually have to do.
Thread this needle by doing the lowering in a pass that runs after hop_to_executor optimization but before IRGen.

@swift-ci Please test

Build failed
Swift Test OS X Platform
Git Sha - 2a1e54c8ce428e2bd38adbb7aeacd99845e1529f

Build failed
Swift Test Linux Platform
Git Sha - 2a1e54c8ce428e2bd38adbb7aeacd99845e1529f

@swift-ci please smoke test

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - 4536ef1a49493a40d3a64e92658a12b3ee91ccf3

Build failed
Swift Test OS X Platform
Git Sha - 4536ef1a49493a40d3a64e92658a12b3ee91ccf3

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - 4f6f8b337706ed9f8d4d0dafd20b11e5d08dc20f

@swift-ci Please smoke test Linux

@swift-ci Please test Linux

@eeckstein Please let me know what you think about the new implementation.  We should be able to use this for CSE as well, although I didn't try.

Build failed
Swift Test Linux Platform
Git Sha - 4f6f8b337706ed9f8d4d0dafd20b11e5d08dc20f

@swift-ci Please test Linux

Build failed
Swift Test Linux Platform
Git Sha - 4f6f8b337706ed9f8d4d0dafd20b11e5d08dc20f

@swift-ci Please test Linux


Goes to "armed_home" at restart of Home Assistant

Hello there....
Firstly let me thank you for your great work on Alarmo, I am very impressed and fond of it.
Sadly I am facing some troubles and undesirable behaviour. When I restart or reboot my Home Assistant, the alarm is not returning to the previous state "disarmed", but to "armed_home". This makes the alarm trigger shortly after - leaving me a very unpopular husband and father.
Here is my log:
2021-01-04 20:01:42 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] async_added_to_hass 2021-01-04 20:01:43 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] Initial state is disarmed 2021-01-04 20:01:43 DEBUG (MainThread) [custom_components.alarmo.automations] state is updated from None to disarmed 2021-01-04 20:01:43 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] alarm_arm_home 2021-01-04 20:01:43 DEBUG (MainThread) [custom_components.alarmo.automations] state is updated from disarmed to armed_home
Could you please investigate in this matter or guide me in assisting you in further debugging?
Kind regards
Jacob

Hello Jacob,
Thanks for liking Alarmo!
I'm planning to add more stuff over time, so hopefully you will like it more even.
Thanks for enabling the debug logging, it makes it much easier to help you.
This line actually tells you what state Alarmo starts in:

20:01:43 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] Initial state is disarmed 2021-01-04 20:01:43

Alarmo detected that before restarting HA, the alarm was in disarmed, so it will return to that state.
(For armed state it would also work, but first Alarmo waits for all sensors to be initalized).
What happens after is this:

2021-01-04 20:01:43 DEBUG (MainThread) [custom_components.alarmo.automations] state is updated from None to disarmed
2021-01-04 20:01:43 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] alarm_arm_home

So Alarmo updates its state to disarmed and not even a second later it receives the command alarm_arm_home.
The command alarm_arm_home is triggered by an external source.
Either:

You have an automation that sends this command
You use the MQTT interface and the command is sent here (or the command is a retained payload)

In other words, the problems are caused by your own configuration, I cannot help you investigate further.
Sadly I don't have any debug logging in place to be able to tell you it's coming from MQTT, but I will add this for the future.

Hello Jacob,
Thanks for liking Alarmo!
I'm planning to add more stuff over time, so hopefully you will like it more even.
Thanks for enabling the debug logging, it makes it much easier to help you.
This line actually tells you what state Alarmo starts in:

20:01:43 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] Initial state is disarmed 2021-01-04 20:01:43

Alarmo detected that before restarting HA, the alarm was in disarmed, so it will return to that state.
(For armed state it would also work, but first Alarmo waits for all sensors to be initalized).
What happens after is this:

2021-01-04 20:01:43 DEBUG (MainThread) [custom_components.alarmo.automations] state is updated from None to disarmed
2021-01-04 20:01:43 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] alarm_arm_home

So Alarmo updates its state to disarmed and not even a second later it receives the command alarm_arm_home.
The command alarm_arm_home is triggered by an external source.
Either:

You have an automation that sends this command
You use the MQTT interface and the command is sent here (or the command is a retained payload)

In other words, the problems are caused by your own configuration, I cannot help you investigate further.
Sadly I don't have any debug logging in place to be able to tell you it's coming from MQTT, but I will add this for the future.

Hi Niels
I will investigate in the MQTT retain matter - this could be the culprit, and I will return with more info.
/Jacob

Hi Niels
I will investigate in the MQTT retain matter - this could be the culprit, and I will return with more info.
/Jacob

Solved....
An old MQTT state with retain: true was the culprit.
I have an 433 MHz keypad, which originally did have the retain switch to true. When I discovered the issue, I changed the config to false.... But I didn't send a new state, therefore the old state was stille firing a "ARM_HOME".
Problem solved. Thanks Niels.

Solved....
An old MQTT state with retain: true was the culprit.
I have an 433 MHz keypad, which originally did have the retain switch to true. When I discovered the issue, I changed the config to false.... But I didn't send a new state, therefore the old state was stille firing a "ARM_HOME".
Problem solved. Thanks Niels.


[Feature Request] Order Form Description Field

Make the description form field accept HTML code and also position it on top of the field option instead of inline.

This is implemented in Tide theme.

HTML code shouldn't be allowed due to xxs attacks by hackers ...

Hmm... That's a point.

HTML code shouldn't be allowed due to xxs attacks by hackers ...

Agreed

Markdown support would be an idea imo

Yeah, markdowns will be great to have.


linux: Add perf_event_open(2)

There is no glibc wrapper for this system call; it must be called as
syscall(__NR_perf_event_open, ...).
The associated perf_event_attr struct has several unions and one
set of bitfields. These are currently represented as padding.

There's a niggle with this in that the definition of struct perf_event_attr has changed a few times over the years. I think it's grown each time, but I'm not completely sure. I haven't done the archaeology to figure it out.

Ah I seem to have some of the syscall numbers wrong. The main discussion points are independent of that though. I'll try and fix them up tomorrow!

Hm if this is changing, is it ready for use in userspace libraries? Maybe this better belongs in a downstream crate?

Hm if this is changing, is it ready for use in userspace libraries? Maybe this better belongs in a downstream crate?

I'm still taking a look but I believe the changes are that it has grown a few times. This is the purpose of the size field:
       size   The size of the perf_event_attr structure  for  forward/backward
              compatibility.  Set this using sizeof(struct perf_event_attr) to
              allow the kernel to see the struct size at the time of  compila‐
              tion.

              The  related  define  PERF_ATTR_SIZE_VER0 is set to 64; this was
              the size of the first published struct.  PERF_ATTR_SIZE_VER1  is
              72,  corresponding  to  the  addition  of  breakpoints  in Linux
              2.6.33.  PERF_ATTR_SIZE_VER2 is 80 corresponding to the addition
              of  branch sampling in Linux 3.4.  PERF_ATR_SIZE_VER3 is 96 cor‐
              responding  to  the  addition  of  sample_regs_user   and   sam‐
              ple_stack_user in Linux 3.7.

The struct is passed to the kernel by pointer. As such, I believe it's safe to use the most recent version available; users will fill size in with mem::size_of::<perf_event_open>().
Thoughts?

Oh, and I'm new to this perf business so I can't really answer detailed questions on its usage. But I am trying to wite some Rust that interfaces with it.

Hm ok given the instability of this, the lack of unions, and the lack of its presence in glibc at all, I'm tempted to say that we may not want to add this to libc now? Although this could in theory house all type definitions forever, we should likely limit it to just that which is contained in glibc itself.

Yeah I'd be fine adding syscall numbers!

The reasoning behind leaving the struct out makes a lot of sense to me. I've revised this to include only the (hopefully correct this time!) syscall numbers.

Thanks!


Issue 690

remove eviction prioritizer feature
make on-heap only execute veto predicate during insertion/update and not during eviction

Note: there's an extra optimization/rationalization we could do: with this patch each store has its own veto/no-veto state so when a mapping is faulted from the authority to the caching tier, the veto has to be reprocessed. Maybe we could make veto a common ValueHolder property so that its state is simply copied when mappings are copied to the caching tier.

@lorban Can you ask your question on issue #690 ?

After discussions with @lorban and @chrisdennis we decided to merge this but keep working on the issue to improve things further.


Fix documentation URL in default Deliverfile

Checklist

[ ] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[ ] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[ ] I've updated the documentation if necessary.

Motivation and Context

Description

Awesome, nice catch, thanks 👍

There might be other default files with this problem but I don't know exactly what tools have default files.


translation functions failing

strange - from Travis:
* checking tests ...
  Running 'testthat.R'
Warning message:
running command '"c:/R/bin/x64/R" CMD BATCH --vanilla  "testthat.R" "testthat.Rout"' had status 1
 ERROR
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:
  1: curatedMetagenomicData(oral, dryrun = FALSE, counts = TRUE) at testthat/test-curatedMetagenomicData.R:20
  2: stop("requested datasets do not match any available datasets.")

  testthat results ================================================================
  OK: 20 SKIPPED: 0 FAILED: 7
  1. Error: ExpressionSet2MRexperiment works (@test-ExpressionSet2MRexperiment.R#5)
  2. Error: ExpressionSet2phyloseq returns phyloseq class object (@test-ExpressionSet2phyloseq.R#5)
  3. Error: ExpressionSet2phyloseq works with phylogenetictree = TRUE (@test-ExpressionSet2phyloseq.R#14)
  4. Error: ExpressionSet2phyloseq returns the same numerical data with simplify=TRUE/FALSE (@test-ExpressionSet2phyloseq.R#24)
  5. Failure: inst/extdata/versions.txt provides valid versions (@test-cmdValidVersions.R#5)
  6. Failure: curatedMetagenomicData works (@test-curatedMetagenomicData.R#10)
  7. Error: curatedMetagenomicData works (@test-curatedMetagenomicData.R#20)

  Error: testthat unit tests failed
  Execution halted
* DONE

The reason is that testing is now for some reason being done against Bioc 3.5, in spite of specification of bioc-devel in travis.yml, and the dataset used is not present in release. It's not actually a problem with curatedMetagenomicData.

This was corrected with a invalidation of travis cache some time ago! Closing now


can't find templates and this.options.templates not a function errors...cannot fix.

Hey, I'm having 2 serious issues that are completely stopping me from getting this calendar up and running.
First:
I get this error Uncaught TypeError: this.options.templates[this.options.view] is not a function which I can't seem to find a fix for, and not even sure how to fix this one.
the second error seems like it shouldn't be that big of an issue...yet it really is.
GET http://localhost:3000/tmpls/month.html 404 (Not Found)
No matter what I do or where I move these files to be accessible, they can never seem to be found.  Everything needed is loaded in and accessible (jquery, bootstrap, underscore, moment).  Any and all help will be greatly appreciated!  Thank you!!!
Javascript:
$(document).ready ->
  calendar = $('#calendar').calendar(
    tmpl_path: '/tmpls/'
    events_source: ->
      [
        {
          "id": 293,
          "title": "Event 1",
          "url": "http://example.com",
          "class": "event-important",
          "start":<PHONE_NUMBER>8000,
          "end":<PHONE_NUMBER>000
        }
      ]
    )

HTML:
- content_for :head do
  = render('layouts/admin/head')

h1 calendar
#calendar

Both errors are the same...
The error is that tmpls/month.html, and the other templates, seems to be unaccesible.
So, first, check that if you go to http://localhost:3000/tmpls/month.html you see the month template.
If not, you need to set accesible, or knows the path for access month! Then, you can configure the path var and fix that error!

@eleazan I figured that.  I've since done a whole bunch with configuring bower for Rails and setting up the asset pipeline, and have all my bower files in my vendor files, but have no idea how to get those tmpls renderable.  Any idea on how to make them public/findable in a rails app?  Thank you!

i never use rails...
you are using RoR? According to http://www.tutorialspoint.com/ruby-on-rails/rails-directory-structure.htm should be on public/...

@eleazan Thank you so much!!    Thank you again.

You are welcome!

@thebkbuffalo So i was in this exact same situation. Fixed it as mentioned above. However, I cannot get any data to load into the calendar. Everything else seems to be working. I can moved through all the pages, etc.


Test PR for CLA Ping

@ConnorDoyle I changed the CLA ping frequency. The merge-bot should ping once every 2 days now. I also reduced the frequency at which the merge-bot looks at the PRs to 1 hour (from 10 mins). This PR is just to test if everything works properly. I will delete it after couple of days.

Closing this PR as everything is working as expected.


[Bug] StreamX Webapp address not open

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
1、streamx  must set 【StreamX Webapp address】  at   Setting/System Setting/StreamX Webapp address .
if i set   <IP_ADDRESS>：9000，   i  look  Log  find  this port link to   url=<IP_ADDRESS>:9000/metrics/report
2、but this port（9000） not open？   how to open  it. i  foud  source also cant find it。  so   i think  it  need open it by myself。
3、i want to know  how to  open！！！  Please .
StreamX Version
1.2.2
Java Version
1.8
Flink Version
1.14.4
Scala Version of Flink
2.11
Error Exception
flink  found no protocol  XXXX:port/metrics/report

Screenshots

Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

【StreamX Webapp address】   must  add  http://,       port = streamx port
right  ->   http://host:port(streamx_port)
bad -> host:port(auto_port)


Please add Top Holdings for ETFs

For instance for https://finance.yahoo.com/quote/QQQ/:

Apple Inc | AAPL | 11.00%
Microsoft Corp | MSFT | 9.82%
Amazon.com Inc | AMZN | 8.35%
Facebook Inc A | FB | 4.01%
Facebook Inc Class A | FB | 4.01%
Tesla Inc | TSLA | 3.90%
Alphabet Inc Class C | GOOG | 3.90%
NVIDIA Corp | NVDA | 3.65%
Alphabet Inc A | GOOGL | 3.53%
Alphabet Inc Class A | GOOGL | 3.53%

Update: I'll add a pull request which does that - the data is already there, just need to update yfinance
I'm taking this one

data already contains this:
`def get_json(url, proxy=None, session=None):
session = session or _requests
html = session.get(url=url, proxies=proxy, headers=user_agent_headers).text

if "QuoteSummaryStore" not in html:
    html = session.get(url=url, proxies=proxy).text
    if "QuoteSummaryStore" not in html:
        return {}

json_str = html.split('root.App.main =')[1].split(
    '(this)')[0].split(';\n}')[0].strip()
data = _json.loads(json_str)[
    'context']['dispatcher']['stores']['QuoteSummaryStore']

`

Done:
Adding
       if 'topHoldings' in data:             self._info.update(data['topHoldings'])
Within base.py line 373, creating a pull request now

Pull request created:
https://github.com/ranaroussi/yfinance/pull/828
Please merge it
Thanks


[TESTS] Session tests for php 7.2

Tests are throwing the following error in multiple places, and should not be:

ErrorException: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

@jim-parry I believe I found the 2 locations where it's doing this:

the DotEnv tests is writing to the env/putenv/etc and that seems to be causing it
the SessionTest files are starting the session.

Since these are things that we definitely need to test, I'm not sure how best to tackle this. Too bad it's not just a warning, so we could turn warnings off...

Ok. I will see what I can do refactoring these, perhaps to use VFSStream (the first) and to destroy any session as part of teardown (second one).

Session testing was already on my list to revisit :)

I think session_write_close() when session_status() == PHP_SESSION_ACTIVE can be used for it like I did at zend-session https://github.com/zendframework/zend-session/pull/107

Ooo - good thought. We'll try that shortly. Thanks @samsonasik


Update NVBench for 22.02 to be the latest version

Now that NVBench has correct the previous CMake issues, we can move to a newer version.

@gpucibot merge


prefers-reduced-motion not set to reduce results in screenshots being taken mid-animation.

Hello!
I'm trying to take a screenshot of a page that has a fade-in animation on render.
I played around with CSS resets, but I couldn't reach a satisfactory result. The screenshot is being taken mid-animation:

I was finally able to take a good screenshot by emulating prefers-reduced-motion="reduce" on the Puppeteer page object:

//<EMAIL_ADDRESS>
  app.post("/screenshot", express.json(), async (req, res) => {
    try {
      // Take a screenshot of the page
      const element = await page.$("#ember-testing");
      if (!element) {
        throw new Error("No #ember-testing element found");
      }
      const { name, ...options } = req.body;

+      page.emulateMediaFeatures([
+        { name: "prefers-reduced-motion", value: "reduce" },
+      ]);

      await argosScreenshot(page, name, {
        element,
        ...options,
      });
      res.sendStatus(200);
    } catch (error) {
      res.send(error.stack);
      console.error(error);
      res.sendStatus(500);
    }
  });

In the snippet, prefers-reduce-motion is set to reduce by default, which seems consistent with the fact that animations are not something that you might want to do visual regression testing on.
I think this could also be an option, but it gets filtered out somewhere down the line. I believe by the TypeScript configuration since  it's not part of PuppeteerArgosScreenshotOptions.

@nicolasgasco I will just add it, it's not a big deal for now. If someone complains about it I would create an option to disable this behaviour.


Set-Up / Configuration of Extension

I tried to use your plugin in a mixed Kotlin Java Maven project, without any success.  (I have installed fwcd Kotlin extension as well as Microsofts extension pack for Java)

Hey @FelixGSE
It should work out of the box, but it has not been thoroughly tested, especially with bigger projects. Could you maybe elaborate on what doesn't work for you? Is it only the mixed Kotlin Java stuff that fails?
Also, could you maybe share the logs for both extensions? They are in the output tab under "Kotlin" and "Language Support for Java".
Other than that, I suppose you could also share a small project that doesn't work for you and I could try to repro it on my end.

Here is a small sample of importing Kotlin classes from Java.
https://github.com/imudak/small-sample-for-vscode-java-kotlin/tree/master/src/main/java/org/example
I have installed the vscode-java-kotlin extension, but I am getting a "cannot be resolved" error, as shown in the image.

Gradle build and execution are successful. Perhaps it would be better to use build.gradle.kts instead of build.gradle.

Hey @imudak
Thanks for the sample! Can you try putting the Common.kt file under src/main/kotlin/org/example? That seems to fix it on my end.

Thank you for your quick reply, @daplf.
I tried moving to the Kotlin directory, but the error still occurred in my environment.

Not sure what the issue could be then since it works on my end 🤔

I guess one thing I noticed on your screenshot is that your path to the file starts with kotlin-java and mine starts with src. Perhaps that means you opened the parent directory of your project instead of the project itself? As far as I recall, the kotlin extension has some issues with projects inside sub-directories.

Thank you. It is now working on my end as well.
It seems to be in the following state:
a) Opening the project as a folder → It works
b) Opening with a workspace file → It does not work
As you mentioned, it might be that the Kotlin extension is not finding the Kotlin files when in workspace mode.
The following are the logs for each terminal.
For the one opened in the workspace, "Update project kotlin-java" is not running.
a) Open folder
a24eae26 Validating Gradle wrapper checksum... [Done]
2276157c Importing Gradle project(s) [Done]
b222897e Synchronizing projects [Done]
99395ee9 Synchronizing projects [Done]
4b83850c Building [Done]
c550dfb6 Validate documents [Done]
fa6d7b72 Background task [Done]
e5bc66b7 Publish Diagnostics [Done]
3b592e2e Validate documents [Done]
1565f22f Publish Diagnostics [Done]
ae56f2a6 Update project kotlin-java [Done]
93e11b45 Building [Done]
c98f8769 Building [Done]
25d558c1 Register Watchers [Done]
f17e5fab Building [Done]

b) Open workspace:
8c99d1d1 Build Server Task [Done]
d07e3c66 Initialize Workspace [Done]
db18e046 Synchronizing projects [Done]
28c36988 Synchronizing projects [Done]
64cbd969 Validate documents [Done]
d430ed29 Publish Diagnostics [Done]
760ae74e Background task [Done]
7adf125c Validate documents [Done]
3259abbf Building [Done]
9517a9f0 Build Server Task [Done]
822c922f Publish Diagnostics [Done]
fdd42fe1 Building [Done]

Hi! I tried the example provided but it seems that when I try to follow the code of Common.version it redirects me to the .class file instead of the .kt file. Is that expected?
Also, I was not able to do the other way around from the kt file look who is using the variable version
I want to bring my iPad instead of my computer to my vacations and if this is working I would be able to D:

Hey @enzobonggio

Hi! I tried the example provided but it seems that when I try to follow the code of Common.version it redirects me to the .class file instead of the .kt file. Is that expected?

This is expected, yes. There is a separate issue tracking this: https://github.com/daplf/vscode-java-kotlin/issues/3

Also, I was not able to do the other way around from the kt file look who is using the variable version

Do you mean finding the uses of a Kotlin variable? Regardless of whether or not those uses are in Kotlin or Java, I believe this should be handled by the Kotlin Language Server, since KLS is aware of the Java sources (and since KLS "owns" the variable it should be able to find them). If this doesn't work, it's most likely an issue in KLS and not on this extension. It might not actually be supported at all yet in KLS (I know those features don't cover every case yet).
If you mean the other way around (i.e., finding the uses of a Java variable), it's a similar issue to the one for definitions. We would need to find a way to let the Java Language Server know about our Kotlin sources.

Hello! I'm trying to get this working and running into the same issue. Are you still interested in working on this? I can't use Intellij for several reasons 😢.

Hello! I'm trying to get this working and running into the same issue. Are you still interested in working on this? I can't use Intellij for several reasons 😢.

Which issue are you facing? There are a few things reported in this thread, so perhaps you can clarify.
I am not really pursuing this project at the moment because there's not that much interest in it (or in the Kotlin Language Server itself, for that matter).

Thank you so much for responding! Sorry for the delay, it is a busy time at work. The issue I was having was the first reported issue with tights just not being resolved. I attempted the suggested workaround to open as a folder and not as a workspace and it worked this time!
Now whenever I open a file the errors are reappearing in the problems window. So sadly, it shows any namespace from the kotlin directory not being resolved. Do you have any ideas? I can give you more details tomorrow after work. Really appreciate your work on this!!


Add Ethereum Icon to Associate with Solidity Files

It would be great if the extension added the icon file association for Solidity files instead of the default icon. The extension icon would work great as a file icon within VS Code

Looking into it

There is now :)

I did not do anything btw..

Haha I think the Microsoft team must of added it to the icon pack or something :man_shrugging:

Yes, much better that way !


fixed missing return value

JsonSerializable::jsonSerialize is defined to have "mixed" as return type, will throw errors in php 8.1 if you not correctly define that return type
Error in php 8.1 example: Declaration of xxx::jsonSerialize() should be compatible with xxx::jsonSerialize(): mixed

@brainfoolong while your fix is correct for PHP 8-8.1 it's wrong for PHP < 8 as far as mixed typehint was introduced in PHP 8 and thus overriding this method in PHP < 8 will produce false positive warnings. To avoid this please use #[LanguageLevelTypeAware] attribute like
#[LanguageLevelTypeAware(['8.1'=>'mixed'], default: '')]
public function jsonSerialize();

Thanks for the hint. Changed it.

Sorry, i don't have a full blown development environment for this stubs. I can't fix more than this, it was a quick change with just a texteditor. Should i close this when i can't resolve it properly?

Fixed in other PR


add support for prefixed signature

Thanks @bjrmatos , this is great!
can I ask you to make one change? I think every function that gets the new prefix parameter should get it without the colon and add it inside. The reason is that in some context a "prefix" variable is used without the colon and it can be confusing if we will ever need to query it.
Also some of the functions that now get the prefix argument are extension point so some ppl may implemented them without it. So just make sure it works if prefix is not specified.

You're right... updated :)


Sample Projects: Download Failed

Implement download exception when user try do download sample codes

Added PyBridge Exception pattern when user try to download sample codes (Implemented in PyBridge 2.0)


Potential Bug in jax.grad() and jax.jacrev()

Description
Hi, when using jax.vmap to decorate jax.grad() or using jax.jacrev to calculate the Jacobian of a loss function which includes LayerNorm, it seems like the first returned gradient is 0, which is not expected. Could you please help me with this? Thank you.
Two examples that should be equivalent and both had the described problems are as follows:
(1)
import flax.linen as nn

rng = jax.random.PRNGKey(0)

X = jax.random.normal(rng, (2, 8))             # the batch dim is 2, which has the problem
target = jax.random.normal(rng, (2, 2))     # the batch dim is 2, which has the problem

A = jax.random.normal(rng, (4, 2))
W1_init = jax.random.normal(rng, (8, 16))
W2_init = jax.random.normal(rng, (16, 4))

LN = nn.LayerNorm(use_bias=False)
LN_params = LN.init(rng, jnp.ones((1, 2)))['params']

def loss(W1, W2, LN_params, A, X, target):
    XWA = X @ W1 @ W2 @ A
    LN_out = LN.apply({"params": LN_params}, XWA)
    l = 0.5 * ((LN_out - target) ** 2).sum()
    return l

grad_fn = jax.value_and_grad(loss, argnums=[0,1])

l1, grads = vmap(partial(grad_fn, W1_init, W2_init, LN_params, A))(X.reshape(-1,1,8), target.reshape(-1,1,2))

grad_w1, grad_w2 = grads[0], grads[1]

print(grad_w1[0])  # all 0 !!!
print(grad_w2[0])  # all 0 !!!

In both (1) and (2), grad_w2's shape is [2, 16, 4], but both grad_w1[0] and grad_w2[0] is all 0s, which is not expected. If in these examples I set the first dimension of X and target to be 1 or larger than 2, this problem will not appear.
Or if there's no LayerNorm in the loss function, the problem will not appear.
Thank you very much for your time and help! @jakevdp
What jax/jaxlib version are you using?
flax==0.6.8; jax==0.4.13; jaxlib==0.4.13+cuda12.cudnn89
Which accelerator(s) are you using?
GPU
Additional system info?
Ubuntu 20.04
NVIDIA GPU info

Thanks for the question.
Can you try updating to a newer version? I am unable to reproduce at HEAD. I think there was a bug in the differentiation rule for x ** 2 in a version, which may have been 0.4.13. But pypi is on 0.4.24 now, so we've had quite a few releases since then

Thank you for your kind response. It seems like in my above examples, grad_w1[0] is mistakenly automatically added to grad_w1[1].
But anyway, I tried jax==0.4.20 and flax==0.7.5, still have the same problem. The latest version seems to be fine, but cannot work on my GPU due to cublas version.
Could you please try my examples on some older jax version and see if it's fixable? I guess it would be a challenge for me to move my entire codebase to a new jax version. If it's not convenient for you, it's also fine. Thank you so much!

The bug fix I had in mind was #17996, but that was included in jax==0.4.20. So that's not it.
Are you sure the correct gradient isn't zero? I put this at the bottom of the file and ran it a few times to plot the function in random directions, and it sure looks flat at 0 (i.e. at W1_init and W2_init):
import numpy.random as npr
from matplotlib import pyplot as plt
v_W1 = npr.randn(*W1_init.shape)
v_W2 = npr.randn(*W2_init.shape)
ts = jnp.linspace(-1, 1, 1000)
vals = jax.vmap(lambda t: loss(W1_init + t * v_W1, W2_init + t * v_W2,
                               LN_params, A, X, target))(ts)
plt.plot(ts, vals)
plt.savefig('19727.png')

Thank you for your kind response! I appended your code to mine and get this plot, is this also what you see?
import numpy as np
from matplotlib import pyplot as plt
import flax.linen as nn

rng = jax.random.PRNGKey(0)

X = jax.random.normal(rng, (2, 8))             # the batch dim is 2, which has the problem
target = jax.random.normal(rng, (2, 2))     # the batch dim is 2, which has the problem

A = jax.random.normal(rng, (4, 2))
W1_init = jax.random.normal(rng, (8, 16))
W2_init = jax.random.normal(rng, (16, 4))

LN = nn.LayerNorm(use_bias=False)
LN_params = LN.init(rng, jnp.ones((1, 2)))['params']

def loss(W1, W2, LN_params, A, X, target):
    XWA = X @ W1 @ W2 @ A
    LN_out = LN.apply({"params": LN_params}, XWA)
    l = 0.5 * ((LN_out - target) ** 2).sum()
    return l

grad_fn = jax.value_and_grad(loss, argnums=[0,1])

l1, grads = vmap(partial(grad_fn, W1_init, W2_init, LN_params, A))(X.reshape(-1,1,8), target.reshape(-1,1,2))

grad_w1, grad_w2 = grads[0], grads[1]

print(grad_w1[0])  # all 0 !!!
print(grad_w2[0])  # all 0 !!!

v_W1 = np.random.randn(*W1_init.shape)
v_W2 = np.random.randn(*W2_init.shape)
ts = jnp.linspace(-1, 1, 1000)
vals = jax.vmap(lambda t: loss(W1_init + t * v_W1, W2_init + t * v_W2,
                               LN_params, A, X, target))(ts)
plt.plot(ts, vals)
plt.savefig('19727.png')

Yes, qualitatively, though every time you run it you'll get a different random direction. It looks piecewise constant so I'd expect a derivative of 0. (I didn't reason through the code as to why it's piecewise constant, but this evaluation has no autodiff in it.)

I see. It seems like I happen to run into a test case that gives me a very flat loss at this specific point, and the result of auto diff is not unexpected. Thank you very much for your time and help!

No problem! Please reopen or file new issues as things come up.


Depend on JTS more explicitly

For @roll to define.

Directly use JTS resource class ( https://github.com/frictionlessdata/jsontableschema-py/issues/78 )
Other things that I do not know yet :)

https://github.com/frictionlessdata/datapackage-py/issues/15


Can objects (roads, buildings) be textured?

This may be totally due to my ignorance of unity materials and textures, which is vast, but I can't seem to get a textured material to render properly on roads or buildings.
Sorry to create an "issue" out of it, Baran.

No problem man ;)
I'll give a tldr first; the problem is the UV generation. (I'm not expert on UVs or materials by the way so might be missing some stuff)
Road UV's should be quite easy really, I can easily do that. Landuse UV is harder, not sure about those. Water is extremely easy as well. But the real problem is the building UVs
I did a little experiment on building UVs last night; http://imgur.com/AFZBScY
It's such a huge issue though, would take quite a few paragraphs to describe it here.
First of all, we can't use same texture for everything so we'll have to copy materials and change textures.
then we'll have to divide mesh into to, roof & sides to be able to use repeating properly. If we decided not to go repeating textures (the image above uses that), we'll need extra vertices everywhere, especially on side walls.
I feel like the first option would be much easier but that's still require quite an effort. I'll most likely publish that repeating UV thing in the image just for simple usage (noisy texture instead of pure color would made everything look better for example) but a real solution would take soo much time. If there's anyone interested (and a little bit experienced in vertex/UV math) in that, I can tell the whole story for a head start.
Roads would be easy as I said, but they'll look ugly even if I do the UVs as they are disconnected in most place.
Still, as I said, I can get roads and water UV working in a day I believe.

Well, I've been enjoying looking through your code in the various factories for inspiration.  I can certainly appreciate the amount of effort.  I know zip about UVs though.  I'll try to do some research and see if I can get up to speed fast enough to be of any use.

I pushed the simple UV thing on dev branch last night, it's in the building factory (that should be tidied up though, that function is a total mess, hard to read and confusing at the moment)
what it does is simply applying that texture in every 1unit square area. That's like the simplest thing one can do, hardly any uv calculation/math there. But that's actually one of the better ways to do it BUT we need roof as a separate entity/material for that. We can do that repeating texture thing in side walls but same texture wont work for roof. and we cant do it if we divide texture into, say 4 segments using one for walls and one for roof.
so wait wait, I'll try to clarify it all; to me there is two ways of solving this problem (considering just one building at the moment though);

Use separate mesh/material for roof, then use representative texture for both. I already did the repetition part but create roof as another entity might be costly for us. That's like 2x draw calls, materials and extra calculations. (well we can merge ALL roofs in the city I guess)

2)subdivide side walls (this would be haaaard..... I guess) and use one texture/atlas for roof&side walls. Admittedly this sounds worse and worse as I keep writing. we'll have to create sooooo many extra vertices just to save extra draw calls..... damn I have no idea which one is better really.
As you can see, I'm confused as hell john, help me out with this  :)
(I wonder if we have anyone pro in these matters, stalking around. would really love some input)

Is this the right documentation for the TriangleNet you're using?

it should compile on android yea, both managed and unmanaged dll would I believe. If not, we can always use the source code, I just thought it'll be easier with one file instead of dozens in the source.

So, I've been playing with your dev buildingfactory and have found a different issue that effects this one and performance:  If a building is on multiple tiles then multiple buildings are generated.
I'm using tilesize of 600 and a zoom of 18 here.  I pulled the buildings apart in the scene so you could see them.

I want to say however, that textures on buildings is working (when mergmeshes == true).   I can resize the textures using the tiling property. Roofs would be cool but great work in such a short time.  Fixing the multiple buildings problem will get rid of the weird shimmer.

Double buildings is a known issue (but not logged, my bad). It was actually "fixed" by a simple hashset check but then I realized, destroyed buildings wasn't removed off that list so deleted it all together. Fix is rather easy, all we need is a simple destroyed event on tile objects but.... I was being lazy.
well yea textures are "working" but it's rather useless at this state. That building in your screenshot looks like a slice of cheese :)

pushed on the master branch, we can open new issues for further improvements