PostgreSQL - data editor not showing data casted to custom table types

Description
DBeaver not showing data that casted to custom table types while psql does it correctly.
Check both examples below in DBeaver and in psql:
DBeaver Version
Community Edition 23.0.0
Operating System
Windows 10 Pro 21H2
Database and driver
PostgreSQL 15.2
JDBC 42.5.4
Steps to reproduce
Example 1:
create type tr_attr AS (name text, value text);
select ('qqq', 'www')::tr_attr;
Example 2:
create type tr_attr as (name text, value text);
create table genres
(
id bigserial,
name text
) ;
insert into genres (name) values ('aaa'), ('bbb'), ('ccc');
select row(t.*)::tr_attr from genres t;
select array(select row(t.*)::tr_attr from genres t) a;
Additional context
No response

Update:
Just restarted DBeaver, then tried to execute these commands again, but this time on two different PG instances - local PG 15.2 on Windows and remote PG 14.5 on Ubuntu (both accessed from DBeaver on Windows)
Initial problem with empty row / empty array is gone somehow. Looks like it was some bad caching or whatnot
Data is visible, but represented differently between two tabs with different PG
select ('qqq', 'www')::tr_attr; - now gives ('qqq', 'www') row from Windows PG and [tr_type] with hidden values (in Value tab) from Linux PG

Update 2:
Reconnected to both PG one more time
Now both connections returns [tr_type] in data editor
Super weird that data editor is not consistent with representation of data

Thanks for the report. The issue is reproducible in case "Show complex column structure" is disabled
https://user-images.githubusercontent.com/31996417/226891874-478820c2-6fae-4650-ada5-ef7d1df49932.mp4


createdb dies when setting up GTDB taxonomy database

Hi folks! Thanks for maintaining this software. I've been trying to set up the GTDB database for taxonomy analysis, but can't seem to get the database set up regardless of the computer used (I've tried both my Linux server as well as my own Mac laptop; mmseqs was installed using conda on the server and using the MacOSX binary available on the mmseqs installation page on the laptop). Details are below. Thanks in advance for any light you can shed on the issue!
Expected Behavior
Creation of a taxonomy database using GTDB as the database.
Current Behavior
the createdb step dies after downloading the GTDB database.
Steps to Reproduce (for bugs)
command:
mmseqs databases GTDB outpath/GTDB tmp
MMseqs Output (for bugs)
bash-3.2$ bin/mmseqs databases GTDB outpath/GTDB tmp
databases GTDB outpath/GTDB tmp
MMseqs Version:                 2fad714b525f1975b62c2d2b5aff28274ad57466
Tsv                             false
Force restart with latest tmp   false
Remove temporary files          false
Compressed                      0
Threads                         8
Verbosity                       3
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100    31  100    31    0     0     41      0 --:--:-- --:--:-- --:--:--    41
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100 51.3G  100 51.3G    0     0  1565k      0  9:33:26  9:33:26 --:--:-- 2662k
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100 54.4M  100 54.4M    0     0  1374k      0  0:00:40  0:00:40 --:--:--  939k
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100 1080k  100 1080k    0     0   489k      0  0:00:02  0:00:02 --:--:--  491k
tar2db tmp/14668141768776664068/gtdb.tar.gz tmp/14668141768776664068/tardb --tar-include faa.gz$ --threads 8 -v 3
Time for merging to tardb: 0h 0m 0s 28ms
Time for merging to tardb.lookup: 0h 0m 0s 13ms
Time for processing: 0h 7m 32s 203ms
createdb tmp/14668141768776664068/tardb outpath/GTDB --compressed 0 -v 3
Converting sequences
Cannot open outpath/GTDB.source for writing
Error: createdb died
Context
Please note that I get this error on both my local computer and on my server; using different methods of installation.
Your Environment
Include as many relevant details about the environment you experienced the bug in.

Git commit used (The string after "MMseqs Version:" when you execute MMseqs without any parameters): MMseqs2 Version: 2fad714b525f1975b62c2d2b5aff28274ad57466 (local MacOSX computer) as well as MMseqs2 Version: 15.6f452 (on Linux server)
Which MMseqs version was used (Statically-compiled, self-compiled, Homebrew, etc.): Installed with both conda (linux server) and using the MacOSX binary available on the mmseqs download page (local computer)
For self-compiled and Homebrew: Compiler and Cmake versions used and their invocation:
Server specifications (especially CPU support for AVX2/SSE and amount of system memory): for Linux server: supports AVX2, 1TB RAM. for local MacOSX computer:  supports AVX2 (I think?), 16 GB RAM
Operating system and version: Linux server: Rocky Linux 8.9 local computer: macOS Monterey 12.7.2

Had the exact same behaviour on linux.

I have this same issue on linux. I can't figure out what it is.

Also having the same issue for multiple databases (nr currently)


Some more polishing of the wires refactor

This PR adds some items missing in the wires refactor PR #99 :

Update some device docstrings
Update required PL version
Delete superfluous (and in fact wrong) line in analytic_probabilities

I think coverage is complaining for no reason, since the changes were in docstrings, and the only code change deleted one line that does not call another function (and can therefore not change coverage).


Fixing system language not changing back after closing a game

There's a bug reported in #3 that I noticed still happens,  that caused the display language to not change back to it's original value after closing a game. Turns out it was just a typo in the powershell command.
Instead of Set-WinUILanguageOverride pt-BR, UWP would call Set - WinUILanguageOverride pt-BR (notice the extra spaces around -).

Nice catch! Thanks for the contribution!


Incremental decoding implemented

This is an implementation of incremental decoding (decoding one strip at a time). This PR is the first step towards https://github.com/PistonDevelopers/image/issues/858. I am reasonably confident that the implementation is correct in the same cases as the last implementation. I have tested it on the tests from #25 and they are correct.
The public api has changed in a small way with two new public methods on Decoder, namely Decoder::strip_count and Decoder::read_strip. If there are any objections to the api changes or the implementation I would be happy to sort them out.

@fintelia (or anyone else) I wonder if you could give me any feedback on this PR so that I can continue with https://github.com/PistonDevelopers/image/issues/858?

I'm not really that familiar with the TIFF decoding logic, but assuming that tests pass and so forth the code looks reasonable. My one concern is that having read_strip allocate and return a Vector might cause you to have to make extra copies when implementing Read.
If you think this is ready, I can go ahead and merge this PR and we can address any rough edges in a future patch.

@fintelia I tried to keep it compatible with the current DecodingResult. I believe this could be done better, but that would require some larger api changes which is something I am looking into for the longer run.
I guess if I marked DecodingBuffer and read_strip_to_buffer as public I could fix the extra copy issue and simply copy some of the read_strip logic into the eventual Reader. I will fix that now and then we should then have what we need to continue with an TiffReader in the image crate for now.

@fintelia friendly ping. Would it be possible to merge this or do you have any other concerns.


Fixed Copy URL button visibility with better UX.

Signed-off-by: Chinu Anand<EMAIL_ADDRESS>Description
This PR fixes #1000
Notes for Reviewers
I prettified some files that's why there are a bit more no. of changes.
Signed commits

[x] Yes, I signed my commits.

On clicking on the Copy URL button it is shrinking and I think it should not shrink on click
https://user-images.githubusercontent.com/71271069/216156726-697734a3-a57b-4abe-96cd-1472dbf6852a.mov

@leecalcote I reverted all the "formatting" changes and did a new commit which only changes the lines of code relevant to the button issue. At my side the file changes in this PR is showing what exactly it should be. 🤔

This PR fixes https://github.com/meshery/meshery.io/issues/1000

💥 💥

Hey @chinu-anand nice work I have a suggestion can you remove those extra space and format changes it just makes it hard to review the real changes

Ha! I'm just now seeing this.


[PyTorch] Skip context parallel tests on architectures below sm80

This PR skips context parallel unit tests when compute capability is lower than sm80, because the two backends, FusedAttention and FlashAttention, that support context parallelism, both require sm80+.

/te-ci pytorch


Android fonts issue

Description
Font only get reflected on ios but not android
CodeSandbox/Snack link

Steps to reproduce
I exported the components from gluestack
import {GluestackUIProvider, SafeAreaView, Text} from './components';
import {useFonts} from 'expo-font';
import {Montserrat_400Regular} from '@expo-google-fonts/montserrat';
import {Licorice_400Regular} from '@expo-google-fonts/licorice';

export default function App() {
  const [fontsLoaded] = useFonts({
    Montserrat_400Regular,
    Licorice_400Regular,
  });

  return (
    <GluestackUIProvider>
      <SafeAreaView justifyContent="center" alignItems="center" flex={1}>
        <Text fontFamily="$heading">Hello World!</Text>
        <Text fontFamily="$body">Hello World!</Text>
      </SafeAreaView>
    </GluestackUIProvider>
  );
}

In the gluestack-ui.config.ts file, i changed below line to
 fonts: {       heading: 'licorice',       body: 'licorice',       mono: 'montserrat',     },
Attached below is my package.json
 "dependencies": {
    "@expo-google-fonts/hind": "^0.2.3",
    "@expo-google-fonts/kolker-brush": "^0.2.3",
    "@expo-google-fonts/licorice": "^0.2.3",
    "@expo-google-fonts/montserrat": "^0.2.3",
    "@gluestack-style/react": "^1.0.56",
    "@gluestack-ui/config": "latest",
    "@gluestack-ui/themed": "^1.1.30",
    "expo": "^51.0.0",
    "expo-font": "~12.0.7",
    "react": "18.2.0",
    "react-native": "0.74.2",
    "react-native-svg": "13.4.0"
  },

gluestack-ui Version
1.1.30
Platform

[ ] Expo
[X] React Native CLI
[ ] Next
[ ] Web
[ ] Android
[ ] iOS

Other Platform
No response
Additional Information

You need to use the FontResolever (see end of https://gluestack.io/ui/docs/guides/advanced/fonts) or use something like expo-xml-font https://github.com/Armster15/expo-xml-font

do you have any idea where can i find the example for FontResolver?

do you have any idea where can i find the example for FontResolver?

just found something in the gluestack.io/style docs
in my case I have the following scenario:
  //in my home _layout:
  const [fontLoaded] = useFonts({
    Grenze_700Bold,
    NotoSerif_400Regular,
    NotoSerif_700Bold
  })

so in the gluestack createConfig I'm passing to the  FontResolver mapFonts field a function that transform this ugly input i'm getting from the callback
 {"fontFamily": "Grenze", "fontWeight": "700"}
 {"fontFamily": "NotoSerif", "fontStyle": "normal", "fontWeight": "400"}
 {"fontFamily": "NotoSerif", "fontStyle": "normal", "fontWeight": "bold"}

into
'Grenze_700Bold'
'NotoSerif_400Regular'
'NotoSerif_700Bold'

by doing this I solved the issue with Android, on iOS it was working without this thing

actually after applying some changes I realised there are still some issues with custom fonts and android, for example if I apply a custom fontFamily via prop to a Heading, all other Heading components start using the same font even if they are no customized


The periods in the top bar in the demo

you were able to implement period update using the klinechart library or you had to update the library code?
Is this possible to be done using the current updateData() ?
I think period update is a critical feature in such charts

The chart will display the data for what period, and the period switching needs to be controlled outside the chart.


build on aarch64.

build using run-on-arch action, this has to be switched
into a base build container that does aarch64 binary emulation or its own
runner.
store the aarch64 artifacts

Signed-off-by: Jorge Niedbalski<EMAIL_ADDRESS>

fixed all your comments, @patrick-stephens


2nd vehicle updates stop after apparent network glitch

I have two vehicles on my account and have found after a while updates always stop for one of them, seemingly when a network glitch happens based on what I infer from debug logs. Updates for both seem to resume once I restart HA.
Here is a redacted/obfuscated version of
debug logs showing the issue.  Below snip shows a series of apparent network errors impacting various components including rivian after timestamp 2024-12-07 23:31:34.390, then the only updates are to vehicle 01-926494020 and never again to vehicle 01-410746350.
2024-12-07 23:31:31.150 DEBUG (MainThread) [custom_components.rivian.coordinator] Vehicle 01-410746350 updated: <ALL-UPDATES-REDACTED>
2024-12-07 23:31:31.151 DEBUG (MainThread) [custom_components.rivian.coordinator] Manually updated rivian data
2024-12-07 23:31:34.389 DEBUG (MainThread) [custom_components.rivian.coordinator] Vehicle 01-410746350 updated: <ALL-UPDATES-REDACTED>
2024-12-07 23:31:34.390 DEBUG (MainThread) [custom_components.rivian.coordinator] Manually updated rivian data
2024-12-08 00:13:07.994 DEBUG (MainThread) [rivian.ws_monitor] WSMessage(type=<WSMsgType.TEXT: 1>, data='{"id":"<REDACTED>","type":"error","payload":[{"message":"fetch failed"}]}', extra='')
2024-12-08 02:30:52.505 ERROR (Thread-5) [pychromecast.socket_client] [Kitchen display(<IP_ADDRESS>):8009] Error reading from socket: socket connection broken
2024-12-08 02:30:52.512 ERROR (Thread-5) [pychromecast.socket_client] [Kitchen display(<IP_ADDRESS>):8009] Failed to connect to service HostServiceInfo(host='<IP_ADDRESS>', port=8009), retrying in 5.0s
2024-12-08 03:00:03.294 ERROR (MainThread) [homeassistant.components.shell_command] Error running command: `curl --digest -u admin:admin http://ata.local/rebootgetconfig.htm`, return code: 7
NoneType: None
2024-12-08 04:06:25.962 ERROR (Thread-6) [pychromecast.socket_client] [Rec Room Chromecast(<IP_ADDRESS>):8009] Failed to connect to service HostServiceInfo(host='<IP_ADDRESS>', port=8009), retrying in 5.0s
2024-12-08 04:49:39.168 ERROR (SyncWorker_29) [custom_components.solaredge_modbus] Error reading modbus data
Traceback (most recent call last):
  File "/config/custom_components/solaredge_modbus/__init__.py", line 244, in _refresh_modbus_data
    update_result = self.read_modbus_data()
                    ^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/solaredge_modbus/__init__.py", line 318, in read_modbus_data
    self.read_modbus_data_inverter()
  File "/config/custom_components/solaredge_modbus/__init__.py", line 686, in read_modbus_data_inverter
    self.data["acenergy"] = round(acenergy * 0.001, 3)
                                  ~~~~~~~~~^~~~~~~
OverflowError: int too large to convert to float
2024-12-08 05:20:11.252 DEBUG (MainThread) [custom_components.rivian.coordinator] Vehicle 01-926494020 updated: <ALL-UPDATES-REDACTED>
2024-12-08 05:20:11.254 DEBUG (MainThread) [custom_components.rivian.coordinator] Manually updated rivian data
2024-12-08 05:20:12.804 DEBUG (MainThread) [custom_components.rivian.coordinator] Vehicle 01-926494020 updated: <ALL-UPDATES-REDACTED>
2024-12-08 05:20:12.805 DEBUG (MainThread) [custom_components.rivian.coordinator] Manually updated rivian data

@ditdafivo thanks for reporting this. We will take a look at this and see if we can find the issue.
Is there anything that you can do in order to resolve this from your end?  Have you tried re-configuring the extension?
I am not sure if anyone on the team has two vehicles honestly, so this may be a little hard to debug but we will do our best!
cc: @natekspencer


Missing Menu Prefix

Small doc change.

Thanks @vbabiy  - I have added you to the contributors list as Vitaly Babiy, let me know if you want a different name listed.
Really appreciate the fix here.


How to check Error: Invalid ID like "https://sqids.org/playground"

i try to check if i change some value still i will get result or not
for example
const sqids = new Sqids({
alphabet: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789',
minLength:11
});
// encode
sqids.encode([1])
'UkLWZg9DAJQ'
// decode
sqids.decode('UkLWZg9DAJQ')

// the problem is when i change value from 'UkLWZg9DAJQ' to akLWZg9DAJQ still i will get value
sqids.decode('akLWZg9DAJQ')=>[368240725753862300]
BUT when i try it akLWZg9DAJQ with playground,"https://sqids.org/playground" it's give me Error: Invalid ID how can i do like playground

https://sqids.org/faq#valid-ids


Question on how to implement simple kalman filter

Hi, I am trying to build an ESP32-based scale, but I am struggling to use this library for improving the measurement estimates.
Basically, I try to implement a simple kalman filter as described in this C++ library:
https://github.com/denyssene/SimpleKalmanFilter

e_mea: Measurement Uncertainty - How much do we expect to our measurement vary
e_est: Estimation Uncertainty - Can be initilized with the same value as e_mea since the kalman filter will adjust its value.
q: Process Variance - usually a small number between 0.001 and 1 - how fast your measurement moves. Recommended 0.01.

 SimpleKalmanFilter kf = SimpleKalmanFilter(e_mea, e_est, q);

 while (1) {
  float x = analogRead(A0);
  float estimated_x = kf.updateEstimate(x);

  // ...
 }

Could you maybe give me some guidance on how to translate this to your library?
Your help would be highly appreciated :)

Have you seen the examples, e.g. https://github.com/strawlab/adskalman-rs/blob/main/examples/src/bin/online_tracking.rs ?

Thank you for your answer! Indeed, i did not see this example yet as I missed looking into the bin/ subfolder :sweat_smile:
I assume the relevant lines are these:
https://github.com/strawlab/adskalman-rs/blob/f7c20fc7b3fa7b487180e8759db7055950231989/examples/src/bin/online_tracking.rs#L17-L27
However, I am not sure what exactly I need to adjust here:

motion_model and observation_model come from the examples, can I just reuse these exactly as they are?
Since I only have weight_measurement as variable, I assume that my true_initial_state has only one element?
What do I need to set the initial_covariance matrix to? [[1]]?

Please excuse me for my lack of understanding :sweat_smile:

That model has a 4D state (2D XY position, 2D XY velocity) and 2D observation (XY position only). If that suits your case, yes, you can use this directly. Otherwise you'll have to implement your own transition model and observation model. You can use the rest of the example code as a basis, I hope.

Dear @astraw, I managed to implement my own Kalman filter for a 2d state (1D position, 1D velocity).
Thank you for your help.
Now I would like to use it with actual time measurements but dt is a constant which gets defined when creating the motion_model.
Is it also possible to pass dt in each step, based on actual time measurements?

@Hoeze Glad to hear it.
Yes, you can simply rebuild the motion model each time you have a new dt.
You can check your math by ensuring that the covariance grows by the same amount if you have either A) two timesteps of half the duration vs B) a single timestep at normal duration.


