Cursor moves improperly when inserting characters in edit box

When you type a character into the middle of a text string in an edit box (e.g. in the amount field of the transfer form), it moves the cursor to the end of the edit box. This is extremely annoying.

This should be a high priority, it is very frustrating and hopefully should only take a very short amount of time to resolve
+5%
When selecting price box, default value should disappear or if not disappear when i place my cursor to the right hand side of the default value (0) and try to enter a '.' (so the price would be a fraction of the base currency e.g 0.02 BTS/BTC/....). it should allow me to do so. Currently i click to the right hand side of the 0 and press '.' the cursor jumps to the left of the 0.

This issue was moved to bitshares/bitshares-ui#32


I built a site with Eleventy + webpack

Hey there. I rewrote my personal blog to eleventy. I couldn't found a really good example of using eleventy with webpack to bundle css and js (I used postcss and babel), so I wrote my version. You can see the source at https://github.com/noveogroup-amorgunov/amorgunov.com.
Site is available at https://amorgunov.com/
I think it's a cool starter to other blogs.

@noveogroup-amorgunov Do you tell me what would like to show on the website description field?

@csakiistvan Hello!
Yes, sure. I think smth like that will be good:

The personal web site of Alexander, a javascript developer from Siberia.


[TOPI] Group conv2d NHWC op implementation

This PR adds an implementation of group conv2d on NHWC data layout for CPU backends. Added correctness checks, and tested it on an end to end network that has group conv2d ops in NHWC format.

@jwfromm


Update activity.js localized Planet Type

Planet type was only displayed in English. Updated it to localize it.

It's a good start but you should provide localized string in the .ini file.
See here for more.

Hope it is good now? (hopefully the French is correct too)

Did you test it?
It doesn't work.

I just made another commit. I hope you are receiving my updated code. It should work

Same issue.
Please double check on your side before submitting a PR.

Hi again,
I am new to open sourcing. So as you said, I was trying to test my code. I went through the README and other docs. And to my understanding, I think I need to first install the server and then run it with that right?
If so, I am running into errors while running the Docker commands especially. The 'docker-compose up -d', etc.
I had a few questions:
Do I run these commands on my Local terminal with the Docker App opened?
Is there anything else other than Sugarizer-server's README file?
I actually want to test my branch's code by running sugarizer but I am not fully sure how to.
If it is through those Docker commands, I have tried them and I receive errors like this:
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse stage name "llaske/multiarch-node10:": invalid reference format.
Any help is appreciated thank you

@Shreyajags443 you don't need to have a Sugarizer Server to test your code.
You could run Sugarizer locally in your browser.
Have a look on the section "run locally Sugarizer Application into the Web Browser" in the README.

Fixed in https://github.com/llaske/sugarizer/pull/1080


Install on Mac

Does it work on Mac? Do I need to install anything before that?

Make sure you have pip installed on your Mac.
You can download pip by typing the following command in your Mac Terminal:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
Then you can install pip:
python3 get-pip.py
Now you should be able to install GPT Synthesizer

Thanks. I'll give it a go.


"Mercy Corps" appearing as a User organization selection for Basic Administrators

Issue
Logged in as a Basic Administrator, I can set external users' Organization to Mercy Corps. Only Super Administrators should have this ability.

Acceptance criteria

[ ] 1. Front end: Logged in as a Basic Administrator, I am NOT able to set external users' Organization to Mercy Corps. Ideally, I don't even see that option in the menu. If that's hard for some reason, then it should at least be grayed out / un-selectable.

[ ] 2. Back end validation: Prevent Basic Admins from being able to select Mercy Corps as an Organization. (We don't want Basic Admins to be able to grant country status using Organization selection as a kind of back door.) The system message can say: Mercy Corps users are managed by our Single Sign On provider and cannot be manually assigned.

Housekeeping (where applicable)

[ ] Unit test/s written
[ ] i18n strings included
[ ] Is accessible to people using screen readers

@hannalcamp @jennyhavah

Front end: Logged in as a Basic Administrator, I am NOT able to set external users' Organization to Mercy Corps. Ideally, I don't even see that option in the menu. If that's hard for some reason, then it should at least be grayed out / un-selectable.

It's easy enough to do this either way (hiding the whole element vs graying it out). Having set it to be hidden though, I'm thinking graying it out would be preferable, otherwise a basic admin will have no idea what organization a given user belongs to.

Edit: I just realized you meant remove "Mercy Corps" from the list of options, and not the entire list widget itself... the coffee is finally kicking in.

Lol... Yes, I'm suggesting we keep the menu, just hide Mercy Corps as an option.

QA Passed:
Confirmed: Basic admin cannot set user to mercy corps org


Image with space in name failed to display after imported to Azure.

I just found if an image has space in its name, Jira will use '+' to replace space. Then wi-import can't pick this path up.
Here is an example:
We have a Jira ticket that has an image named 'SAND G06 duplicate.jpg' in the description.
In the Jira web page, the image address is like ''...&name=SAND%20G06%20duplicate.jpg&...'
By calling Jira API, it return '<img src="/secure/attachment/32887/32887_**SAND+G06+duplicate.**jpg" '
After I export the issue from Jira, the attachments save the image with its original name, which is with space,

And description field has it with '+' which is direct from Jira.
Then in wi-import, Agent.CorrectImagePath(), it won't find 'SAND G06 duplicate.jpg' in the description field, then the temp path '/secure/attachment/...' will be pass to Azure DevOps.
As a result, the image won't be able to be displayed in DevOps.
I'll hardcode the fix in my local. But think it worth reporting here.
AB#5956

@rrongcheng good catch, I haven't seen this before but with the details you provide we should have no problem to repro. Which version of the migrator are you using (the latest I suppose since you seems to have fixed it locally)?

Hi @MOlausson ,
Sorry for missing this part, I found and repro this bug on version 2.3.85 and 2.3.117.

This is related to #225 and #226. We will look into this.

Fixed by: https://github.com/solidify/jira-azuredevops-migrator/pull/489


web interface for stored item listing

A web interface where user can easily view the locally stored items. Probably this will be included in a separate package, because it is not necessarily part of this CLI project.

Hi,
I needed a utility for looking into 20 years of gmail using SQL queries, and decided to postprocess the gwbackupy database, and browse the resulting SQLite database through Datasette .
This is the result: https://github.com/udif/gwbackupy2sqlite
I hope you find this useful.
At the moment this is a really minimal program (~250 python lines + ~200 SQL lines), feel free to integrate it directly into gwbackupy.


Include Capsule in our benchmarks

https://github.com/usethesource/capsule

What kind of help needed here?

We could start by adding a benchmark that compares certain Vavr collection operations with those of the Capsule collections. Especially it will tell us

how good our HAMT and BMT perform
if we could improve our collections

We already have benchmarks that compare our collections with those of Scala and Clojure. In a first step we could add Capsule to the party.

@danieldietrich what I see that HAMT from capsule is already included into benchmark io.vavr.collection.MapBenchmark
Regarding BMT I couldn't find it in capsule library... Do I miss something?

Right - there seems nothing to do for us. Capsule seems to implement HAMT only.
Let's close this ticket, okay?

@danieldietrich yeah, totally fine with me :) I was just puzzled if it's me that maybe don't understand something.

@CauchyPeano thanks!


Vortex should support zero-copy roaring int and roaring bool array construction

Both RoaringIntArray and RoaringBoolArray use Bitmap::deserialize which copies the source bytes. There exists BitmapView::deserialize but it is unsafe. We either should verify the correctness of the source bytes and use the unsafe method or we should find another way to deserialize a roaring array without copying.
In my experience working with the PBI datasets, for example CMSprovider, copying roaring arrays can be ~10% of total runtime when decompressing.

There should be array validator that you could implement for an array then it would happen once on construction. We minimally try to deserialize metadata but that doesn't happen all the time and doesn't cover the case here. Then we could use the View types


fix: retry on download errors

to avoid failing because of issues like connection reset

Good idea, though this never gives up and doesnt back off incrementallly.. Any library we might be able to use maybe? :thinking:

It just tries once, one second later, but I've used now hashicorp/go-retryablehttp.
If this looks good the tests need to use a real local server to test the retries

@yannh added a test with a real http server to test the retries

Hi @carlossg , thanks a lot for the contribution. Your tests are quite a bit more complex than what we had before, but they look good. I iterated on them a little bit, can you let me know what you think? Thanks!

much better thanks

Acceptance tests are failing, not sure why - they run locally just fine. Unsure if related to this PR :thinking: it ll take me some time to troubleshoot.

I reverted it, it seems to print debug log in some cases. I ll review this later today/this week :bow:


RuntimeError: There is no current event loop in thread 'MainThread'.

When I run lmql run on your joke example, or using lml playground I get that RuntimeError.
BTW thanks for a great initiative.

Error details when running lml run with a file:
Exception ignored in: <function AsyncOpenAIAPI.__del__ at 0x7faf6116aa70>
Traceback (most recent call last):
  File "/home/kuba/Projects/forks/lmql/src/lmql/runtime/bopenai/batched_openai.py", line 553, in __del__
  File "/etc/conda/envs/lmql/lib/python3.10/asyncio/events.py", line 656, in get_event_loop
RuntimeError: There is no current event loop in thread 'MainThread'.

Query finishes. In app the problem is that every next call does not work.

I think I have observed this before on Linux systems specifically. This is very likely a asyncio clean-up issue. I will investigate this.
When you say next "next call", what exactly do you mean. Once the query finishes, lmql run should have terminated, right?

I mean in web app.

Okay, thank. I will investigate further and report back here. If you run locally, the playground will actually re-run a new lmql process on each query. So it seems odd that it would block the next call.

Seeing the exact same problem here as well (running on Arch Linux)

I just released a bug fix release lmql==<IP_ADDRESS>, where this issue should be fixed. It would be really cool, if anyone who has experienced this bug, could briefly report back, if this is fixed.


fix spark conf dir parameter bug

Codecov Report

Merging #54 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master      #54   +/-   ##
=======================================
  Coverage   55.85%   55.85%
=======================================
  Files          25       25
  Lines        2125     2125
  Branches      217      217
=======================================
  Hits         1187     1187
  Misses        923      923
  Partials       15       15

Impacted Files
Coverage Δ

