friendly-snippets snippets doesn't show up in list

Hey and thank you for a fantastic plugin!
I'm struggling to get rafamadriz/friendly-snippets to work. I load the plugin with lazy like this:
    {
      'L3MON4D3/LuaSnip',
      version = "1.*",
      dependencies = { "rafamadriz/friendly-snippets" },
      config = function()
        require("luasnip.loaders.from_vscode").lazy_load()
        -- require("luasnip.loaders.from_vscode").load({
        --   paths = {
        --     "~/.local/share/nvim/lazy/friendly-snippets" }
        -- })
      end,
    },

Snippets show up for Lua files like so:

But when I try it out in .tsx-files I don't see any snippets. Weirdly enough they show up in :LuaSnipListAvailable though.

But when I type us in insert mode nothing shows up in the cmp-autocompletion list.
Probably something very simple I've missed, but can you help point me in the right direction?
Appreciate any help, and thanks in advance!

Resolved it by adding saadparwaiz1/cmp_luasnip as a dependency. Overlooked the part in the documentation that says:

By default luasnip is configured to expand snippets, and the only snippets you get will come from your LSP server. If you want to load custom snippets into the completion menu you need add cmp_luasnip as a source in nvim-cmp.


Is it possible to disable dragging for certain children nodes of the tree?

As title says, it would be handy if there was a way to disable sorting on a child node. I know you can pass in true to disableSorting in the Sortable Tree root, but I wasn't able to disable sorting on children.
SimpleTreeItemWrapper seems to have a disableSorting property; explicitly setting it to true (instead of implicitly via the root) doesn't do anything, so I'm assuming it's meant to be read only.

you could add disableSorting property to TreeItem to disable it from being sorted/dragged.
Available since 0.1.51

Hmm. Tried applying that property as a prop in the SimpleTreeWrapper to no avail. It appears that when console logging the props object, it's undefined and getting reset to undefined on each render. Any ideas why?

Hmm. Tried applying that property as a prop in the SimpleTreeWrapper to no avail. It appears that when console logging the props object, it's undefined and getting reset to undefined on each render. Any ideas why?

may you need write is as follow:
<SimpleTreeItemWrapper {...props} disableSorting={props.item.disableSorting} ref={ref}>


Deletes all dependencies after recording