Receive 422 response when searching Issues

Hi! I am pretty new to Scala so bear with me. I can't really pinpoint what's going wrong, but hopefully I can explain it well enough.
Version
github4s: v0.26.0
What I trying to do
I am trying to use the Issue Search to find Pull Requests in a project, that are open and have a particular label. In the REPL, I've tried:
client.issues.searchIssues(
	"",
	List(OwnerParamInRepository("47degrees/github4s"), IssueTypePullRequest, LabelParam("bug"), IssueStateOpen))
.unsafeRunSync()

This returns response with a 422 status code:
GHResponse(Left(UnprocessableEntityError(Validation Failed, List(UnprocessableEntity(Search,q,InvalidFormatting)))),422, ...)

This results in a query string of +repo:47degrees/github4s+type:pr+label:bug+state:open. Although it looks a bit odd works fine as an API request.
I noticed if everything except the OwnerParamInRepository the search succeeds just fine.
Running
client.issues.searchIssues("", List(OwnerParamInRepository("47degrees/github4s"))).unsafeRunSync()

Returns a response of
github4s.GHResponse[github4s.domain.SearchIssuesResult] = GHResponse(Right(SearchIssuesResult(0,false,List())),200, ...)

Thanks for the great work!

mmh weird, is the leading + the issue?

The leading + seems to be just fine. The following request works fine:
https://api.github.com/search/issues?q=+repo:47degrees/github4s+type:pr+label:enhancement+state:open

good catch! :+1:

I believe I've found the source of the issue. Whether or not it's a bug remains to be seen, but it appears that http4s uses different encoder settings for query parameters VS the main URL. I've submitted this to them as the above issue (the second one, the first was a similar issue I thought was related but was a bit different), so hopefully we will hear back soon!

I believe I've found the source of the issue. Whether or not it's a bug remains to be seen, but it appears that http4s uses different encoder settings for query parameters VS the main URL. I've submitted this to them as the above issue (the second one, the first was a similar issue I thought was related but was a bit different), so hopefully we will hear back soon!

Fix is posted above ^

Fix is posted above ^


Trouble loading

This looks like a really useful plugin! However, when I drop it into the plugins directory, reload the plugins in the app, and try to toggle it on, I get "failed to load plugin obsidian-microblog." Am I missing a step? I've never manually installed a plugin.

Hi @frostedechoes! Since this plugin hasn't been officially released, it can still be considered a beta (or alpha, really).
That being said, if you want to "sideload" a plugin that hasn't officially been released, I'd recommend using the Plugins Galore plugin over at https://github.com/plugins-galore/obsidian-plugins-galore


Custom view component connected to redux