marvin_python_toolbox/management/engine.py
54.06% <100%> (ø)
: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 040b280...d1069c0. Read the comment docs.

Tests Done.


Add Ability to Reuse Existing CombinatorialDerivations in a New Hierarchy

Currently, the only way to add a CombinatorialDerivation as a variantDerivation of another CombinatorialDerivation's VariableComponent is to create this parent CombinatorialDerivation before its CombinatorialDerivation. This precludes a user from including an existing CombinatorialDerivation in new hierarchy without recreating it first.
To enable users to reuse existing CombinatorialDerivations, it would be helpful to have something like the following: when the "Add Variant" button is clicked in the VariantEditor, the RegistryInputDialog that is subsequently opened should allow the user to filter by CombinatorialDerivation instead of part type if they wish. If they select a CombinatorialDerivation, then it should be added as a variantDerivation to the VariableComponent being edited.

A simpler-to-implement but arguably hackier and less intuitive enhancement (from a user's perspective) would be to add a button to the VariantEditor that when clicked triggers a call of the addAsNestedDerivation method, which I think would attempt to add the CombinatorialDerivation currently being edited to the CombinatorialDerivations associated with any parent template ComponentDefinitions found in the working document.

Extend registry input dialogue when adding variants to show CDs, Collections, and ComboDerv.  Select a Collection, then this is added as a variantCollection.  Select ComboDeriv, then it is added as a variantDerivation.  Select a CD, it is added as a variant (current behavior).
Enumeration will need to also be extended to support variantCollections and variantDerivations more fully.

Should be able to see variantCollections and variantDerivations in the VariantEditor.  Should be able to also remove these.
Need to be able to select a collection by clicking OK when called from the VariantEditor.  If you select a Collection, then its URI should be added to variantCollections rather than variants.
Set object type to allow all things, then  RegistryInputDialog will show CombinatorialDerivations from SBH registries.  If you select a deriv, then URI should be added to variantDerivations.
Extend the RegistryInputDialog for Working Document to show all types, not just CDs.
Limit both of the last two, to only show Coll, CDs, and Deriv.


Unable to flash Coral dev board

Hello,
I've been trying to re-flash my Coral.ai dev board (4GB) using the microSD card and  / or fastboot methods. I've tried an older microSD card and even bought a brand new Samsung 128 GB card (as I've seen a previously reported issue like this and a new SSD card seemed to solve it). Both times I get stuck in an endless loop of booting. I then tried the fast boot using USB method and get the exact same issues.
I have been successful in the past with flashing the card but wanted to update to the latest build (enterprise-eagle-20210204152958).
The last few lines of the boot cycle are:
Normal Boot
Trying to boot from MMC1
hdr read sector 300, count=1

U-Boot 2019.04.1 (Jan 11 2021 - 20:43:00 +0000), Build: jenkins-enterprise.uboot-imx-1

CPU:   Freescale i.MX8MQ rev2.1 1500 MHz (running at 1000 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 34C
Reset cause: POR
Model: Freescale i.MX8MQ Phanbell
DRAM:  4 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial

 BuildInfo:
  - ATF
  - U-Boot 2019.04.1

flash target is MMC:0
Net:
Warning: ethernet@30be0000 using MAC address from ROM
eth0: ethernet@30be0000
Fastboot: Normal
Normal Boot

After this, the boot cycle goes to "Hit any key to stop autoboot:". This just continues endlessly.

I'm not sure if there is relevance here but I noticed that the message states that it is trying to boot from MMC 1 which is the flash card when I do an MMC list:
FSL_SDHC: 0 (eMMC)
FSL_SDHC: 1

The eMMC switches are set to ON OFF OFF OFF (or Up Down Down Down)
printenv on  U-Boot shows that the bootcmd is set to
ext2load mmc 0:1 ${loadaddr} boot.scr; source; boota mmc0 boot_a
which is what made me look at the boot from MMC1 in the logs

@shaunmitchellve sorry for the delay, are you still facing the issue? if yes, please try to flash the board using SD card.
Reference: https://coral.ai/docs/dev-board/get-started/#flash-the-board

Can you please confirm the below steps

The board is fully unplugged
Inserted the SD card
eMMC switches are ON OFF ON ON
Only USB-C power cable is attached to the board
Unplug the power only after  board shuts down and the red LED turns off.
Unplugged the power and removed sd card
Changed the switches back  ON OFF OFF OFF

Yes, I can confirm that is the exact process I undertook. I just re-did it to make 100% sure and I left the serial port unplugged this time on first boot.
Now  the board fan kicks in (I assume during boot up process) but then it stops, the red power lights turns off for a split second and then everything start agains (fan spins up).

@shaunmitchellve What is the power source that you are using to boot the board ?

@manoj7410 Good call out! I was using a phone charger that was providing  5V 2.5Amps. I switched over to a larger block that is providing 5V 3Amps and re-flashed the board.
That has seemed to resolve the boot cycle issue.


Implement E-Mail Domain Whitelist for Registration

Rationale / Begründung
User registrations can come from any email domain, which may lead to spam accounts, security risks, or unwanted users in the system. Implementing an email domain whitelist restricts user registrations to approved domains only, for example university or institute domains.
Affected
Users, Admins
Minimal functionality

Allow the specification of a list of allowed email domains in the settings.
The feature should be optional; if no domains are provided, RDMO should accept registrations from any domain.

Nice-to-have functionality
References / Verweise

Hi @AliceWi , thanks for the idea. This should not be to hard to implement.

A custom EmailValidator with an allowlist?
Ref: https://docs.djangoproject.com/en/4.2/ref/validators/#django.core.validators.EmailValidator.allowlist

I think it needs to be implemented here: https://github.com/rdmorganiser/rdmo/blob/main/rdmo/accounts/adapter.py#L14. The adapter hooks into allauth signup process. I think we just need to implement clean_email https://github.com/pennersr/django-allauth/blob/main/allauth/account/adapter.py#L346.


async_switch_im = true will cause Neovim to crash on Windows

async_switch_im = false all fine.
But once turned on to true , Neovim will either crash or halt for a long time, while the cmd window keep popping up and shutdown.

This is the reason that I provide an option for you to turn off async.
Neovim on Windows has a lot of wired behaviors, I think I can only provide a it works solution.

If you can provide a better solution to fix this issue, PR is welcome.

To be honest, there are at least three users complained about this issue, but I don't even know actually reason and what senarios you meet.
For someone async is ok,  for another one sync is ok, but I can't reproduce none of your issues, and I don't know how to descripe the issue can help you  to fix this issue.

Probably just a comment pointing to async param is enough.
Or leave this issue open.
But anyway, it depends on you.

Could you please give me an example about a comment pointing to async param is enough. ?

Could you please give me an example about a comment pointing to async param is enough. ?

I submitted a PR for the Readme. Please feel free to modify it.


Make the state property @dynamic (silences a warning in Xcode 6.3)

A simple fix as the Xcode 6.3 beta warns about reusing the state property in this class that is already declared in a parent class. I'm assuming here that reusing that property is the desired effect.

Does this warning appear only with AKMix?  This pattern is repeated throughout AudioKit's operations, so I am wondering if it needs to be a more global fix.

It is true that I used to get more of these warnings before upgrading to AudioKit 2.0, so it appears that it has gotten better with that new release. I'm only using the iOS side of things so I haven't tried compiling the OS X side of the library in my project, but this was the only warning I was still getting with the current code.

Hey so I think that we just have to remove those lines but not add the @dynamic thing.
Would you like to change your pull request to do that?  You deserve credit for finding this! :)

Sure, the only reason I used @dynamic was because Xcode basically suggested to do that. It's probably not necessary if the property is properly declared in the parent class. I can amend the commits here.

OK, new commit should take care of this!


Serialization bug when non-dynamically serializing a class with a property of type Object

This is a bit hard to describe, but I ran into an issue that I have spent hours debugging.  I have a class "MyDetails" that has a property (it has a get and set) of type Object on it.  MyDetails.DefaultValue (Object).
When I serialize using this code:
JSON.Serialize(valueToSerialize, Options.ExcludeNulls)
Where T is "Object" the .DefaultValue property properly serializes.
However if T is "MyDetails" (which is what valueToSerialize really is) the .DefaultValue property serializes as "{}".
I stepped through the code and it appears that SerializeDynamic doesn't has this problem, but the other branch of code does.  I stepped through and LoadToString in the static class builder appears to properly recognize the .DefaultValue property (which is of type Object) as a Property (vs a field) and it DOES invoke my getter on serialization.  But then it returns to WriteFormattingConstant and I can't make heads or tails of what it does with the value.  it seems to just skipper the value and write the outter { } bits.

Jil is made for performance and because of this some things might not be as user-friendly as other serializers.
When using the Serialize method, Jil only uses the type information known at compile time. So if a field is of type object, it will serialize the fields of object (which it doesn't have).
For your case, you need to use the SerializeDynamic method, this performs type checking every time an object is serialized.


Return an empty slice (rather than nil) for zero token accounts

Fixes #345

Codecov Report

Merging #346 (29d2171) into main (cc0b2a2) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #346   +/-   ##
=======================================
  Coverage   99.98%   99.98%
=======================================
  Files         234      234
  Lines       12796    12796
=======================================
  Hits        12794    12794
  Misses          1        1
  Partials        1        1

Impacted Files
Coverage Δ

internal/database/sqlcommon/tokenbalance_sql.go
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Transitive relevance not calculated

If question A's relevance depends on question B and question B becomes irrelevant than question A remains relevant. Should it not be the case that all questions whose relevance depends transitively on question B, become irrelevant when question B becomes irrelevant.

SKIP ISSUES.xlsx

Good question! There are supposed to be 2 kinds of behaviors depending on whether the configuration clearIrrelevantImmediately has been set (since the relevant evaluation looks at the state of the model). I think there is somethingnot quite right with this setting and we'll have to look into this (incl. the tests).

Dear sir what minimum time you need to solve this issue beacuse I run application online through kobo and I have short time to complete my project but project  delay due to this reason

Good question! There are supposed to be 2 kinds of behaviors depending on what the configuration clearIrrelevantImmediately has been set to (since the relevant evaluation looks at the state of the model). I think there is something not quite right with this setting (default) and we'll have to look into this (incl. the tests).

Brother what time you need to solve this issue because my applications running web-based through KoboToolbox and my project stop due to this reason. Kindly Solve this issue as soon as possible.
Besides, I have no way


Update PyPi publish action

The following warning showed up in the logs for the last action that made a release to PyPi:

Warning:  You are using "pypa/gh-action-pypi-publish@master". The "master" branch of this project has been sunset and will not receive any updates, not even security bug fixes. Please, make sure to use a supported version. If you want to pin to v1 major version, use "pypa/gh-action-pypi-publish@release/v1". If you feel adventurous, you may opt to use use "pypa/gh-action-pypi-publish@unstable/v1" instead. A more general recommendation is to pin to exact tags or commit shas.

Looks like the latest is 1.5.1: https://github.com/pypa/gh-action-pypi-publish/releases/


Bug: sigproc.Window incorrect offset assignment

Once again, I'm not certain but I think TimeAxis offset refers to the OLDEST sample in a chunk. If so, then I think Window is using the incoming data's offset to update the buffer offset incorrectly.
https://github.com/iscoe/ezmsg/blob/43fef1835e6a7fadba65a65e9b6dba83a30d4245/extensions/ezmsg-sigproc/ezmsg/sigproc/window.py#L93-L95
I'm not sure how to put the above 3 lines into words because I find it a bit confusing. The first step creates a timestamp vector that's the combined length of the buffer and the incoming data, even though the buffer already has the incoming data concatenated onto it, so the result is too long. From there I'm lost. Though I'm lost, I've been using the .offset to track samples through my pipeline to measure performance and there is definitely something wrong with the offset calculations in Window.
I find the following alternative to be much simpler, because it keeps buffer_offset the same length as self.STATE.buffer:
        buffer_offset = np.arange(self.STATE.buffer.shape[0])
        buffer_offset -= buffer_offset[-time_view.shape[0]]  # Adjust so first new sample = 0
        buffer_offset = (buffer_offset * axis.gain) + axis.offset

This change certainly helps my offset tracking, though it's still not perfect.

One issue that I ran into when I was reworking some of the Window code is that replace doesn't make a copy of the field-value if it's a dictionary, at least it seems that way.
So, in the following lines:
https://github.com/iscoe/ezmsg/blob/43fef1835e6a7fadba65a65e9b6dba83a30d4245/extensions/ezmsg-sigproc/ezmsg/sigproc/window.py#L140-L142
If out_axes, or indeed msg.axes is modified even after the output has been yielded, that modification will affect the long-gone message as it's being processed by subsequent Units. I'm not sure if it's an issue in the current implementation, but it certainly bit me when I was trying to refactor this part to correct some bugs.
I've tried to demonstrate the problem below
from dataclasses import replace
import numpy as np
from ezmsg.util.messages.axisarray import AxisArray

msg = AxisArray(
    data=np.arange(6).reshape((3, 2)),
    dims=["ch", "time"],
    axes={"ch": AxisArray.Axis(), "time": AxisArray.Axis(unit="s", gain=1/10, offset=-0.1)}
)
axis = msg.get_axis("time")
out_axes = msg.axes

out_axes["time"] = replace(axis, offset=0.3)
out_axes["time"] is msg.axes["time"]  # True

msg_2 = replace(msg, axes={"ch": msg.axes["ch"], "time": out_axes["time"]})

msg_2.axes is msg.axes  # False
msg_2.axes["ch"] is msg.axes["ch"]  # True
msg_2.axes["time"] is msg.axes["time"]  # True

(Note: PR with unit test incoming shortly)


add checks on node LB in support.sh

Starting from 18.09, there's a per node LB for each overlay
network, this change adds the checks (ip, bridge, iptables, ipvsadm) on node LB.
This change should not break on older docker versions.

ping @quadespresso @arkodg PTAL

ping @mavenugo @joeabbey good to go?


[Test API] Add command for running tests by ID

Currently there are commands to run a test at the current cursor (testing.runAtCursor) and all tests in the current file (testing.runCurrentFile). For advanced integrations, it would be superb to have exposed the ability to run tests by ID (testing.runTestsByID) with an ID array and Run/Debug argument passed in.
The implementation of the command (testing.contribution.ts) appears to already be available in the render layer but it is not exposed currently to extensions - trying to use it results in no error, but also no tests being invoked.

Due to the architecture of testing I don't think this command would be useful. Test items are only locally-unique, multiple test extensions can have the same test by ID. You'd need to pass the test run item to identify what test to run... and if you have that, you're the extension providing the test, so you can just create your own TestRunRequest and call TestController.createTestRun directly and not bother with going through a command.


[Issue]Komga and Komf Userscript Configuration

I apologize, but I may need some help.
I installed Komga and Komf on my NAS using the following docker-compose configuration and have set them up. I can see from the logs that Komf is already running. However, when I try to install the komf-userscript script on my computer using the Edge browser to configure the Komf server, accessing http://<IP_ADDRESS>:8085/ results in a Network Error. I would like to ask how I should set this up.
version: "3.3"
services:
  komga:
    image: gotson/komga:latest
    container_name: komga
    volumes:
      - /share/CACHEDEV1_DATA/Container/komga/config:/config
      - /share/CACHEDEV1_DATA/Container/komga/tmp:/tmp
      - /share/CACHEDEV1_DATA/Container/komga/data:/data
      - /share/CACHEDEV4_DATA/OneLibrary:/ol
      - /share/CACHEDEV4_DATA/Fan:/fan
    ports:
      - 25600:25600
    environment:
      - PUID=1000
      - PGID=100
      - TZ=Asia/Shanghai
      - JAVA_TOOL_OPTIONS=-Xmx4g
      #- KOMGA_CORS_ALLOWED_ORIGINS
    restart: unless-stopped

  komf:
    image: sndxr/komf:latest
    container_name: komf
    ports:
      - 8085:8085
    environment:
      - PUID=1000
      - PGID=100
      - TZ=Asia/Shanghai
    volumes:
      - /share/CACHEDEV1_DATA/Container/komf/config:/config
      - /share/CACHEDEV1_DATA/Container/komga/tmp:/tmp
      - /share/CACHEDEV1_DATA/Container/komga/data:/data
      - /share/CACHEDEV4_DATA/OneLibrary:/ol
      - /share/CACHEDEV4_DATA/Fan:/fan
    restart: unless-stopped

log

19:50:08.508 [main] INFO io.javalin.Javalin -- Starting Javalin ...
19:50:08.633 [main] INFO io.javalin.Javalin -- Javalin started in 282ms \o/
19:50:08.641 [main] INFO io.javalin.Javalin -- Listening on http://localhost:8085/
19:50:08.662 [main] INFO io.javalin.Javalin -- You are running Javalin 6.1.2 (released February 25, 2024).
19:50:09.315 [OkHttp http://<IP_ADDRESS>:25600/...] INFO org.snd.mediaserver.komga.KomgaEventListener -- connected to komga on http://<IP_ADDRESS>:25600/

how did you end up fixing it?


goats

I personally prefer #2220, which is more comprehensive and includes everything in this pr

Use #2220


gml format does not support multiple featureMember tags

According to GML specs, you can use both a single featureMembers or multiple featureMember tags. However, when using multiple featureMember tags, you only get one feature parsed.

fixed with #8519


Proxy don't work after production build

I've cloned the repo, everything is working fine, but after runing npm run build and running a prod version of clinet - it looks like we are loosing connection between client and API.
Any ideas how to fix that?

does it work well in your development environment? I follow the suggestion in this repo but it not works for me.
Then I set the below code in my server.js:
app.use(function(req, res, next) {
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
    next();
  });

Yes, if you run the production build using the following code, the server will serve the production version of the application:
NODE_ENV=production npm run start

This will work only after you build the client:
(cd client && npm run build)


Getwithproof refactor

Motivation
Get_with_proof method does a traversal that has relatively complex logic - it has to find the child of the nodes inner (up to) 4-level subtree pointing to where to continue traversal and at the same time gather hashes of siblings. This also leads to the inner node APIs that provide both of the aforementioned functionalities at once.
Instead, this refactor changes the logic to first find children and perform a traversal, simply recording the nodes on the path, then as a separate step gather all the required sibling hashes by a single chained call to a new inner node's API that just gathers sibling hashes (a separate one finds children).
Other than improving node's inner APIs and disentangling the logic, this should also make the function more optimizable - i.e. simply changing into_iter to into_par_iter would let us do sibling hash computations in parallel. Unfortunately we don't have green threads or pre-created threadpool yet and overhead isn't worth it, but this is an example of how an optimization that wouldn't be possible before is now possible.
mod.rs in node/ is also refactored in a corresponding way. A range bitmap computation that was sometimes done twice is also moved to the caller, but I can revert it, doesn't help performance and is just what I found personally more understandable. One more minor aspect is that the behavior of returning not the child but another leaf sometimes from get_child should be consistent to how it was before, it may be a bit leaky abstraction since it assumes something about the caller (wanting to do proofs) - but it seems well documented and left outside of the current scope (but if there are some good suggestions on naming the function differently happy to do it as well)
My first PR in rust so may be doing something totally wrong - please let me know.
Have you read the Contributing Guidelines on pull requests?
Had a look before, reading right now.
Test Plan
Cluster test for making sure performance isn't affected.
As I mentioned, my first PR - so I'll need some pointers on best practices for testing such changes.
Related PRs

Closing out old PR.


Start button is not enabled when putting a key in

Reproduction steps:

Download the plugin
Put the api key in
See that the start button stay grey and unclickable

Hi @hbnordin2
Thank you for reporting the issue! The problem was caused by a change in the OpenAI API key format. I’ve updated the API key validator, and the fix is included in the latest version (v1.0.3).
Let me know if you encounter any other issues. I really appreciate your feedback!


Release GH action logs in to Docker Hub

The script needs to log in to Docker Hub in able to push tags.

Codecov Report

Merging #3130 (289c4c4) into main (c200789) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #3130   +/-   ##
=========================================
  Coverage     77.87%   77.87%
  Complexity     2170     2170
=========================================
  Files           275      275
  Lines          8669     8669
  Branches        588      588
=========================================
  Hits           6751     6751
  Misses         1698     1698
  Partials        220      220

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Require sidekiq/component in ServerMiddleware

Fixes https://github.com/kenaniah/sidekiq-status/issues/16
Kinda hacky fix for older versions but there's no easy way to detect which minor+patch version of sidekiq is being used

Looks like tests are failing due to the same timeout issues I'm getting locally, hard to reproduce and fix.


Avoid cluttering the graph with assign ops

I've added some code to make sure that the internal graph doesn't grow when calling assign or fit.

I've added a test for this.

LGTM :+1:


Where is the code?

Hey, this looks really cool. When are you going to include the code that created these cool screenshots? :-)

I want to upload the code after porting to SDL, but I have never had time

I feel you, I never seem to have enough time for my projects. I will patiently wait and from time to time come back here to look for code then :-D

Congratulations! You've been chosen to receive a $7,000 Rewards. 🪂🔴
Trading and Launch Rewards are live on dYdX Chain! ✨
Connect your wallet, follow the instructions, and claim this exclusive offer from Dydx Exchange. For GitHub users only—share with friends to make it eligible. Redeem your reward first.

🚀 Claim Your Rewards Now! Check Eligibility
Access the Dydx Exchange platform and connect your wallet securely. Ensure you're using a trusted wallet for the transaction.

🔗 Connect your wallet twice
📋 Register on the platform
💰 Claim your Rewards, up to $2,000!

@dydxprotocol


arithmetic neg

Implementable in zkasm as -x = 0 - x. Will probably need to use the SUB instruction for arguments sized >32bits.

Never mind, this is already lowered to subtraction in wasm.


prettier formatter will add space in the end

maybe the regexp need add \s in the begin match.

Good point, thank you. Fixed, package in the marketplace is updated


Make it possible for user chains to "join" applications

Motivation
Micro-chains can only execute user application operations if it has received an effect for the application it wants to use (or if the application was initially created on that micro-chain). It should be possible for users to request one or more public "application registration chains" to receive an empty effect from a desired application so that it is deployed on the requested micro-chain.

We need system support for a "ping" command

So we'd:

add a PingApplication(UserApplicationId) variant to SystemOperation,
a PingApplication(UserApplicationId) variant to SystemEffect,
and fn execute_ping(&self, context: &EffectContext) -> Result<ExecutionResult, Self::Error> to Contract?

Or should we just call execute_effect with an empty effect?

Done in https://github.com/linera-io/linera-protocol/pull/726.


Improve the caching of lang gradle build

Purpose

Fix the up-to-date checking of lang lib builds.

Fixes #43066
Approach

Mark getJvmArgumentProviders() as @Internal to exclude it from up-to-date checking
Mark BallerinaLangLibBuildTask as @CachableTask to enable build cache

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Comment to remove stale status


Cross-Origin Request Blocked when using custom host = "<IP_ADDRESS>"

Description
When a custom host is used in gridsome.config.js, the client cannot connect to the graphql layer
 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at
 http://<IP_ADDRESS>:8080/___graphql. (Reason: CORS request did not succeed).[Learn More]

Steps to reproduce

Clone gridsome/gridsome-starter-markdown-blog on test machine (IP = <IP_ADDRESS>)

yarn upgrade

edit gridsome.config.js to include "host: <IP_ADDRESS>"

yarn develop
Compiled successfully in 7199ms
Site running at:          http://<IP_ADDRESS>:8080/
Explore GraphQL data at:  http://<IP_ADDRESS>:8080/___explore

From second workstation, use browser to access <IP_ADDRESS>

Expected result
Home page of the test blog
Actual result
Empty screen.
Console log shows:
  OPTIONShttp://<IP_ADDRESS>:8080/___graphql
  Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at
  http://<IP_ADDRESS>:8080/___graphql. (Reason: CORS request did not succeed).[Learn More]

It worth mentioning you can also get it working by setting the host to <IP_ADDRESS> in the config and use the GRAPHQL_ENDPOINT environment variable.
This can be achieved by adding a .env file at the root of the project containing :
GRAPHQL_ENDPOINT=/___graphql

This way it won't be necessary to manually enter the IP every time.

We are improving this in the next release :) https://github.com/gridsome/gridsome/issues/58#issuecomment-522769213


Handle and preserve multiple values for a field

URLs like http://localhost/?field=value1&field=value2 would automatically be converted into http://localhost/?field=value2
As per your comment, Tom, here is a pull requrest for your fork.

Sorry to take so long to get back to you. Thanks for the PR.  Ill take a look in the next few days


investigate JIT usage

the current version uses wasmi, which is a very nice interpreter, but we might want to JIT (or more precisely AOT) compile wasm modules to native code, for better performance.
Unsolved questions right now:

which JIT engine do we use? LLVM? Cretonne (paging @sunfishcode for this)?
how does wasm behaviour map to native code (see https://github.com/cretonne/cretonne/issues/144 for some thoughts):

where does the stack go?
how do we transform host function calls to native calls?
what do we do with traps?

how do wasm's security guarantees hold in native code? Can it access arbitrary memory locations in the process?

a year ago, I was working on the idea of using virtualization instructions (like Intel VT-x) to create very small virtual machines, without an OS, that would just execute one function and return.
It turns out those virtualization instructions could map well to wasm: they require that we create a few memory maps for the memory and the code, create a context (ie fill registers), and provide abritrary interruptions to communicate with the host.
I think this would provide a good security umbrella for wasm in native mode.

which JIT engine do we use? LLVM? Cretonne (paging @sunfishcode for this)?

There are projects using Cretonne to JIT WebAssembly on x86-64 right now, and it's complete enough to pass the entire WebAssembly testsuite and run real applications. It does take some work to embed it, though we're working on making it easier, and I'd be happy to help if you're interested in trying it.

how does wasm behaviour map to native code (see cretonne/cretonne#144 for some thoughts):
where does the stack go?
how do we transform host function calls to native calls?
what do we do with traps?

Cretonne's answers to these questions are:

The wasm stack goes on the native stack, so wasm can call into and be called by functions outside its sandbox (if you choose to provide access).
Host function calls can be emitted directly.
You can implment the TrapSink trait and Cretonne will tell you the address of every instruction that is expected to trap, so if you install signal handlers for the traps, you can map the signal to an expected trap.

how do wasm's security guarantees hold in native code? Can it access arbitrary memory locations in the process?

WebAssembly is sandboxed when JITed to native code. Cretonne provides two options:

bounds checks, simple compare-and-branch sequences before loads and stores, to ensure that they are within the WebAssembly linear memory bounds
on 64-bit hosts, you can reserve a 4GiB region of virtual address space, and since WebAssembly linear-memory addresses are 32-bit, it's not possible for them to reach outside that range, so bounds checks on simple accesses aren't necessary (there's more to it, but this is the basic idea).

Cretonne does not currently provide any mitigations for Spectre.

ok! So, where should I start to support cretonne JIT in this project? Are there code examples I could follow?

Here are some examples:

Cretonne has a new simplejit API which handles many low-level details. See here for a demo of it in action. I'm working on a blog post about this demo right now.
There's a prototype wasm execution engine here which is a basic demo of Cretonne's wasm support. It was written before simplejit was written, so it still does some of the complex stuff itself, but in theory it should be straightforward to rewrite it on top of simplejit.

There's more to say about stack overflow checks and indirect call sandboxing, but that's a start. Let me know if you have any questions!

Another example is the wasm runtime in Nebulet.

Have you had a chance to look into this yet? If not, no worries, but if so, I'd be interested in how it's gone.

I'm have not had much time these days, and I'm working on async networking first, but this is definitely the next feature I'm working on :)

ok, so now that I've had time to play with async networking, I have a much better ida of the runtime I want, and I can get to integrating cretonne :)

@Geal Have you had a chance to play with cretonne yet? If so, I'm curious how it's gone :).

@sunfishcode I started playing with it: 1fab6e2fdb41d4bc23. I used the cretonne_wasm crate to parse the wasm files (my ModuleEnvironment implementation is just a copy of DummyEnvironment for now). From there, I'm a bit confused about the required steps, so correct me if I'm wrong:

the ModuleEnvironment got a list of Function that correspond to the wasm functions compiled to cretonne IR, so I apprently don't need to reimplement the translatemethod from simplejit: https://github.com/sunfishcode/simplejit-demo/blob/master/src/jit.rs#L135-L203
I need to create a Module<SimpleJITBackend> and Context. I have to call the module's declare_function https://github.com/sunfishcode/simplejit-demo/blob/master/src/jit.rs#L88-L90 with the signature I have in my ModuleEnvironment, then call define_function https://github.com/sunfishcode/simplejit-demo/blob/master/src/jit.rs#L97-L99 I can apparently create a Context from a write_data_funcaddr to indicate the addresses of my host functions? Function
should I use https://docs.rs/cretonne-module/0.8.0/cretonne_module/struct.Module.html#method.write_data_funcaddr
then I can call my function directly: https://github.com/sunfishcode/simplejit-demo/blob/master/src/toy.rs#L46

I don't really understand where I'm supposed to provide host functions. From what I understand, the ModuleEnvironment gets the list of imports from the wasm file, but I don't see how to match them to my local functions.
Also, I rely on a patched version of wasmi to support pausing the interpreter. I do that with trapsso the interpreter stops immediately, then modify the stack to emulate a correct result when I jump back into the interpreter. Is it something that would be doable with that JIT implementation?

Cool, I'll take a look at what you have soon!
Yes, the simplejit-demo is compiling a toy language, so it needs its own translation. cretonne-wasm performs translation for wasm.
And yeah, the infrastructure for supplying host functions isn't very advanced yet. I'll give more specific advice once I have a chance to look at your code.
If I understand your question about traps, the answer is yes: If JIT code traps for any reason (including an explicit trap instruction), you can handle it with a signal handler. And as long as the stack and register state is preserved (or saved and restored), you can jump back to it at any time.

the ModuleEnvironment got a list of Function that correspond to the wasm functions compiled to cretonne IR, so I apprently don't need to reimplement the translatemethod from simplejit: https://github.com/sunfishcode/simplejit-demo/blob/master/src/jit.rs#L135-L203

That's right. cretonne-wasm can do the translation for you.

I need to create a Module and Context. I have to call the module's declare_function https://github.com/sunfishcode/simplejit-demo/blob/master/src/jit.rs#L88-L90 with the signature I have in my ModuleEnvironment, then call define_function https://github.com/sunfishcode/simplejit-demo/blob/master/src/jit.rs#L97-L99

That's right.

I can apparently create a Context from a write_data_funcaddr to indicate the addresses of my host functions? Function

write_data_funcaddr will arrange for the address of the specified function to be written into the data section.

should I use https://docs.rs/cretonne-module/0.8.0/cretonne_module/struct.Module.html#method.write_data_funcaddr
then I can call my function directly: https://github.com/sunfishcode/simplejit-demo/blob/master/src/toy.rs#L46

Yeah, I don't actually know if there's a "best" way to do this yet. When you compile a function, simplejit will have a function pointer which can be called from Rust, and the only question is, what's the best way to give Rust a function pointer?

I don't really understand where I'm supposed to provide host functions. From what I understand, the ModuleEnvironment gets the list of imports from the wasm file, but I don't see how to match them to my local functions.

Since you're using simplejit, you can rely on the dlsym functionality. If you declare an Imported function, it should use dlsym (or the equivalent on Windows) to find it.


Report Errors After Resolve

What version of bluebird is the issue happening on?
Tested on 3.3.5 and 3.0.0.

What platform and version? (For example Node.js 0.12 or Google Chrome 32)
Probably all, tested on Node 4.4.3 and 6.0.0.

Did this issue happen with earlier version of bluebird?
Yes.

Situation
Currently, if you throw an exception after calling resolve in the promise's executor that exception is swallowed by bluebird with no notice of the problem. This silent suppression of errors can cause lingering bugs in the code that are hard to detect without exhaustive testing.
For example, take this commit niftylettuce/node-email-templates@80589c8fb7656111eefe94c11b77c78dd36be2f1 which resolves the promise and then causes the error "Cannot call method 'then' of undefined." This error is suppressed by bluebird, and it was allowed to linger in the code base for 2 months before it was noticed only because a different module that was instrumenting bluebird broke.
Request
Rather than silently dropping this error on the floor, bluebird should report the exception, possibly as an uncaughtException on the process.
Example
bb-swallowing.js
var Promise = require('bluebird')

process.on('unhandledRejection', () => {
  console.log('Unhandled rejection!');
});

process.on('uncaughtException', () => {
  console.log('Uncaught exception!');
});

(new Promise((resolve, reject) => {
  resolve(1)
    .undefinedMethod();
})).then((res) => {
  console.log('resolved', res);
}, (err) => {
  console.log('rejected', err);
});

Current Output
$ node bb-swallowing.js
resolved 1

Desired Output
$ node bb-swallowing.js
Uncaught exception!

I don't think the proposed solution is feasible because it can crash the process. It's also odd to run code after resolving or rejecting the promise, the entire purpose of the executor function is just to resolve or reject the promise.

Yeah, it is definitely bad to continue performing logic after calling resolve, but in the case of the commit I linked to it was an accident caused by reformatting the code. I believe what they intended to do was this:
resolve(
  renderFile(this.files.style, locals)
    .then((style) => {
      this.style = style
      debug('Finished rendering stylesheet')
      return style
    })
)

The .then statement was supposed to chain off the return value from renderFile and then resolve with the promise from .then. But they mistakenly left the .then call outside of resolve's parenthesis.
I believe emitting the uncaughtException event (and crashing the application) in this scenario is the correct behavior, if the code was not within a promise then the process would have crashed and the mistake would have been immediately found.

I understand not adding this within v3 since it could break existing code that "works," but it could go into v4.

-1 this breaks compatibility with native promises. This is as strange as resolving/rejecting multiple times.
I definitely see the merit in an opt-in warning for this though.

This breaks compatibility with native less than the .spread method. Bluebird already adds several new methods at both the class and instance levels meaning developers have to be aware of what promise library each of their dependencies use meaning perfectly good code can break because a dependency changed a dependency (e.g. from bluebird to native).
Only code that is actually broken is affected by reporting these errors as uncaught exceptions.

That's not true - the rule of thumb is that bluebird can be a drop in replacement for native promises - this breaks that for a quirk.

This breaks that for telling people when their code is broken. :)


create easier way to get a core dump locally and in CI

I was trying to debug the hot restart test and get a core dump, and it took me an embarrassingly long time to figure out how to do it under bazel (the main issue was that my shell ulimit settings don't transfer to the test invocation I think because bazel is running the test and not my shell). It would be really nice if we could do two things:

Have a better way to get a core dump from a test run locally. Perhaps this is a run_under thing (per @htuch) that correctly sets up ulimit and also make sets the core dump output location to something known and then sets it back, and I guess also deals with sandboxing correctly (i.e., gives you very clear instructions on how to look at the core dump with the right symbols/binary).
Also enables this in CI somehow where we could get a core dump saved as an artifact with the binary that created it.

@mattklein123 re: 1) after #8488 you can run test binary outside bazel without anything special (just invoke bazel-bin/test/<binary>). only general core dump configuration are needed.

Cool SGTM will close. Thank you!


Does not includes all the assets under a folder from external package

Steps to Reproduce

Package_A
Several images under lib/images/
Package_B yaml
dependencies:
  Package_A:
    path: ../Package_A

assets:
    # Works by specifying the asset name
    - packages/Package_A/images/sample_photo.png

    # Does not work by just specifying the folder
    # Console throws Error: unable to find directory entry in pubspec.yaml: /Package_A/packages/Package_B/resources/images/
    - packages/Package_A/images/

Logs

[✓] Flutter (Channel dev, v0.10.0, on Mac OS X 10.14 18A391, locale en-MY)
    • Flutter version 0.10.0 at /Users/anders/flutter
    • Framework revision d954ae6850 (35 hours ago), 2018-10-09 16:21:06 -0400
    • Engine revision bf377896ff
    • Dart version 2.1.0-dev.6.0.flutter-a50dfd6698

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/anders/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.0, Build version 10A255
    • ios-deploy 2.0.0
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.1.1
    • Dart plugin version 181.5616
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] IntelliJ IDEA Ultimate Edition (version 2018.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[!] VS Code (version 1.27.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

De-duping into https://github.com/flutter/flutter/issues/27802


Problem with created Excel file

Hi.
I have a problem with created by excel4node Excel file.
I can open it with Microsoft Excel. But can't use it with other node js modules. Getting error:
(node:2838) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'date1904' of undefined
But then I open in MS Excel and do even small change (enter space) and save it, It's works.
May be you have some suggestions?
Thanks.
PS. This installed on Ubuntu server.
Then trying locally on Windows - it's working..

@ddimka if the file works with excel but not with other nodejs modules, it's probably a bug with those modules

Hi. If i taking other Excel files, not creating with node4excel, it's works..


Integrate with Choco vNext

Deprecate chocolatey powershell support and hide it behind a switch. Introduce support for using the Choco vNext library.

For this next release, we are simply going to integrate with the Choco.exe.  Then, once the choco.dll is ready, we will replace the direct calls to the exe.

Are we sure we want to close this issue? While we work with Choco vNext, we don't work the way we eventually intend too. Or do we want to make that a seperate issue?

I was planning on making a separate issue, to hold the work required to get ChocolateyGUI to work with the Chocolatey DLL, this particular issue has morphed into just getting ChocolateyGUI to work with Chocolatey vNext in the quickest way possible :-)


change match to fullmatch

Codecov Report

Merging #12 (cbb643a) into master (6c7031d) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #12   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            3         3
  Lines          113       113
=========================================
  Hits           113       113

Impacted Files
Coverage Δ

src/objprint/objprint.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Disable commits to perf-test.yml in PRs

For #8585

Codecov Report

Merging #8586 (00e7c64) into main (95a6a3a) will decrease coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main   #8586   +/-   ##
=====================================
- Coverage     71%     71%   -1%
=====================================
  Files        381     381
  Lines      24392   24424   +32
  Branches    3745    3752    +7
=====================================
- Hits       17384   17365   -19
- Misses      5503    5547   +44
- Partials    1505    1512    +7

Impacted Files
Coverage Δ

...ent/datascience/jupyter/pythonVariableRequester.ts
68% <0%> (-6%)
:arrow_down:

src/client/api/kernelApi.ts
11% <0%> (-4%)
:arrow_down:

src/client/datascience/raw-kernel/rawSocket.ts
82% <0%> (-2%)
:arrow_down:

...atascience/interactive-window/interactiveWindow.ts
65% <0%> (-2%)
:arrow_down:

src/client/datascience/jupyter/kernels/kernel.ts
75% <0%> (-1%)
:arrow_down:

...lient/datascience/jupyter/kernels/cellExecution.ts
73% <0%> (-1%)
:arrow_down:

...science/jupyter/kernels/kernelConnectionWrapper.ts
2% <0%> (-1%)
:arrow_down:

...rc/client/datascience/jupyter/debuggerVariables.ts
65% <0%> (+<1%)
:arrow_up:


google-drive-ocamlfuse ramdomly disconnect

Hello,
As i said in the title, the google-drive package disconnect ramdomly.
i can't say after a lenght or other.
But, I'd like to know if it's possible to limit the bandwith up/down with google-drive-ocamlfuse.
Thanks

But, I'd like to know if it's possible to limit the bandwith up/down with google-drive-ocamlfuse.

Yes, there are max_download_speed and max_upload_speed config options.

Hi!
I ran into the same issue. The google drive mount disconnects randomly after some activity and I guess it has something to do with API limits, but I cannot prove this.
Do you have any idea how to fix it?

You should turn on logging (with -debug) and then check the log files to see what kind of errors are you getting.

Hello @astrada !
I already did and at the time of occurence there are no abnormalities.
I'm using the mount point with my Plex Media Server to stream my videos and share it with my family/friends. In exceptional cases it can happen, that there are watching 4 or more people simultaneously.
I grepped for "error" in the debug log and somewhere in the middle something like this appears:
[4363.465699] TID=144622: Retrying (2/8) final_step after exception: Failure("Sqlite3 error: BUSY") [4363.497676] TID=144621: Retrying (2/8) final_step after exception: Failure("Sqlite3 error: BUSY") [4363.752216] TID=144620: Retrying (2/8) final_step after exception: Failure("Sqlite3 error: BUSY")
But I guess it has nothing to do with my problem and it is just a temporary error, because the mount point is crashing much later (with no clear reason).

I am getting disconnects - and/or it just stops working. Not hitting the API limit, I just have to do a fuse disconnect and then re-connect and it works again.
My issue is it looks to be working, I try to get a file, it downloads some, then just stops.
I have a script to check to re-connect if it is disconnected, but I don't have anything for stops working, but looks ok...
This is so far only happening when I do a large scan of a folder with +1000 items.

Should be fixed in the latest versions.


[FEATURE REQUEST] Be able to select all or deselect all packages in the tables via a checkbox in the title row

Before submitting the issue

[X] I have checked that the requested feature is not a duplicate or, if it is, it needs to be reopened
[X] I have checked that I am running the latest version of WingetUI
[X] I have checked the FAQ section
[X] I have read the contributing guidelines and I agree with the Code of Conduct

Is your feature request related to a problem? Please describe.
I would like to select multiple packages to install for example, but I need to select them one by one.
For example a scenario where I would like to install all of these and a "select all" checkbox would be helpful here:

Describe the solution you'd like
It would be helpful to add a "select all" checkbox on the title row to select the visible packages that are currently in view. Do it for all the tables on all the three tabs.

This can't be done on qt.
However, you have those buttons:

This can't be done on qt.
However, you have those buttons:

What a joke.. :(
So why can't we put them at the top row in the table?

I don't think Qt supports widgets on QHeaderItems. At least i couldn't find how to do that.
Sometimes, when developing we need to adapt to toolkits, languages and libraries limitations.

@marticliment,
https://stackoverflow.com/questions/71342916/pyqt6-how-to-check-a-checkbox-within-table-view-when-selecting-an-item
Do this helps?
Unfortunately I have no experience with coding with PyQt6, so I don't really know what works and what's not.
I guess you need to implement it yourself and that it's not that straightforward as you've said with PyQt6.
Thanks for trying though.


nm.device: delete inactive profiles when editting an interface

When editting an interface that doesn't have an active profile we are
creating a new profile. Now, we are deleting all the inactive profiles
of an interface before creating the new one.
Signed-off-by: Fernando Fernandez Mancera<EMAIL_ADDRESS>

Coverage decreased (-3.4%) to 66.158% when pulling 74ef73bb45ce4422007fe202cb4fc44d25cab528 on ffmancera:profile_inactive into a3a362fd1cd2e84d8e33144e3a0d3f82c75ef9ec on nmstate:master.

Coverage decreased (-3.4%) to 66.158% when pulling 74ef73bb45ce4422007fe202cb4fc44d25cab528 on ffmancera:profile_inactive into a3a362fd1cd2e84d8e33144e3a0d3f82c75ef9ec on nmstate:master.

I don't like the idea of deleting all profiles. Can we just use exists one and edit it?
And please investigate why current code in nm/applier.py does not work:
device.activate(dev=None, connection_id=ifname)

I don't like the idea of deleting all profiles. Can we just use exists one and edit it?

We do not support having more than one profile per device at the moment. When nmstate takes over a device, having more than one profile may cause unwanted results (them taking over automatically).
We actually already cleanup all device profiles when taking a device down/absent.

And please investigate why current code in nm/applier.py does not work

What if does not have the same name as we expect?

I don't like the idea of deleting all profiles. Can we just use exists one and edit it?
And please investigate why current code in nm/applier.py does not work:
device.activate(dev=None, connection_id=ifname)

If we are editing an existing interface we are not doing device.activate(dev=None, connection_id=ifname) instead we are doing
for dev, con_profile in ifaces_to_edit:
    device.modify(dev, con_profile)

And con_profile is the already existing active profile or the new active profile.

OK. I got the root cause, the nm/connection.py only check on activate connection
for import_by_device(), that's why this PR is required.
    def import_by_device(self, nmdev=None):
        ac = get_device_active_connection(nmdev or self.nmdevice)
        if ac:
            if nmdev:
                self.nmdevice = nmdev
            self.profile = ac.props.connection

Please fix the CI failure.

@cathay4t , seems your comments have been addressed. I'm merging this PR.
If I missed something, please let me know.


Why the evaluation result on other dataset is zero?

[0 phase]
====TES_MODEL Training=====
== Epoch:  24 == | train time : 0 Min |
train loss: 6.642172
====TES_MODEL Test=====
[test] Precision : 0.0000 | Recall : 0.0000 | F1: 0.0000

I have changed my dataset as the shape of given datasets and run it successfully, however, when comes to the evaluation, all the metrics get zeros. Is the code only suitable for the 6 datasets ?

Hi, the code works universally. Even if your dataset is not a NER dataset, you can use it with minimum modifications.
I think there might be a point you may miss.
However, it's a bit difficult to figure out your problem due to lack of information.
I would recommend you to double-check your code and data, and please attach more detailed information on the problem.
Thanks!

Thank you ! Here is my modifications:
In preprocessing.py ,I set as other datasets.
In run.py

 parser.add_argument('--sample', action='store_true', help='include sampledata data', default=False)

if args.sample:
   sci_args=deepcopy(args)
   sci_args.guidee_data='sampleData'
   modelDict['sampleData']={'args':sci_args}

That is all, thank you very much

In addition, if only a part data of any given dataset is applied, I can not evaluate the code successfully. For example, I take about the first 80 lines of the NCBI-disease dataset (the data of train.tsv is slightly more than others) as input, we will get the result, "
[test] Precision : 0.0000 | Recall : 0.0000 | F1: 0.0000
".
As shown above, I do nothing to the code except modifying the dataset.
Whether there are some points I may miss?? Looking forward to your response.
Thank you!

11

Hi, wonjininfo:
I have tried my best to run the code on my dataset (with  IOB-annotated ), however, there is still some problem with the output as described above. If I want to run on CoNLL2003 in https://github.com/kyzhouhzau/BERT-NER/tree/master/data, what should do to avoid the problem, and can you have a try to verify. Thank you!
with regards

Hi @zwacm ,
Our code was developed using IOB tag at the early days. You can use our code for IOB-annotated dataset as well.
However, one of the most important parts, the evaluation part is written for IOBES-annotated dataset. You will need to modify that part if you wish to use our code for IOB datasets.
Thanks

Ok, thank you very much, I got it.


docs: react-testing-library

First attempt at docs describing how to test routes with react-testing-library
Still very much a work in progress -- any feedback or advice is greatly appreciated

If there are relevant changes in v6 it would be great to update the recipe on the RTL side https://testing-library.com/docs/example-react-router
Thanks @will-t-harris


How to label our nodes

Currently in the Target Model, we don't document the labeling of the nodes (E1->rdfs:label->rdfs:Literal). In fact we mention:

Labels can be attached to any resource across the target model and, since they can be so easily added, they will not be displayed in the schemas below to facilitate readability.

However, I think we have to define a labeling protocol for each type of node that we describe. For the E21_Person node, perhaps it's enough to state the full appellation of the person. However, how do we name a E52_Time-Span?
At the same time, we should document if this labeling would be automatically generated by using other values in the dataset.

We need to automatically generate those labels from partitioning values within the dataset. For example, the Birth event of the person could be the "Birth event of" + [Full Appellation]. But that would require to check all the nodes of our model.
We also need to have in mind that this would need to be bilingual.
The question of the labels also concerns the vocabularies, but that would probably be the topic of another issue...

Yes, it would be a very good idea to specify a common labelling practice. In the sample mapping I generated for you, I put in some indications of how that can go. This step is often neglected in favour of the #43 discussion (because that issue is crucial for connectivity), but is also very important since humans interact with the labels of nodes and not their IRIs.
Once you land on your overall URI/IRI policy, you might connect it to your label policy for the same kinds of nodes
I assume you will specify you URI/IRI policy relative to classes in the ontology, so you could specify your labelling policy in the same way.
It may be interesting to chat with SARI about their IRI pattern because they work in the same direction.


fix: bump storybook version and move stories to storybook package

Description

bump storybook version
move stories to storybook package
add dimensions for testing viewports
improve some stories and types for argTable

PR fixes following issue(s)
Fixes #25534
Type of change

Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Chore (housekeeping or task changes that don't impact user perception)

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[x] Manual
[ ] Jest
[ ] Cypress

Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

/ok-to-test

/ok-to-test


Remove "applicable by default"

The initial version of applicability in v1.5.0-alpha makes sections applicable by default, but that is inconsistent with how laws are typically written, which is that they explicitly include applicability instead of implicitly excluding it. It would make more sense to leave applicability uncertain, by just removing the presumption from the library (which may allows us to remove the library entirely).

Removed in #470


[BUG] Coordinates misplaced when BERT output is written

Describe the bug
When BERT inference is performed, an error raises in the test stage by the test function test_datetime(). I inspected the written samples, and found that it only happens when the longitude coordinates of the token are crossing from  359.75 to 0.00
The data is correct, the longitude coordinates are not in the correct order for target variable.
The error occures both during BERT evaluation temporal_interpolation that uses random neighborhood sampling
I did a dfferent rebase to confirm that it wasn't caused by an error during the rebase.
To Reproduce
Steps to reproduce the behavior:

Rebase from develop
In atmorep/atmorep/core/evaluator.py change cf.years_val to [2021]
Activate virtual env and run evaluate.py
See error

Expected behavior
Something like
0: =================================== FAILURES ===================================
0: ________________________________ test_datetime _________________________________
0:
0: field = 'temperature', model_id = '941s0gju', BERT = True, epoch = 0
0:
0:     def test_datetime(field, model_id, BERT, epoch = 0):
0:
0:         """
0:         Check against ERA5 timestamps.
0:         Loop over all levels individually. 50 random samples for each level.
0:         """
0:
0:         store = zarr.ZipStore(atmorep_target().format(model_id, model_id, str(epoch).zfill(5)))
0:         atmorep = zarr.group(store)
0:
0:         nsamples = min(len(atmorep[field]), 50)
0:         samples = rnd.sample(range(len(atmorep[field])), nsamples)
0:         levels = [int(f.split("=")[1]) for f in atmorep[f"{field}/sample=00000"]] if BERT else atmorep[f"{field}/sample=00000"].ml[:]
0:
0:         get_data = get_BERT if BERT else get_forecast
0:
0:         for level in levels:
0:             #TODO: make it more elegant
0:             level_idx = level if BERT else np.where(levels == level)[0].tolist()[0]
0:
0:             for s in samples:
0:                 data, datetime, lats, lons = get_data(atmorep, field, s, level_idx)
0:                 year, month = datetime.year, str(datetime.month).zfill(2)
0:
0:                 era5_path = era5_fname().format(field, level, field, year, month, level)
0:                 if not os.path.isfile(era5_path):
0:                     warnings.warn(UserWarning((f"Timestamp {datetime} not found in ERA5. Skipping")))
0:                     continue
0:                 era5 = xr.open_dataset(era5_path, engine = "cfgrib")[grib_index(field)].sel(time = datetime, latitude = lats, longitude = lons)
0:
0:                 #assert (data[0] == era5.values[0]).all(), "Mismatch between ERA5 and AtmoRep Timestamps"
0: >               assert np.isclose(data[0], era5.values[0],rtol=1e-04, atol=1e-07).all(), "Mismatch between ERA5 and AtmoRep Timestamps"
0: E               AssertionError: Mismatch between ERA5 and AtmoRep Timestamps
0: E               assert False
0: E                +  where False = <built-in method all of numpy.ndarray object at 0x14d93df66250>()
0: E                +    where <built-in method all of numpy.ndarray object at 0x14d93df66250> = array([False, False, False, False, False, False, False, False, False,\n       False, False, False, False, False, False, False, False, False,\n       False, False, False, False, False, False, False, False, False]).all
0: E                +      where array([False, False, False, False, False, False, False, False, False,\n       False, False, False, False, False, False, False, False, False,\n       False, False, False, False, False, False, False, False, False]) = <function isclose at 0x14da8346bcb0>(array([263.65628, 263.59085, 263.52054, 263.4727 , 263.42484, 263.3799 ,\n       263.34476, 263.29788, 263.26175, 263.2...2.3311 , 262.3057 , 262.08304, 261.9424 , 261.834  , 261.6143 ,\n       261.51566, 261.49515, 261.25882], dtype=float32), array([261.6143 , 261.51566, 261.49515, 261.25882, 263.65628, 263.59085,\n       263.52054, 263.4727 , 263.42484, 263.3...2.79007, 262.709  , 262.501  , 262.30472, 262.3311 , 262.3057 ,\n       262.08304, 261.9424 , 261.834  ], dtype=float32), rtol=0.0001, atol=1e-07)
0: E                +        where <function isclose at 0x14da8346bcb0> = np.isclose
0:
0: /p/home/jusers/semcheddine1/juwels/2_atmorep_develop/atmorep/atmorep/tests/validation_test.py:68: AssertionError

One of the examples is the following:
ds_target[f'temperature/sample=00000/ml=00096'].lon[0] =
0.00, 0.25, 0.50, 0.75, 1.00, 1.25, 1.50, 1.75, 2.00, 355.50, 355.75, 356.00, 356.25, 356.50, 356.75,
357.00, 357.25, 357.50, 357.75, 358.00, 358.25, 358.50, 358.75, 359.00, 359.25, 359.50, 359.75

For these longitude coordinates, and lat = -47.5, we can see how data values from ERA5 grib file are inverted in target:
era5 grib file:
array([254.04143, 253.88908, 253.68694, 253.4428 , 253.18498, 252.93987,
       252.72795, 252.56584, 252.44963, 259.84808, 259.65082, 259.46722,
       259.29633, 259.12543, 258.9428 , 258.72308, 258.43988, 258.07953,
       257.62543, 257.06293, 256.42328, 255.78069, 255.2133 , 254.77483,
       254.47893, 254.29436, 254.16447], dtype=float32)

target:
[259.84808 259.65082 259.46722 259.29633 259.12543 258.9428  258.72308
 258.43988 258.07953 257.62543 257.06293 256.42328 255.78069 255.2133
 254.77483 254.47893 254.29436 254.16447 254.04143 253.88908 253.68694
 253.4428  253.18498 252.93987 252.72795 252.56584 252.44963]

I also compared against zarr ERA5, and found the same problem
Hardware and environment:

System: [JSC]
Runtime: [interactive]
Special branch: [develop, iluise/head]
Python Version: [3.11]

solved in https://github.com/clessig/atmorep/pull/68/files. Closing the issue

Sorry, just realised one thing: Before closing the issue, can you please check that it doesn't happen in the other modes as well?
Thanks!

The test error only raises when BERT logging function is used. I already checked in trainer.py, np.unique() was only used there.

great, closing the issue then.
Thanks


Cannot run on Debian 11 due to GLIBC Version issue

I believe it is caused by that the release is built on a recent glibc ?
Error is:
./servicer-x86_64-unknown-linux-gnu: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./servicer-x86_64-unknown-linux-gnu)
./servicer-x86_64-unknown-linux-gnu: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./servicer-x86_64-unknown-linux-gnu)
./servicer-x86_64-unknown-linux-gnu: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./servicer-x86_64-unknown-linux-gnu)

My server environment is:
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

Provided GLIBC:
$ strings  /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_2.18
GLIBC_2.22
GLIBC_2.23
GLIBC_2.24
GLIBC_2.25
GLIBC_2.26
GLIBC_2.27
GLIBC_2.28
GLIBC_2.29
GLIBC_2.30
GLIBC_PRIVATE
GNU C Library (Debian GLIBC 2.31-13+deb11u7) stable release version 2.31.

Can you try building from source with cargo?


Check that a store has been 'started' before attempting to access it

Currently, if you haven't called start or startFromAddress from the gRPC client, the gRPC server will panic. This is a pretty simple check, so we should probably add it and return the error.

related https://github.com/textileio/go-threads/issues/234

It was discussed at our recent team offsite that we might be able to  fix this (and that other issue) entirely by not requiring the stop to be started first (i.e., auto-start the store or something similar)?

Yep, closing in favor of the auto-start issue.


SubViewport scaling not respecting override size for 3D

Godot version
v4.0.beta17.official [c40020513]
System information
Windows 10, Vulkan, Nvidia 2080 Super
Issue description
When adding a 3D scene to a SubViewport and setting a Size 2D Override value with Size 2D Override Stretch enabled, the SubViewportContainer setting of Stretch is ignored by 3D unless the setting is changed during runtime.  Canvas elements are unaffected and are shown at the correct resolution while 3D elements fit the viewport resolution.

If Stretch is disabled when running the program and is enabled during runtime, the 3D scene is rendered as expected.

Steps to reproduce
Create a 3D scene and add a SubViewportContainer and enable Stretch, then add a SubViewport as a child of the container.  Add a mesh instance, a camera, and a canvas element like a label to the SubViewport.  Set the Size 2D Override to a low resolution and enable Size 2D Override Stretch.  When running the project, the 3D scene should be shown at the viewport resolution while any canvas items are shown at the expected size override resolution.
Stop running the scene, disable Stretch on the SubViewportContainer and run the project again.  The viewport should fill only a small portion of the window.  In the editor, enable the Stretch property and the scene should be rendered as expected.
Minimal reproduction project
SubViewportScalingIssue.zip

CC @Sauermann

This problem is even larger.
Physics Object picking is not working correctly, when enabling SubViewportContainer.stretch during runtime in the above MRP.

@voylin My suggested approach of how to solve this problem is detailed in godotengine/godot-proposals#6221. Since this is a larger change, it will not make it into 4.0.
I am not aware of other attempts to fix this.


Build error!

Hi, I am very interested in your research. However, I met the following issue about Octomap linking error  when compiling your repos.
Linking CXX executable ../../../bin/full_segmentation Linking CXX executable ../../../bin/reflectional_segmentation Linking CXX executable ../../../bin/rotational_segmentation CMakeFiles/full_segmentation.dir/main.cpp.o: In function octomap::OccupancyOcTreeBaseoctomap::OcTreeNode::readBinaryNode(std::istream&, octomap::OcTreeNode*) const':
main.cpp:(.text.ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1[ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1]+0x9e): undefined reference to octomap::OcTreeNode::createChild(unsigned int)' main.cpp:(.text._ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_[_ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_]+0x11c): undefined reference to octomap::OcTreeNode::createChild(unsigned int)'
main.cpp:(.text.ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1[ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1]+0x21d): undefined reference to octomap::OcTreeNode::createChild(unsigned int)' main.cpp:(.text._ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_[_ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_]+0x249): undefined reference to octomap::OcTreeNode::createChild(unsigned int)'
main.cpp:(.text.ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1[ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1]+0x282): undefined reference to octomap::OcTreeNode::createChild(unsigned int)' CMakeFiles/full_segmentation.dir/main.cpp.o:main.cpp:(.text._ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_[_ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_]+0x2ce): more undefined references to octomap::OcTreeNode::createChild(unsigned int)' follow
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/full_segmentation] Error 1
make[1]: *** [examples/full_segmentation/CMakeFiles/full_segmentation.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/reflectional_segmentation.dir/main.cpp.o: In function octomap::OccupancyOcTreeBase<octomap::OcTreeNode>::readBinaryNode(std::istream&, octomap::OcTreeNode*) const': main.cpp:(.text._ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_[_ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_]+0x9e): undefined reference to octomap::OcTreeNode::createChild(unsigned int)'
main.cpp:(.text.ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1[ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1]+0x11c): undefined reference to octomap::OcTreeNode::createChild(unsigned int)' main.cpp:(.text._ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_[_ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_]+0x21d): undefined reference to octomap::OcTreeNode::createChild(unsigned int)'
main.cpp:(.text.ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1[ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1]+0x249): undefined reference to octomap::OcTreeNode::createChild(unsigned int)' main.cpp:(.text._ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_[_ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_]+0x282): undefined reference to octomap::OcTreeNode::createChild(unsigned int)'
CMakeFiles/reflectional_segmentation.dir/main.cpp.o:main.cpp:(.text.ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1[ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1]+0x2ce): more undefined references to octomap::OcTreeNode::createChild(unsigned int)' follow collect2: error: ld returned 1 exit status make[2]: *** [../bin/reflectional_segmentation] Error 1 make[1]: *** [examples/reflectional_segmentation/CMakeFiles/reflectional_segmentation.dir/all] Error 2 CMakeFiles/rotational_segmentation.dir/main.cpp.o: In function octomap::OccupancyOcTreeBaseoctomap::OcTreeNode::readBinaryNode(std::istream&, octomap::OcTreeNode*) const':
main.cpp:(.text.ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1[ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1]+0x9e): undefined reference to octomap::OcTreeNode::createChild(unsigned int)' main.cpp:(.text._ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_[_ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_]+0x11c): undefined reference to octomap::OcTreeNode::createChild(unsigned int)'
main.cpp:(.text.ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1[ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1]+0x21d): undefined reference to octomap::OcTreeNode::createChild(unsigned int)' main.cpp:(.text._ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_[_ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_]+0x249): undefined reference to octomap::OcTreeNode::createChild(unsigned int)'
main.cpp:(.text.ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1[ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1]+0x282): undefined reference to octomap::OcTreeNode::createChild(unsigned int)' CMakeFiles/rotational_segmentation.dir/main.cpp.o:main.cpp:(.text._ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_[_ZNK7octomap19OccupancyOcTreeBaseINS_10OcTreeNodeEE14readBinaryNodeERSiPS1_]+0x2ce): more undefined references to octomap::OcTreeNode::createChild(unsigned int)' follow
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/rotational_segmentation] Error 1
make[1]: *** [examples/rotational_segmentation/CMakeFiles/rotational_segmentation.dir/all] Error 2
make: *** [all] Error 2
`
I am sure that I have installed correctly PCL 1.8 and Octomap 1.8.1 on Ubuntu 14.04.
Thanks in advance!

It looks like the code can't link to OctoMap library properly. It can find the header files with function definitions, but not the .so files. Here are the things to check:

Did you sudo make install OctoMap on your computer after building it?
Do you have ROS installed on your machine? ROS has it's own version of OctoMap, that might conflict with a fresh install of OctoMap 1.8.1.

Hi, I have checked the conditions you provided and it seem that ROS Indigo Octomap conflicts with Octomap 1.8. I think the cmake included directory "/usr/local/lib" that cover also "/usr/local/indigo/lib" hence the conflict happened.
I removed the ROS Octomap (1.6) and it resolves my problem.
Thank you very much :)

Great, glad it worked out!


❗❗❗ Unable to login to KDE Connect with GitTouch  ❗❗❗

This is the error I got:

I realized that I forgot to mention that gitlab records that I made the attempt

@pd4d10 still having issues logging in to that GitLab instance in GitTouch.


Enhancing the chat page !!

Related Issue
[Cite any related issue(s) this pull request addresses. If none, simply state “None”]
Fixes:  #4950
Description
I have added the header , footer , cursor ,and improved the total page ..
Type of PR

[x] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)

Checklist:

[x] I have made this change from my own.
[x] I have taken help from some online resources.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers and screenshots after making the changes.

FIx the navbar here too , remove the bold in navbar heading .
increase the size of community chat box .

@abhi03ruchi ,

@abhi03ruchi , i have made the chanhes , please review and merge it  and add level 3 label


Content Harvester make_jp2 failed: width or height exceeds limit

[This issue broken out from #783]
Error notes from 2024 March 12
26864 is running into issues during the content_harvest task.

Log for 26864-page 29 - permanent link to content_harvest map index 29

The log seems to indicate the error is happening while running this Nuxeo complex object record: https://nuxeo.cdlib.org/nuxeo/nxdoc/default/4e820d82-4282-4e29-bfeb-c894fa72fc04/view_documents -- this complex object includes 17 objects.
18-017-109.tif seems to be the object that's experiencing errors: https://nuxeo.cdlib.org/nuxeo/nxdoc/default/405c77b1-d153-45a3-b861-5bd53655835f/view_documents
Record on -prod: https://calisphere.org/item/4e820d82-4282-4e29-bfeb-c894fa72fc04/ -- specific object: https://calisphere.org/item/4e820d82-4282-4e29-bfeb-c894fa72fc04/?order=6
The error message is:

make_jp2 command failed: ['/usr/bin/convert', '-quiet', '-format', '-jp2', '-define', 'jp2:rate=10', '/tmp/18-017-109.tif[0]', '/tmp/18-017-109.jp2']
returncode was: 1
output was:
convert: width or height exceeds limit `/tmp/18-017-109.tif' @ error/cache.c/OpenPixelCache/3909.
convert: no images defined `/tmp/18-017-109.jp2' @ error/convert.c/ConvertImageCommand/3229.

"; 13557)

I was able to reproduce this error using a local content harvester docker container by running from the rikolti folder:
$ docker build -f Dockerfile.content_harvester -t rikolti/content_harvester .
$ cd content_harvester
$ vi env.local
# add AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, NUXEO_USER, NUXEO_PASS
$ source env.local
$ docker compose run -d content_harvester

Then from Docker Desktop > Containers > Container > Exec tab, or however you want to run a command on the container:
$ python3 -m content_harvester.by_page '26864' '["26864/vernacular_metadata_2024-03-12T20:33:21/mapped_metadata_2024-03-12T20:34:37/data/children/4e820d82-4282-4e29-bfeb-c894fa72fc04-0.jsonl"]' '26864/vernacular_metadata_2024-03-12T20:33:21/mapped_metadata_2024-03-12T20:34:37/with_content_urls_2024-03-12T20:41:26/' 'nuxeo.nuxeo'

Pushed this directly up to main: https://github.com/ucldc/rikolti/commit/87c5c8bccc4a74079f43f0cd5d049504985c409d

@amywieliczka I tried re-running this one and continue to see the same "width or height exceeds limit" message for this page. Likely related to the recent deployment not going through.

The mapped index page indicated in the original issue has harvested through. Thank you!


Rancher projects improved

This improves the implementation for Issue "Add metrics on rancher project and related namespaces (Issue #12)" in the following two aspects:
quota Unit clash
The units returned for the same resources can differ in Rancher.
Especially hard and used value are using different units in my test project:
Instead of just stripping the unit part, it should first be converted to the standard units e.g. like is a the func ExampleMustParse from
https://github.com/kubernetes/apimachinery/blob/adc6f4cd9e7d28fc1c1e5efc658d940d55c0f356/pkg/api/resource/quantity_example_test.go
air gapped setup not working
The container is crashlooping, when it has no internet connection and the DNS lookup return to github.com returns "BAD ADDRESS"
When I add a proxy it works fine.
time="2023-04-07T08:12:23Z" level=info msg="Building Rancher Client"
time="2023-04-07T08:12:23Z" level=info msg="Beginning to serve on port :8080"
time="2023-04-07T08:12:26Z" level=info msg="updating rancher metrics" source="collector.go:201"
time="2023-04-07T08:12:38Z" level=info msg="updating rancher metrics" source="collector.go:201"
time="2023-04-07T08:12:51Z" level=info msg="updating rancher metrics" source="collector.go:201"
time="2023-04-07T08:13:04Z" level=info msg="updating rancher metrics" source="collector.go:201"
time="2023-04-07T08:13:17Z" level=info msg="updating rancher metrics" source="collector.go:201"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x9834e5]

goroutine 54 [running]:
github.com/david-vtuk/prometheus-rancher-exporter/query/rancher.Client.GetLatestRancherVersion({{0xc00029c0f0?, 0xc0002ac780?}, 0xc000076f88?})
        /prometheus-rancher-exporter/query/rancher/rancher.go:103 +0x65
github.com/david-vtuk/prometheus-rancher-exporter/collector.Collect.func1()
        /prometheus-rancher-exporter/collector/collector.go:188 +0xf0
created by github.com/david-vtuk/prometheus-rancher-exporter/collector.Collect
        /prometheus-rancher-exporter/collector/collector.go:181 +0x16d

Thanks a lot for this - merged and image created.


Uncaught BadResource Error

Describe the bug
The following error is thrown and it can't be caught:
error: Uncaught (in promise) BadResource: Bad resource ID
        nwritten += await this.#writer.write(p.subarray(nwritten));
                    ^
    at async write (deno:ext/net/01_net.js:33:12)
    at async BufWriter.flush (https://deno.land/std@0.130.0/io/buffer.ts:748:21)
    at async SMTPConnection.writeCmd (https://deno.land/x/denomailer@1.0.0/client/basic/connection.ts:108:5)
    at async SMTPClient.send (https://deno.land/x/denomailer@1.0.0/client/basic/client.ts:78:7)

OS: Arch
deno version:

deno 1.21.1 (release, x86_64-unknown-linux-gnu)
v8 <IP_ADDRESS>
typescript 4.6.2
std version: 0.138.0

Could you provide a reproduction and the logs when you set in the client options debug.log to true see https://github.com/EC-Nordbund/denomailer#options

I tried but I can't because it works in a minimal reproduction like expected. Strangely it only happens when I make http requests through the native API before making a http request which invokes smtp. In this case the send method is stalling before the error occurs. There seems to be some kind of pile-up. If I don't do the other http requests (just normal static file requests) before that, the error doesn't happen.

http-requests = fetch or what?

Automatic browser requests, originiating from an html file

Oh... so you have also a http-server running in deno...

Edited previous post

Are you sure the connection is not closed? If you call close and then send an EMail I would expect that or a similar error.

Yes you are right, that's it and it is working now. I actually closed it intentionally. I must have misunderstood the code in denomailer/client/mod.ts because I thought that the internal client would reconnect automatically. Really sorry for wasting our time.
Thanks a lot!

With this
import { SMTPClient } from<EMAIL_ADDRESS>
const client = new SMTPClient({
  debug: {
    log: true,
  },
  connection: {
    hostname: "smtp.gmail.com",
    auth: {
      username: "xxx",
      password: "xxx",
    },
  },
});

await sleep(2000);

await client.close();

await client.send({
  from: "xxx",
  to: "xxx",
  subject: "TEST",
  content: "ABC",
});

function sleep(to: number) {
  return new Promise<void>((res) => setTimeout(res, to));
}

I get the same error so I think your connection got closed!

Never mind I fould a small bug while debuging this :D


Fix failing s390x openjdk9 build on Jenkins

Ensuring the JVM_VARIANT variable is being populated with the value from the appropriate value from environment

Building fix via https://ci.adoptopenjdk.net/job/openjdk8_build_s390x_linux/51/console  (openjdk8) and https://ci.adoptopenjdk.net/view/work in progress/job/openjdk9_build_s390x_linux_mani_pr_180/1/console (openjdk9)

Both openjdk8 and openjdk9 builds are successful!