All the dependencies in my build.gradle file have been deleted using the recording plugin. :(
I thought https://github.com/vpedak/droidtestrec/issues/19 was fixed? Is it not published yet to the Android Studio plugins directory?

Hi,
Can you please send me your gradle build file? Last time (issue #19) problem was that special configuration was used there and Android Studio did not process it right.

Unfortunately the app is proprietary and I'm not allowed to share the build file. :(
It'd be really cool to adopt a nanohttpd type architecture where the record apk is deployed independently of the app under test. Communication would then happen via HTTP. Hijacking the standard gradle build process is painful.

@bootstraponline but maybe you can post your dependencies section only? Do you have one dependency section or several?
Also about "nanohttpd", communication is not a problem. Problem is to build test apk that has my classes inside. I have to reuse existing Android Studio approach to build it, but maybe I should think how to copy existing gradle build file and use it's copy and not the original file to avoid such problems. I will try this.

@bootstraponline but maybe you can post your dependencies section only?

No, it's company policy. I didn't make the rules.

Do you have one dependency section or several?

I have 3 dependency sections:
android {
    dependencies {
      // empty
    }
}

dependencies {
  // compile / androidTestCompile / testCompile deps
}

buildscript {
    dependencies {
      // lots of classpath entries
      classpath 'com.android.tools.build:gradle:2.1.0'
    }
}

I think copying the file makes sense.

I have to reuse existing Android Studio approach to build it,

You don't. You could ship a pre-built recorder apk and then have the Android Studio plugin communicate with it via HTTP. The signature on the apk has to match so most commercial recorders will automatically resign the app under test using a default cert.

Thanks for the idea, it looks very interesting. But as I know test apk must have a target and this target should be application id of application you are going to record. So I am not sure how to make pre-built apk in such case.

But as I know test apk must have a target and this target should be application id of application you are going to record. So I am not sure how to make pre-built apk in such case.

It's very simple. Appium and Selendroid do this already. You detect the application id and then dynamically replace the test apk with this id.

Example from Selendroid
Template Manifest
Resign code

Here's another example from Calabash:

calabash-android-build

helper jars that appium uses:

https://github.com/appium/unsign_and_move
https://github.com/appium/sign

@bootstraponline thank you very much for this information, I was not aware on this approach.
But for now I will fix this by saving gradle config before recording and return it back after not because I do not like your approach, but because Android Studio performing a lot of logic during test start (like validating application and building it if necessary, allowing user to select where to deploy, etc). So I should reuse this in any case to avoid making all this myself.
But in any case this is important info to know and I will think how I can use this in future.

new version 0.9.5 with the fix was uploaded to plugins repository


unnecessary change to pass1 and pass2 methods inlib/position/bk.js file

Check the change history of lib/position/bk.js file: https://github.com/dagrejs/dagre/commits/3d538f0dbfe4ad5735c88efee22af0994441c898/lib/position/bk.js

Tried to migrate to lodash 4
Found a failed test, tried to fix it by editing pass1 and pass2 methods in lib/position/bk.js file
Fix bugs introduced in step 2, refactor code

I think things started to become wrong in step 2. If a test failed, we should check what was changed recently in step 1. And step 1 didn't change any logic of pass1 and pass2 methods.  So we shouldn't change them in order to fix the failed test.
I think the bug was introduced in this commit of step 1: https://github.com/dagrejs/dagre/commit/590b155a32159412fe5f5de0e18df6b8d99d22b9#diff-02a83e5e964e624bd848264b9729e9bd

And we should try to edit findSmallestWidthAlignment method in order to fix it. The following works:

For a fully working project with passing tests, please check my fork of dagre:  https://github.com/tylingsoft/dagre-layout

@rustedgrail can you have a look?

Hi @tylerlong
The issue that started this work is that pass1 and pass2 were making recursive calls. On large graphs, this would lead to a stack overflow. To the best of my knowledge, no issue was introduced with the lodash 4 changes.
My first commit removed the recursive calls and got all but 1 of the tests passing. It was a WIP commit at the end of the day. Changes we tried to fix the last test, ended up breaking more tests. The commits could have been squashed with a message explaining that it removed the recursive call, but instead that was captured in the PR.
Your fork might fix a different issue, but it still includes the recursive calls in pass1 & pass2, which should fail on graphs with thousands of highly connected nodes.

@tylerlong, if there is a bug, can you provide some more detail or a failing test case? Currently all tests are passing on master.

@rustedgrail Could you please provide the steps to reproduce the recursive calls issue?
@cpettitt  I did NOT change pass1 and pass2 in https://github.com/tylingsoft/dagre-layout and all tests are also passing.  So I don't know what the bug is. That's why I mentioned "unnecessary change" in the title of this issue.
So Let's figure out what the bug is. @rustedgrail please reply when you see this comment. Thanks.

If CI says the code is OK, where did the failing test come from?

@tylerlong you can repro the stack overflow issue by creating a graph with a large number of nodes and edges.
I don't see anything actionable on this ticket. The merged commit does not include any changes to the test code. We could have squashed the merge and the original commit would not have shown up in the commit history. Rewriting history now would break clones.

The graph that I had used to get the overflow had 1503 nodes with ids, A, B, C and 1-1500. A connected to B which is connected to C and each of those had an additional 500 outgoing nodes. I was running in a relatively recent version of Chrome.
A -> B -> C & A -> 1 through 500, B -> 501 through 1000, C -> 1001 through 1500
The failing test came from my own changes in the commit on Jan 24th. I tried to fix all the tests before making that commit, but that ended up being more work than I had expected.

@rustedgrail  I don't  quite understand the steps you described. It is appreciate if you can provide me with a test case or sample code.

The failing test came from my own changes in the commit on Jan 24th. I tried to fix all the tests before making that commit, but that ended up being more work than I had expected.

Before your commit on Jan 24th, all tests were passing according to Travis CI. So I don't know which test you are trying to fix.  If you try to fix a bug which is not covered by existing tests, you should first create a failing test for that bug. I also don't see any new tests being created here: https://github.com/dagrejs/dagre/commit/755a0e9e445134195163d4fe557a2ea82bea7057  So I am still quite curious what the bug is. After I understand what it is, I am willing to write a test case for it.
Thanks :)

@tylerlong sounds like the failing case @rustedgrail is describing is something like this:
var g = new dagre.graphlib.Graph();
g.setGraph({});
g.setDefaultEdgeLabel(function() { return {}; });

let subNodes = 500;

['A', 'B', 'C'].forEach((c, i) => {
  g.setNode(c, { label: c});
  [...Array(subNodes).keys()].forEach(j => {
    let nodeName = (i * subNodes + j).toString();
    g.setNode(nodeName, { label: nodeName});
    g.setEdge(c,   nodeName);
  });
});

g.setEdge('A',   'B');
g.setEdge('B',   'C');

dagre.layout(g);


?meta parameter failing

New versions are failing with the meta param https://unpkg.com/sinuous@0.12.9/?meta
This one is still working on my end
https://unpkg.com/sinuous@0.12.5/?meta
Actually older versions are also failing
https://unpkg.com/sinuous@0.12.4/?meta
Version 0.12.5 might be cached then.

Huh, you have an interesting tarball there. It has a "directory" entry at the root. So instead of:
package/package.json
package/index.js
package/LICENSE
...

tar tf on your package looks like:
package
package/README.md
package/package.json
...

That extra package entry at the root isn't present on all tarballs, but it's totally valid. I added a fix and a test for it. Thanks for the report!

Thanks for the quick fix @mjackson!
it does look strange, I don't have a package directory in my codebase as far as I know. I do see the same thing, very curious.

It's just the way that some tar implementations work, I think. Some include the directory entries, others don't.


Permission Denied Issue

Hello @assafmo ,
I have been using joincap as a local development tool for merging granular pcap files into larger pcap files. However, when I tried to deploy it onto a linux environment (it was working perfectly on windows locally), I am unable to merge any pcap files. Below is the verbose output, and this is the same output when sudo'd
user@machine:~$ joincap -v -w=output.pcap input.pcap
user@machine:~$ sudo joincap -v -w=output.pcap input.pcap
both yield:
2019/04/17 17:09:20 joincap v0.10.1 - https://github.com/assafmo/joincap
2019/04/17 17:09:20 input.pcap: open input.pcap: permission denied (skipping this file)
2019/04/17 17:09:20 merging 0 input files of size 0 B
2019/04/17 17:09:20 cannot open output.pcap for writing: open output.pcap: permission denied
This happens regardless of user and directory permissions (I'm doing this in the home directory of my user, so it follows that I have read/write privileges). Any ideas as to what is going on here? I would love to get this tool working on this environment (ubuntu 16.04). Any help would be extremely appreciated!
Thanks,
Jonathan

Hi @bernej, thanks for your feedback!
Wow, this is weird. I'm using it on linux a lot, this error shouldn't happen.
Actually sudo isn't necessary here, so I still believe it's a permissions issue.
Does touch x works?
Does echo x > output.pcap works?
Does joincap -v input.pcap > output.pcap works?
Can you paste here your ls -la ~ output? Maybe joincap is running as another user?

@assafmo,
Thank you for the quick response!
Both touch x and echo x > output.pcap work.
joincap -v input.pcap > output.pcap yields:
2019/04/18 10:33:32 joincap v0.10.1 - https://github.com/assafmo/joincap
2019/04/18 10:33:32 input.pcap: open input.pcap: permission denied (skipping this file)
2019/04/18 10:33:32 merging 0 input files of size 0 B
2019/04/18 10:33:32 writing to /dev/stdout
ls -la ~ yields:
-rwxrwxrwx  1 user user 6393 Apr 17 17:08 input.pcap
-rwxrwxrwx  1 user user 24 Apr 18 10:33 output.pcap
Even if I assert the command to run with my user I still get permission denied:
sudo runuser -l user -c 'joincap -v -w=output.pcap input.pcap'
2019/04/18 10:43:31 joincap v0.10.1 - https://github.com/assafmo/joincap
2019/04/18 10:43:31 input.pcap: open input.pcap: permission denied (skipping this file)
2019/04/18 10:43:31 merging 0 input files of size 0 B
2019/04/18 10:43:31 cannot open output.pcap for writing: open output.pcap: permission denied
The file permissions are 777 for both, so even if joincap was running as another user it should still work, no?

I see that redirecting stdout to output.pcap created an "empty" pcap file, which is a good start. (empty pcap means a global header of 24 bytes and no packets)
What are the permissions on the joincap executable? And what are the permissions on the directory from which you are trying to read input.pcap?

whereis joincap
joincap: /snap/bin/joincap
stat /snap/bin/joincap yields:
  File: '/snap/bin/joincap' -> '/usr/bin/snap'
  Size: 13              Blocks: 0          IO Block: 4096   symbolic link
Device: 801h/2049d      Inode: 4354547     Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-04-17 16:26:37.434181373 -0700
Modify: 2019-04-17 16:26:28.990156238 -0700
Change: 2019-04-17 16:26:28.990156238 -0700
Birth: -
stat ~ yields 755 permissions

I see this is a known issue with snap store installs - https://askubuntu.com/questions/930437/permission-denied-error-when-running-apps-installed-as-snap-packages-ubuntu-17
I am able to reproduce your situation. This has worked for me in the past. Weird.
In the meantime you can use the precompiled binary from the releases page - https://github.com/assafmo/joincap/releases.
Just copy it to /usr/local/bin and do sudo chmod +x /usr/local/bin/joincap. Please tell me when it works.
I'll try to find a workaround for the snap store installation problem.

Seems like I need to mark the snap package classic instead of strict - https://docs.snapcraft.io/snap-confinement/6233.
It might take some time because it requires a manual approval by the snap store team.
@bernej, use the precompiled binary while I apply for classic snap confinement.

@assafmo
That worked like a charm! Thank you so much for tracking down this issue. I extremely appreciate your help!

https://forum.snapcraft.io/t/classic-confinement-request-joincap/10983

Instead of requesting classic confinement, you could try adding the home and removable-media plugs to your app in the snapcraft.yaml. When connected, those allow your snap to access files in the user's $HOME directory as well as files in /media, etc. for USB drives and such.

Thanks @anonymouse64, I didn't know this.
I still believe classic confinement is better. I don't see why deny the user from reading and writing to pcap files outside of $HOME and /media.
Anyway joincap will ignore reading non-pcap files and linux permissions will prevent writing in places the user cannot access.

 Additionally, classic snaps are not supported on Ubuntu Core at all, so users won't be able to use your snap on that OS.
Additionally, I'm curious is it a common use case to have users of joincap read files from system directories? I would imagine that most pcap files would be user-generated and thus live in their $HOME directory or some removable media like a USB drive.

Additionally, I'm curious is it a common use case to have users of joincap read files from system directories? I would imagine that most pcap files would be user-generated and thus live in their $HOME directory or some removable media like a USB drive.

Probably not. I use it with NFS and CIFS devices which can be mounted anywhere. Probably in /mnt or $HOME, but I wouldn't want to impose this restriction on the user.


hash 返す API

emacs plugin 用

editorconfig-core-get-properties-hash (&optional file confname confversion)
Get EditorConfig properties for FILE.
This function is almost same as editorconfig-core-get-properties, but returns hash object instead.
c


added FIDO2 security keys

#6189
Sources:
https://docs.microsoft.com/en-us/azure/active-directory/authentication/concept-authentication-passwordless
https://renenyffenegger.ch/notes/Windows/registry/tree/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Authentication/Credential-Providers/index

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks.

@mapalko - PR has been copy edited and is ready for final review. This is based on issue #6189.
Thank you.
cc: @kenwith

Thank you for the interesting points. I presume you will be commenting later if anything here can be reused, rephrased or otherwise changed to provide some form of support as you noted.

I commented on the original issue to get more clarity from the poster. I will provide an update based on their response on what should be added.


12-Hour Clock format in Calendar

We create a column with the following options:
options: { format: 'MM/DD/YYYY HH12:MI AM/PM', time: 1 }
It works and shows the time with 12H clock format but in the editor the choices are in 24 clock format. How can we configure it so the editor uses 12H clock? Thanks

Thank you for your suggestion! We've added this option, and it will be available in the next package version release in the coming days.
You'll be able to enable the 12-hour clock format by setting the following option:
is24HourFormat: false


Renamed atom inputs to PFS inputs in docs and examples

This reverts the revert for the atom/PFS rename, now that 1.8.1 is out. We have a few options here:

Merge #3317, followed by this PR once 1.8.1 is in more hands. If we go down this path, I'll just fix conflicts once #3317 is merged. This would make sense if we suspect consumers of examples tend to be on the latest version.
Close this PR and #3317 out for now and wait until 1.8.1 is in more hands before moving forward. This would minimize breakages for users on 1.8.0 or lower who are consuming 1.8.1 docs/examples.
Just go ahead and merge this PR, changing both the docs and examples at the same time.

I knew that would happen sooner or later, sorry about that! @jdoliner


Fix the date in taskbar

Closes #21

@Chetan-KK please review and merge, thanks!

@Chetan-KK could you please label this as hacktober-accepted, would be much appreciated thanks!


xmondrian postgresql data source

Hi Roland,
Great work.  Thanks.  I am struggling with Mondrian releases and out of date documentation.
The xmondrain war file makes things so much easier.
Would you please help me connect xmondrian to PostgreSQL?  I have Mondrian 3.5 samples in 3.5 (except for the XMLA ones) using Foodmart in PostgreSQL 9.5.  I've confirmed by turning PostgreSQL logging on.
This DataSourceInfo works in 3,5 in datasources.xml
Provider=mondrian; Jdbc=jdbc:postgresql://localhost/Mondrian_Foodmart; JdbcDrivers=org.postgresql.Driver;JdbcUser=postgres;JdbcPassword=xxxx; Catalog=/WEB-INF/FoodMart.xml.
When I add the postgresql jdbc jar file and change the datasource.xml in xmondrian and use  Xavier or Xmlash it fails with:
error SOAP-ENV:Server.00HSBE02: XMLA Discover unparse results error (source: _requestSuccess, actor: Mondrian) 00HSBE02: The Mondrian XML: Mondrian Error:Internal error: No suitable connection found.  I am testing with tomcat and windows 7.
Thanks in advance for any tips.
Cheers,
Bob Doss

Hi bobdoss! Thanks for your interest.
I just tried myself, and I got it going pretty quicky. These are the steps I did:

make sure your postgres is running. Create a role "foodmart" and a database "foodmart" using a tool like pgAdmin or so.

download the zipped project from https://github.com/OSBI/foodmart-data (https://github.com/OSBI/foodmart-data/archive/master.zip)

extract zip. You'll get a foodmart-data-master dir.

Go into the "data" subdir, extract "DataScript.zip". Then copy "FoodMartCreateData.sql" from the extracted "DataScript" directory 2 levels up, so that it sits in "data/FoodMartCreateData.sql"

cd into the main foodmart-data-master dir. Then run command according to instructions of the project:

sh FoodMartLoader.sh --db postgres
This sets up the database side of things.

Now, stop your java web server where you deployed xmondrian
download the postgres jdbc driver (I got mine here: https://jdbc.postgresql.org/download/postgresql-9.4.1208.jar) and store it in xmondrian\WEB-INF\lib
Find xmondrian\WEB-INF\datasources.xml and make a copy so you can safely edit it.
open datasources.xml in a text editor.
set the DataSourceInfo element to Provider=mondrian;Jdbc=jdbc:postgresql://localhost/foodmart;JdbcDrivers=org.postgresql.Driver;JdbcUser=postgres;JdbcPassword=postgres
start your webserver

This gave me a functional foodmart on postgres with xmondrian.
I hope this helps, cheers!

Please let me know if I can close the issue. Best regards,
Roland

Hi Roland,
Thanks.  I worked it out. Please close the issue. I had to get the DataSourcesConfig in Web.xml set up correctly for windows path  to refer to datasources.xml.  And
MondrianXmlaServlet
mondrian.xmla.impl.DynamicDatasourceXmlaServlet

DataSourcesConfig
file:///C:/catalina/webapps/mondrian3_5/WEB-INF/datasources.xml

And then the datasources.xml seemed to need a relative path in catalogs definition.
Provider=mondrian; Jdbc=jdbc:postgresql://localhost/FoodMart; JdbcDrivers=org.postgresql.Driver;JdbcUser=postgres;JdbcPassword=xxxxx
Mondrian
MDP
Unauthenticated

/WEB-INF/schema/Foodmart.xml

Ok, cool! Always feel free to ask or let me  know how you get along with xmondrian or any of the bundled projects. Best regards,
Roland

please can you send a picture of code @bobdoss


Further explicitness about webhook limitations

Would it be appropriate to be more explicit about webhook limitations. The intro describes the use of cards as a reply, but do all those features of cards work?
I mention this as a follow up to discovering messageBack (Card)Action functionality for Hero and Adaptive cards do not appear to work. Ref question
The trail of documentation can lead to the wrong conclusion.
Also, thank you, the documentation is generally pretty solid!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: bb9c5bd5-1ac6-dcc8-4ed6-d6aad2432776
Version Independent ID: 43e90995-bba4-86b6-1f1c-ab749e546a4b
Content: Add custom bots to Microsoft Teams with outgoing webhooks - Teams
Content Source: msteams-platform/webhooks-and-connectors/how-to/add-outgoing-webhook.md
Product: msteams
GitHub Login: @laujan
Microsoft Alias: lajanuar

Closed through PR 2691.


Unable to access jarfile VertigoBoostingPanel.jar

after i execute start.bat ... any idea ?
Error: Unable to access jarfile VertigoBoostingPanel.jar
Press any key to continue . . .

same issue :C

same issue :C

same issue :C

after i execute start.bat ... any idea ?
Error: Unable to access jarfile VertigoBoostingPanel.jar
Press any key to continue . . .

Guys you are downloading the source code where there is no such jar file.
Download the top 3 files from: https://github.com/SamHoque/Vertigo-Boosting-Panel/releases/tag/1.0.0
Put then into a folder and run start (You need java for this to work)
I hope this helps.

same issue :C

after i execute start.bat ... any idea ?
Error: Unable to access jarfile VertigoBoostingPanel.jar
Press any key to continue . . .

Guys you are downloading the source code where there is no such jar file.
Download the top 3 files from: https://github.com/SamHoque/Vertigo-Boosting-Panel/releases/tag/1.0.0
Put then into a folder and run start (You need java for this to work)
I hope this helps.

same issue :C

after i execute start.bat ... any idea ?
Error: Unable to access jarfile VertigoBoostingPanel.jar
Press any key to continue . . .

Guys you are downloading the source code where there is no such jar file.
Download the top 3 files from: https://github.com/SamHoque/Vertigo-Boosting-Panel/releases/tag/1.0.0
Put then into a folder and run start (You need java for this to work)
I hope this helps.

it's given another error
https://i.imgur.com/7yxjGX8.png

same issue :C

after i execute start.bat ... any idea ?
Error: Unable to access jarfile VertigoBoostingPanel.jar
Press any key to continue . . .

Guys you are downloading the source code where there is no such jar file.
Download the top 3 files from: https://github.com/SamHoque/Vertigo-Boosting-Panel/releases/tag/1.0.0
Put then into a folder and run start (You need java for this to work)
I hope this helps.

it's given another error
https://i.imgur.com/7yxjGX8.png


Lua Modification Implementation

Initial implementation for #51.
Usage:
sslsplit -M modify.lua

Limitations:
Does not always get a full request body, so can't necessarily increase length requiring Content-Length to be modified in HTTP. Probably needs some kind of request/response buffering into pxy_bev_readcb.
Example function:
Note: no attempt to fix content length, will probably break browsers
function modify(data)
    data = string.gsub(data, "gzip, deflate", "") --for requests
    data = string.gsub(data, "<title>", "<title>TEST") --for responses
    return data
end

The example in the first comment is disfunctional; it should read return data instead of return string. It would be a good idea to edit the comment because this is the only place that I can find that has an actual example, so people might look here.

I've fixed this, but this implementation doesn't really work properly yet, becuase of the way the event loop runs.

I am getting failed to do lua file, is this related? I am only trying to do full-text string substitution so it should work even if the conditions aren't optimal and the data gets chopped up into multiple pieces etc.

That's not one of our error messages so I'm not sure where it's coming from.


Add optional password protection to status manipulating actions

What
Add optional password protection to status manipulating actions

API calls now require a password in a header or query parameter for '/webhook', '/status', '/trigger' and '/debug'
Manipulating statuses via the dashboard requires you to provide a password first

Why
Running the CIMonitor publicly allows everyone to either clear you dashboard, or push crap to it. Adding password protection will prevent that.
To do

[x] Add password prompt in the dashboard for status API calls

[x] re-ask for the password when a 401/403 is returned
[x] Check if a password is needed at all, hide if not.

[ ] Add documentation

@eXistenZNL if you can check the docs this can be merged :smile:


Unexpected font selection with named + weight differences

I was trying to add support for dynamically loading fonts to my library that uses cosmic-text, and I downloaded a random font and tried specifying the attribute using the FamilyOwned::Name() variant. I spent an hour debugging this before I finally noticed why it wasn't being found.
It wasn't due to a caching issue, it was due to the font I downloaded having a weight of 300, not 400. When I change the buffer's attributes to be a weight of 300, the font is found.
To me, the name of a font is more significant than the weight, especially if the difference is 100 or less. For reference, I was testing with Shantell Sans.

What font has a weight of 300? (specifically)
Assume you are using the static fonts.
And are you using the fonts downloaded from Google Fonts (v1.008) or the fonts from the repository release (v1.009)?
Because the repo v1.009 release fonts have some naming errors which can cause confusion between the Light (300) and the Regular (400).

What font has a weight of 300? (specifically)

The linked font is the one I was testing with, specifically I was testing the non-italic variant named ShantellSans-VariableFont_BNCE,INFM,SPAC,wght.ttf

Assume you are using the static fonts.

Correct, I'm using local files that have been loaded. I have no problems with the loading process.

And are you using the fonts downloaded from Google Fonts (v1.008) or the fonts from the repository release (v1.009)?

I'm downloading from the page I linked by clicking Get Font, then Download All.
This ticket really isn't about the font itself, it's about the methodology of font fallback selection. To me, if I have asked Cosmic Text to render "Shantell Sans" and the font weight delta is 100, I feel like it should still render "Shantell Sans" instead of an arbitrary fallback that happens to match the weight.
Just to add another font to the mix: while debugging this, I picked another random font from Google fonts and it has a default weight of 200: https://fonts.google.com/specimen/Ojuju. I got really unlucky in that my two test fonts I was using today both had non-400 weights.

The linked font is the one I was testing with, specifically I was testing the non-italic variant named ShantellSans-VariableFont_BNCE,INFM,SPAC,wght.ttf

That is the variable font.
If you want to test the static fonts, they are in the static folder.
Note: For Google Fonts, you cannot have both the static fonts and the variable fonts installed at the same time - there will be name conflicts which will cause unexpected results (like this).

That is the variable font. If you want to test the static fonts, they are in the static folder.

I feel like we're talking past each other. Can we stop focusing on specific fonts, and talk about the actual issue I've reported? Sure, I could have picked some better versions of the fonts, but other users of my library might have variable fonts installed because other programs support variable fonts. The subject of this issue and the main focus of my description in the issue have not been about a specific font, but a very specific request.

OK.


Adding introduction for Azure support for existing Spring modules

Adding introduction for Azure support for existing Spring modules

The suggested changes look good to me - thanks!


redirect_uri_mismatch when exchanging code in ux_mode: 'popup', flow: 'auth-code'

In adding google login I am running into redirect_uri_mismatch when using ux_mode: 'popup' and flow: 'auth-code'.  It works with with  ux_mode: 'redirect' and flow: 'auth-code'.  To take my server code out of the equation, I am using HTTP/REST and Postman to troubleshoot the exchange.
To launch the login, I am using a custom button and
    const googleLogin  = useGoogleLogin({
        onSuccess:  googleCodeResponseSuccess,
        flow: 'auth-code',
        ux_mode: 'popup'
    });

The exchange happens using post to https://oauth2.googleapis.com/token.
This process fails when using ux_mode: 'popup'.  If I set a mode to redirect and provide 'redirect_uri` then the exchange works as expected.
Since I am not providing a redirect_uri for the popup, what redirect_uri should I use in the exchange?  I am grateful for any advice on how this should work.

on your server use postmessage as redirect_uri

Thank you!

on your server use postmessage as redirect_uri

I was using the authorization code flow together with popup, but when I change to 'ux mode' redirect, I start to get redirection error mismatch.
What URL should I put in the backend? And on the frontend? I have the local development environment, HML and PRD, do I have to change the address for all of them?

on your server use postmessage as redirect_uri

Thank you so much!

on your server use postmessage as redirect_uri

I was using the authorization code flow together with popup, but when I change to 'ux mode' redirect, I start to get redirection error mismatch.
What URL should I put in the backend? And on the frontend? I have the local development environment, HML and PRD, do I have to change the address for all of them?

Use 'postmessage' in front and back like this
//backend

    const client = new OAuth2Client({
      clientId: this.configService.get<string>('GOOGLE_OAUTH_CLIENT_ID'),
      clientSecret: this.configService.get<string>(
        'GOOGLE_OAUTH_CLIENT_SECRET',
      ),
      redirectUri: 'postmessage',
    });

 //frontend
   const login = useGoogleLogin({
    flow: 'auth-code',
    redirect_uri: 'postmessage',
    onSuccess: async (tokenResponse) => {
      console.log(tokenResponse);

      const response = await fetch(
        'http://localhost:3000/api/v1/auth/google/signIn',
        {
          method: 'POST',
          headers: {
            'Content-Type': 'application/json',
          },
          body: JSON.stringify({
            code: tokenResponse.code,
          }),
        },
      );
      console.log(response);
    },
  });

I only tested it locally, but I don't think there will be any problems in other environments. Because it worked even if I didn't add 'postmessage' uri in gcp


python3Packages.sslyze: Update dependencies

Motivation for this change
It does not seem to support cryptography >= 3:
https://github.com/nabla-c0d3/sslyze/issues/455
~Depends on #98118 .~ (there should not be multiple versions of cryptography in nixpkgs)
ZHF: #97479
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Python 3 libraries in Nixpkgs cannot use another cryptography version.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/why-shouldnt-there-be-different-version-of-libraries-in-nixpkgs/9029/1

conflicts

Superseded by #98301 .


[Project] Import ONNX and TFlite format

Let's enable import for ONNX and TFlite format files

[ ] add sample cfg for ONNX
[ ] add sample cfg for TFlite
[ ] enable imports

sub task of #5

onnx sample to use: https://github.com/Samsung/ONE/issues/5548


Remove dnsrecords from rbac

What this PR does / why we need it:
From https://github.com/gardener/gardener/releases/tag/v1.60.0:

[DEVELOPER] The RBAC for DNSRecords is no longer required by extension controllers (other than DNSRecords) and should be removed where applicable. (https://github.com/gardener/gardener/pull/6973, @plkokanov)

After updating to gardener/gardener > 1.60 the extension no longer needs the RBAC rules for dnsrecords.
Release note:

NONE

@dimityrmirchev make verify is failing with:
> Check
Executing golangci-lint
/go/src/github.com/gardener/gardener-extension-shoot-oidc-service/vendor/github.com/gardener/gardener/hack/check.sh: line 33: 11482 Killed                  golangci-lint run $GOLANGCI_LINT_CONFIG_FILE --timeout 10m $@
make: *** [Makefile:92: check] Error 137

I don't think it is related to the changes in this PR. Can it be related to the recent go version update?

Yes, it should be fixed with https://github.com/gardener/gardener-extension-shoot-oidc-service/pull/89. Please rebase.


error go-layerfs: could not ReadDir because n >= 0 is not supported

I tried to use layerfs with 2 embed.FS, but when i was walking the filesystem I saw the message
views: go-layerfs: could not ReadDir because n >= 0 is not supported: .
When I read the docs for fs.ReadDirFile (https://github.com/golang/go/blob/master/src/io/fs/fs.go#L129), there are cases for n > 0 and n <= 0, so i think the check in DirFile.ReadDir should only fail for n > 0 (and not for n == 0)  https://github.com/dschmidt/go-layerfs/blob/a0bce2dc294f4c856d88f7668bfab1f13a34ce5f/files.go#L23-L27

Hey,
thanks for trying out go-layerfs and opening this ticket!
The problem here is that when we read only a partial file list, we don't know what we need to overlay or not. We need to read the whole directory, so we can compute the overlay.
Can you post a minimal reproducing example? Then we can look for a solution together.

For partial file lists, this is indeed a bit more tricky, but when n == 0 we are requesting the complete directorylisting.
(relevant text snippet from  the go-docs mentioned earlier:)

If n <= 0, ReadDir returns all the DirEntry values from the directory in a single slice.

I'm wrapping it in a http.FS as a source for the html template engine of gofiber (https://github.com/gofiber/template) so it's going to take some time to craft up a minimal example.

Ah, misread the intention of your ticket, I thought you wanted partial directory listing.
Yes, sounds good. Wanna send a PR to change the check?

thank you for accepting the PR


Add a governance proposal to change client parameters

Summary
Add a governance proposal which allows client parameters to be changed
Problem Definition
There is no mechanism for changing client parameters, such as the trusting period, once a client has been created. In some cases it would benefit users of a client and the chain/relayer operators if the parameters could be changed e.g. if the trusting period was set to too low a value when a client was created both users and operators would benefit from increasing the trusting period.
It makes sense that these parameters cannot be changed unilaterally, however given that a majority of validators can change client parameter values anyway, having a built-in governance proposal to change them would not change the security fundamentals. Without a built-in governance proposal the maintainers must resort to makeshift and divergent changes to their codebase to force the client parameter values to change.
The disadvantage of reducing the friction for maintainers is that it might make it easier for them to inadvertently break the client for users relying on the original client parameters. Without the built-in governance proposal the maintainers would need to modify parts of the code themselves, arguably, this might lead them to consider more carefully the impact of changing parameter values.

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged/assigned

Adding here comment from #1758.

We can do this following without adding additional interface functions following merge of #5806. It can be achieved by adding a msg server to the 07-tendermint light client module which allows governance to modify any of the fields in the client state


Consider Semigroup constraint for SumCont and FoldMapCont

See here and here.
I think we should do this for SumCont for sure.

The Cont parts are addressed in #118, and I just opened #119 for the foldMap with Semigroup part.


⚠ Bofrost.lu has degraded performance

In 5580379, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1520 ms

Resolved: Bofrost.lu performance has improved in 8793d49 after 9 minutes.


Apollo-sv contains many classes that should be in other ontologies

apollo-sv contains many classes that are out of scope and should be in other OBO ontologies. Note that in many cases here the deficiency is in OBO, either existing vocabularies do not accept terms or we have not agreed OBO-wide where certain terms belong. This problem is perpetuated by the use of BFO shadow classes (e.g. foo + foo datum). While not necessarily apollo-sv's problem, I would recommend this team is proactive in making tickets on other ontology repos to get terms submitted and reporting back to OBO where there are problems.
In OBO we also need a better way of indicating which ontologies typically mint classes that may eventually be housed elsewhere.
Here is a random sampling:
we still don't have a good story for symbiosis types in OBO cc @diatomsRcool, but these should probably be housed elsewhere:

id
label

APOLLO_SV:00000337
ectosymbiosis

APOLLO_SV:00000338
antagonism

APOLLO_SV:00000339
amensalism

APOLLO_SV:00000340
agonism

APOLLO_SV:00000341
intimate agonism

APOLLO_SV:00000342
ectosymbiotic parasitism

APOLLO_SV:00000343
facultative ectosymbiotic parasitism

APOLLO_SV:00000344
obligatory ectosymbiotic parasitism

APOLLO_SV:00000345
ectosymbiotic parasitoidism

APOLLO_SV:00000346
facultative ectosymbiotic parasitoidism

APOLLO_SV:00000347
obligatory ectosymbiotic parasitoidism

APOLLO_SV:00000348
ectosymbiotic commensalism

APOLLO_SV:00000349
facultative ectosymbiotic commensalism

APOLLO_SV:00000350
obligatory ectosymbiotic commensalism

APOLLO_SV:00000351
ectosymbiotic mutualism

APOLLO_SV:00000352
facultative ectosymbiotic mutualism

APOLLO_SV:00000353
obligatory ectosymbiotic mutualism

APOLLO_SV:00000354
endosymbiosis

APOLLO_SV:00000355
endosymbiotic parasitism

APOLLO_SV:00000356
transient agonism

APOLLO_SV:00000357
predation

APOLLO_SV:00000358
grazing

APOLLO_SV:00000359
facultative endosymbiotic parasitism

APOLLO_SV:00000360
obligatory endosymbiotic parasitism

APOLLO_SV:00000361
endosymbiotic parasitoidism

APOLLO_SV:00000362
facultative endosymbiotic parasitoidism

APOLLO_SV:00000363
obligatory endosymbiotic parasitoidism

APOLLO_SV:00000364
endosymbiotic commensalism

APOLLO_SV:00000365
facultative endosymbiotic commensalism

APOLLO_SV:00000366
obligatory endosymbiotic commensalism

APOLLO_SV:00000367
endosymbiotic mutualism

APOLLO_SV:00000368
facultative endosymbiotic mutualism

APOLLO_SV:00000369
obligatory endosymbiotic mutualism

APOLLO_SV:00000596
symbiosis

ENVO or PCO cc @pbuttigieg @ramonawalls

id
label

APOLLO_SV:00000097
ecosystem

APOLLO_SV:00000094
community

APOLLO_SV:00000113
atmosphere of the Earth

APOLLO_SV:00000035
organism population universal

I believe that environmental variables are currently scoped for ENVO but this could be discussed

id
label

APOLLO_SV:00000513
mean rate of hydrological precipitation

APOLLO_SV:00000514
mean air temperature

STATO or IAO (or EDAM, which is not OBO):

id
label

APOLLO_SV:00000076
μ

APOLLO_SV:00000077
σ

APOLLO_SV:00000078
beta distribution

APOLLO_SV:00000079
deprecated log normal distribution

APOLLO_SV:00000080
uniform distribution

APOLLO_SV:00000081
triangular distribution

APOLLO_SV:00000082
Bayesian network

APOLLO_SV:00000434
statistical confidence

Even though it's not OBO, I would use EDAM here. Or we can raise this to an OBO level ticket:

id
label

APOLLO_SV:00000203
NCBI taxon identifier

APOLLO_SV:00000319
NLM ID

APOLLO_SV:00000320
ISSN Linking

APOLLO_SV:00000321
ISO Title Abbreviation

APOLLO_SV:00000324
NLM Title Abbreviation

APOLLO_SV:00000325
URI creation date

diseases

id
label

APOLLO_SV:00000574
acute respiratory illness

OBA cc @matentzn

id
label

APOLLO_SV:00000471
minimum eggs per oviposition site

APOLLO_SV:00000472
age-dependent fecundity reduction

APOLLO_SV:00000442
migration speed

I don't know what a "organism population universal" is, but f you can define it, I'm happy to include it in PCO, assuming it does not already exist with another label.

Plenty of stories behind many of these terms that perhaps could inform how
to prevent the problem from arising again.  Would be happy to share those
in whatever is an appropriate forum.
We tried working with ENVO.  Sometimes when you need a term, you need it
pretty quickly.  Delay on the part of the host "ontology" leaves you with
the idea of "well, we'll stick it here now and fix it later when the proper
ontology finally adds it."  I'm guilty of that as an owner of multiple
ontologies.
Many of these are annotation properties, I think (NLM Title Abbreviation?)
Never heard of OBA and would guess we created those terms  before it
existed.
The symbiosis terms were a student project presented at ICBO and published
in open access journal.  Was a very systematic approach.  How to handle
student projects?  Hold up PhDs waiting for terms?
On Mon, Jun 7, 2021 at 7:07 PM Ramona Walls @.***>
wrote:

I don't know what a "organism population universal" is, but f you can
define it, I'm happy to include it in PCO, assuming it does not already
exist with another label.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ApolloDev/apollo-sv/issues/207#issuecomment-856318459,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJR55S6GMQFDZHBNCEM3Z3TRVGJ5ANCNFSM46IHTLGQ
.

Also, Apollo-SV long predated STATO
On Mon, Jun 7, 2021 at 7:21 PM Bill Hogan @.***> wrote:

Plenty of stories behind many of these terms that perhaps could inform how
to prevent the problem from arising again.  Would be happy to share those
in whatever is an appropriate forum.
We tried working with ENVO.  Sometimes when you need a term, you need it
pretty quickly.  Delay on the part of the host "ontology" leaves you with
the idea of "well, we'll stick it here now and fix it later when the proper
ontology finally adds it."  I'm guilty of that as an owner of multiple
ontologies.
Many of these are annotation properties, I think (NLM Title Abbreviation?)
Never heard of OBA and would guess we created those terms  before it
existed.
The symbiosis terms were a student project presented at ICBO and published
in open access journal.  Was a very systematic approach.  How to handle
student projects?  Hold up PhDs waiting for terms?
On Mon, Jun 7, 2021 at 7:07 PM Ramona Walls @.***>
wrote:

I don't know what a "organism population universal" is, but f you can
define it, I'm happy to include it in PCO, assuming it does not already
exist with another label.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ApolloDev/apollo-sv/issues/207#issuecomment-856318459,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJR55S6GMQFDZHBNCEM3Z3TRVGJ5ANCNFSM46IHTLGQ
.

Also, we recognize the issue and just ceded about 10 terms back to IAO,
which by the way, was a pretty dead letter when we created those classes.
On Mon, Jun 7, 2021 at 7:25 PM Bill Hogan @.***> wrote:

Also, Apollo-SV long predated STATO
On Mon, Jun 7, 2021 at 7:21 PM Bill Hogan @.***> wrote:

Plenty of stories behind many of these terms that perhaps could inform
how to prevent the problem from arising again.  Would be happy to share
those in whatever is an appropriate forum.
We tried working with ENVO.  Sometimes when you need a term, you need it
pretty quickly.  Delay on the part of the host "ontology" leaves you with
the idea of "well, we'll stick it here now and fix it later when the proper
ontology finally adds it."  I'm guilty of that as an owner of multiple
ontologies.
Many of these are annotation properties, I think (NLM Title Abbreviation?)
Never heard of OBA and would guess we created those terms  before it
existed.
The symbiosis terms were a student project presented at ICBO and
published in open access journal.  Was a very systematic approach.  How to
handle student projects?  Hold up PhDs waiting for terms?
On Mon, Jun 7, 2021 at 7:07 PM Ramona Walls @.***>
wrote:

I don't know what a "organism population universal" is, but f you can
define it, I'm happy to include it in PCO, assuming it does not already
exist with another label.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ApolloDev/apollo-sv/issues/207#issuecomment-856318459,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJR55S6GMQFDZHBNCEM3Z3TRVGJ5ANCNFSM46IHTLGQ
.

and I am guilty of not being fast enough and of creating out-of-scope terms :(
I will add that I have several symbiosis-related terms in ecocore (which is a new ontology), so those APOLLO terms could be re-homed there.

We published a paper on those symbiosis classes explaining the need to create these classes, and it basically boiled down to there not being suitable or detailed representations of these interactions (note: ECOCORE, to my knowledge, did not exist when we started working on these classes). We did have some conversations with GO about 'symbiosis' since they also have a class for it, but I think we decided that their approach of constraining it to being only about the molecular/genetic aspects of such interactions was too restricting (they originally had a definition that was really good and then changed it).

Thanks all for your comments - it seems apollo-sv has been diligent in
trying to get the appropriate terms in different ontologies (including the
exemplary practice of filing tickets in github repos rather than emails).
It seems that something is not working right at the OBO level, it should
not be this hard to get terms in. There are some genuinely hard problems
such as how best to modularize a complex domain like ecology / symbiotic
interactions. Maybe some kind of dedicated meeting  (virtual) around this
is required perhaps around ICBO time?

Do you happen to have the ENVO tickets handy?
On Mon, Jun 7, 2021 at 4:21 PM Bill Hogan @.***> wrote:

Plenty of stories behind many of these terms that perhaps could inform how
to prevent the problem from arising again. Would be happy to share those
in whatever is an appropriate forum.
We tried working with ENVO. Sometimes when you need a term, you need it
pretty quickly. Delay on the part of the host "ontology" leaves you with
the idea of "well, we'll stick it here now and fix it later when the proper
ontology finally adds it." I'm guilty of that as an owner of multiple
ontologies.
Many of these are annotation properties, I think (NLM Title Abbreviation?)
Never heard of OBA and would guess we created those terms before it
existed.
The symbiosis terms were a student project presented at ICBO and published
in open access journal. Was a very systematic approach. How to handle
student projects? Hold up PhDs waiting for terms?
On Mon, Jun 7, 2021 at 7:07 PM Ramona Walls @.***>
wrote:

I don't know what a "organism population universal" is, but f you can
define it, I'm happy to include it in PCO, assuming it does not already
exist with another label.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<
https://github.com/ApolloDev/apollo-sv/issues/207#issuecomment-856318459>,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAJR55S6GMQFDZHBNCEM3Z3TRVGJ5ANCNFSM46IHTLGQ
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ApolloDev/apollo-sv/issues/207#issuecomment-856324153,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAMMOIQ3LRYILX4LL3NFA3TRVIBNANCNFSM46IHTLGQ
.

Here is the ENVO ticket for the terms you listed: https://github.com/EnvironmentOntology/envo/issues/387.

'ORCID identifier' was add in IAO with ID, IAO_0000708.
APOLLO_SV_00000496 (ORCID) should be deprecated and add annotation 'term replaced by': http://purl.obolibrary.org/obo/IAO_0000708

The IAO purl still points to a 2020 version, so how to update Apollo-SV before getting my class back?

I am preparing the new release of IAO now and will let you know when it's out. @hoganwr

Great - thanks!
On Thu, Oct 27, 2022 at 11:30 AM jie zheng @.***> wrote:

I am preparing the new release of IAO now and will let you know when it's
out. @hoganwr https://github.com/hoganwr
—
Reply to this email directly, view it on GitHub
https://github.com/ApolloDev/apollo-sv/issues/207#issuecomment-1293708615,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJR55SLD6HWBOYUWOMPXQ3WFKNXTANCNFSM46IHTLGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

@hoganwr the IAO PURL now points to the new release, so APOLLO-SV:ORCID can be obsoleted.

Thanks!  I've done that, made a new release of the ontology (w/a slight reorganization), and updated the PURL to always point to the latest.  Once the PURL redirects, hopefully ontobee picks it up and pulls in the new version, and then all will be well.


Optimize SCA trace capture

This PR contains three commits to optimize the trace capture using ChipWhisperer:

The sampling rate is increased to 200 MS/s which is the maximum supported by Husky. CW-Lite keeps collecting traces with 100 MS/s (max supported 105 MS/s) the number of samples to record is adjusted internally for CW-Lite.
Allow negative and positive sampling offsets to be defined through the config file. Is allows to better tune the capture window.
Tune the capture window for SHA3.

Also, this PR updates the ChipWhisperer version to get a more recent of the library.

@johannheyszl This PR contains a first set of changes proposed in the updated Todo list. Next, I will try out to store the traces as integers instead of doubles...


How to avoid variables with no dimensions from picking up concat_dim?

@martindurant , I've got a collection of netcdf files I'm combining with kerchunk along the ocean_time dimension.
These files have model constants stored as single value variables without a dimension.

When I combine them, these variables are picking up the ocean_time dimension, but they should not:

How can I avoid this?
Reproducible notebook here: https://nbviewer.org/gist/e0c74a4a7e947e5d04fa3e82147ff146

Is the ocean_time actually the same in all of these?

These variables should not have an ocean_time dimension at all.

How should the output look?

The combined dataset should leave single value constants as constants, with no dimensions.

OK, so sounds like "dstart" should be in the "identical_dims"

I added "dstart" to the "identical_dims" but got the same result.  Perhaps because it doesn't have dims?

I can't look into it right now, but ping me next week. So are all of the values of dstart the same? If is a plausible dimension for future expansion with more variables (i.e., maybe it should be a concat_coord?)

By adding "dstart" to MultiZarrToZarr, I got the result you were after
mzz = MultiZarrToZarr(json_list,
        remote_protocol = 's3',
        remote_options = opts,
        target_options = opts,
        concat_dims = ['ocean_time'],
        identical_dims=['lat_psi','lat_rho','lat_u','lat_v',
                        'lon_psi','lon_rho','lon_u','lon_v', "dstart"])

->

<xarray.DataArray 'dstart' ()>
array('2022-07-29T00:00:00.000000000', dtype='datetime64[ns]')
Attributes:
    long_name:  time stamp assigned to model initilization

close?


Add a Codacy badge to README.rst

Sorry, codacy seemed to have re analysed the project under my user.

lol. codacy is magic sometimes


Accessibility pass

We need to do an accessibility pass. @3lcarry will be handling this.
A couple of known issues:

Missing tooltips when hovering over the user/cart icons.
Footer text is blocked by banner image when looking at the identity page.

We can close this one


"verify to earn" black background

this is part of the sign up flow or on rewards > unlock rewards

Hijacking instead of creating a new issue:


Grit::NoSuchPathError

It appears redmine-gitolite is having troubles creating a tmp directory.
on line 59 of gitolite_redmine it tries to create the /opt/redmine/tmp/redmine_gitolite_1331245893 directory.
My guess is that it's not working for some reason.
I don't think it's a permission problem.
Seems to be running as redmine user.
root@page:/# ps aux | grep redmine
redmine   9851  4.7  3.7<PHONE_NUMBER>32 ?       S    16:30   0:14 Passenger ApplicationSpawner: /opt/redmine
redmine   9855  0.2  3.7<PHONE_NUMBER>00 ?       S    16:31   0:00 Rails: /opt/redmine
If I log in as redmine, I can create that directory.
redmine@page:~$ ls /opt/redmine/tmp/
redmine_gitolite_lock  test
redmine@page:~$ mkdir -p /opt/redmine/tmp/redmine_gitolite_1331245893
redmine@page:~$ ls /opt/redmine/tmp/
redmine_gitolite_1331245893  redmine_gitolite_lock  test
Any ideas?
Processing RepositoriesController#create (for <IP_ADDRESS> at 2012-03-08 16:31:33) [POST]
Parameters: {"controller"=>"repositories", "authenticity_token"=>"LoZFLCXgjfPOeeGOQ6oXxC2f66DZ5Z9yPn3YP9FXddk=", "repository_scm"=>"Git", "repository"=>{"identifier"=>"testing", "is_default"=>"1"}, "project_id"=>"testing", "action"=>"create", "commit"=>"Create"}
#<Grit::NoSuchPathError: /opt/redmine/tmp/redmine_gitolite_1331245893> /var/lib/gems/1.8/gems/grit-2.4.1/lib/grit/repo.rb:53:in initialize' /var/lib/gems/1.8/gems/gitolite-0.0.3.alpha/lib/gitolite/gitolite_admin.rb:12:in new'
/var/lib/gems/1.8/gems/gitolite-0.0.3.alpha/lib/gitolite/gitolite_admin.rb:12:in initialize' /opt/redmine/vendor/plugins/redmine-gitolite/lib/gitolite_redmine.rb:58:in new'
/opt/redmine/vendor/plugins/redmine-gitolite/lib/gitolite_redmine.rb:58:in clone' /opt/redmine/vendor/plugins/redmine-gitolite/lib/gitolite_redmine.rb:33:in update_projects'
/opt/redmine/vendor/plugins/redmine-gitolite/lib/gitolite_redmine.rb:137:in recursion_check' /opt/redmine/vendor/plugins/redmine-gitolite/lib/gitolite_redmine.rb:29:in update_projects'
/opt/redmine/vendor/plugins/redmine-gitolite/app/models/gitolite_observer.rb:12:in update_repositories' /opt/redmine/vendor/plugins/redmine-gitolite/app/models/gitolite_observer.rb:4:in after_save'
/var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:171:in send' /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:171:in update'

Found out that ruby is at least able to create files in that tmp directory.  When I run redmine add repository, I end up with a redmine_gitolite_lock file in /opt/redmine/tmp.
redmine@page:~/repositories/tmp$ cd /opt/redmine/tmp/
redmine@page:/opt/redmine/tmp$ ls
redmine_gitolite_lock

This was a red herring.  Problem was the ssh keys from the redmine user to the gitolite user were not installed correctly.  It was trying to log in with a password, which I found out after running redmine under webrick.
ruby script/server webrick -e production
(not sure why it duplicated issue.)


Update our retention time to 2 years

Based on some new guidelines we are updating our release retention to 2 years.

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

@benbp we apparently had a silent bug for a while with this script I debugged and fixed it so now it should be working again.

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow


KNL-1396 The finalize() call would break tests.

The test would finish and then the directory would get deleted, then the next test would start up and it would use the same directory location (recreating it). Then the finalize() method on the first test would be called and this would remove the directory which was now being used by the second test.
The other option would have been to have had all the tests use a different directory, but removing the finalize() is a sensible thing todo as it could cause confusion in the future. In my tests even when a test failed I was still seeing the directory get cleaned up, it's only if the caller doesn't call tearDown() that the directory would remain.

LGTM

Nice. LGTM


[Instagram] rss-bridge is  not working

There is an error in  Instagram rss-bridge
Please can you please fix the problem @teromene

I have also just noticed that the Instagram bridge has stopped working. All my feeds are suddenly empty. Looks like Instagram may have changed something.

I have also just noticed that the Instagram bridge has stopped working. All my feeds are suddenly empty. Looks like Instagram may have changed something.

EXACTLYYY

Please check this senario.
file_get_contents("https://instagram.com/profile_name")n
If you are getting the login page then instagram flag your server ip address

Check this post for a solution: https://github.com/RSS-Bridge/rss-bridge/issues/1617#issuecomment-646679996
I'm aware it's not a perfect workaround because it involves an extra step (finding somebody's user id number). And Instagram Bridge still says to input the username in the instructions. But it's all we have for now.
The rest of that thread might be worth a read if you want to know why Instagram Bridge suddenly stopped working.

@pin-grid-array Thanks, yes I've already seen that thread. Though this is a bit of a disaster now, given the number of feeds I'll have to edit in order to get them to work again. I wonder if there's some kind of an automated solution to this....
Cheers

Check this post for a solution: #1617 (comment)
I'm aware it's not a perfect workaround because it involves an extra step (finding somebody's user id number). And Instagram Bridge still says to input the username in the instructions. But it's all we have for now.
The rest of that thread might be worth a read if you want to know why Instagram Bridge suddenly stopped working.

Thank you so muuuuuuuuuuuuuch <3 <3 @pin-grid-array

The bug still appears on my end (git.master.976445b)
Thanks to @RawkBob solution in https://github.com/RSS-Bridge/rss-bridge/issues/1617#issuecomment-646679996

Duplicate of https://github.com/RSS-Bridge/rss-bridge/issues/1891


python 3

Incompatible with python 3?
I get an import error in python 3.4.
ImportErrorTraceback (most recent call last)
<ipython-input-103-3a41ffc8a047> in <module>()
----> 1 from flattery import flatten, unflatten
      2
      3 unflatten(df.to_dict(orient='record')[0])

/usr/local/lib/python3.4/dist-packages/flattery/__init__.py in <module>()
      1 #!/usr/bin/env python
      2
----> 3 from flattery.cext import *
      4

ImportError: /usr/local/lib/python3.4/dist-packages/flattery/cext.cpython-34m.so: undefined symbol: PyString_FromStringAndSize

Searching for a fix, I found this link: https://groups.google.com/forum/#!topic/cython-users/xoKNFTRagvk where it is suggested to use PyBytes_FromStringAndSize(NULL, length)

Seems this repository is not active. Have you found any alternatives for flattery?


Set helm releases history size.

Helm keeps releases history as k8s secrets. If we don't set max_history it will be unlimited.
There is an opened issue related to that https://github.com/helm/helm/issues/7997.
If count of secrets is huge then helm list/istall can be failed due to:
request.go:924] Unexpected error when reading response body: net/http: request canceled (Client.Timeout exceeded while reading body)
Error: unable to build kubernetes objects from release manifest: unexpected error when reading response body. Please retry. Original error: net/http: request canceled (Client.Timeout exceeded while reading body

@mglotov wouldn't it better to set this limit using variable?

@mglotov wouldn't it better to set this limit using variable?

@halfb00t Do you want to set them as we do for helm chart version?

@halfb00t Do you want to set them as we do for helm chart version?

@mglotov i think single var for all system releases is enough =)

@p1gmale0n hmm, is it really OK to have one variable for all releases?

@p1gmale0n hmm, is it really OK to have one variable for all releases?

i think this is ok for as the default behavior.
you can still change the specific value for a specific release, if necessary

Does it cover failed releases?
In https://github.com/helm/helm/issues/7997#issuecomment-825793882 we ended with lots of release versions due to a deployment bug that went for few weeks. We had a loop deploying helm releases that always failed (failure unrelated to helm), then retried... So we had thousands of failed versions.

Does it cover failed releases?
In helm/helm#7997 (comment) we ended with lots of release versions due to a deployment bug that went for few weeks. We had a loop deploying helm releases that always failed (failure unrelated to helm), then retried... So we had thousands of failed versions.

Yes, it does. It covers all release versions (failed, deployed, ..). There are some changes in helm v3.5.3 and terraform-helm-provider v2.1.1. Starting from those if you don't have at least one deployed release, then you are limited by max_history size and can't deploy any new release version, even if it's a working release version. You will need to increase max_history value or delete a k8s secret with the release version.


Stream antivirus sns feedback to Kibana

For this trello ticket.
SNS creates logs in CloudWatch to give us feedback on the sucess or
failure of its notifications. This is useful stuff and we should make it
more accessible by streaming it out to Kibana.

Is there anything that can be added to the manual as a result of this?


权限拒绝

描述问题
启动docker报错
A clear and concise description of what the bug is.
**重现步骤**

步骤一
**截图&日志**
12306ticket | Traceback (most recent call last):
12306ticket |   File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 76, in start
12306ticket |     stdin=PIPE)
12306ticket |   File "/usr/local/lib/python3.6/subprocess.py", line 707, in __init__
12306ticket |     restore_signals, start_new_session)
12306ticket |   File "/usr/local/lib/python3.6/subprocess.py", line 1326, in _execute_child
12306ticket |     raise child_exception_type(errno_num, err_msg)
12306ticket | PermissionError: [Errno 13] Permission denied
12306ticket |
12306ticket | During handling of the above exception, another exception occurred:
12306ticket |
12306ticket | Traceback (most recent call last):
12306ticket |   File "run.py", line 20, in <module>
12306ticket |     run()
12306ticket |   File "run.py", line 8, in run
12306ticket |     select_ticket_info.select().main()
12306ticket |   File "/usr/src/app/init/select_ticket_info.py", line 155, in main
12306ticket |     getDrvicesID(self)
12306ticket |   File "/usr/src/app/config/getCookie.py", line 17, in getDrvicesID
12306ticket |     driver = webdriver.Chrome(executable_path=TickerConfig.CHROME_PATH)
12306ticket |   File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 68, in __init__
12306ticket |     self.service.start()
12306ticket |   File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 88, in start
12306ticket |     os.path.basename(self.path), self.start_error_message)
12306ticket | selenium.common.exceptions.WebDriverException: Message: '' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
12306ticket |
12306ticket exited with code 1

**环境信息**
 - CentOS Linux release 7.6.1810
 - python3.6.0以上版本
 - 订票小助手版本 1.1.114

**额外的备注**
- Add any other context about the problem here.

PermissionError: [Errno 13] Permission denied，看这句话


Path length limitation

Hi.
I want to know if there is a limitation to the length of the string that includes the path and the pdf file name.
I have two diferent links shown below. The first one functions perfectly. But the second one gives me the following error message:
Message: Missing PDF "https://localhost:44371/CertificadoDigital/EscolContabil/eCNPJA1ArquivoEletronico/20201210/Curso_AspnetCore_2_Conteudo.pdf".
It is the same file, just in an shorter path.
Am I missing something or there really is a limit to the path length?
Thank's.
a href="~/pdf.js-gh-pages/web/viewer.html?file=%2FCertificadoDigital/EscolContabil/eCNPJA1ArquivoEletronico/20201210/Curso_AspnetCore_2_Conteudo.pdf" target="_blank">Open yourpdf.pdf with PDF.js"
a href="~/pdf.js-gh-pages/web/viewer.html?file=%2FCertificadoDigital/Curso_AspnetCore_2_Conteudo.pdf" target="_blank">Open yourpdf.pdf with PDF.js"

When opening an issue, please provide all of the information requested in https://github.com/mozilla/pdf.js/blob/master/.github/ISSUE_TEMPLATE.md
Furthermore, please see https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):

If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us in the Matrix room -- keep in mind that just code snippets won't help us troubleshoot the problem.


syncSvc.createOrMigrateDatabase errors

I am experimenting with cr-sqlite to build an application with it.
I followed the docs to scaffold an app (https://vlcn.io/docs/js/first-app).
Somehow I can't seem to get it to sync via the server.
After starting this error appears:
SqliteError: Could not update table infos
    at Database.prepare (/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/better-sqlite3@8.4.0/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
    at new DB (file:///mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/@vlcn.io+direct-connect-nodejs@0.4.0/node_modules/@vlcn.io/direct-connect-nodejs/dist/private/DB.js:37:43)
    at DBCache.getStr (file:///mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/@vlcn.io+direct-connect-nodejs@0.4.0/node_modules/@vlcn.io/direct-connect-nodejs/dist/private/DBCache.js:41:17)
    at DBCache.get (file:///mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/@vlcn.io+direct-connect-nodejs@0.4.0/node_modules/@vlcn.io/direct-connect-nodejs/dist/private/DBCache.js:34:21)
    at SyncService.createOrMigrateDatabase (file:///mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/@vlcn.io+direct-connect-nodejs@0.4.0/node_modules/@vlcn.io/direct-connect-nodejs/dist/SyncService.js:48:33)
    at file:///mnt/c/Users/alexa/capturing_vlcn/server.js:71:31
    at file:///mnt/c/Users/alexa/capturing_vlcn/server.js:131:13
    at Layer.handle [as handle_request] (/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/layer.js:95:5)
    at next (/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:144:13)
    at Route.dispatch (/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:114:3) {
  code: 'SQLITE_ERROR'
}
Sourcemap for "/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/@vlcn.io+rx-tbl<EMAIL_ADDRESS>points to missing source files
Sourcemap for "/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/@vlcn.io+rx-tbl<EMAIL_ADDRESS>points to missing source files
Sourcemap for "/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/@vlcn.io+xplat-api<EMAIL_ADDRESS>points to missing source files

at file:///mnt/c/Users/alexa/capturing_vlcn/server.js:71:31 points to the syncSvc.createOrMigrateDatabase(msg)  call inside server.js.
Trying to debug it, I altered the code inside server.js from:
app.post(
  '/sync/create-or-migrate',
  makeSafe(async (req, res) => {
    const msg = serializer.decode(req.body)
    const ret = await syncSvc.createOrMigrateDatabase(msg)
    res.json(serializer.encode(ret))
  })

to:
app.post(
  '/sync/create-or-migrate',
  makeSafe(async (req, res) => {
    const msg = serializer.decode(req.body)
    console.log('create-or-migrate, msg:', msg)
    let ret
    try {
      ret = await syncSvc.createOrMigrateDatabase(msg)
    } catch (error) {
      console.log('create-or-migrate, error from createOrMigrateDatabase:', ret)
    }
    console.log('create-or-migrate, ret:', ret)
    res.json(serializer.encode(ret))
  })

This changes the log to:
create-or-migrate, msg: {
  _tag: 7,
  dbid: Uint8Array(16) [
    209,  83, 109, 167, 255,
    236,  73,  82, 170,  59,
     85, 182,  18, 210, 250,
    135
  ],
  requestorDbid: Uint8Array(16) [
     40, 187,  31, 203, 253,
    198,  75, 170, 175, 180,
     90, 230,  11, 146,  38,
    131
  ],
  schemaName: 'main',
  schemaVersion: -5178240011179864021n
}
create-or-migrate, error from createOrMigrateDatabase: undefined
create-or-migrate, ret: undefined
TypeError: Cannot read properties of undefined (reading '_tag')
    at encode (file:///mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/@vlcn.io+direct-connect-common@0.4.0/node_modules/@vlcn.io/direct-connect-common/dist/msg/jsonEncode.js:9:17)
    at JsonSerializer.encode (file:///mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/@vlcn.io+direct-connect-common@0.4.0/node_modules/@vlcn.io/direct-connect-common/dist/msg/JsonSerializer.js:14:25)
    at file:///mnt/c/Users/alexa/capturing_vlcn/server.js:73:25
    at file:///mnt/c/Users/alexa/capturing_vlcn/server.js:131:13
    at Layer.handle [as handle_request] (/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/layer.js:95:5)
    at next (/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:144:13)
    at Route.dispatch (/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:114:3)
    at Layer.handle [as handle_request] (/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/layer.js:95:5)
    at /mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/index.js:284:15
    at Function.process_params (/mnt/c/Users/alexa/capturing_vlcn/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/index.js:346:12)

So it seems that await syncSvc.createOrMigrateDatabase(msg) returns undefined which then leads to res.json(serializer.encode(ret)) to fail.
I work on Windows 11. But installed and started the application inside ubuntu on Windows wsl because it would not work otherwise.
Please tell me if you need more info.

That is pretty strange. Windows does usually need some special care though.
I pushed some updates so it works on windows w/o WSL.
If you clone git clone https://github.com/vlcn-io/vite-starter.git my-project and checkout the dev branch it should work on windows but still with one windows specific bug I'm trying to figure out: the server isn't pushing update events to the client so clients have to refresh (or poll) to get the latest changes :(
PS C:\Users\tantaman\workspace> git clone https://github.com/vlcn-io/vite-starter.git my-project
Cloning into 'my-project'...
remote: Enumerating objects: 451, done.
remote: Counting objects: 100% (184/184), done.
remote: Compressing objects: 100% (86/86), done.
remote: Total 451 (delta 103), reused 150 (delta 87), pack-reused 267
Receiving objects: 100% (451/451), 1.04 MiB | 10.96 MiB/s, done.
Resolving deltas: 100% (259/259), done.
PS C:\Users\tantaman\workspace> cd my-project
PS C:\Users\tantaman\workspace\my-project> git checkout dev
Switched to a new branch 'dev'
branch 'dev' set up to track 'origin/dev'.
PS C:\Users\tantaman\workspace\my-project> pnpm install
Lockfile is up to date, resolution step is skipped
Packages: +568
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: C:\Users\tantaman\AppData\Local\pnpm\store\v3
  Virtual store is at:             node_modules/.pnpm
Progress: resolved 568, reused 568, downloaded 0, added 568, done

dependencies:
+ @vlcn.io/crsqlite-wasm 0.14.0-next.0
+ @vlcn.io/direct-connect-browser 0.4.0-next.1
+ @vlcn.io/direct-connect-common 0.5.0-next.1
+ @vlcn.io/direct-connect-nodejs 0.5.0-next.3
+ @vlcn.io/react 2.4.0-next.1
+ @vlcn.io/rx-tbl 0.13.0-next.0
+ @vlcn.io/xplat-api 0.13.0-next.0
+ cors 2.8.5
+ express 4.18.2
+ react 18.2.0
+ react-dom 18.2.0

devDependencies:
+ @types/react 18.0.28
+ @types/react-dom 18.0.11
+ @typescript-eslint/eslint-plugin 5.57.1
+ @typescript-eslint/parser 5.57.1
+ @vitejs/plugin-react 4.0.0
+ eslint 8.38.0
+ eslint-plugin-react-hooks 4.6.0
+ eslint-plugin-react-refresh 0.3.4
+ typescript 5.0.2
+ vite 4.3.2
+ vite-plugin-pwa 0.16.4

Done in 7.2s
PS C:\Users\tantaman\workspace\my-project> pnpm dev

><EMAIL_ADDRESS>dev C:\Users\tantaman\workspace\my-project
> node ./slurp.mjs && node ./server.js --dev

src\schemas\main.mjs
Pat: dbs/*
Server listening at http://localhost:8080
Start outbound stream

  VITE v4.3.2  ready in 1021 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h to show help
Close outbound stream
Sourcemap for "C:/Users/tantaman/workspace/my-project/node_modules/.pnpm/@vlcn.io+rx-tbl<EMAIL_ADDRESS>points to missing source files
Sourcemap for "C:/Users/tantaman/workspace/my-project/node_modules/.pnpm/@vlcn.io+rx-tbl<EMAIL_ADDRESS>points to missing source files
Sourcemap for "C:/Users/tantaman/workspace/my-project/node_modules/.pnpm/@vlcn.io+xplat-api<EMAIL_ADDRESS>points to missing source files
Start outbound stream
Start outbound stream

The root of your original problem is this error: SqliteError: Could not update table infos
Could you attach of a copy of your server database?

Ok, that last bug is fixed on windows now. Give it a spin from powershell and it should all work for you.
PS C:\Users\tantaman\workspace> pnpm create<EMAIL_ADDRESS>my-app2
.../Local/pnpm/store/v3/tmp/dlx-10992    |   +3 +
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: C:\Users\tantaman\AppData\Local\pnpm\store\v3
  Virtual store is at:             AppData/Local/pnpm/store/v3/tmp/dlx-10992/node_modules/.pnpm
.../Local/pnpm/store/v3/tmp/dlx-10992    | Progress: resolved 3, reused 3, downloaded 0, added 3, done
downloading https://github.com/vlcn-io/vite-starter/archive/c77d8df267741c96aa9b32c58f7d8846b0274e8f.tar.gz to C:\Users\tantaman\.degit\github\vlcn-io\vite-starter/c77d8df267741c96aa9b32c58f7d8846b0274e8f.tar.gz
extracting C:\Users\tantaman\.degit\github\vlcn-io\vite-starter/c77d8df267741c96aa9b32c58f7d8846b0274e8f.tar.gz to my-app2
cloned vlcn-io/vite-starter#HEAD to my-app2

� Your project has been successfully created! �

Next steps:
  - cd my-app2
  - npm install
  - npm run dev

PS C:\Users\tantaman\workspace> cd my-app2
PS C:\Users\tantaman\workspace\my-app2> pnpm install
Lockfile is up to date, resolution step is skipped
Packages: +568
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: C:\Users\tantaman\AppData\Local\pnpm\store\v3
  Virtual store is at:             node_modules/.pnpm
Progress: resolved 568, reused 568, downloaded 0, added 568, done

dependencies:
+ @vlcn.io/crsqlite-wasm 0.14.0-next.0
+ @vlcn.io/direct-connect-browser 0.4.0-next.1
+ @vlcn.io/direct-connect-common 0.5.0-next.1
+ @vlcn.io/direct-connect-nodejs 0.5.0-next.6
+ @vlcn.io/react 2.4.0-next.1
+ @vlcn.io/rx-tbl 0.13.0-next.0
+ @vlcn.io/xplat-api 0.13.0-next.0
+ cors 2.8.5
+ express 4.18.2
+ react 18.2.0
+ react-dom 18.2.0

devDependencies:
+ @types/react 18.0.28
+ @types/react-dom 18.0.11
+ @typescript-eslint/eslint-plugin 5.57.1
+ @typescript-eslint/parser 5.57.1
+ @vitejs/plugin-react 4.0.0
+ eslint 8.38.0
+ eslint-plugin-react-hooks 4.6.0
+ eslint-plugin-react-refresh 0.3.4
+ typescript 5.0.2
+ vite 4.3.2
+ vite-plugin-pwa 0.16.4

Done in 9.1s
PS C:\Users\tantaman\workspace\my-app2> pnpm run dev

><EMAIL_ADDRESS>dev C:\Users\tantaman\workspace\my-app2
> node ./slurp.mjs && node ./server.js --dev

src\schemas\main.mjs
Pat: dbs/*
Server listening at http://localhost:8080

  VITE v4.3.2  ready in 1072 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h to show help
Sourcemap for "C:/Users/tantaman/workspace/my-app2/node_modules/.pnpm/@vlcn.io+rx-tbl<EMAIL_ADDRESS>points to missing source files
Sourcemap for "C:/Users/tantaman/workspace/my-app2/node_modules/.pnpm/@vlcn.io+rx-tbl<EMAIL_ADDRESS>points to missing source files
Sourcemap for "C:/Users/tantaman/workspace/my-app2/node_modules/.pnpm/@vlcn.io+xplat-api<EMAIL_ADDRESS>points to missing source files
Start outbound stream
Start outbound stream
Close outbound stream

Opened that up on my windows box (http://localhost:5173/) and everything was syncing as expected. LMK how it goes for you.

@tantaman
Installing by using pnpm create<EMAIL_ADDRESS>my-app2 worked fine. Does not break any more on powershell.
And now the issue disappeared as well 🎆
Thank's a lot!
And by the way: This is a GREAT project, exactly what I need to create really nice offline capable apps. Such a treat to be able to use SQLite and sync using CRDT's.
If it works well for me it will revolutionize the way I build apps.

Thanks! There’s still a lot to do though. Like permission rules, letting a
server overrule changes, multi-tenant databases :) getting there though.
On Sun, Jul 9, 2023 at 3:25 PM Alexander Gabriel @.***>
wrote:

Closed #273 https://github.com/vlcn-io/cr-sqlite/issues/273 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/vlcn-io/cr-sqlite/issues/273#event-9767749559, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHWK27MTW7BAORLETPC4A3XPMASJANCNFSM6AAAAAA2DRN5BU
.
You are receiving this because you were mentioned.Message ID:
@.***>

Yeah, I can see quite a bit of work coming up for you.
Looking forward to the results!
Not sure I have completely understood how this (the existing parts) will all work for my use case but I will hammer at it for a while now.

I now managed to adapt my existing project to work with your changes and it works well on windows now too 😄


Add CI test for ruby 3.0.1

I forgot to add this in my version bump PR

Codecov Report

Merging #85 (0e571a1) into master (420f256) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #85   +/-   ##
=======================================
  Coverage   98.32%   98.32%
=======================================
  Files          20       20
  Lines         418      418
=======================================
  Hits          411      411
  Misses          7        7

Continue to review full report at Codecov.

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


added list of url for regions

PR summary

PR Checklist
Please make sure that your PR fulfills the following requirements:

[ ] The commit message follows the Angular Commit Message Guidelines.
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

Current vs new behavior

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

merging it to non-main branch for the checks to run with repo secrets


idr.vm: downloading files from Google Drive fails

We have added the Interactive Delphi Reconstructor (IDR) to VM-Packages in https://github.com/mandiant/VM-Packages/pull/428and as a default FLARE-VM tool in https://github.com/mandiant/flare-vm/pull/460
It seems the only place where we can download knowledge bases from is Google Drive

Knowledge bases for various Delphi versions can be found at:
https://drive.google.com/drive/folders/1IBsO1_O9xGHkPPV9Pnqkq2uoFmuak5C7?usp=sharing

But Google drive is not meant to be used in scripts and downloading the files from Google Drive doesn't seem to always work:
The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://drive.google.com/u/0/uc?id=16PREPxK6gJINAFC7TvS4k6qtXiZ71aEr&export=download'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (403) Forbidden."
File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
Error - hashes do not match. Actual value was '95800F4EAD2C1BCB71017DBCDFF0046D41F6E6E19CEBCB594E0010F7E7E5DE90'.

As a workaround we continue if downloading any knowledge base fails without raising an error, hoping to download some of them.
It would be ideal if the knowledge bases were added to https://github.com/crypto2011/IDR

The maintainer of IDR has added the files to the GitHub repository 🎉


i18n(es): Translated v2.mdx

What kind of changes does this PR include?

New or updated content
Translated content

Description

What does this PR change? Give us a brief description.
Following the translation roadmap I translated migration guidev2.mdx to spanish.

Gracias por el review @kevinzunigacuellar  😄


Xamarin.Mac problem with lib packages

So Xamarin.Mac has the same problem as iOS and Android, wherein the Mono implementation of msbuild apparently cannot cope with a nuget package that has a runtimes folder.
The error message says "Error while loading assemblies...runtimes/win-xxx/native/e_sqlite3.dll" when obviously the Windows version of that DLL should not be involved at all.
See the following links for more info:
Azure/azure-cosmos-dotnet-v2#399
https://xamarin.github.io/bugzilla-archives/57/57229/bug.html
This problem was the reason I moved iOS and Android libraries (e_sqlite3 and e_sqlcipher) out into separate packages, and it looks like I will have to do the same for Xamarin.Mac as well.  But that one's sadder, since .NET Core supports Mac and happily works just fine.
I really want to find a workaround for this.

Here is another issue with what appears to be the same problem:
xamarin/xamarin-macios#5265

See mono/mono#15569


[full-ci] chore: bump web to v8.0.0-rc.3

Bump web to v8.0.0-rc.3

@kulmann I have fixed the CI config for e2e tests. That should fix the e2e pipeline

@kulmann I have fixed the CI config for e2e tests. That should fix the e2e pipeline

Awesome, thank you! 😍


Improve debug mode perf of proc_macro wrapper

I dropped the following code (below; extracted from https://github.com/rylev/winrt-profile) into a dummy proc macro crate to measure the impact on winrt's code generation.
Basically it seems there are two things it's sensitive to:

Reducing the number of calls over the proc macro bridge (roughly: number of times anything in real proc_macro gets called) can significantly improve performance.
Reducing various overheads in the proc-macro2 wrapper layer can significantly improve performance.

This PR includes two commits, one of each type. There are certainly more of each left to do. So far in total this improves expansion time by 10%.

use proc_macro2::TokenStream;
use std::fs;
use std::time::Instant;
use winrt_gen::{NamespaceTypes, TypeLimit, TypeLimits, TypeReader, TypeStage, WinmdFile};

let mut paths = Vec::new();
for f in fs::read_dir("winmds").unwrap() {
    let path = f.unwrap().path();
    paths.push(WinmdFile::new(path));
}
let begin = Instant::now();
let reader = TypeReader::new(paths);
let mut limits = TypeLimits::new(&reader);
let types = NamespaceTypes {
    namespace: "windows.ui.xaml".into(),
    limit: TypeLimit::All,
};
limits.insert(types).unwrap();
let stage = TypeStage::from_limits(&reader, &limits);
let tree = stage.into_tree();
let out: TokenStream = tree.to_tokens().collect();
println!("ELAPSED: {:?}", begin.elapsed());

Ref https://github.com/dtolnay/quote/issues/160

@dtolnay thanks for this! I'm seeing similarish performance increases on my machine. One area where I think we're crossing proc_macro bridge is when parsing strings as TokenStreams. Most parses take less than ~30microseconds to complete but we do this a lot. Is this an area you think we can improve on?


Locking element in Sketch

I'm generating a component that has a line of text that I don't want to be editable in Sketch. If I were making the symbol manually, locking the layer will prevent it from being editable from the Overrides panel.
Is there a way to set that that through html-sketchapp? I haven't found a solution in the docs or other Issues.

Hey! Thanks for using html-sketchapp. You should be able to manipulate the JSON output from html-sketchapp directly to change the 'isLocked' flag on the object: https://github.com/brainly/html-sketchapp/blob/516008f879c62a588035854bb625838d72e3975c/e2e/expected/nodeToSketchLayers/text.html.asketch.json#L35 . You are also very welcome to add this feature to html-sketchapp, I'll be happy to merge it.

Added support of locked layers with data-sketch-locked attribute...
Please see line 4 of .../html2asketch/helpers/symbolAttributes/locked.js

Thanks @yakunins! Your approach is very similar to html-sketchapp-cli as you depend on additional hints in HTML (e.g. "data-sketch-locked"). Html-sketchapp doesn't do it - we try to convert HTML/CSS to Sketch without any hints. We should provide an API for setting "locked" state on layer/object though, and once it's implemented other projects can use it e.g. by translating "data-sketch-locked" html attributes to a .setLocked(true) calls.


Missing test cases for defaults.

I added some test cases for default values. That is, for cases when no explicit redcloth or hard_breaks values exist in the config.

This may not be an issue as I just noticed the defaults in lib/jekyll.rb. Adding the empty default test cases didn't work for me, but I know see this might not be an issue outside the test cases. I'll leave this here for your review, feel free to close if it's not applicable.

I'll pull this, because I think you are right about the test cases - but I'm thinking we might as well expand it to pick up anything in the redcloth section of the _config.yml - that way we don't have to rely on things being set in the DEFAULTS section.
So, instead of asking directly for hard_breaks, I want to iterate all the members set in the redcloth section, and build an array of symbols to pass to RedCloth's constructor. This has the added benefit that even if nothing is set the empty array just indicates the default values. But to do this we have to employ a little defensive programming - some malicious user (who?) might decide to delete the redcloth section from the config altogether (as is rightly pointed out by your code)!
Thanks for the inspiration :-)


Calculate best table

As a guest I would like the system to check (1 hour before my invite) all my invites and to reserve a table fitting the number of accepted users.
Details
Pseudo-algorithm for reservation:

Find table for given date and time where seats of guests >= Count of invited guests plus one.
1a. In case no results, decline request and show error message to user.
1b. In case of any result, make a reservation for table.
For each decline of a guest remove guest and search with reduced number for new table.
2a. In case table is found, reserve it and remove reservation from previous table.
2b. In case not, do not change reservations.

Thank you @AlexanderTrusheim , but in this repository there is no My Thai Star implementation. The implementation of My Thai Star was done when My Thai Star was born years ago. Also, It was removed and not supported since the .net core 2.1 version. Kind regards.


Dialog box to select logs does not point to where logs are set

the dialog box to select logs on the real-time logs page does not point to the spool directory where the logs are actually being written

It is due to the issue #22


Im eagerly hope you can merge the branch to master which have fixed the bug of scroll-with-cursor

the richEdittor is really usaful to my project. if the cursor could be fixed,it is really exited. and i am appreciate of your effort.and hope you could fix this bug.last time you said the branch  will be merged before this weekend ,and i am watting for you .thank you very much.

working on the final fix today hopefully

Thanks @jesiegel1 , looking forward to it! I am also looking forward to merging this branch in!
@KKKiller if you want to use the not-quite-done-yet branch, you could tell CocoaPods to use the in-progress branch if you wanted, by specifying the git repo:
pod 'RichEditorView', :git =><EMAIL_ADDRESS>
I'm not sure if that's 100% correct, but the idea is to point it to the git repo rather than using the official released version.
Closing this issue because there's already an open (hopefully soon-to-be-closed!) pull request.


Add flatpak-spawn exemption for Gradience

Also possibly necessary for https://github.com/GradienceTeam/Gradience/issues/805, needed for https://github.com/flathub/com.github.GradienceTeam.Gradience/pull/13

List of specific reasons for why Gradience needs this:

Needs to install gnome-shell themes, and set GTK CSS files
Needs to set global Flatpak permissions to allow :ro access to those GTK CSS files
Needs to install the adw-gtk3 Flatpak theme
Needs to configure dconf so the shell reads the gnome-shell theme
Needs to set dconf so the GTK3 theme can be set by Gradience (TODO feature)
Needs to read the host for all of the currently available themes


Incompatible API changes

whitelist->allowlist should have deprecated and left in whitelist.

On second thought, we can just display this as a breaking change for 2.0.


shades rows which have blocked label

fixes #75

@smouli  it's not working for PRs https://github.com/minio/minio-dotnet/pull/212 See this PR should be black.


1.12 - TBE after player placed down a flux point

Just looking at the crash report, my guess is some kind of feedback loop? Seems like they tried to connect the flux point directly to an Actually Additions laser relay.
https://gist.github.com/xAlicatt/bedf3b34118821e0c9bc2f39179d1c24

Closing: Hasn't cropped up since, probably Actually Additions related issue.


[Bug Report]: Can't be used with sentry-vite-plugin or unplugin-vite/sentry

I saw https://www.farmfe.org/docs/plugins/community-plugins/#unplugin said sentry-javascript-bundler-plugins is supported but couldn't use it without errors.
Steps to reproduce

Start a new farm project
Init Sentry in the Farm Config:

export default defineConfig({
  vitePlugins: [
    () => ({
      vitePlugin: sentryVitePlugin({
        org: <ORG_NAME>,
        project: <PROJECT_NAME>,
      }),
      filters: ['\\.tsx$', '\\.jsx$']
    })
  ],
//...
}

Log of Errors

System Info
System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 13th Gen Intel(R) Core(TM) i7-13620H
    Memory: 4.07 GB / 15.62 GB
  Binaries:
    Node: 22.2.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    bun: 1.1.17 - C:\Program Files\nodejs\bun.CMD
  Browsers:
    Edge: Chromium (126.0.2592.81)
    Internet Explorer: 11.0.22621.3527

Further https://www.farmfe.org/docs/plugins/community-plugins/#unplugin said unplugin-sentry is supported but I got this message:
[ Farm ] Failed to start the server:
 Error: Vite plugin 'unplugin-sentry' is not compatible with Farm for now. Because it uses viteConfig['env'] which is not supported by Farm.
Current supported keys are: root,base,publicDir,mode,define,command,resolve,plugins,server,isProduction,css,build,logger,cacheDir,envDir,assetsInclude,legacy,optimizeDeps,ssr,logLevel,experimental,test,clearScreen,customLogger

we'll make farm compatible with this vite plugins this week

@wre232114 any update on this? Still getting the issue on:
"@farmfe/cli": "1.0.3",
"@farmfe/core": "1.3.11",
"@farmfe/js-plugin-postcss": "1.8.0",
"@farmfe/plugin-react": "1.2.0",

When using @sentry/vite-plugin, try adding "sentry-release-injection-file" to filters or setting filters to [".+"]
If you get TypeError: Cannot read properties of undefined (reading 'targetMinSize'), set complation.partialBundling to {}
import { defineConfig } from '@farmfe/core';
import { sentryVitePlugin } from '@sentry/vite-plugin';

export default defineConfig({
    // ...
    compilation: {
        partialBundling: {},
    },
    vitePlugins: [
        () => ({
            vitePlugin: sentryVitePlugin({
                // ...
            }),
            filters: ['\\.tsx$', '\\.jsx$', 'sentry-release-injection-file'],
            // or
            filters: ['.+'],
        }),
    ],
});


Fix loggers and db initialization when using multiple Gunicorn workers

Description

disable default Gunicorn logger handlers to use our custom loggers
remove --preload flag which break our async Queue logger handlers
allow to prevent db init on Hyperion startup using an env variable
add a Gunicorn on_starting hook to init the db

Checklist

[ ] Created tests which fail without the change (if possible)
[ ] All tests passing
[x] Extended the documentation, if necessary

Don't we need to add gunicorn as a dev dependency ?
If we continue to use uvicorn as development server, I would say we don't need to add gunicorn as a dependency.


The master-sever has an infinite loop of workflow instances

Search before asking

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

Description
master-sever 出现工作流实例死循环，具体原因一直未能复现出来，只能总结了一套方法，可以不用重启，线上修复，主要用来减轻因为死循环造成的服务器和数据库的压力
https://mp.weixin.qq.com/s/h82pnx2fOpHH_JV78oTjgA
Documentation Links
https://mp.weixin.qq.com/s/h82pnx2fOpHH_JV78oTjgA
Are you willing to submit a PR?

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

Code of Conduct

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

https://mp.weixin.qq.com/s/h82pnx2fOpHH_JV78oTjgA，使用arthas解决


Use millisecond encoding for durations

The majority of our requests will be subsecond so milliseconds seems slightly more useful to use that for durations as opposed to seconds.

{..."query_duration":0.004379469...} becomes {..."query_duration":4.379469...}