Hi, I have a list view which looks like below and I want to make this a custom view:

The problem I am encountering (and this goes for the custom toolbar I have also) is that I don't know how to connect my component to the redux store as well as receive props from the calendar.
At the moment the component is a standalone component and is working fine with redux, however when I pass it into the calendar as a custom view (iso agenda) as follows
views={{ month: true, week: true, day: true, agenda: TimeWriting }}

the props available are :
views={{ month: true, week: true, day: true, agenda: TimeWriting }}

Is it possible to pass in extra props to the custom view component?
And an extension of this is; is it possible to pass in extra props to the custom toolbar component?
great library by the way!

Hi, please have a look at https://github.com/intljusticemission/react-big-calendar/issues/623, I believe you're asking the same thing here!


Add custom headers for authorization

Description
Add support for custom auth headers

- This is prevent us from hard coding the header in the code.

- Now the headers can be sent as "--auth 'X-Auth-Token:
  i-am-a-token'"

Checklist:

[x] I have performed a self-review of my own code
[x] I have ran deno task ci to ensure that my code is formatted and linted.
[ ] I have linked the related issue (if there is no related issue please
create one)
[ ] I have added tests if applicable (needs tests to be ready)

Hey, @kumaranvram thanks for the PR! If I understand wright the goal here is to pass full headers rather than only the Authorization one. It's a great feature I agree (and I should have designed it this way at the beginning now that I think about it). Why did you close the PR?

Just released v1.2.1 that introduces "-H" flag to pass headers & fixed some bugs I noticed. See the release note. I hope this fulfills your expectations!


Relnotes updates for GA version

NB: please do not publish this until the GA version is released.

@edyoung : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@edyoung : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @edyoung - This update should be submitted in the private repo. If you need information about how to work in the private repo, I can email it to you. We'll close this PR. Thanks.


We need a way to uniquely identify SNARKs

The same SNARK may appear multiple blocks. We only want to count a SNARK once.

Won't do now


Added discord.js information

Official documentation and discord servers, along w/ third party

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
 Human readable link labels would be nice too.


Typescript support

Would be nice if the types for typescript can be added to this library.

Are there typings for this project?

Yes, typescript od supported from 3.0.0-beta version


implicit hydrogens in openchemlib

e.g., display "OH2" correctly when Hs are note explicitly drawn

https://github.com/cheminfo/openchemlib-js/issues/125


Use String.fromCharCode for the 'x' (times) symbol.

Using '×' causes character encoding issues in some cases

Fix for #11

Hmm. I'd prefer not to diverge from the upstream project here if at all possible.
Is it possible for you to specify the encoding of the JS source file that includes the symbol? You can do this by adding a charset attribute to the tag, e.g.
<script src="react-select-plus.js" charset="utf-8"></script>

If you can't address the problem on your end, please file a ticket at https://github.com/JedWatson/react-select/issues.


"Invalid flow specified" Error on Integration Configuration

Describe the bug
When configuring the integration, unable to log in to Amazon account.
To Reproduce
Steps to reproduce the behavior:

Go to Integrations tab
Click on yellow plus button
Scroll down to Alexa Media Player
Input Amazon login information, inserting captcha as necessary
Get error of "Invalid flow specified"

Expected behavior
Expect integration to load with devices.
Screenshots

System details

Home-assistant (version): 0.107.7
Hassio (Yes/No): Yes (note that I have reloaded and rebooted over four times)
alexa_media  (version from const.py or HA startup): 2.5.11
alexapy (version from pip show alexapy or HA startup): Note sure how to locate.

Logs
home-assistant.log
Additional context
Note that I previously had this integration working for months.

I am currently have the same exact issue. Worked for months until this afternoon. Updated Alexa Media Player and all echos quite working. Removed integration, pickle file and alexa_media custom_component directory and tried to start from scratch and here I am.

Invalid flow happens if you restart HA while it's in a flow. You need to restart the flow after any restart of HA. However, the log you attached is referencing #633 so that may be the root issue since that blocks initial setup.

Invalid flow happens if you restart HA while it's in a flow. You need to restart the flow after any restart of HA. However, the log you attached is referencing #633 so that may be the root issue since that blocks initial setup.

How can I ensure that I am not restarting while in flow?
To ensure I got a clean log I removed the Alexa integration and HACS Alexa component, then reinstalled the HACS Alexa component, then restarted three times, then attempted to configure the Alexa integration.

Within HA's integration page, you need to hit the plus sign after each reboot. If you were in the middle of a flow with the input window open and restart, then the window you're using is stale and gives you the invalid flow error. However, you could be seeing #633 which would block any setup or startup.

#633 is where my problem started. (and still is, which apparently why setup is not working. I will wait until #633 is resolved.

I downloaded 2.5.12 and the login issue is fixed! However, I am now having an issue with TTS and Announce functionality:
2020-04-07 22:51:05 ERROR (MainThread) [homeassistant.components.automation] Echo TTS Test: Error executing script. Unexpected error for call_service at pos 3: Too Many Requests Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 138, in _async_step     self, f"_async_{cv.determine_script_action(self._action)}_step"   File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 233, in _async_call_service_step     context=self._context,   File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 101, in async_call_from_config     domain, service_name, service_data, blocking=blocking, context=context   File "/usr/src/homeassistant/homeassistant/core.py", line 1234, in async_call     await asyncio.shield(self._execute_service(handler, service_call))   File "/usr/src/homeassistant/homeassistant/core.py", line 1257, in _execute_service     await handler.func(service_call)   File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 119, in async_notify_message     await notify_service.async_send_message(**kwargs)   File "/config/custom_components/alexa_media/notify.py", line 198, in async_send_message     await asyncio.gather(*tasks)   File "/config/custom_components/alexa_media/helpers.py", line 146, in wrapper     result = await func(*args, **kwargs)   File "/config/custom_components/alexa_media/media_player.py", line 1024, in async_send_tts     await self.alexa_api.send_tts(message, customer_id=self._customer_id, **kwargs)   File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 464, in send_tts     skillId="amzn1.ask.1p.saysomething",   File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 296, in send_sequence     await self.run_behavior(node_data)   File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 247, in run_behavior     await self._post_request("/api/behaviors/preview", data=data)   File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 118, in _post_request     return await self._request("post", uri, data)   File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 111, in _request     raise AlexapyTooManyRequestsError(response.reason) alexapy.errors.AlexapyTooManyRequestsError: Too Many Requests

Please refer to the open issue #612. Please test the Invalid Flow error and close if it's gone.


Crash on do_get_table of group.hpp

Goals
Avoid this crash.
Expected Results
Normal application launch.
Actual Results
Infinite crash loop on application launch.
As well, the application Realm Browser crashes directly after trying to open the .realm file which I got from my device. Realm Studio can not open the file neither. I can provide you with the file itself if it helps.
Steps to Reproduce
Force restart iOS device and launch the application. Doesn't reproduce every time and for every device.
Realm framework version: 3.1.1 - 3.5.0
Xcode version: 9.3
iOS/OSX version: iOS 11

Sounds like you are trying to open a file that is corrupt.
Please provide the full stack trace.

Closing this issue due to no response. Feel free to reopen if additional information can be provided.


Hide selection

It Will be great to have a command to Hide Selection ( like #region but without code).

duplicate of https://github.com/microsoft/vscode/issues/18805


How to rename duplicates when they share same/similar definition

When I go through all the duplicated items, there are a special scenario to note, where the duplicated models share same or similar definition. Furtherly, this scenario can be divided into two more specific cases, and the details are as follows.

Mgmt. plane vs Data plane

Class
Mgmt. plane
Data plane

AccessRights
Azure.ResourceManager.ServiceBus
Azure.Messaging.ServiceBus

AzureEntityResource
Azure.ResourceManager.Storage
Azure.Analytics.Synapse.Artifacts

LeaseState
Azure.ResourceManager.Storage
Azure.Storage.Blobs

LeaseStatus
Azure.ResourceManager.Storage
Azure.Storage.Blobs

Azure.ResourceManager.Cosmos vs Azure.Cosmos

Class
SDK 1
SDK 2

IndexingMode
Azure.ResourceManager.Cosmos
Azure.Cosmos

CompositePath
Azure.ResourceManager.Cosmos
Azure.Cosmos

ConflictResolutionPolicy
Azure.ResourceManager.Cosmos
Azure.Cosmos

ConflictResolutionMode
Azure.ResourceManager.Cosmos
Azure.Cosmos

ExcludedPath
Azure.ResourceManager.Cosmos
Azure.Cosmos

IncludedPath
Azure.ResourceManager.Cosmos
Azure.Cosmos

IndexingPolicy
Azure.ResourceManager.Cosmos
Azure.Cosmos

UniqueKey
Azure.ResourceManager.Cosmos
Azure.Cosmos

UniqueKeyPolicy
Azure.ResourceManager.Cosmos
Azure.Cosmos

CompositePathSortOrder
Azure.ResourceManager.Cosmos
Azure.Cosmos

DataType
Azure.ResourceManager.Cosmos
Azure.Cosmos

IndexKind
Azure.ResourceManager.Cosmos
Azure.Cosmos

SpatialType
Azure.ResourceManager.Cosmos
Azure.Cosmos

TriggerOperation
Azure.ResourceManager.Cosmos
Azure.Cosmos

TriggerType
Azure.ResourceManager.Cosmos
Azure.Cosmos

Remark: Azure.Cosmos should be the .net SDK that written and owned by cosmos team themselves and now it's package name has changed to Microsoft.Azure.Cosmos.

For both of the above cases, I'd prefer to keep their names unchanged, thus ensuring the friendly consistency in use.

The become mandatory step for release


Return factor in SpeedPerturbation

🚀 The feature
SpeedPerturbation forward method should return the factor by which the signal was compressed or stretched or kept unaltered. The following snippet illustrates the feature, returning a nested tuple ((x, y), z).
class SpeedPerturbation(torch.nn.Module):

    ...

    def __init__(self, orig_freq: int, factors: Sequence[float]) -> None:
        super().__init__()

        self.speeders = torch.nn.ModuleList([Speed(orig_freq=orig_freq, factor=factor) for factor in factors])
        self.factors = torch.nn.ModuleList(factors)  # XXX <- change here

    def forward(
        self, waveform: torch.Tensor, lengths: Optional[torch.Tensor] = None
    ) -> Tuple[torch.Tensor, Optional[torch.Tensor], float]:

        ...

        idx = int(torch.randint(len(self.speeders), ()))
        # NOTE: we do this because TorchScript doesn't allow for
        # indexing ModuleList instances with non-literals.
        for speeder_idx, (speeder, factor) in enumerate(zip(self.speeders, self.factors)):
            if idx == speeder_idx:
                return speeder(waveform, lengths), factor  # XXX <- change here
        raise RuntimeError("Speeder not found; execution should have never reached here.")

Motivation, pitch
For discrete-label (sort of) tasks such as speech recognition, knowing the factor upon which the speed perturbation will be applied is not so important. But for tasks where the label is segment-based, such as voice activity detection, the labels consist of boundaries in which an event occurs in time, and those annotations change depending on whether the signal was speeded up or slowed down.
In the latter case, adjusting the labels would be just a matter of multiplying the timestamsp by the factor.
Alternatives
IMO a better way to handle this would be to make the Speed class itself to return the factor, simply because 1) it is already being tracked as a class variable self.factor at the constructor, and 2) a "flat" tuple (x, y, z) would be prettier to return than a "nested" one ((x, y), z) 😋
class Speed(torch.nn.Module):

    ...

    def forward(self, waveform, lengths: Optional[torch.Tensor] = None) -> Tuple[torch.Tensor, Optional[torch.Tensor]]:

        ...

        if lengths is None:
            out_lengths = None
        else:
            out_lengths = torch.ceil(lengths * self.target_sample_rate / self.source_sample_rate).to(lengths.dtype)

        return self.resampler(waveform), out_lengths, self.factor  # XXX <- change here

Additional context
No response

Just realized it makes more sense to divide the tensor's original shape by the new one -- it is more accurate and effortless. Closing it :)


Bump sdk-bundles-api version

The DetailedTestCaseResult type was modified in a non-backwards compatible way here, so, to maintain compatibility with older versions of report-diffs-action, we add in the old type here.
Additional context: https://github.com/alwaysmeticulous/meticulous/pull/3176#issuecomment-2229422008

@Que3216 a couple questions:

Would it make more sense for this versioning to live in the sdk? E.g. add a testCaseResultsV2 field to ExecuteTestRunResult instead of adding this type guard into report-diffs-action semi-permanently?
I wasn't totally sure what you had in mind for having someway to remotely trigger old versions of report-diffs-action to fail with a "Please upgrade" message. It seems like we would only want to trigger this if a breaking change was introduced, so that the message doesn't become to noisy. Did you have some thoughts on how you wanted to do this?


Migrate from configurator to yaml

The included tests run fine and relevant PRs will be opened in projects using kraken.
The example files had to be made into yaml which means comments had to be moved to the top.

The yaml file works fine if the comments stay where they were. Or did I misunderstand something?

Hm, it was failing to parse for me initially if the comments were inline. Maybe something else was causing it and I put it towards comment location. I'll have a look if the comments can't be moved down.

This will require a change to the config template in dwh-servers, I believe.

@jkarni: Yes, it will. We have to be careful when merging/deploying this.

The PRs should be ready to comment on again, I integrated most (all?) of the things pointed out in comments.
@jarni I will see if I can't update it today.


Make project compatible with Haskell Cabal

This also updates the README and the script to support both Cabal & Stack

Thanks.

Sure! :)


error when yarn is not installed

Hi, I am running a Gitlab pipeline (log here https://gitlab.com/velox-shop/commons/-/jobs/3124338908)
It is a Java project, so yarn is not installed.
I'm using plugin id "org.owasp.dependencycheck" version "7.2.1"  and I get a
InitializationException: Unable to read yarn audit output. [1274](https://gitlab.com/velox-shop/commons/-/jobs/3124338908#L1274)		caused by IOException: Cannot run program "yarn": error=2, No such file or directory [1275](https://gitlab.com/velox-shop/commons/-/jobs/3124338908#L1275)		caused by IOException: error=2, No such file or directory

I solved this by adding
dependencyCheck {
    analyzers {
        nodeAudit {
            yarnEnabled=false
        }
    }
}

but I still think it should work without.

I just ran ODC on https://gitlab.com/velox-shop/commons and did not receive the error message. The error indicates a yarn.lock file was scanned - and because yarn is not installed the analysis cannot be completed.


[FABCJ-283] Prepare next release v3.0.0

Version 2.1 is now in the release.2.x branch
Signed-off-by: James Taylor<EMAIL_ADDRESS>

/azp run

Doesn't build


Action Docs

Description
This adds two docs about:

Action Architecture
Creating a basic action

Why is this needed
We have no documentation around Actions
Fixes: #
How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:
I have:

[x] updated the documentation and/or roadmap (if required)
[ ] added unit or e2e tests
[ ] provided instructions on how to upgrade

I'm wondering about the organization a little: should make an "Actions" section?
(Similarly, if there is more content to build out on Workflows, Hardware data, etc. we can build those as sections with multiple pages eventually.)
I think we should stay away from something generic, like "guides"
Thoughts?

The organization is always hard. I am scared we will end up with a lot of sections.

should make an "Actions" section?

Look at what we have now, the root sections are:
Hardware Data
Templates
Workflows
So I agree, following what we have we should have a "Actions" section.
I think we can follow the same for workflows moving the Example under Workflows (with a better name)
In this way, we will ADD a section Action, but we will remove the "Examples" actions that from my understanding relates only to Workflows! So we will keep the delta to 0! 🎉

Okay! I think I will go ahead and merge this PR, and then go back through to proofread and add the docs to the table of contents.


fix(migrate): Adding DB migration tool

:tada: This PR is included in version 1.7.1 :tada:
Your semantic-release bot :package::rocket:


STYLE: Remove unused OpenMP based code

Removed unreachable if clauses of the form if (x && false), else clauses of if (true) or if (x || true), and #else parts of #if 1.
Removed unused #include <omp.h> directives.
Removed unreachable code that was specifically for either a single-threaded or a multi-threaded implementation.

When reviewing the code, it may help to hide whitespace changes: https://github.com/SuperElastix/elastix/pull/1188/files?w=1

Approved by Marius (@mstaring) by mail -- the use of OpenMP was an old experiment, that has been abandoned.


Cannot resolve module 'react/lib/emptyFunction'

Hi,
Using<EMAIL_ADDRESS>I'm getting this when trying to test out a Crouton.
[0] Module not found: Error: Cannot resolve module 'react/lib/emptyFunction' in /Users/gustavojimenez/Projects/myProject/node_modules/react-crouton
[0] resolve module react/lib/emptyFunction in /Users/gustavojimenez/Projects/myProject/node_modules/react-crouton
[0]   looking for modules in /Users/gustavojimenez/Projects/myProject/src
[0]     /Users/gustavojimenez/Projects/myProject/src/react doesn't exist (module as directory)
[0]   looking for modules in /Users/gustavojimenez/node_modules
[0]     /Users/gustavojimenez/node_modules/react doesn't exist (module as directory)
[0]   looking for modules in /Users/gustavojimenez/Projects/myProject/node_modules
[0]     resolve 'file' or 'directory' lib/emptyFunction in /Users/gustavojimenez/Projects/myProject/node_modules/react
[0]       resolve file
[0]         /Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction doesn't exist
[0]         /Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction.json doesn't exist
[0]         /Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction.js doesn't exist
[0]       resolve directory
[0]         /Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction doesn't exist (directory default file)
[0]         /Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction/package.json doesn't exist (directory description file)
[0] [/Users/gustavojimenez/Projects/myProject/src/react]
[0] [/Users/gustavojimenez/node_modules/react]
[0] [/Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction]
[0] [/Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction.json]
[0] [/Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction.js]
[0]  @ ./~/react-crouton/index.js 2:20-54
[0] webpack built edf326036966f1f37af1 in 7951ms

If this is because of using<EMAIL_ADDRESS>by any chance will you be supporting it in the future?

Hi
I haven't test with 0.14 yet, but i will push quick fix today.
Best
Xeodou
On Oct 9, 2015 02:58, "Gustavo Jiménez"<EMAIL_ADDRESS>wrote:

Hi,
Using<EMAIL_ADDRESS>I'm getting this when trying to test out a Crouton.
[0] Module not found: Error: Cannot resolve module 'react/lib/emptyFunction' in /Users/gustavojimenez/Projects/myProject/node_modules/react-crouton
[0] resolve module react/lib/emptyFunction in /Users/gustavojimenez/Projects/myProject/node_modules/react-crouton
[0]   looking for modules in /Users/gustavojimenez/Projects/myProject/src
[0]     /Users/gustavojimenez/Projects/myProject/src/react doesn't exist (module as directory)
[0]   looking for modules in /Users/gustavojimenez/node_modules
[0]     /Users/gustavojimenez/node_modules/react doesn't exist (module as directory)
[0]   looking for modules in /Users/gustavojimenez/Projects/myProject/node_modules
[0]     resolve 'file' or 'directory' lib/emptyFunction in /Users/gustavojimenez/Projects/myProject/node_modules/react
[0]       resolve file
[0]         /Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction doesn't exist
[0]         /Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction.json doesn't exist
[0]         /Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction.js doesn't exist
[0]       resolve directory
[0]         /Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction doesn't exist (directory default file)
[0]         /Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction/package.json doesn't exist (directory description file)
[0] [/Users/gustavojimenez/Projects/myProject/src/react]
[0] [/Users/gustavojimenez/node_modules/react]
[0] [/Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction]
[0] [/Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction.json]
[0] [/Users/gustavojimenez/Projects/myProject/node_modules/react/lib/emptyFunction.js]
[0]  @ ./~/react-crouton/index.js 2:20-54
[0] webpack built edf326036966f1f37af1 in 7951ms
If this is because of using<EMAIL_ADDRESS>by any chance will you be
supporting it in the future?
—
Reply to this email directly or view it on GitHub
https://github.com/xeodou/react-crouton/issues/6.

Great, thanks for that!

Fixed in the new version, plz check it out.
Best
Xeodou
On Oct 9, 2015 18:36, "Gustavo Jiménez"<EMAIL_ADDRESS>wrote:

Great, thanks for that!
—
Reply to this email directly or view it on GitHub
https://github.com/xeodou/react-crouton/issues/6#issuecomment-146830257.

Sorry for the late response, just tried it out and everything is working well. Thank you!


MergeRequestClient CreateAsync throws JsonReaderException if merge request creation fails

I'm creating merge request that already exists(?). Gitlab API returns 409 with this body:
{"message":["Cannot Create: This merge request already exists: ["title9fa850ab-6fbc-4eb9-9552-d488c45d94b6"]"]}
But NGitLab throws JsonReaderException.
Here it's the stack trace:
at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType)
   at Newtonsoft.Json.JsonTextReader.ReadAsString()
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at NGitLab.Impl.HttpRequestor.<Post>d__11`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at NGitLab.Impl.MergeRequestClient.<CreateAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

Im also having the same issue. But im creating a repository that already exists.
This is the message that is i get back from GitLab:
"{"message":{"route.path":["has already been taken"],"route":["is invalid"],"path":["has already been taken"],"name":["has already been taken"],"limit_reached":[]}}"
Stacktrace:
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: {. Path 'message', line 1, position 12.
   at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType)
   at Newtonsoft.Json.JsonTextReader.ReadAsString()
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at NGitLab.Impl.HttpRequestor.<Post>d__11`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at NGitLab.Impl.ProjectClient.<CreateAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Dashboard.Shared.Actions.Services.GitLab.CreateRepoAction.<Perform>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Dashboard.Shared.Provision.<RunProvision>d__0.MoveNext()

Mabye its because of: https://docs.gitlab.com/ee/api/v3_to_v4.html


Fix messages Table

I broke them with the no UPDATE change... (UPDATE are now INSERT..)

[ ] Make sure that this PR is obviated and thet counterblock now works.

The messages table is part of the API, so we need to formalize its design. I know you don't like it @ouziel-slama but I think it's actually useful. I think we need to discuss what it should look like in the long run.

Table message is OK. Replaced by https://github.com/CounterpartyXCP/counterparty-core/issues/1400


Returns MalformedURI

When I try to do POST to this http://womenforwomen.ca.8090.devt.back2front.ca/999~Shopping_Cart/  URL it throws Uncaught Exception and here is the logs
17-2-21:09:42:58 UNCAUGHTEXCEPTION URIError: URI malformed
at decodeURIComponent (native)
at parseSetCookieString (/x/ebay/cronus/software/service_nodes/.ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg-SLCB-CLao96qrma3o1s-<IP_ADDRESS>/installed-packages/developernodeweb/1.5.0_2017021511435099.unx/cronus/scripts/node_modules/needle/lib/cookies.js:44:13)
at /x/ebay/cronus/software/service_nodes/.ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg-SLCB-CLao96qrma3o1s-<IP_ADDRESS>/installed-packages/developernodeweb/1.5.0_2017021511435099.unx/cronus/scripts/node_modules/needle/lib/cookies.js:55:18
at Array.reduce (native)
at Object.parseSetCookieHeader [as read] (/x/ebay/cronus/software/service_nodes/.ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg-SLCB-CLao96qrma3o1s-<IP_ADDRESS>/installed-packages/developernodeweb/1.5.0_2017021511435099.unx/cronus/scripts/node_modules/needle/lib/cookies.js:54:17)
at ClientRequest. (/x/ebay/cronus/software/service_nodes/.ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg-SLCB-CLao96qrma3o1s-<IP_ADDRESS>/installed-packages/developernodeweb/1.5.0_2017021511435099.unx/cronus/scripts/node_modules/needle/lib/needle.js:444:66)
at ClientRequest.g (events.js:260:16)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:433:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:97:23)
at Socket.socketOnData (_http_client.js:322:20)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
2017/02/21 09:42:58.069 - error: 200 URIError: URI malformed
at decodeURIComponent (native)
at parseSetCookieString (/x/ebay/cronus/software/service_nodes/.ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg-SLCB-CLao96qrma3o1s-<IP_ADDRESS>/installed-packages/developernodeweb/1.5.0_2017021511435099.unx/cronus/scripts/node_modules/needle/lib/cookies.js:44:13)
at /x/ebay/cronus/software/service_nodes/.ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg-SLCB-CLao96qrma3o1s-<IP_ADDRESS>/installed-packages/developernodeweb/1.5.0_2017021511435099.unx/cronus/scripts/node_modules/needle/lib/cookies.js:55:18
at Array.reduce (native)
at Object.parseSetCookieHeader [as read] (/x/ebay/cronus/software/service_nodes/.ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg-SLCB-CLao96qrma3o1s-<IP_ADDRESS>/installed-packages/developernodeweb/1.5.0_2017021511435099.unx/cronus/scripts/node_modules/needle/lib/cookies.js:54:17)
at ClientRequest. (/x/ebay/cronus/software/service_nodes/.ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg.developernodeweb-app__ENVao7t1uwyk4sg-SLCB-CLao96qrma3o1s-<IP_ADDRESS>/installed-packages/developernodeweb/1.5.0_2017021511435099.unx/cronus/scripts/node_modules/needle/lib/needle.js:444:66)
at ClientRequest.g (events.js:260:16)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:433:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:97:23)
at Socket.socketOnData (_http_client.js:322:20)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
2017/02/21 09:42:58.427 - error: error Occurred while sending post to URL : http://womenforwomen.ca.8090.devt.back2front.ca/999~Shopping_Cart/ and error object

Can you try sending the request using the plain Node.js HTTP library and see if it works? It seems like an internal issue rather than needle's.

But I see error thrown from cookies.js file. Will try local and update the thread

Oh yes, you're right. It looks like decodeURIComponent is unable to handle the return string correctly.
decodeURIComponent('Salted__%7B%1E%DB%AFM%9A%B5%046%B82%16b%26%D1%F7e%1FSP%E0%5D%60%08%89UA%17%D1b%CA%14')

URIError: URI malformed
    at decodeURIComponent (native)
    at repl:1:1
    at REPLServer.defaultEval (repl.js:132:27)
    at bound (domain.js:254:14)
    at REPLServer.runBound [as eval] (domain.js:267:12)
    at REPLServer.<anonymous> (repl.js:279:12)
    at REPLServer.emit (events.js:107:17)
    at REPLServer.Interface._onLine (readline.js:214:10)
    at REPLServer.Interface._line (readline.js:553:8)
    at REPLServer.Interface._ttyWrite (readline.js:830:14)

I'm not sure how to handle this. For the time being you can disable cookie parsing so the request goes through.

How may i disable cookie parsing? any options
https://mailtrack.io/ Sent with Mailtrack
<EMAIL_ADDRESS>On Tue, Feb 21, 2017 at 12:47 PM, Tomás Pollak<EMAIL_ADDRESS>wrote:

Oh yes, you're right. It looks like decodeURIComponent is unable to
handle the return string correctly.
decodeURIComponent('Salted__%7B%1E%DB%AFM%9A%B5%046%B82%16b%26%D1%F7e%1FSP%E0%5D%60%08%89UA%17%D1b%CA%14')
URIError: URI malformed
at decodeURIComponent (native)
at repl:1:1
at REPLServer.defaultEval (repl.js:132:27)
at bound (domain.js:254:14)
at REPLServer.runBound [as eval] (domain.js:267:12)
at REPLServer. (repl.js:279:12)
at REPLServer.emit (events.js:107:17)
at REPLServer.Interface._onLine (readline.js:214:10)
at REPLServer.Interface._line (readline.js:553:8)
at REPLServer.Interface._ttyWrite (readline.js:830:14)
I'm not sure how to handle this. For the time being you can disable cookie
parsing so the request goes through.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tomas/needle/issues/203#issuecomment-281475141, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFwWsA7w3DFBatyijNDrk0-BbvuUxZK1ks5re01ogaJpZM4MHq1v
.

--
Thanks,
-Raj

I think I had a similar issue, made a patch https://github.com/tomas/needle/pull/204/commits/4c4e337bfbcf2f7555672b123d97c26f417f8b47
It skips malformed cookies

just to make sure, npm update would include this fix correct?
https://mailtrack.io/ Sent with Mailtrack
<EMAIL_ADDRESS>On Mon, Feb 27, 2017 at 2:11 PM, Tomás Pollak<EMAIL_ADDRESS>wrote:

Closed #203 https://github.com/tomas/needle/issues/203 via 3771c40
https://github.com/tomas/needle/commit/3771c404735072262113c44ed2977553a0216576
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tomas/needle/issues/203#event-979180403, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AFwWsKM34ovyLRa5whU7jafype0TCTLSks5rg0oLgaJpZM4MHq1v
.

--
Thanks,
-Raj

@rnagulapalle Yes sir!


1.9.1 - Unintended Scrolling

After upgrading to 1.9.1 connectBot unfortunately has become nearly unusable for me.
When opening or closing the virtual keyboard, connectBot scrolls to somewhere, reason and target not comprehensible. No chance to scroll back to current (bash) input line by wiping. Sometimes, not always, reopening keyboard and starting to type will "refocus" to input line. Not always, sometimes you have to type blind/invisible and earliest get the cursor/focus back after pressing enter - not usable, a pity.
Setting "additional keys always visible" (translated back from German) helps a little, but not really.
Would be great to get this fixed, I love connectBot!

After testing on 2 different I can confirm the issue.
In seems to me it scrolls up to size screen would be with keyboard off even when keyboard is on screen.

Hm, I have seen this before, but I can't reliably reproduce it. Do you have any sure-fire ways to reproduce?

All I can say that it's 100% reproducible on my Android. And it's "introduced" with 1.9.1. I'm using connectBot for years now, never seen before.
As I've never developed anything for/on Android, do you have any ideas how we could "sure-fire" this? Any chance to trace/debug/log GUI activity?

Reproduction steps for me:
Using portrait mode. Did not think to test in landscape sorry.

Connect to host
Do actions that make screen have some lines... just to there is scrollable stuff
Tap screen
Screen contents now scroll up about x lines and get stuck like that place was bottom of screen.

Amount of lines depends of setup:
autohide top bar is on
special keys always visible is on
Scrreen sizes: keyboard: 60x25 no keyboard 60x41
goes up 4 lines
autohide top bar is on
special keys always visible is off
Scrreen sizes: keyboard: 60x27 no keyboard 60x43
goes up 4 lines
autohide top bar is off
special keys always visible is on
Scrreen sizes: keyboard: 60x23 no keyboard 60x37
Goes up 4 lines
autohide top bar is off
special keys always visible is off
Scrreen sizes: keyboard: 60x20 no keyboard 60x39
Goes up 6 lines

Ah, okay, I just tried it with 1.9.1 and could reproduce it.
However, I've been testing with the latest revision. After merging #475 I can't reproduce it. The "event was handled" signal wasn't propogating correctly until I fixed it for pg-up/pg-down gesture in 787f5d4323dbf88d5b9a9f010f611bc12987ca74.

Darn... and i just recorded a nice video of glitch for you just now.
So this is fixed?
Great!

Cool, thanks to both of you! I'll wait for an update on F-Droid then.
Great!

You can try the signed version here: https://github.com/connectbot/connectbot/releases/tag/git-v1.9.1-25-gd4537fa
However, F-Droid re-signs the binaries, so this probably won't work.

I can confirm that this version fixed the bug for me. Thank you.

Just another +1 for this bug report. Really easy way to reproduce is to launch irssi or other full-screen terminal apps. I'm using the Google Play store version (and will wait until that's released there to upgrade).
Thanks!

Just a question: Any ideas when the fix will be included in a new F-Droid package?


Skeletion for evaluation.

Added config.json to define the supported models and datasets in v0.
Implemented the main function for evaluation which gets the required arguments.
The skeleton codes for modules have been added.

First, the dataset module is the wrapper for all modules and handles one dataset in the benchmark.

It loads the translated data.
It splits the evaluation set.
It runs the evaluation loop. (Calling a modality module)
It calculate the required metric scores from the results.

Second, the modality module runs a single step in the evaluation loop. (Modality: vlm, generalist, or vla)

It processes the input data to fit into each source module.
It runs one inference step. (Calling a source module)
It processes the output data to fit into the dataset module.

Finally, the source module calls an API or conducts one inference from the model. (Source: openai, anthropic, or huggingface...)

Looks good!


Split into core and plugins

Instead of adding new features to the library, create a core library and provide extra functionality in the form of plugins. This would require breaking changes to the public API.
Proposed changes:

create a core package @nestjs-cls/core with default functionality
create a plugin API in core
remove Proxy providers from core and move them to @nestjs-cls/proxy

Proxy providers stay in the core for the time being. I couldn't figure out how to separate them, since their implementation relies a lot of many internal parts of of the core that I don't want to expose to plugins.


Only administrators should be able to see the sidekiq dashboard.

https://arcath.net/2013/11/cancan-route-constraints/


Update to latest AGI vector_tiles_labels branch

This PR updates to latest vector_tiles_labels branch of AGI (from February 24th) and fixes the imagery display problem.
DEMO

Thanks @gjn.


How can I add a new mapping in this repo?

Hi, I want to add 2 mappings for "Alfadata USB Gameport Adaptor" for Linux and Windows.
030000009d0700000102000000010000,Alfadata USB Gameport Adaptor,a:b1,x:b0,dpup:a1,dpleft:a0,platform:Linux,
030000009d0700000102000000000000,Alfadata USB Gameport Adaptor,a:b1,x:b0,dpup:a1,dpleft:a0,platform:Windows,
How is this handled in this repo? I have no permission to push a branch (and thus, I can not open a PR).
Thank you in advance for your answer!
Best regards, Max

I can not open a PR
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request

Hi, I want to add 2 mappings
With respect, why? The mapping has 2 buttons and 2 axes. A mapping is surely unnecessary for SDL in this case.

Thank you for your answer. I totally forgot about the Github UI, didn't use that for ages... sorry for that question.
To answer your question: it is a simple controller with 2 and 2 buttons, the mapping is for following:

You also could connect Joysticks with only 1 Firebutton (e.g. think of old Amiga controllers).
I am developing a game with libgdx, and it just does not see this device whilst it sees other connected Gamepads e.g. Logitech Gamepad F310 which has a mapping in gamecontrollerdb.txt.


privileges gone through repo-transfer

Poor @trvinh can't edit the settings of the repository any longer as he accidentally gifted them away with the transfer from his personal repo to the @BIONF repo. Should be fixed. :joy:

@ebersber: Ingo, as you are the owner of the BIONF repository, could you change this? :)

@trvinh: I have granted you admin privileges. I hope this solves the issue.

Fixed and closed.


Skip mandatory commitment when beefy authorities not changed

More context in https://github.com/Snowfork/snowbridge/pull/1137 authored by @Lederstrumpf and @bhargavbh, many thanks.
Revamp the relayer to skip mandatory commitment when beefy authorities not changed.

Sync beefy checkpoint from 20733663 to the most recent, all work as expected. Log as follows shows all handover commitments from 20919030 to 20926196(range of 3 sessions) are skipped since no authorities changes.
...
{"@timestamp":"2024-05-28T18:38:01.185131892Z","IsHandover":true,"blockNumber":20919030,"level":"debug","message":"Transaction SubmitFinal succeeded","tx":"0x36e0dc7787b3aeb873d278816d3a3ca20dfd7fd3965045aa5310a5ed920ccf7e"}
...
{"@timestamp":"2024-05-28T18:38:01.186696501Z","ValidatorSetID":575,"blockNumber":20921420,"level":"warning","message":"Ignore mandatory commitment authorities not change"}
...
{"@timestamp":"2024-05-28T18:41:14.533439186Z","IsHandover":true,"blockNumber":20926196,"level":"debug","message":"Transaction SubmitFinal succeeded","tx":"0xe89092abf8d7c0f7c94fefdb50c82bb6f36ebd9deaa0bef632908799ee333920"}

Based upon the analysis https://github.com/Snowfork/snowbridge/pull/1137#issuecomment-1931819813 will decrease the maintainance cost about 4 times less.

@yrong @alistair-singh  One thing to consider in the greater scheme of things:
This optimization will greatly reduce costs for long-range catch up if the relayer is out of action for a few days. However, if my thinking is correct, it won't actually reduce costs if the relayer is caught up, and users are actively sending messages to Ethereum, because, we still need to update the MMR root so that the Gateway can verify user messages.
I still think its a worthwhile change to include, but we need more testing to be certain.

However, if my thinking is correct, it won't actually reduce costs if the relayer is caught up, and users are actively sending messages to Ethereum, because, we still need to update the MMR root so that the Gateway can verify user messages. And in order to update the MMR root, we need to sync a signed commitment that can be used to verify the new MMR root.

This PR is not only for long-range catch up case, it's supposed to work together with https://github.com/Snowfork/snowbridge/pull/1206 to furthurly decrease the cost.  Here is my test flow based on polkadot relaychain.

initialize beefy checkpoint at 21022400, the current&next validatorSetID pair is (617,618).
sync mandatory commitment to 21026603, as log shows the intermediate block 21024214 is ignored.

{"@timestamp":"2024-06-01T17:08:23.644984414Z","IsHandover":true,"commitment":{"blockNumber":21024214,"nextValidatorSetID":619,"validatorSetID":618},"lastSyncedBeefyBlock":21022400,"level":"info","message":"Discarded commitment with beefy authorities not change","validatorSetID":617}
...
{"@timestamp":"2024-06-01T17:09:24.131435105Z","IsHandover":true,"blockNumber":21026603,"level":"debug","message":"Transaction SubmitFinal succeeded","tx":"0xf9e0b6f99156a101be562ceda8a37eb0bd9cbf51ea64dfd704e358e184c10fcd"}

after that the validatorID pair in LC becomes (618,620).
3. launch the one-shot update for the next block 21026604(i.e. a non-handover commitment in validatorSetID 619)
snowbridge-relay sync-latest-beefy-commitment --private-key *** --relay-block 21026604
{"@timestamp":"2024-06-01T17:11:06.260172937Z","blockNumber":21026611,"level":"debug","message":"Transaction SubmitFinal succeeded","tx":"0xafa01ea1c014f72d991f61eb4ac64fedba21dc2f523b5ba4dc8cba6ce8e51ced"}
{"@timestamp":"2024-06-01T17:11:06.261349409Z","currentValidatorSetID":618,"latestBeefyBlock":21026611,"level":"info","message":"Sync beefy update success","nextValidatorSetID":620}

launch the one-shot update for the block 21029004(i.e. a handover commitment in validatorSetID 620)

snowbridge-relay sync-latest-beefy-commitment --private-key *** --relay-block 21029004
{"@timestamp":"2024-06-01T17:28:21.13045321Z","blockNumber":21029007,"level":"debug","message":"Transaction SubmitFinal succeeded","tx":"0x0824d2f0ab33b8647ec519afed3790cab902186d6738313bf239d95d52180b07"}
{"@timestamp":"2024-06-01T17:28:21.131650355Z","currentValidatorSetID":620,"latestBeefyBlock":21029007,"level":"info","message":"Sync beefy update success","nextValidatorSetID":621}

As we can see after that the current&next validatorSetID pair becomes (620,621)


need a different copy icon for "copy to clip board" from grid

Now we have "Copy" function on workspace and we are using same icon for two different functions.  I think this button would make more sense if we use clipboard icon.
https://www.google.com/search?q=icon+clipboard+copy&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwjl9-SztKzVAhWi6oMKHcReAIgQsAQIMw&biw=1028&bih=1023&dpr=2

oh yeah, I noticed this too.  +1 for clipboard icon.

Swapped icon in PR: https://github.com/PATRIC3/p3_web/pull/506

Deployed


Update marlint to v6.2.1

Closes #3

Coverage remained the same at 100.0% when pulling ccef6f121b5a59d57d157c9476d3ea2ef966de45 on greenkeeper/marlint-6.2.1 into c5410cb1912fb3afca1c8c8be2bc35e726663af4 on master.


fix(options_validator): add options if they do not exist

While working on NODE-1671, I realized that I was not handling the case where an operation is called without any options.
If insertOne(doc, callback) is called before this fix, the doc will be treated as options in build(). This fix ensures that a new options object is created if one is not passed in.

I know you've both already approved this PR, but I found 2 more bugs that I fixed in the last commit. If you want, I can move this to a separate PR but I thought it would fit in here since it's another fix for options_validator.
The last commit fixes the following bugs:

The check for an option's default would behave incorrectly if the option's default was a boolean. I fixed it so it checks for the existence of a default with hasOwnProperty, rather than by getting the default value.
Promises, like in this test, cause the callback to be undefined. Before this fix, assertArity would fail. Additionally, this undefined callback would cause this to overwrite the callback by only pushing options onto args, so the aforementioned test would fail with TypeError: final argument to executeOperation must be a callback.

I wrote a unit test to make sure this fixes behavior with promises, but it's definitely not pretty so I'd welcome any suggestions to improve it.


document formatter inserts unnecessary whitespaces

Hello!
Formatting an XSLT document (others not tested) results in otherwise empty lines filled with spaces to reach target indentation level.
Here is an example, select text to view differences:
Before:
<book>
    <author>
        <firstname>John</firstname>

        <lastname>Doe</lastname>
    </author>
</book>

After:
<book>
    <author>
        <firstname>John</firstname>

        <lastname>Doe</lastname>
    </author>
</book>

Version information:

VS Code

Version: 1.91.1 (user setup)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Datum: 2024-07-09T22:06:49.809Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
Operating system: Windows_NT x64 10.0.19045

Extension: deltaxml.xslt-xpath v1.5.15

Best regards,
Josef

It can help to have the indentation when editing the XML, I propose adding a  "Keep indents on empty lines" setting that defaults to true (as this is the current behaviour). Other editors provide this option too.


Update spin dependency to newer version

This updates spin to the newest version, this change helps us in one of our repos.

rad thanks


Spring application can't connect to postgred in docker

When i try to connect my spring application with postgres in docker i have an error
FATAL:  database "animals" does not exist `
I read that the reason could be that i have postgres on my pc and i changed the port, but i still see the same error. What is my mistake? Thanks! ( i see it in console:
listening on IPv4 address "<IP_ADDRESS>", port 5433
db     |  LOG:  listening on IPv6 address "::", port 5433
db     | LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5433),

docker-compose.yml
[version: '2'

services:
  app:
    image: 'docker-spring-boot-postgres:latest'
    build:
      context: .
    container_name: app
    depends_on:
      - db
    environment:
      - SPRING_DATASOURCE_URL=jdbc:postgresql://db:5433/animals
      - SPRING_DATASOURCE_USERNAME=postgres
      - SPRING_DATASOURCE_PASSWORD=darsmeved
      - SPRING_JPA_HIBERNATE_DDL_AUTO=update

  db:
    image: 'postgres:13.1-alpine'
    container_name: db
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=darsmeved
    expose:
      - "5433"
    ports:
      - "5433:5432"
    command: -p 5433](url)

Unfortunately, you're going to have more luck finding a dedicated support forum, such as the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow (we don't have the bandwidth to provide detailed support in our issue tracker).

If you are changing the port that postgres is listening on, then you need to also change the port mapping if you want to access it through the host IP.
ports:
-    - "5433:5432"
+    - "5433:5433"
command: -p 5433

Or you can just leave postgres on the default port and map to a custom port on the Docker host side. Other containers could then use the default, but access through your host IP would be the custom port.
ports:
    - "5433:5432"
-command: -p 5433


[question] biome.js on vs .biome.json

I noticed that nx-biome plugin generator creates .biome.json files. I wonder what is the reason to choose .biome.json, instead of the officially mentioned biome.json or biome.jsonc and what would be the impact of using the official names.
Cheers.

Hello @FranciscoKloganB
I have released a new version that makes use of the biome.json configuration file as indicated in the official library.
Thanks for the contribution!


FasterXML/jackson-databind security vulnerability

FasterXML jackson-databind before <IP_ADDRESS>, 2.8.x before <IP_ADDRESS> and 2.9.x before 2.9.5 allows unauthenticated remote code execution because of an incomplete fix for the CVE-2017-7525 deserialization flaw. This is exploitable by sending maliciously crafted JSON input to the readValue method of the ObjectMapper, bypassing a blacklist that is ineffective if the c3p0 libraries are available in the classpath.
See https://github.com/FasterXML/jackson-databind/issues/1599
/fluentTest/pom.xml
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-core</artifactId>
        <version>2.7.2</version>
      </dependency>
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.7.2</version>
      </dependency>
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-annotations</artifactId>
        <version>2.7.0</version>
      </dependency>

Recommend updating this.

Closing as this has been resolved by #327


Implement read_Perseverance_WS_data to read CSV/PDS4 label

#55

Task was started by Samantha Farmer and then passed on to Senami Hodonu

10/20/2022

7 hour total work session
Implemented read_Perseverance_WS_data and supporting functions
worked with Jim Crowell for about 2 hours


Build of conventions.html

Don't merge yet. Any idea why I am not getting the TOC? This is the output I'm seeing. I can't spot anything there about TOCs or conventions.html.

@albop
Nevermind, I'll leave it to you.


I can't make it run locally following the readme guide.

Hi @styxlab,
Thank you for this sample that merges NextJS and Ghost.
I just tried it but I couldn't succeed in making it work, I have cloned the repo, defined the env variables and hit yarn then yarn dev.
Here's the output: TypeError: sizes.matchAll(...) is not a function or its return value is not iterable
I'm attaching the full error log from the console:
 TypeError: sizes.matchAll(...) is not a function or its return value is not iterable     at getWidths (webpack-internal:///./node_modules/next/dist/client/image.js:45:36)     at generateImgAttrs (webpack-internal:///./node_modules/next/dist/client/image.js:105:7)     at Image (webpack-internal:///./node_modules/next/dist/client/image.js:355:169)     at processChild (/projet/node_modules/react-dom/cjs/react-dom-server.node.development.js:3353:14)     at resolve (/projet/node_modules/react-dom/cjs/react-dom-server.node.development.js:3270:5)     at ReactDOMServerRenderer.render (/projet/node_modules/react-dom/cjs/react-dom-server.node.development.js:3753:22)     at ReactDOMServerRenderer.read (/projet/node_modules/react-dom/cjs/react-dom-server.node.development.js:3690:29)     at renderToString (/projet/node_modules/react-dom/cjs/react-dom-server.node.development.js:4298:27)     at Object.renderPage (/projet/node_modules/next/dist/next-server/server/render.js:54:854)     at Function.getInitialProps (webpack-internal:///./node_modules/next/dist/pages/_document.js:128:19)     at Function.getInitialProps (webpack-internal:///./pages/_document.tsx:26:24)     at loadGetInitialProps (/projet/node_modules/next/dist/next-server/lib/utils.js:5:101)     at renderToHTML (/projet/node_modules/next/dist/next-server/server/render.js:54:1145)     at process._tickCallback (internal/process/next_tick.js:68:7)
Thanks in advance for your reply.

@dassiorleando: Welcome to this project! It looks like some issue with custom images that you are using.
Could you please start out even simpler, by not changing the env variables (in this case the example project is generated):

clone repo
yarn
yarn dev

Let's see if that works and we'll take it from there.

@styxlab, I had the same error but once switched to Node 12.16.1 it worked fine.

Interesting, what node version were you using before?

@styxlab I was using NodeJS v10.19.0.
But still, my own Ghost installation that runs on Heroku using ghost-on-heroku doesn't work.

Minimum requirement comes from Next.js and should be v10.13.0 at the minimum, but using node v12 (or better v14) is recommended. If I understand you correctly, the example project is now working, but when you source your own content, the project is not compiling. For further debugging I need:

A list of exact config changes that you made
The error log from yarn build

It's strange and maybe a local problem, I'm not sure yet.
I have just succeeded in deploying my Ghost on Heroku deployment using Vercel, they use Node 14.
I'm now using Node14 on my PC, but yarn dev doesn't work while yarn build compiles successfully.
The yarn dev error that I have is on the App itself, using Chrome Inspector tool (debugger) I'm able to see this:
Failed to load resource: the server responded with a status of 404 (Not Found)
webpack.js?ts=1621773317918:733 Uncaught (in promise) ChunkLoadError: Loading chunk node_modules_next_dist_client_dev_noop_js failed.
(error: http://localhost:3000/_next/static/chunks/fallback/node_modules_next_dist_client_dev_noop_js.js)
at Object.webpack_require.f.j (http://localhost:3000/_next/static/chunks/webpack.js?ts=1621773317918:733:29)
at http://localhost:3000/_next/static/chunks/webpack.js?ts=1621773317918:154:40
at Array.reduce ()
at Function.webpack_require.e (http://localhost:3000/_next/static/chunks/webpack.js?ts=1621773317918:153:67)
at Function.fn.e (http://localhost:3000/_next/static/chunks/webpack.js?ts=1621773317918:368:50)
at eval (webpack-internal:///./node_modules/next/dist/client/next-dev.js:31:21)
at Object../node_modules/next/dist/client/next-dev.js (http://localhost:3000/_next/static/chunks/main.js?ts=1621773317918:589:1)
at Object.options.factory (http://localhost:3000/_next/static/chunks/webpack.js?ts=1621773317918:685:31)
at webpack_require (http://localhost:3000/_next/static/chunks/webpack.js?ts=1621773317918:37:33)
at webpack_exec (http://localhost:3000/_next/static/chunks/main.js?ts=1621773317918:1335:61)
hot-dev-client.js?eeae:196

I have found a solution, I'm not sure about what's happening behind but once deleted the .next folder it worked fine.

Glad you found a solution.

@styxlab Thank you for your assistance with this, you helped me clearing some of my doubts.


test codecov.yml

Signed-off-by: ethanhanjiahao<EMAIL_ADDRESS>

Codecov Report

Merging #1 (557f689) into main (997bcf5) will decrease coverage by 2.11%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main       #1      +/-   ##
==========================================
- Coverage   62.53%   60.41%   -2.12%
==========================================
  Files          41       35       -6
  Lines        4468     4017     -451
==========================================
- Hits         2794     2427     -367
+ Misses       1530     1468      -62
+ Partials      144      122      -22

Impacted Files
Coverage Δ

internal/provider/kubernetes/gatewayclass.go
73.18% <0.00%> (-0.73%)
:arrow_down:

internal/infrastructure/kubernetes/infra.go

internal/infrastructure/kubernetes/service.go

internal/infrastructure/kubernetes/deployment.go

internal/infrastructure/kubernetes/labels.go

...ternal/infrastructure/kubernetes/serviceaccount.go

internal/infrastructure/kubernetes/configmap.go

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


WIP: Add new payment fragment using Stripe

What this PR does / why we need it:
New payment fragment is added using Stripe.
Which issue this PR fixes:
fixes #9
Special notes for your reviewer:
DO NOT MERGE This is the POC of payment fragment. The ajax request and the layout need to be discussed. The PR is ongoing.
Todo:

[ ] Extra fields
[x] Display price
[ ] Display success/failure
[ ] Switch to JSON requests

Release note:
- payment: New `payment` fragment has been added, powered by Stripe

Currently the result looks like this:

From a design perspective I would say the price should be under the form input next to the submit button.
Price: 10€                      Submit

Button default should be "Pay Now" I think.

Also as a standalone payment fragment without pricing. The pricing might actually be a field, that can be used to set the price or can be overwritten by the pricing fragment. What do you think?

From a design perspective I would say the price should be under the form input next to the submit button.
Price: 10€                      Submit

The feature is still not implemented completely, but in place of price in you example I added the failure/success message. I think we can add price here and move the message after under the button. Is that a good solution?

Button default should be "Pay Now" I think.

Alright. Sounds good.

Also as a standalone payment fragment without pricing. The pricing might actually be a field, that can be used to set the price or can be overwritten by the pricing fragment. What do you think?
So various modes of operation:

default value set in config
pricing overwrites default
user overwrites default (input field) aka donation

This might warrant a config value such as "user_defined = true" or so. It's false by default and would grey out the field or not use a input field for price, but when defined the user can overwrite the default value and values set by pricing.

I was thinking of adding a pricing section to the payment fragment. Something like tabs on top of the form, clicking on each pill would change the price.
The user input seems like a good idea. Does it need a minimum field as well? Something like donation_field/user_defined: boolean and minimum_price: number. Combination of those fields would add a validation to the input. How does that sound?

Instead of using minimal price we could use price as the minimal one. So if no price is configured there is no minimum. With a price configured it's automatically the minimum, but can be changed be the user.
Would be one less variable.
Also wouldn't structure the boolean under donation. Could be other things too, donation just seemed like the best example.
For the message I think under the button should be fine. Will need to check on a live interaction again.

Also as always, if you feel I might miss something or you want to do something differently, don't hesitate to bring it up.

Added the test account to get this in testing mode. \o/

Adding additional metadata might be a good idea:

[ ] page it was triggered from aka "about.example.com/donation/"
[ ] product name

Product name might end up being added separately later as a group or separate key pair, but feels like a good initial thing to add or keep track of.

Also having issues with CORS not allowed in firefox. Will see, if I can debug.

Also the various ideas of pricing fragment interaction, default price and user changeable price still stands.

Another big thing that I would love to see is recurring charges. That would probably fall under billing in stripe terms. Need to look into that more.

Also for the simple case sending out receipts needs to provide receipt_email, which is still missing I think.

Relevant for european users is sales tax support. In the initial PoC we just charge a set amount via stripe.
With that in mind we have various options to handle taxes. Locally and then just use stripe for charges.
That means that providing a VAT receipt needs to be done on our side too.

Validation seems to have issues. Entered my email and the button still is greyed out. Reloading the page fixes this, but removing and reentering the email, will lead to a non functioning button again.
To not forget the meta data would be helpful:

[ ]  page it was triggered from aka "about.example.com/donation/"
[ ] product name


DataFusion weekly project plan (Andrew Lamb) - March 4, 2024

Follow on to Feb 26, 2024.
Note I am traveling this week and will have limited bandwidth so I will not be as responsive as normal
It would be great for other contributors to DataFusion who plan non trivial work could try to make them visible somehow as well 🙏  (feel free to copy / modify the format)
My Highlights from Last Week

The large scale "extract scalar functions from the core" is well under way https://github.com/apache/arrow-datafusion/issues/9285
Comet blog draft was done https://github.com/apache/arrow-site/pull/479
Revised the proposal for a new top level project and started a vote thread: https://github.com/apache/arrow-datafusion/discussions/6475
Agenda for DataFusion meetup 2024 is looking good #8522
ScalarUDF::simplify API ready (thanks @jayzhan211!)  https://github.com/apache/arrow-datafusion/pull/9304

My (personal) goals for this project
1000 projects are built using DataFusion 📈
My (personal) plans for this week

[ ] SIGMOD paper feedback (I plan to work on this the week of March 4, 2024): #8373 )
[ ] Keep up with reviews backlog 🏃
[ ] File a ticket to track remaing work for Recursive CTEs and close out https://github.com/apache/arrow-datafusion/issues/462

Project Queue (list of future projects)
Projects I plan to help actively help review / plan

[ ] https://github.com/apache/arrow-datafusion/issues/9171 with @appletreeisyellow (we need this for InfluxDB)
[ ] Improved planning speed https://github.com/apache/arrow-datafusion/issues/5637 with @matthewmturner

Algorithm for (my) prioritizing PR reviews
Note there are many committers who can and do review and merge PRs, so this is not the priorities of the project as a whole, just the approximate algorithm I use to prioritize my own time
Priority:

Bug fixes (where something is just incorrect), especially regressions (where it used to work and now does not)
Improvements directly related to features needed for InfluxDB (my employer)
Documentation and test improvements (I view these as very strategically important)
PRs that I think are strategically important
Other new features / additions to functionality (note this is the lowest)

The top strategically important projects in my head are:

Anything that makes it easier to use DataFusion as a user (docs, examples, better APIs, etc), including Getting started guide for new users (who want to use DataFusion in their project)
Anything that improves DataFusion's quality such as bug fixes, and improved / expanded tests, etc
Making function packages modular and easier to mix/match: https://github.com/apache/arrow-datafusion/issues/8045
Improving performance of aggregation  - especially high cardinality groupings, where we still lag state of the art by 2x

Thus, if you are interested in contributing to DataFusion and are interested in a fast turn around time I would recommend looking into bug fixes / test improvements / documentation or the projects named above
If you propose adding new functionality, the review cycle will likely be longer. You can make it a shorter cycle by looking at the comments on other recent PRs and following the same model (e.g. ensure there are tests in sqllogictest for example, the CI passes, includes documentation, etc)
Background
The idea of this ticket is make my plans for DataFusion visible, largely for my own personal organizational needs, but also to:

Communicate / coordinate in the community
Help provide an interesting summary of what is happening in DataFusion this week

I am returning home and will be working through the review backlog
Current queue:
DataFusion:

[ ] https://github.com/apache/arrow-datafusion/pull/9482
[ ] https://github.com/apache/arrow-datafusion/pull/9461

DataFusion:

[ ] https://github.com/apache/arrow-datafusion/pull/9382
[ ] https://github.com/apache/arrow-datafusion/pull/9469
[ ] https://github.com/apache/arrow-datafusion/pull/9249

Arrow

[ ] https://github.com/apache/arrow-rs/pull/5481
[ ] https://github.com/apache/arrow-rs/pull/5485
[ ] https://github.com/apache/arrow-rs/pull/5486

Next week; https://github.com/apache/arrow-datafusion/issues/9555


Update DDS provider to use authorization from kuksa-client lib

Seems it fails on kuksa-client version. IF we want to test pass we need to specify version > 0.3 and use pip with --pre

Yes, example would be good I guess. And yes it supports only giving a token not a tokenfile. It could be changed to accept both, if we want this.

Yes, example would be good I guess. And yes it supports only giving a token not a tokenfile. It could be changed to accept both, if we want this.

As long as it is well defined what we support I think it is fine. And an example, based on using one of the "default tokens" would be good, if nothing else so that we know ourselves how to test it. I assume you on Linux can use some fancy one line command to set the environment variable with the content of the file.


choose port to listen

We can listen to the port 0~1023 if we have the root access to run the program, however 1~1023 ports are "privileged" ports. It may not safe if we listen these ports.
So in the code
if (info.port < 0) {
fprintf(stderr, "ttyd: invalid port: %s\n", optarg);
return -1;
}
Do we need to change the condition if( info.port < 0) to if(info.port < 1024)?

I don't think listening on a "privileged" port is not safe, if you don't want to use root user to run the command, you can use the --uid and --gid option to run ttyd as other user and group.


Record view - EOI MW error

For the molecular entitities (most of the records I guess) it is not necessary to display the Error of MW, i.e. I suggest to remove for EOIs "(Error not provided)" in the record view.

#229


Cytoscape error parsing Galaxy workflow

Describe the bug
A galaxy based workflow returned a 500 error.
<IP_ADDRESS> - - [14/Dec/2022:17:06:41 +0000] "GET /workflows/20406/tools/173939 HTTP/1.0" 500 110 "https://dockstore.org/my-workflows/github.com/Delphine-L/iwc/Long_read_assembly_with_Hifiasm_and_HiC_data" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36" 37

The stacktrace appeared as
! java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader 'bootstrap')

<input class="awsui-checkbox-native-input" type="checkbox" override-focus="" id="awsui-checkbox-841" aria-labelledby="awsui-checkbox-841-label awsui-table-0-selection-group awsui-table-0-selection-627">

  | 2022-12-14T09:00:24.227-08:00 | ! at org.galaxyproject.gxformat2.Cytoscape.getElements(Cytoscape.java:118)
-- | -- | --

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Additional context
Webservice - 1.13.1
UI - 2.10.1
Compose Setup - 1.13.1
Deploy - 1.13.2
┆Issue is synchronized with this Jira Story
┆Fix Versions: Dockstore 1.14
┆Issue Number: DOCK-2302
┆Sprint: 103 - Arroyo Seco
┆Issue Type: Story

Demonstrated issue in linked test

This is fixed in qa, although I did see another 500, for a nearby endpoint, but I will log that one separately.
[Domain] - https://qa.dockstore.org
Webservice - f96e92a
UI - 2.10.1-95-g6cbb12f7
Compose Setup - e3b0aa3
Deploy - 1.13.2-30-g2fd0b7e
cwlParsingLambdaVersion: n/a
wdlParsingLambdaVersion: n/a
nextflowParsingLambdaVersion: n/a
galaxyParsingLambdaVersion: 0.0.6
checkUrlLambdaVersion: n/a


nixos/gitlab: use patched git version from gitaly

Description of changes
Build git with patches from gitlab, use it in the gitlab module.
Without this, when git-pulling I got this error
$ git pull
fatal: commit-graph requires overflow generation data but has none
fatal: the remote end hung up unexpectedly

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Indeed we have encountered this issue in the haskell.org installation. @talyz, do you think we could merge and backport this to 22.05?

This version seems fragile since it will depend on always bumping the git version to precisely the right version for each update to gitlab. Is there no better way? Can we not use the build system Gitaly itself supplies? ("make git" from the gitaly repo)

Ah ok I was afraid of something like that.

Hm, I tried cherry-picking this to stable, which solved the issue for me. Then I tried switching to 2.36.0, but saw the issue reappear. Lastly, I tried downgrading to 2.35.1 again, but without the patches, which again solved the issue, so it seems the issue was simply caused by the upgrade of git.

Seeing as this isn't dependent on the patches, but the version of git, I've created a simpler alternative in #177776. That gets us a more up-to-date version of git and should be easier to keep updated.

Not sure why it's easier to keep updated, it's just version number and sha256. Also are the gitlab patches not important anyways?

Mainly because it's decoupled from the version of gitaly and just implements a workaround that should be removed when the bug is fixed upstream.

I don't have any opinion on using the vendored / patched version of git vs our upstream git package.
However if the vendored version is introduced, it should be integrated with the gitlab update scripts, since the entire rest of the gitlab updates are automated and updating the git version / hash / patches could easily be forgotten.


Add image optimisation and asset compression

Hello,
I think you can add an image optimiser to Souin with return jpeg/wepb depending on accept header provided by the client like this : https://github.com/agravelot/traefik-image-optimization

Hi @Allaux, I'll work on the Souin plugin integration in Træfik to be able to use it without the dev mode. I have to try this plugin to ensure it returns a vary header in the response. Otherwise I'll open a PR on the referred plugin because if it doesn't return a vary header Souin will serve the same content instead of the webp/jpg/any_other depending to the system.

@Allaux https://github.com/agravelot/traefik-image-optimization/issues/14#issuecomment-873474487


tests: lib: thrift: temporarily disable tlsTransport

Issue #61717 details what appears to be a possible race condition in the mbedTLS / Zephyr integration. Disable the thrift tlsTransport test until the issue is resolved to mitigate false positives in other PRs.

I think our compliance checker has a false positive for parsing YAML comments. It's a minor source of annoyance.

Closing, since this doesn't seem to be the root cause of the problem in #61885