Changes Norway translation into word used by 95% of its popullation

Changes Norway translation into word used by 95% of its popullation according to wiki
Bokmål is an official written standard for the Norwegian language, alongside Nynorsk. Bokmål is the preferred written standard of Norwegian for 85% to 90% of the population

Looking into ISO data, it looks like "Norge" is used in Bokmål (locale nb) and "Noreg" in Nynorsk (locale nn).
If Bokmål is preferred, then it's already using "Norge" as expected.
The proposed change is to change the Nynorsk translation to use the Bokmål version of the word, and that contradicts both https://www.iso.org/obp/ui/#iso:code:3166:NO and the Unicode CLDR data we use for the localised names.


Broken CryptoTransferExample

Issue
After running the updated crypto transfer example I'm getting the following error
(node:1854) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'maxTransactionFee' of undefined
    at new TransactionBuilder (/Users/cooperkunz/Desktop/hide/Hedera-JS-Examples/test1/node_modules/@hashgraph/sdk/lib/TransactionBuilder.js:19:78)
    at new CryptoTransferTransaction (/Users/cooperkunz/Desktop/hide/Hedera-JS-Examples/test1/node_modules/@hashgraph/sdk/lib/account/CryptoTransferTransaction.js:11:9)
    at main (/Users/cooperkunz/Desktop/hide/Hedera-JS-Examples/test1/new-example.js:23:14)
    at Object.<anonymous> (/Users/cooperkunz/Desktop/hide/Hedera-JS-Examples/test1/new-example.js:32:1)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
(node:1854) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1854) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Code to reproduce
require("dotenv").config();

const { Client, CryptoTransferTransaction } = require("@hashgraph/sdk");

async function main() {
  const operatorPrivateKey = process.env.OPERATOR_KEY;
  const operatorAccount = process.env.OPERATOR_ID;

  if (operatorPrivateKey == null || operatorAccount == null) {
    throw new Error(
      "environment variables OPERATOR_KEY and OPERATOR_ID must be present"
    );
  }

  const client = new Client({
    nodes: { "0.testnet.hedera.com:50211": "0.0.3" },
    operator: {
      account: operatorAccount,
      privateKey: operatorPrivateKey
    }
  });

  const tx = new CryptoTransferTransaction()
    .addSender(operatorAccount, 10)
    .addRecipient("0.0.3", 10)
    .setMemo("[sdk example] transfer to 0.0.3")
    .build(client);

  await tx.execute(client);
}

main();

Suggested solution
Add a default value for maxTransactionFee so that leaving undefined doesn't result in errors.
We should have a tighter release process to ensure that the examples always work.

master is not what is released.
You are correct in that the release process should be more automated so we can ensure tags are being created.
I pushed a tag for the last release: https://github.com/hashgraph/hedera-sdk-js/tree/v0.7.2


NCNN library for android

I am trying to run the model on Android. But the inference results are random. Its seems there could be library mismatch and model.
Does anyone know the library version ??
Any help would be appreciated :)

Did you try run on your local machine rather than on android platform?

Did you try run on your local machine rather than on android platform?


How can I dump collection blindly from Mongo to ES

How can I dump collection blindly from Mongo to ES, whereas in Mongo my collection has different fields

Hi @ychandu ,
I actually don't understand your question since mongolastic doesn't look at the fields one by one for each document retrieved from Mongo. What did you encounter while using the mongolastic?

I have a collection in mongo, where the documents are of different structure.  I am getting the following exception
MapperParsingException[failed to parse [value.status.date]]; nested: IllegalStateException[Can't get text on a START_OBJECT at 1:10035]
Here is my config file
misc":{
3   "dindex": {
4     "name": "abc"
5     },
6   "ctype":{
7     "name": "abcFormFieldData"
8     }
9   },
10   "mongo":{
11     "host": "localhost",
12     "port": 27017
13     },
14   "elastic":{
15     "host": "localhost",
16     "port": 9300
17     }
My requirement is to dump all the documents from the given mongo collection to Elasticsearch as JSON.

Could I have your dump data for testing?

i can give some sample docs

https://drive.google.com/file/d/1KJJbBovGqXsRcA5bs8X0GaFPoeSp-LfV/view?usp=sharing
just sharing a couple of documents, please check


Implementing Unitary

I have static and time dependent Hamiltonian and I want to implement X gate to my system. I want to find pulses to implement my unitary. Do you have an example for it? I checked the examples but I could not see an example for implementing a unitary.
Thanks,
Best regards

The perfect-entanglers example optimizes for a unitary gate. There's two things you'd have to change for a direct gate optimization:

The Objectives
You have to set up one objective per basis state, with the basis state as the initial_state and the result of applying your target gate to the basis state as the target_state. See the setup for a sqrt-iSWAP gate from the code for our Semi-AD paper for an "example".

The Functional
Instead of the perfect entanglers functional J_T_PE, you want to use the square-modulus functional J_T_sm (or maybe J_T_re, if you care about the global phase).

In your case, you have a single-qubit gate, so you set up two objectives, one with initial_state = |0⟩ and target_state = X̂ |0⟩ and the other with initial_state = |1⟩ and target_state = X̂ |1⟩.
I'll leave this issue open because we definitely should have an explicit example for a direct gate optimization in the documentation.


[Shapes] Add depth sorting: forward, backward, to back, to front.

🚀 Feature
Enable moving/sorting of shapes in the depth stack: moving shapes on top of other shapes, or behind them.
Motivation
When drawing overlapping shapes, the order drawn is reflected in the stacking, with newest shapes being on top of previously drawn ones. This is mostly fine if one knows in advance the ordering that one desires, but sometimes you want to change that and it's not possible. And shapes "remember" the order in which they were drawn, so when moving them you get seemingly unpredictable overlapping.
Pitch
I'd like a menu or contextual menu that lets me change the depth ordering of a selected shape, so I can move it up in the stack, down in the stack, or send it to the bottom or top of the stack.
See for example the Microsoft PPT implementation (which is overall very complex, but has those two types of options)

Apparently move to back and move to front already exist:
https://github.com/dalthviz/napari/blob/42f6d4f618919f8fa9f887c2a390d67724f2adfc/napari/layers/shapes/shapes.py#L2969-L2985
So only need to add move forward and move backward plus at some point expose some GUI controls.


Could you share the test model and Data?

I add backend support and i want to test it with the tests in test forder.  I build the test and get the test case, but I can find all the model and test data about the test cases.
So ,
Could you share the test model and data ? or Share the link about the model and data?
Thanks.

Hi @FrancisMurtagh-arm ，
Thanks for your feedback，i will test later soon.
Lincoln


Implement postprocess

Description
In this MR followings are aimed:

Introduce the second argument obtained by the command line to describe the result prefix
Introduce post process functions
Adapt mirco_evaluate to return necessary variables, contact force, coordinates, and so on
Adapt integration tests according to the second argument

Interested Parties / Possible Reviewers

@RShaw026 @isteinbrecher

@tsarikahin can you please describe with a few words what the proposed changes do?

@RShaw026 it should be fine now.

@tsarikahin Thanks Tarik. Since I need this interface for the Evaluate call in BACI, I will be making slight changes in this branch, and then we can go ahead with the merge request.


fix: Don't parse tags inside words & URLs

fixes #265
It is an easy solution but it should cover at least all cases I can think of :thinking:
Is there a nicer way for "early returns" in F#?

Some non-alphanumeric characters are allowed in URLs that could potentially appear before the # character (-, _, %, ., ;, = etc.). I personally don't know about any website that uses such URLs, but maybe someone knows a little more about it.
Here are some examples of made up valid URLs that my fix would not catch:

www.demo-#demo.com
www.demo_#demo.com
www.demo.com?#demo

Hi! So something like https://tableau.com/#/site/Sales/views/elastico/Elstico is expected not to be caught? Beyond theses cases (I have a few of those) things work much better now.

Yes you are correct this is currently not caught. And with #268 now which allows / inside tags all of #/site/Sales/views/elastico/Elstico would be considered a tag :sweat_smile: to completely filter out URLs would require more work in regards to the parser


ResourceSaver.save error in tool script: get_multiple_md5: Condition ' !f ' is true.

Godot version:
Godot Engine v3.1.2.stable.official
OS/device including version:
Mac OS 10.14.6
Issue description:
Usage of ResourceSaver.save(name, texture) produce sometime the following error :
ERROR: get_multiple_md5: Condition ' !f ' is true. Continuing..:    At: core/os/file_access.cpp:622.
Which crash Godot (freeze)
Steps to reproduce:
1 - Unzip test project
2 - Start from command line
3 - Freeze of Godot, error in the terminal
Look into addons/codeandweb.texturepacker/texturepacker_import_spritesheet.gd line 115, it's where the method call is.
You can also see the that file here : file on github
Minimal reproduction project:
importBug.zip
To be noted that I've already spent 3 hours with the plugin author to try to debug the issue, but our conclusion is that it's a bug inside Godot and we are a bit clueless on how to move forward to fix that :D
It doesn't seems to be an issue with the plugin itself, but if so please let met know where.
Thanks !

Do try with latest master if can. Also, try to find the last version the addon worked fine with.

I just compiled the last master on the same platform and tested with it, same issue and same error in the console :
ERROR: get_multiple_md5: Condition ' !f ' is true. Continuing..:    At: core/os/file_access.cpp:667.
I'll now test previous versions of the addon as requested and report back.

So the error of the get_multiple_md5 is not related to that issue, it was related to an other issue inside the addon with a miss use of r_gen_files.
The freeze seems to be related to the fact that when there is too many files created during the import (many .tres created), there is a problem. If the number of files is reduce, the same import doesn't freeze.
I've tried to increase MAX_SERVER here from 64 to 640 but the issue is still there. Is that the correct constant to increase ?
Should I look elsewhere ?
Here is the new debug project that produce the freeze without the other error
importBug.zip
Now the thing is that there is no error when it's freezing, so I'm not sure where I can look to debug ?
I've also looked into previous versions of the addon, but they seems not compatible with that version of Godot.

The freeze happen after the addon return from the import method, so outside of the addon itself, and only if it import too many resources.
I've tried to use the debug (-d) option to get more info, but nada.
I'm not sure on I can dig more into that issue without debug feedback ?

I did some more testing with other Godot versions
3.0 -> WORK
3.0.6 -> WORK
3.1.stable -> FREEZE
3.1.2 -> FREEZE
3.2 -> FREEZE
Same addon folder, same assets folder to import in all cases.
Here is the project with all files that work in 3.0.x
importBug-3.0.x-WORK.zip
Here is the project with all files that DO NOT work in > 3.0
importBug-3.1-3.2-FAIL.zip

So the error of the get_multiple_md5 is not related to that issue, it was related to an other issue inside the addon with a miss use of r_gen_files.

Great job on this one.

I'm having a similar issue with crashes using ResourceSaver.save
I'm running the following code to generate a large test texture and then save it:
func bad_texture_save():
	var image = Image.new()
	image.create(4096, 9192, false, Image.FORMAT_RGBA8)
	image.lock()
	image.fill(Color.transparent)
	image.unlock()
	var new_texture = ImageTexture.new()
	new_texture.create_from_image(image)
	ResourceSaver.save("res://resources/image/test.tres", new_texture)

The error the debugger gives me is as follows:

scene/resources/resource_format_text.cpp:804 - res://resources/image/test.tres:1 - Parse Error:
Failed loading resource: res://resources/image/test.tres. Make sure resources have been imported by opening the project in the editor at least once.

@seocwen You're trying to save an image with 37M pixels as a text file. It's probably HUGE and difficult to parse back. You should save it as .res so that it's in binary format, not text.

I encountered this problem on 4.1 and 4.2beta6.
It happens in two importers that work on a large number of small files, one importer produces ImageTexture and another ArrayMesh. The import process (and the UI) freezes completely, with no error in stdout/stderr.
I don't know if this information can help in finding this bug, but it always freezes during or after the 8th file's processing in my case.
So killing/rerunning Godot in loop will succeed in importing all of the files, 8 at a time.
Importing one file in isolation always succeeds, and is fast, with no unusual memory consumption.

Even setting a minimal project with the texture importer and only 10 files, it freezes during import.
In this minimal project, it does not always happen, but randomly under certain conditions:

.godot/imported is empty
*.TXTR.import files do not exist yet
The importer plugin is enabled in Project Settings for the first time (interestingly it happens less if it's already enabled in project.godot)

The UI freezes fully like this:

Here is the minimal project:
bug.tar.gz
The output before freeze (from print statements in the plugin):
Godot Engine v4.2.beta6.official.64150060f - https://godotengine.org
Vulkan API 1.3.257 - Forward+ - Using Vulkan Device #0: AMD - AMD Radeon Vega 8 Graphics

WARNING: Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported.
     at: _editor_init (modules/gltf/register_types.cpp:63)
res://data/M000.TXTR -> res://.godot/imported/M000.TXTR-4bb0fc982e0e8da4bb882b98bceb0aad.res
res://data/M001.TXTR -> res://.godot/imported/M001.TXTR-fe74a5ef0315d8fdb6f9bdc09f3f6428.res
res://data/M003.TXTR -> res://.godot/imported/M003.TXTR-967cf8977babfd44b3b1c3d40e57708c.res
res://data/M005.TXTR -> res://.godot/imported/M005.TXTR-06dad9b17abe199d2512f9c3387587af.res
res://data/M002.TXTR -> res://.godot/imported/M002.TXTR-83aa75747fe3ba7170d1863f4b39e98f.res
res://data/M004.TXTR -> res://.godot/imported/M004.TXTR-b19fd80f2afb1ffc7b8f131016cd8ab9.res
res://data/M006.TXTR -> res://.godot/imported/M006.TXTR-d45d4916580d73bdbed1c55d81a92f01.res
res://data/M007.TXTR -> res://.godot/imported/M007.TXTR-81e6b1cfd963935c1849355e686ea70f.res
res://data/M009.TXTR -> res://.godot/imported/M009.TXTR-f290dc67f49ba13700c462d305645eb5.res
res://data/M008.TXTR -> res://.godot/imported/M008.TXTR-6b69818b71410aede94f9d288f0be74f.res

The state of import files after freezing:
~/w/g/bug > find . -name '*.import' | sort
./data/M000.TXTR.import
./data/M001.TXTR.import
./data/M002.TXTR.import
./data/M003.TXTR.import
./data/M004.TXTR.import
./data/M005.TXTR.import
./data/M006.TXTR.import
./data/M007.TXTR.import
./data/M009.TXTR.import
./icon.svg.import

The state of .godot/imported after freezing:
~/w/g/bug > ll .godot/imported

   3288 16 nov.  09:20 icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex
     91 16 nov.  09:20 icon.svg-218a8f2b3041327d8a5756f3a245f83b.md5
     91 16 nov.  09:20 M000.TXTR-4bb0fc982e0e8da4bb882b98bceb0aad.md5
  49617 16 nov.  09:20 M000.TXTR-4bb0fc982e0e8da4bb882b98bceb0aad.res
     91 16 nov.  09:20 M001.TXTR-fe74a5ef0315d8fdb6f9bdc09f3f6428.md5
  49617 16 nov.  09:20 M001.TXTR-fe74a5ef0315d8fdb6f9bdc09f3f6428.res
     91 16 nov.  09:20 M002.TXTR-83aa75747fe3ba7170d1863f4b39e98f.md5
  49617 16 nov.  09:20 M002.TXTR-83aa75747fe3ba7170d1863f4b39e98f.res
     91 16 nov.  09:20 M003.TXTR-967cf8977babfd44b3b1c3d40e57708c.md5
  49617 16 nov.  09:20 M003.TXTR-967cf8977babfd44b3b1c3d40e57708c.res
     91 16 nov.  09:20 M004.TXTR-b19fd80f2afb1ffc7b8f131016cd8ab9.md5
  12753 16 nov.  09:20 M004.TXTR-b19fd80f2afb1ffc7b8f131016cd8ab9.res
     91 16 nov.  09:20 M005.TXTR-06dad9b17abe199d2512f9c3387587af.md5
 262610 16 nov.  09:20 M005.TXTR-06dad9b17abe199d2512f9c3387587af.res
     91 16 nov.  09:20 M006.TXTR-d45d4916580d73bdbed1c55d81a92f01.md5
 197073 16 nov.  09:20 M006.TXTR-d45d4916580d73bdbed1c55d81a92f01.res
     91 16 nov.  09:20 M007.TXTR-81e6b1cfd963935c1849355e686ea70f.md5
 197073 16 nov.  09:20 M007.TXTR-81e6b1cfd963935c1849355e686ea70f.res
      0 16 nov.  09:20 M008.TXTR-6b69818b71410aede94f9d288f0be74f.res-oHioUv
     91 16 nov.  09:20 M009.TXTR-f290dc67f49ba13700c462d305645eb5.md5
  12753 16 nov.  09:20 M009.TXTR-f290dc67f49ba13700c462d305645eb5.res

Disabling import threads (import/use_multiple_threads=false) seems to solve this problem.
So this looks like a race condition or deadlock somewhere.
Still investigating.

@thunderk Please open a new issue, it's unlikely to be the same as an issue opened in 2020 for Godot 3.
I can reproduce your issue but it doesn't look like the one reported against 3.x.

I can still reproduce the OP's issue in 3.5.3-stable.
It doesn't crash for me, but it fails importing a file, and the file import is re-attempted every time the editor gets focused. On some platforms, this may lead to a loop for endless fail/reimport that may eventually crash.


[ML Text Recognition] Swift-version works much slower compared Objective C

Hello!
MLVisionExample Swift on-device text recognition works much slower MLVisionExampleObjc Objective C.
MLVisionExample Swift: https://www.dropbox.com/s/smxd1mf4oojarxy/swift.mp4?dl=0
MLVisionExampleObjc Objective C: https://www.dropbox.com/s/0wrjk306h0wo7uj/objectivec.mp4?dl=0
iPhone XS Max.
Why?

One video is the live cam, the other video is photo detection.


⚠ gorzdrav.org has degraded performance

In d29fa27, gorzdrav.org (https://gorzdrav.org) experienced degraded performance:

HTTP code: 200
Response time: 4315 ms

Resolved: gorzdrav.org performance has improved in 804c2be.


Bellman Ford in C, Python, Java

I want contribute code for Bellman Ford in C, Python, Java under SSOC'23.

refer #1350


Is it possible not to add HostInfo in function response->redirect()?

when use nginx for proxy, is nginx listen port is not 80 or 443 and nginx set Host is like this : proxy_set_header Host $host;
so in backend server apache is can not get the right server_port, so redirect is wrong,
in this problem is know my nginx set is Incorrect, but i can not change it , so i test it ,remove HostInfo， response->redirect() is ok ,
i want to know if function response->redirect can not auto add hostinfo to url?

Q
A

Yii version
2.0.?

PHP version

Operating system

It can but we won't make the change in the framework since it's a special case. Extend response component and customize as needed.


Upload short

Hello, I saw someone ask the same question but he closed his issue.
How to upload shorts ? Is it even possible ? Can you provide an example in the doc ?
Thank you for that awesome tool !

Found my answer literally 7 minutes later.
Youtube will categorize any video matching this requirement as a short :

Under 60sec of duration.
With a square or vertical [aspect ratio]
(source: youtube's doc)


Add Discard Time Notification

Changes:

Renames $timer/$idle to $nanny
Adds suport for stop date and cb in #stopTimeEntry
Add Discard Time Notification

Shows a notification to the user when she's been idle for at least 5min while
she was tracking some activity using Toggl.
The notification reads something like:
You've been idle for 14m 53s while tracking "working on the landing page".
And two options are given to the user:

Discard idle time
Discard idle time and stop tracking

This notification/feature can be disabled via the new checkbox in the
eettings page, that reads like:

[ ] Discard idle time notification

Probably some changes are needed for:

[ ] Ensuring that old settings are still taken into account (now that the local storage key for the nanny feature has been changed)
[ ] Maybe update the analytics event for the nanny feature could be updated.

Let me know your thoughts. :)

All is looking good and in master. Changed some names to be similar to idle detection logic used in desktop app.


Godot crashes saving or opening plugin script.

Operating system or device: Xubuntu 14.04 64bit
Issue description (what happened, and what was expected): I'm modifying custom_dock plugin and when I have to save the script godot crashes if plugin was activated (even if is deactivated while saving). I have to close the editor, reopen it and then save.
Edit:
It crashes even if I activate a plugin, deactivate and then open in editor its script.
Tested in a empty project with only "addons/plugin/custom_dock" in it
ERROR: get_viewport_rect: Condition ' !is_inside_tree() ' is true. returned: Rect2()
   At: scene/2d/canvas_item.cpp:862.
ERROR: show_modal: Condition ' !is_inside_tree() ' is true.
   At: scene/gui/control.cpp:1634.
ERROR: get_viewport_rect: Condition ' !is_inside_tree() ' is true. returned: Rect2()
   At: scene/2d/canvas_item.cpp:862.
ERROR: grab_focus: Condition ' !is_inside_tree() ' is true.
   At: scene/gui/control.cpp:1606.
ERROR: load_source_code: Condition ' err ' is true. returned: err
   At: modules/gdscript/gd_script.cpp:2100.
ERROR: load: Condition ' err!=OK ' is true. returned: RES()
   At: modules/gdscript/gd_script.cpp:2813.
ERROR: load: Failed loading resource: res://addons/custom_dock/dock_plugin.gd
   At: core/io/resource_loader.cpp:218.
ERROR: select: Index p_idx out of size (items.size()).
   At: scene/gui/item_list.cpp:177.
ERROR: get_item_metadata: Index p_idx out of size (items.size()).
   At: scene/gui/item_list.cpp:171.
ERROR: select: Index p_idx out of size (items.size()).
   At: scene/gui/item_list.cpp:177.
ERROR: get_item_metadata: Index p_idx out of size (items.size()).
   At: scene/gui/item_list.cpp:171.
ERROR: set_persisting: Condition ' !props.has(p_name) ' is true.
   At: core/globals.cpp:98.
ERROR: set_persisting: Condition ' !props.has(p_name) ' is true.
   At: core/globals.cpp:98.

I think this is already fixed.


fix(UI): C# icon on keyboard focus

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

The text in the C# icon in the curriculum map disappears when the Foundational C# link gets keyboard focus. This is happening because the C# icon is apparently unique in that it is using two separate path elements (one for the hexagon and one for the C# text) while all of the other icons in the map only use one path element. Thus, our CSS is set up to assume there will only be one path element, and so the focus state is not working properly for the C# icon (it is setting both path elements to the same fill color which is making the C# text disappear).
An immediate fix for this is to create a :focus-visible selector specifically for the C# icon, which I have done here. Another option would be to assume that any svg icon that has two path elements will always have the second path element set to var(--secondary-background) for the fill color, and then we could create a generic css rule to handle the focus state on these "two path" svg's. This seems like a reasonable assumption, but I suppose it is possible that we could add an svg with two path elements and both of them do need to be filled with var(--primary-color).

Would it maybe be better to combine the paths?

@naomi-lgbt Ya, I guess you're on to something there. I'm not much of a graphics guy, so that wasn't my first idea. I was able to find an svg converter that created it using only one path element.


Multiple GP outputs with deep learned kernel

Hello,
I am interested in modelling multiple timeseries that are correlated by some underlying GPs, with a deep learned kernel (vs. a rigid standard kernel that you choose apriori). An example of such timeseries is attached in the figure (y-axis = data values, x-axis = time), and maybe their inherent relationship to each other is, e.g. (d=data, t=time, X=GP, a,b,c=coefficients):
d_1(t) = a_1 + b_1 X_1(t) + c_1 X_2(t)
d_2(t) = a_2 + b_2 X_1(t) + c_2 X_2(t)
d_3(t) = a_3 + b_3 X_1(t) + c_3 X_2(t)
From this post - https://github.com/GPflow/GPflow/issues/312 - and this - https://github.com/GPflow/GPflow/issues/505 - it seems like this should be possible, but I can't quite wrap my head around how to put this together. Is there maybe a toy/skeleton example somewhere I could get my hands on and play around with, or maybe a point in the right direction?
Many thanks in advance, and apologies if this was not the correct place to post this question.
Ari

OK, so after more digging it seems like the first step is to use a coregion kernel:
#set up coregionalized kernel
ndim = 3
coreg = gpflow.kernels.Coregion(1, output_dim=ndim, rank=1, active_dims=[1])
lik = gpflow.likelihoods.SwitchedLikelihood([gpflow.likelihoods.StudentT()]*ndim)
k1 = gpflow.kernels.Exponential(1)
kern = k1 * coreg

#set up model
m = gpflow.svgp.SVGP(X_augmented, Y_augmented,
                     kern=kern, likelihood=lik, num_latent=1,
                     Z=X_augmented[::3].copy())

But I think(?) this creates a coregion kernel corresponding to:
d_1(t) = a_1 X_1(t)
d_2(t) = a_2 X_1(t)
d_3(t) = a_3 X_1(t)
Is there a way to modify kern to accomplish:
d_1(t) = a_1 + b_1 X_1(t) + c_1 X_2(t)
d_2(t) = a_2 + b_2 X_1(t) + c_2 X_2(t)
d_3(t) = a_3 + b_3 X_1(t) + c_3 X_2(t)
Maybe something like:
coreg = gpflow.kernels.Coregion(1, output_dim=ndim, rank=1, active_dims=[1])
k1 = gpflow.kernels.Exponential(1)
k2 = gpflow.kernels.RBF(1)
kern = k1 * coreg + k2*coreg (+ a constant somehow)

Hi @silburt ,
what you're describing is just a change to the rank of the coregion kernel.  Simply set the rank to two, and that will get what you need apart from the constant.
To get the constant term in there too, I suggest you add anouther kernel. So:
k = gpflow.kernels.RBF(1) * gpflow.kernels.coregion(1, output_dim=3, rank=2, active_dims=[1]) + \
    gpflow.kernels.Constant(1) * gpflow.kernels.coregion(1, output_dim=3, rank=1, active_dims=[1])

You could also go crazy and add some more (coregionalized) kernels in there: this is the Linear model of Coregionalization (see Alvarez's review).
Please heed the warning in the Coregionalization notebook about initializing the kernel sensibly :)

@jameshensman
Thanks for your response. Yes, I've read the Alvarez review in some detail and with great interest. However, to my understanding, increasing the rank yields new latent functions which all share the same covariance kernel. Thus, for the following scenario:
d_1(t) = a_1 + b_1 X_1(t) + c_1 X_2(t)
d_2(t) = a_2 + b_2 X_1(t) + c_2 X_2(t)
d_3(t) = a_3 + b_3 X_1(t) + c_3 X_2(t)
If I wanted X_1(t) to use the RBF kernel, and X_2(t) to use the Matern32 kernel, I don't think that increasing the rank will get me there, right? But, it looks as though you added multiple coregion matrices together to include the constant in your example above, so maybe:
k = gpflow.kernels.RBF(1) * gpflow.kernels.coregion(1, output_dim=3, rank=1, active_dims=[1]) +\
      gpflow.kernels.Matern32(1) * gpflow.kernels.coregion(1, output_dim=3, rank=1, active_dims=[1]) +\
gpflow.kernels.Constant(1) * gpflow.kernels.coregion(1, output_dim=3, rank=1, active_dims=[1])

achieves the scenario I desire? This code seems to compile and run, and the output seems to suggest that this does what I want.
And yes, thanks, I've been initializing the coregional matrix with random weights :).
Thanks,
Ari

@jameshensman - from https://github.com/GPflow/GPflow/issues/563#issuecomment-347375241 - you seem to confirm what I wrote above, so I think I'm good to go 🥇 . Thanks a lot for all your help.


Move specs out to separate package

This way it could use go-rel/migrator and not use deprecated one in this package

I don't have any concern for this 👍


Validation error message localization

Hi,
Question : Error messages coming like  - The name.ar field is required.
I want to display Like The name field is required.
How to do that?
I have tried by adding in editor and validation.php file

Hi Guys
Any update

I subscribe, the same problem!

Hi!
You would have to specify the attribute names in validation.php. See docs here: https://laravel.com/docs/8.x/validation#specifying-attribute-in-language-files
Like this:
'attributes' => [
  'name.ar' => 'Name',
],

I remember experimenting with this to get the validation error messages to work better, but for some reason, I didn't manage to make it work. There might be a better way though, it would be really helpful is someone investigated further into this. :)


reflect: SetMapIndex does not permit adding nil values of interface type

What version of Go are you using (go version)?
I'm executing this on the Go playground (currently at 1.13.1). Sample provided.
What did you do?
I tried to add an entry to a map of type map[string]interface{} using reflection. The behavior differs depending on if the actual value is an interface or a concrete value. There seem to be no way to actually add a nil value based on an interface type alone.  Example can be executed here: https://play.golang.org/p/yfQo-wyP0B9
package main

import (
	"fmt"
	"reflect"
	"regexp"
)

func addAsHello(y interface{}) {
	m := map[string]interface{}{}

	// Add an entry for `hello` with the value nil value using reflection
	mr := reflect.ValueOf(m)
	mr.SetMapIndex(reflect.ValueOf(`hello`), reflect.ValueOf(y))
	fmt.Println(m)

	// Do the same without reflection
	m[`hello`] = y
	fmt.Println(m)
	fmt.Println()
}

func main() {
	addAsHello(nil)
	addAsHello(fmt.Stringer(nil))
	addAsHello((*regexp.Regexp)(nil))
}

What did you expect to see?
map[hello:<nil>]
map[hello:<nil>]

map[hello:<nil>]
map[hello:<nil>]

map[hello:<nil>]
map[hello:<nil>]

What did you see instead?
map[]
map[hello:<nil>]

map[]
map[hello:<nil>]

map[hello:<nil>]
map[hello:<nil>]

The docs says, if the second argument of a SetMapIndex call is a zero reflect.Value, then the call is equivalent to map deletion operation.

If you do want to add a nil element entry, you can do it like:
func addAsHello(y interface{}) {
	m := map[string]interface{}{}

	// Add an entry for `hello` with the value nil value using reflection
	mr := reflect.ValueOf(m)
	var element reflect.Value
	if y == nil {
		element = reflect.ValueOf(&y).Elem()
	} else {
		element = reflect.ValueOf(y)
	}
	mr.SetMapIndex(reflect.ValueOf(`hello`), element)
	fmt.Println(m)

	// Do the same without reflection
	m[`hello`] = y
	fmt.Println(m)
	fmt.Println()
}

I've read the docs. I'm passing a nil value in all three calls and the behavior is inconsistent. Different nil's yield different results. Also, passing a zero value doesn't consistently delete. The zero value of a string is the empty string. But if I pass that to my sample function, it is added, not deleted.
Perhaps the documentation needs some clarification?

The docs of SetMapIndex don't mention nil. They mention the zero Value, which is a very specific thing. Read the docs of the Value type to see what that means.
See also what ValueOf says about nil and the zero Value.
I'm happy to entertain doc clarifications if you have suggestions. But any changes need to be consistent with how reflect is currently documented.

Ok. I understand what I interpreted wrong in the docs. From the docs on reflect.Zero(typ Type) Value:
Zero returns a Value representing the zero value for the specified type. The result is different from the zero value of the Value struct, which represents no value at all.

I immediately understood this. The zero value of the Value struct will of course have a nil typ field whereas the zero value of any given type has a non-nil typ field. The documentation here is very clear and concise. The reflect.SetMapIndex(key, elem Value) docs however, is less so:
If elem is the zero Value, SetMapIndex deletes the key from the map

Admittedly, there's a capital V in Value here which should have pointed me in the right direction, but it would be far clearer if it actually stated the zero value of the Value struct here too. Especially since the concept of "zero value" is used throughout the documentation.

The reflect docs should use zero Value vs. zero value consistently (see Value.TryRecv for an example). Please point out errors if you see something wrong.
If we're going to fix any wording, we would want to fix it everywhere in the docs.
Instead of and/or in addition to "x is the zero Value" we could say "!x.IsValid()" or something (see the doc for Value.Kind). But it's not clear to me that it is worth the additional wordiness.


RDS server running in Kubernetes fails to start

Describe the bug
When running cloudprober RDS inside Kubernetes, it may fail to start due with the following error:
Error initializing cloudprober. Err: error while creating listener for default gRPC server: listen tcp :9314: bind: address already in use

Cloudprober Version
v0.10.7
To Reproduce
Install Cloudprober with the following manifest
apiVersion: v1
data:
  cloudprober.cfg: |-
    grpc_port: 9314
    rds_server {
      provider {
        kubernetes_config {
          namespace: "metrics"
          services {}
          clusters {}
        }
      }
    }
kind: ConfigMap
metadata:
  name: cloudprober-config
  namespace: metrics
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cloudprober
  namespace: metrics
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cloudprober
  template:
    metadata:
      labels:
        app: cloudprober
    spec:
      volumes:
      - name: cloudprober-config
        configMap:
          name: cloudprober-config
      containers:
      - name: cloudprober
        image: cloudprober/cloudprober
        command: ["/cloudprober"]
        args: [
          "--config_file","/cfg/cloudprober.cfg",
          "--logtostderr"
        ]
        volumeMounts:
        - name: cloudprober-config
          mountPath: /cfg
        ports:
        - name: http
          containerPort: 9313
        - name: grpc
          containerPort: 9314
---
apiVersion: v1
kind: Service
metadata:
  name: cloudprober
  namespace: metrics
  labels:
    app: cloudprober
spec:
  ports:
  - port: 9314
    protocol: TCP
    targetPort: grpc
  selector:
    app: cloudprober
  type: ClusterIP

Additional context
The problem seems to be cause by the name of the service. It seems like cloudprober will try to automatically bind the HTTP server to the address found in the CLOUDPROBER_PORT
https://github.com/google/cloudprober/blob/master/cloudprober.go#L108
When running in RDS mode, I'm not really interested in the HTTP port and want to expose GRPC. However, if I name a service as cloudprober this will inject the following env variable into the pod CLOUDPROBER_PORT=tcp://<IP_ADDRESS>:9314 which will get used by the HTTP server. So by the time the code gets to the GRPC part, the port is already in use and the binary crashes with the above error.
The workaround is simple -- rename the service to something like cloudprober-grpc so that it doesn't get mistaken for the HTTP server. However it seems like it may be solved by refactoring the code, e.g. making sure that if grpc_port is defined, then it shouldn't try to bind anything else to it.

Ah, of course. I think we should have just not used CLOUDPROBER_PORT environment variable if it was in the Kubernetes <SERVICE>_PORT format: tcp://..:<port>:
https://github.com/google/cloudprober/blob/f5fe722dc95ad283e41291949c0958b22f8bc9a4/cloudprober.go#L87
This was done to fix the issue https://github.com/google/cloudprober/issues/252, but just ignoring CLOUDPROBER_PORT if not an integer would have been good enough as well.
Thanks @networkop for spotting and debugging this.

This should now be fixed in HEAD (after #477).
I am going to include it in v0.11.0 (due tomorrow).
Thank you once again @networkop for reporting this, and with excellent details.


Feat/store

📚 TLDR

✅ Added support for keeping the note into the extension until we remove or press the download button.
✅ Resolves #12
⁉ Currently the download button does not do anything, just removes the saved note from the chrome extension (storage)

📑Note
Chrome storage is limited to 5 mb, we can pass this check by adding  the unilimitedStorage permission into manifest
📝 TODO

[ ] We have to add the debounce function because right now it is implemented that every time we change the state we add to storage. Adding into storage should be converter into raw.  convertToRaw function is an expensive function. But for now is satisfactory.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

Chrome Web Store
GitHub release

Your semantic-release bot :package::rocket:


Update usage guidelines in README.md.

Looking for feedbacks on if the instructions are sufficient/clear for you as a user attempting to create new credentials or contexts, or update existing ones. We want to improve the user experience and ensure that the instructions are easy to follow and helpful. So, any feedback on the clarity and effectiveness of the guidelines are welcome.

Does this need to provide guidelines on writing credentials and contexts themselves?  I assume people will copy and modify current examples.  I'm specifically wondering about what to tell people about vocabs to use and where to put custom vocab docs if needed.

Does this need to provide guidelines on writing credentials and contexts themselves? I assume people will copy and modify current examples.

Not sure i understand this and why copying and modifying current examples could be a problem.

I'm specifically wondering about what to tell people about vocabs to use and where to put custom vocab docs if needed.

I believe we can ask users to create a vocab directory within the ./contexts/foo dir and include their vocab index.html in there if needed?

Does this need to provide guidelines on writing credentials and contexts themselves? I assume people will copy and modify current examples.

Not sure i understand this and why copying and modifying current examples could be a problem.

It's fine, as long as our examples are perfect best practice examples.  They are, right? :-)
I was just thinking ahead for more complex use cases, but maybe that's not an issue for this system at the moment.

I'm specifically wondering about what to tell people about vocabs to use and where to put custom vocab docs if needed.

I believe we can ask users to create a vocab directory within the ./contexts/foo dir and include their vocab index.html in there if needed?

That can work if the server is setup to serve HTML and default to index.html.  I'm not sure if it is?  It's kind of odd to serve other docs from a "contexts" server.  The examples are naming properties with the host name prefix.  In theory, those names should be designed for long term use.  Odd host names are no big deal for one-off examples, but I'd not call that a best practice.

@davidlehn

It's fine, as long as our examples are perfect best practice examples. They are, right? :-) I was just thinking ahead for more complex use cases, but maybe that's not an issue for this system at the moment.

They are 💯 ;)
We can point them to VC data model document, hopefully that'll suffice.

That can work if the server is setup to serve HTML and default to index.html. I'm not sure if it is?

The server is configured to serve the contents of the 'contexts' directory, which means that anything within that directory will be accessible through the server. I have locally tested this. The HTML files does get rendered successfully.


Log Compression

prototype to compress all logs coming into OpenSearch.

Reviewed a few papers. In 2021 people already applied Template Miner to compress log messages. we can probably do the similar. From that paper they recommend LenMa as the best compression performance, we can give it a try.

https://github.com/logpai/logparser/blob/master/logparser/LenMa/templateminer/lenma_template.py

not a good idea, discard it for now.


Robust graceful termination for moonwatcher on Windows

ctrlc::set_handler() is sometimes not called
MoonwatcherWriter.drop() is sometimes not called as well
this leads to loss of data at logout/shutdown

ctrlc crate internally users SetConsoleCtrlHandler, but this is only for console apps; we opt out of being a console app via #![windows_subsystem = "windows"]. Instead, we should probably handle WM_QUERYENDSESSION etc. Source: https://learn.microsoft.com/en-us/windows/win32/shutdown/wm-queryendsession
To receive these messages, we need window, can be message only: https://learn.microsoft.com/cs-cz/windows/win32/winmsg/window-features?redirectedfrom=MSDN#message-only-windows
Ideas how to handle the relevant WindowProc callback in Rust: https://users.rust-lang.org/t/idiomatic-way-to-pass-a-callback-wndproc-to-the-win32-api/87184/7


Mobile View : Columns in list are not fully visible

Is your feature request related to a problem? Please describe.
In Mobile View, when you go to https://osv.dev/list only 2 fields are visible which is not appropriate for users who view in mobile.

Describe the solution you'd like
As a solution, I am thinking of making the columns scrollable horizontally which is more convenient for the user to see other fields.
Describe alternatives you've considered
In the alternative, we can put a dropdown where users can access different fields to access data.

I want to work on this !!

@mustafaazad03 go for it!

Thank you @andrewpollock, I will resolve this soon!

Happy New Year @mustafaazad03 I thought I'd check in and see how you're going with this?

Happy New Year @andrewpollock, Sorry for this late response from my side, I am working on it. will let you know about this soon.
Thank you for reminding me

https://github.com/google/osv.dev/assets/97380192/2521323f-1437-455b-b362-28b649051923
Is this solution is works ?

Thanks! Can you put the table in it's own scrollable div (so that the search box/header stays locked horizontally)? I think that'll look neater.

This was fixed in #1962


User get stack

Context & versions
Steps to reproduce
Actual behavior

Expected behavior

@ValMBO What is context of this issue, it says just the user gets stuck :)

@vpaunovic @ValMBO @MSzalowski The problem here is when we are on the PDF page and we disconnect the wallet, I think. Maybe @MSzalowski  should check because it seems that there is no handling of this page in the case of a disconnected wallet

OK: When click Disconnect - landing page is shown and a reload of page occurs allowing to Connect again
Jam recording here


Removes all tools

See https://github.com/crownstone/crownstone-python-sdk

Please, publish because there's currently a bug w.r.t. handling "protocol", see https://github.com/crownstone/crownstone-lib-python-ble/pull/16/commits/a8bba9b3cfc8d356b2a3731ac17e09f30959bae4


update conbee

I have hassio 0.96.5 under ubuntu 18.4.2 with deconz hass.io addon version 3.1 and I'm unable to update my conbee I gaved by the addon description even the manual one that goes into marthoc add-on but I don't have marthoc addon
Are there any other option I can try?
Thanks

I'm not sure where it write about the marthoc add-on anywhere in our docs?
https://github.com/home-assistant/hassio-addons/tree/master/deconz#upgrading-raspbee-and-conbee-firmware

The last sentence in the Upgrading section is:
If that is still not working, try upgrading the firmware manually.
Following the link there is no hass.io instructions but docker, ubuntu, windows...
The nearest to me (probably I'm wrong) to hass.io should be docker and then it starts to reference marthoc add-on.
Now I'm thinking as I'm running hass.io under an ubuntu I could stop the add-on and follow the ubuntu instructions. If this works then I will try to PR the upgrading doc sections to improve the manual upgrade.
Thanks

Following the manual upgrade needs I install deconz on the host OS. I'm running in a NUC so no problem to install, upgrade and deinstall but those running in a Pi should have issues doing it. I recommend to remove the last sentence (the manual upgrade) as it doesn't work for a hass.io add-on.


Spanish translation

This looks great! :+1:
After merging this I'm going to move the login-related strings also into strings.xml. There's no good reason to keep them separate (at least until we have a well-defined system for where to put different kinds of strings, and besides, it's simpler to manage just one file).


Updated README to allow manual link on android

README was not up to date with linking on android.

Closed by #385


chore: add schema for typst.toml

Maybe create a schema also here?

From what I understand, it would be better to contribute this file to the schemastore repository directly, so that VSCode
extensions (and maybe other tools) pick it up automatically, without needing to point it to the self-hosted file.
I think the schema should follow what universe does, not what the local compiler does, if we consider that this schema is useful to get editor completions and diagnostics: I think that most of the time when you edit a typst.toml it will be submitted to Universe at some point. Maybe another schema file with only compiler-required fields marked as such could still exist alongside the main one, to make it possible to run lighter checks by giving an explicit schema path (I believe this is something you can do with most tools that work with JSON schemas).
If you open a PR on the schemastore repository, you can ping me in the discussion over there, I will happily give it a look.


Unable to install raspi-soft-pwm

Raspberry P4 B with Ubuntu 21.10

Meanwhile, I still can install pigpio manually. But it doesn't help.

Hi @vovchisko. The Raspi.js suite only supports Raspbian I'm afraid, not Ubuntu. If you switch to Raspbian, this error should go away.

Ah, make sense. Thanks for quick response.


#91 add eclipse IDE support

nice work @caofangkun. @prabhuinbarajan - It will be great if you could review this.

@prabhuinbarajan - any luck with this?

@kramasamy @caofangkun
I tested out and this looks fine. Please remove the duplicate shebang and I will merge this.


[Snyk] Upgrade @types/node from 20.4.9 to 20.5.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade @types/node from 20.4.9 to 20.5.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 2 versions ahead of your current version.
The recommended version was released 23 days ago, on 2023-08-13.

Release notes

Package name: @types/node

20.5.0 - 2023-08-13

20.4.10 - 2023-08-11

20.4.9 - 2023-08-08

    from @types/node GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Applied in latest commit.


[OTEL-1978] Always use http for logs agent exporter

Counterpart of https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/33504

/merge


fix docs missing for @azure/arm-appservice

fix docs missing for @azure/arm-appservice

@danieljurek Do you know how to fix the ci failure ? Is it because the link is using service name ? how come it's not broken for @azure/arm-appservice


Remove REDIS_PASSWORD env which is always overridden by REDIS_URL

closes #1823

Redis::CommandError (NOAUTH Authentication required.):
app/trading/global.rb:55:in ticker'   app/models/market.rb:24:in ticker'
app/controllers/application_controller.rb:53:in `set_gon'


Generate a hacky layout by parsing .dtsi

Using the devicetree parser and treating the default_transform.map node as row-based grid we can put together a rough ortholinear layout.

Each line in the map is a new row.
Find the column start/end location of each RC(...) instance
Compare each column's approximate position to the columns in the previous row
Cells with the greatest amount of text overlap are considered to be the same column

The result is a simple layout of 1u keys that means the end user doesn't need to have created an info.json file to get started. This process could spit one out, however, and give the user an opportunity to tweak it as required.

I've got a preliminary implementation just testing against various map = < ... > strings, but going forward it should be noted that the location of the mapping isn't totally straightforward

Split keyboards have <keyboard>.dtsi
Unibody keyboards have <keyboard>.overlay
Some repositories may be set up to build against keyboards defined in the main repo (or, technically, any other specified repo) and not have an easily accessible mapping at all
Some keyboards do not define a keymap transform in which case the layout is effectively an ortholinear keyboard with size <rows>*<cols> as defined in the kscan node.

Probably not going to try too hard for some of these.

A basic implementation is in place for testing now.
If the server reports that the repo/branch doesn't have a config/info.json file it will prompt the user to try enabling the experimental auto layout functionality.

The settings dialog presents the option and describes its use and limitations.

With the experimental option enabled the backend will parse config/boards/shields/<keyboard>.dtsi, get the appropriate matrix transform's map, and create a layout to approximate the textual layout.

I haven some unit tests to see how it handles a small selection of layouts (including row staggered) and it's going better than I'd thought. I still need to add some error handling and a little more planning around where to actually find the matrix transform per the last comment.

Another note: if we're going as far as looking in boards/(shields|arm)/<keyboard>/ to find to find the matrix transform then we can also look out for a default <keyboard>.keymap there in case one doesn't exist under config/.

Finished this a little while ago. For the moment it expects to find the necessary files in the local repository or in the ZMK core repo. I may eventually add support for discovering and searching alternate remotes defined in west.yml.


Product search shows no results after swipe-refresh

What
On search product screen, swipe-refresh shows no results, when results are found.
Steps to reproduce the behavior

Search a product -> shows list of products
Swipe-refresh -> shows no results

untitled.webm
Smartphone model

Device: Emulator
OS: API 29
App Version: SHA 0400c18

Feel free to assign me to fix this

I also noticed this today, but this doesn't happen all the time, we need a way to consistently reproduce this

Seems like it depends on how many search results are there. If count is small (5 results), I can reproduce it every time. For large count (15 results), refreshing takes longer and I'm not able to reproduce it.

Looked into this issue, In product_query_page.dart at line 430
 setState(
      // How do we refresh a supplier that has no refresher? With itself.
      () => _model = _getModel(refreshSupplier ?? widget.productListSupplier),
    );

Here the, _model is reassigned, and due to this the listeners on previous Object get overriden by new Object.
So widget isn't updated with new data.
I tried calling _asyncLoading externally on existing _model
_model.asyncLoad(notify: true)

And wrapping _getNotEmptyScreen in Consumer widget.
This solved the issue.
I had some doubts though regarding _getRefreshAction and refreshList methods.
Why are there 2 refresh option? pull to refresh and from action bar?

@anshpathania7 You're right there's something fishy with _getRefreshAction and refreshList methods.
If I remember well they should do the same thing (refresh the data from the server) and therefore should call the same code (and that is not the case currently).

@monsieurtanuki
yeah instead of two methods, a common single method should be used and is there a need of pull to refresh ? Providing same functionality in two different places seems  bit confusing in terms of UX.

We should rather remove the button, pull to refresh is very common throughout the app

We should rather remove the button, pull to refresh is very common throughout the app

@M123-dev Agreed.
@anshpathania7 If you're able to reproduce the issue, please try with the button and with the pull-to-refresh. Hopefully one of the code works :)

@monsieurtanuki @M123-dev
Both methods are working, pull to refresh works for smaller list and only sometimes(because Future is completing after setState). But both refresh methods are different, which one to keep?
Refresh from button, Shows a downloading dialog.
Is this to be moved topull_to_refresh ?

Both methods are working, pull to refresh doesn't works for smaller list sometimes

Then it's not working.
Is the other method always working? I understand that the download dialog may be a UX problem, but if the code does work we can make it work while removing the dialog, can't we?

@monsieurtanuki Yes, Other one is working perfectly, it shows downloading dialog while it's loading data, after successfully refreshing dialog disappears.

@anshpathania7 Cool! So in a first approach, the fix would be to:

get rid of the top refresh button - we want only one refresh now
have the pull-to-refresh call the code that works

I don't have access to the app, so I don't see how the pull-to-refresh behaves during refreshing.
If we don't display dialog usually, a second step would be not to use the dialog here.
Ready to code, @anshpathania7?

@monsieurtanuki shouldn't we show some sort of indicator to show if data is being loaded/refreshed or has been loaded successfully?

Again, I don't have access to the app. Do something similar to the other pages.
But first, fix the refresh bug. Later, you may deal - or not - with the dialog.

Alright, I'm working on it right now. Can you assign this to me?


Request for documentation or pointer to documentation

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I need to floorplan and place multiple projects - riscv, memories, uart etc rather than combining them into a single heirarchical project. My first approach was to synthesize them as separate projects and proceed. Now I remember openlane expects projects to follow a given directory structure and possibly all relevant files to be present in a common location for a particular stage. Hence, not sure how to go ahead with it.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Can you provide a link to instructions for doing this ? Thanks
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

I think you want this:
https://openlane.readthedocs.io/en/develop/docs/source/hardening_macros.html
And if you click the link in that section it leads to this:
https://openlane.readthedocs.io/en/develop/docs/source/chip_integration.html


[object Object] displayed instead of list options

We use the color control plugin for our Priority field in Azure DevOps. On occasion, instead of listing out the four priority options, we get a javascript looking error that says [object Object]:

Our color names and definitions are the following:

The error appears intermittently, usually when creating a new work item that hasn't been saved yet.

We are having the exact same issue.  Please let me know when there is a resolution.  Thanks.

Had the same issue, added a new picklist on the same page and now both fields appear correctly

I tried that yesterday and it didn't work.  I believe the issue is intermittent and it still an issue today.

This was a bug that was recently introduced unrelated to the extension.  A mitigation has been applied and the issue should no longer be happening, as long as you reload the browser window.  If you still see it, please reactivate this issue.


align javax.annotation-api 1.3.1, 1.3.2 to 1.3.2

align library versions to avoid inconsistent API behaviors. (Or unify library version by removing explicitly declared version tag in instrumentation/jaxrs2/pom.xml

odd as this is a provided dep, it is strange there would be any impact. what build system are you using? (maven compile deps pin versions, but provided does not..)

@adriancole just to make sure it will not introduce any inconsistency...

works for me. Thanks!

Thanks!


Fix "agent" logger

/var/log/nginx/html5-client.log.1:{ "nginx": { "access": { "remote_ip": "<IP_ADDRESS>", "time": "05/Jun/2023:23:56:20.922 -0300", "host": "xxxxxx", "agent": "okhttp/4.9.2" }, "request_body": {...} }

"agent": "okhttp/4.9.2"
talk with @fcecagno about it

It's not a logger issue.
The problem is that the user agent passed as a header for the http request is okhttp..., which makes it difficult for us to know more about the device and app version calling.

It is the correct user agent. Native apps use this:
iOS:
Ex. bbbMobileSdk/68 CFNetwork/1492.0.1 Darwin/23.3.0
/ CFNetwork/ Darwin/
Android:
Ex: okhttp/4.9.2
okhttp/


chore: bdd-spring-1574266232 to 0.0.1

chore: Promote bdd-spring-1574266232 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


[vcpkg] Add keyword Supports to Feature in CONTROL file and manifest

Continue to PR #8601, This PR will enable the pipeline to automatically test all features of all ports.
TODO list:

[x] Add keyword Supports
[x] Handle keywords Supports when parsing Feature
[ ] Document
[x] Test

Note: Feature conflicts need to be considere.

Could you make certain to also add it to manifests? it shouldn't be too terrible, and if you want me to I can also push to this branch.

@strega-nil Okay, but it seems that my changes didn't work. Could you please help me?
Thanks.

/azp run

@ras0219-msft @ras0219 Ping for review this PR.

/azp run

Close this PR temporary.

Already added this feature.


Strange work with DestLockToken in Copy()

Hi, I try to use Copy with DestLockToken (with overwrite option). Firstly, I create lock token for destination file (via Lock, that creates new empty locked file) and then specify this in DestLockToken, call Copy(), then obtain Precondition Failed 412. It is strange, because I have actual lock token for file. Same trick works for PutFile(), where I lock rewritable file (even it is does not exists) and use this lock token for writing data. My WebDAV server bytemark/webdav logs that header "If:" was received but resource not found.
.net core 3.1
Thank you for attention

Update:
I tried to use IIS 10 + WebDAV with settings by default. I received same issue (snapshot):

It is difficult to make error with, but seems that something works wrong with lock token.
And yet another problem was deleting locked file with proper lock token in bytemark/webdav (with default settings), same  error was occured, but IIS WebDAV worked fine.

Hi @Chebura ,
I reviewed the implementation of the library when it comes to passing lock tokens in write requests and I could unfortunately conclude that it's a bug in the library.
The lib supports only a subset of the spec which is not enough to make lock tokens work for the COPY method and maybe in some other cases.
The only work around is to set the correct value in the If header according to the spec.
This is an example of constructing CopyParameters with an If header of the tagged form which hopefully should be enough make it work:
var copyParams = new CopyParameters
{
    Headers = new List<KeyValuePair<string, string>>
    {
        new KeyValuePair<string, string>(
            "If",
            $"<absolute_uri_to_dest_resource> (<opaquelocktoken>)"
        )
    }
};

The library supports only passing a token in the no-tag form (If: (<opaquelocktoken>)) which doesn't work for COPY requests.
I'll consider re-visiting the implementation of lock tokens in the lib to support everything that is currently left out: tagged-list form, multiple tokens entity tags, multiple etags, negation etc.
Thanks for submitting the issue it reveals quite important overlook in the implementation.

Hi @Chebura ,
I reviewed the implementation of the library when it comes to passing lock tokens in write requests and I could unfortunately conclude that it's a bug in the library.
The lib supports only a subset of the spec which is not enough to make lock tokens work for the COPY method and maybe in some other cases.
The only work around is to set the correct value in the If header according to the spec.
This is an example of constructing CopyParameters with an If header of the tagged form which hopefully should be enough make it work:
var copyParams = new CopyParameters
{
    Headers = new List<KeyValuePair<string, string>>
    {
        new KeyValuePair<string, string>(
            "If",
            $"<absolute_uri_to_dest_resource> (<opaquelocktoken>)"
        )
    }
};

The library supports only passing a token in the no-tag form (If: (<opaquelocktoken>)) which doesn't work for COPY requests.
I'll consider re-visiting the implementation of lock tokens in the lib to support everything that is currently left out: tagged-list form, multiple tokens entity tags, multiple etags, negation etc.
Thanks for submitting the issue it reveals quite important overlook in the implementation.

Hi,
this approach with manually setting of header "If" works well! Thank you, I hope your library will be improved!


Release 0.6

hmm, did we not switch from sitegroup to project yet? The branch tests show good, but the final POST to slack in there has a validation error for SiteGroupName

@twardnw do you have a link to the POST you are talking about?

Last stage : https://lagoon-ci.amazeeio.cloud/blue/organizations/jenkins/lagoon/detail/develop/68/

Ah! During the deployment we talks to the production Lagoon which then will deploy a new version of the develop Lagoon. The production Lagoon is still on the master branch which does not know anything about the sitegroup to project change, that's why it fails.
But this is something that we need to wait for until we have merged into master and moved everything from appuio to a regular OpenShift :)

👍


Use impsort-maven-plugin to automaticall check java imports

Currently eclipse configuration allow to clean this automatically.
But for external contribution, often this is not done.
impsort-maven-plugin can be used to check this but not support automatic wildcard * import like eclipse. (see https://github.com/revelc/impsort-maven-plugin/issues/21)
Wildcard import are also considered as bad practice. (see https://checkstyle.org/config_imports.html)
So maybe is to :

change eclipse configuration to not allow it.
add checkstyle to check this is not used

Note that if contributor which does not use eclipse should be able to sort import with :
mvn impsort:sort

So maybe is to :

change eclipse configuration to not allow it.
add checkstyle to check this is not used

Done in last commit.


How to configure to run the examples on the CPU?

I followed instructions from here:
https://github.com/facebookresearch/Horizon/blob/master/docs/installation.md
to run Docker image on Mac. However when I am running the example, getting following error:

root@cb58ca621d80:~/Horizon/Horizon# python ml/rl/test/gym/run_gym.py -p ml/rl/test/gym/discrete_dqn_cartpole_v0.json
INFO:__main__:Running gym with params
INFO:__main__:{'env': 'CartPole-v0', 'model_type': 'pytorch_discrete_dqn', 'max_replay_memory_size': 10000, 'use_gpu': False, 'rl': {'gamma': 0.99, 'target_update_rate': 0.1, 'reward_burnin': 1, 'maxq_learning': 1, 'epsilon': 0.05, 'temperature': 0.35, 'softmax_policy': 0}, 'rainbow': {'double_q_learning': False, 'dueling_architecture': False}, 'training': {'layers': [-1, 128, 64, -1], 'activations': ['relu', 'relu', 'linear'], 'minibatch_size': 1024, 'learning_rate': 0.001, 'optimizer': 'ADAM', 'lr_decay': 0.999, 'use_noisy_linear_layers': False}, 'run_details': {'num_episodes': 200, 'max_steps': 200, 'train_every_ts': 1, 'train_after_ts': 1, 'test_every_ts': 2000, 'test_after_ts': 1, 'num_train_batches': 1, 'avg_over_num_episodes': 100, 'offline_train_epochs': 30}}
INFO:ml.rl.training.rl_trainer_pytorch:CUDA availability: False
INFO:ml.rl.training.rl_trainer_pytorch:NOT Using GPU: GPU not requested or not available.
Traceback (most recent call last):
  File "ml/rl/test/gym/run_gym.py", line 850, in <module>
    main(args[1:])
  File "ml/rl/test/gym/run_gym.py", line 564, in main
    args.path_to_pickled_transitions,
  File "ml/rl/test/gym/run_gym.py", line 632, in run_gym
    path_to_pickled_transitions=path_to_pickled_transitions,
  File "ml/rl/test/gym/run_gym.py", line 155, in train
    stop_training_after_solved,
  File "ml/rl/test/gym/run_gym.py", line 428, in train_gym_online_rl
    trainer.train(samples)
  File "/home/Horizon/Horizon/ml/rl/training/dqn_trainer.py", line 150, in train
    loss.backward()
  File "/home/miniconda/lib/python3.6/site-packages/torch/tensor.py", line 107, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph)
  File "/home/miniconda/lib/python3.6/site-packages/torch/autograd/__init__.py", line 93, in backward
    allow_unreachable=True)  # allow_unreachable flag
RuntimeError: CUDA error: CUDA driver version is insufficient for CUDA runtime version

How can I configure to run the example on the CPU?

@ArmenLevoni This looks like a problem with pytorch, where even though we aren't using GPU, it still fails because CUDA is too old.  One fix is to update your CUDA drivers or uninstall CUDA (use the non-CUDA docker).  But pytorch also shouldn't be checking the CUDA driver when gpu mode is turned off, so you could verify that the pytorch examples fail and submit a bug to them if you want to chase it down: https://github.com/pytorch/examples/blob/master/mnist/main.py

Whoops, clicked the wrong button.  Feel free to reply or close if the issue is done, thanks.

Thanks, @MisterTea, I tried to update CUDA driers,  I build bother versions docker docker/cpu.Dockerfile  and cuda.Dockerfile, results are the same. I run these on MacOs Mojave.

Actually after installing:
conda install torchvision
it updates pytorch to:
pytorch-1.0.1              |py3.6_cuda9.0.176_cudnn7.4.2_2       320.5 MB  pytorch
and it starts working. Most probably pytorch-nightly (from requirements.txt) is broken.

Let me see if I can keep pytorch up to date in our integration tests so we can catch these errors...


RDS is being created in Default VPC

Description
While running the rds module. I keep getting this error.
 Error creating DB Instance: InvalidParameterCombination: The DB instance and EC2 security group are in different VPCs.

In my VPC module, I have create_database_subnet_group = true and database_subnets are also defined.
In the db definition, I have   subnet_ids             = module.vpc.private_subnets defined too.
Versions

Terraform:
0.14.5
Provider(s):
aws
Module:
vpc
rds

Reproduction
In db defintion,

  multi_az               = true
  db_subnet_group_name   = module.vpc.database_subnet_group
  vpc_security_group_ids = [module.security_group.security_group_id]

Terminal Output Screenshot(s)
module.eks.kubernetes_config_map.aws_auth[0]: Refreshing state... [id=kube-system/aws-auth]
module.eks.aws_autoscaling_group.workers[0]: Refreshing state... [id=adaptive-production-cluster-adaptive-cluster-nodes20220216192225047300000011]
module.db.module.db_instance.aws_db_instance.this[0]: Creating...

Error: Error creating DB Instance: InvalidParameterCombination: The DB instance and EC2 security group are in different VPCs. The DB instance is in vpc-4055d02b and the EC2 security group is in vpc-03d3ba3d72a498d9c
	status code: 400, request id: 5a5025f3-b0bb-4b42-85b1-7547977244be

Can you post your VPC and security group configurations?

Running into the same issue, not sure how best to handle it so here are my findings:
I think its the try block here:
https://github.com/terraform-aws-modules/terraform-aws-rds/blob/master/main.tf#L4
which isn't erroring because:
https://github.com/terraform-aws-modules/terraform-aws-rds/blob/master/modules/db_subnet_group/outputs.tf#L3 is also wrapped in a try block, that, even if you have create_db_subnet_group = false will not generate an error but will return ""
as a result of this commit

is anyone going to paste a reproduction so we can take a look?

I was able to reproduce on my own - fix coming up shortly

This issue has been resolved in version 4.1.0 :tada:

I'm still seeing this issue under 5.0.1.

Hi all , moving from 3.0.0 to the latest 5.1.0 , keep getting
Error: creating RDS DB Instance (scanovatedb): InvalidParameterCombination: The DB instance and EC2 security group are in different VPCs. The DB instance is in vpc-a39254da and the EC2 security group is in vpc-0dcac20201c949eaa
│       status code: 400, request id: fac4feaa-c3b1-4f14-9eb6-752a647f497e
│
│   with module.rdsdb.module.db_instance.aws_db_instance.this[0],
│   on .terraform/modules/rdsdb/modules/db_instance/main.tf line 32, in resource "aws_db_instance" "this":
│   32: resource "aws_db_instance" "this" {
cloud you share ....
if I'm going back to 4.1.0 and still the same ..
Error: creating RDS DB Instance (scanovatedb): InvalidParameterCombination: The DB instance and EC2 security group are in different VPCs. The DB instance is in vpc-a39254da and the EC2 security group is in vpc-0dcac20201c949eaa
│       status code: 400, request id: a5b12cfe-062d-4abe-84c8-5dace3f16bee
│
│   with module.rdsdb.module.db_instance.aws_db_instance.this[0],
│   on .terraform/modules/rdsdb/modules/db_instance/main.tf line 29, in resource "aws_db_instance" "this":
│   29: resource "aws_db_instance" "this" {
sharing my vpc configuration :
module "vpc" {
source  = "terraform-aws-modules/vpc/aws"
version = "3.14.4"
name = "${local.name}-${var.vpc_name}"
cidr = var.vpc_cidr_block
azs                 = var.vpc_availability_zones
private_subnets     = var.vpc_private_subnets
public_subnets      = var.vpc_public_subnets
database_subnets    = var.vpc_database_subnets
create_database_subnet_group = var.vpc_create_database_subnet_group
create_database_subnet_route_table = var.vpc_create_database_subnet_route_table
create_database_internet_gateway_route = true
create_database_nat_gateway_route = true
NAT Gateways - Outbound Communication
enable_nat_gateway = var.vpc_enable_nat_gateway
single_nat_gateway = var.vpc_single_nat_gateway
VPC DNS Parameters
enable_dns_hostnames = true
enable_dns_support   = true
tags = local.tags
vpc_tags = local.tags
public_subnet_tags = {
Type = "Public Subnets"
}
private_subnet_tags = {
Type = "Private Subnets"
}
database_subnet_tags = {
Type = "Private Database Subnets"
}
}

I had the same issue with upgrading to this version of the module - and only with new RDS creations.
The solution was to add the argument db_subnet_group_name
See: https://registry.terraform.io/modules/terraform-aws-modules/rds/aws/latest#input_db_subnet_group_name


Proposal: composable seccomp profiles

Docker now has the ability to set seccomp profiles on a container (https://github.com/docker/docker/pull/17989),
however, writing a custom profile can be tedious, and leads to a lot
of repetition if a profile only differs slightly from the default profile.
To reduce this repetition, I suggest we allow users to write "partial" profiles,
and combine them to make up for a full profile (by providing multiple
--security-opt seccomp=.. flags).
In addition, we can provide some easy to use partials for people to pick from,
and include those in the default install.
Basically;
docker-disable-chown-chmod.json:
{
    "defaultAction": "SCMP_ACT_ALLOW",
    "architectures": [
        "SCMP_ARCH_X86_64",
        "SCMP_ARCH_X86",
        "SCMP_ARCH_X32"
    ],
    "syscalls": [
        {
            "name": "chmod",
            "action": "SCMP_ACT_ERRNO",
            "args": []
        },
        {
            "name": "chown",
            "action": "SCMP_ACT_ERRNO",
            "args": []
        },
        {
            "name": "chown32",
            "action": "SCMP_ACT_ERRNO",
            "args": []
        }
    ]
}

Run an image, using the "docker-default" profile, and apply a second (partial)
profile that disables "chmod", "chown";
docker run -d \
  --security-opt seccomp=docker-default.json \
  --security-opt seccomp=disable-chown-chmod.json \
  myimage

Questions

Should the default profile always be applied, unless --security-opt seccomp=unconfined is used?
How to handle the "defaultAction"? i.e., if "defaultAction" is specified in a partial profile, does it change the "overall" default, or is it only used as a default for seccomp-calls inside that file (if no action is specified)?
Should we simply apply/merge profiles in the order they were specified, or should they be applied as "deny trumps allow", thus once denied, a profile cannot "allow"?
Should "partial" templates have a slightly different format, to indicate it's a "partial"?

Implementation
This depends a bit on the questions above; for a "clean" API, I suggest to perform the merging client side, so the client
combines/merges the profiles and sends them as a full profile to the daemon.
However, this may be difficult if the default profile should always be applied, because the default profile
is not available to the client. So, either the user should install the docker-default profile on the client,
or merging the default profile should be done on the daemon (which will be backwards-incompatible with the current behavior).

ping @jfrazelle @justincormack - just something I was thinking about; I think we discussed something like this, but wasn't sure if it was written down somewhere

ping @mheon, I believe he's looking into this also

We definitely want more flexibility in composing profiles, but you can't do it quite like this because our default policy is DENY not ALLOW (correctly, pretty muc any policy starting ALLOW can be bypassed using another system call that can do the same thing, eg in your example you miss chownat which can do the same as chown) and DENY policies do not compose as nicely, you cant apply one after the other you need to combine them. Also policies are kind of nasty to write, as they are so long.
Currently I am thinking about extending the default policy to vary by which capabilities you are using, so that eg adding CAP_SYS_ADMIN allows mount, and also some syscalls can be dropped if you remove capabilities. Then extending this to other types of configuration, ie more general roles that are defined in terms of multiple types of security. It would then start to make sense if the components that make up this are maybe configurable daemon side, while the roles your container needs are configurable client side.
(I am talking about this at DevOpsDays London tomorrow actually...)

@justincormack yeah, I just did a quick copy paste of some seccomp calls to illustrate, I'm sure I missed some :blush:
My idea is to merge the profiles before applying (does that make sense?) i.e. if profile1 marks
profile1;
{
    "syscalls": [
        {
            "name": "chmod",
            "action": "SCMP_ACT_ERRNO",
            "args": []
        },
        {
            "name": "chown",
            "action": "SCMP_ACT_ERRNO",
            "args": []
        }
    ]
}

profile2;
{
    "syscalls": [
        {
            "name": "chmod",
            "action": "SCMP_ACT_ALLOW",
            "args": []
        }
    ]
}

Would result in this profile being applied;
{
    "syscalls": [
        {
            "name": "chmod",
            "action": "SCMP_ACT_ALLOW",
            "args": []
        },
        {
            "name": "chown",
            "action": "SCMP_ACT_ERRNO",
            "args": []
        }
    ]
}

You could make a client side tool that does this very simply, but I don't think this is the right approach. Oh and your example profiles were incompatible, it should not have combined them like that...

I generally think it is a bad idea to try to 'merge' profiles. You'll never do it 'right' given only the OCI format information. You can't know exactly what the user wanted. Composing policies is hard, layering policies is 'easy'.
The kernel can layer profiles and it seems to me like exposing that is a good idea. If you load multiple profiles into the kernel they will be executed in order and the 'most denying' action will get executed.  If for a given syscall profile1 has 'errno', profile2 has 'kill', and profile2 has 'trap' the process will get killed.
Layering instead of composing means you can't really do the partial policy described above where you add allows for chmod and chown. It means you can only restrict more than the parent(s). But at least we can rationalize about the end state....

@eparis yes we could allow layering with multiple calls, either layered on top of the default profile or the unconfined profile. The kernel will fail layers that do not have the same default policy, so you can only layer whitelists on whitelists or blacklists on blacklists, which is fine.

It turns out from https://github.com/seccomp/libseccomp/issues/44 that we may want composable profiles but not to merge them.

Another issue is that the format is pretty hard to write (am currently writing some), and there are a lot of limitations of the OCI format, and composition is not one of its strong points. I think the format would have to change to be usable.


[Feat][C++] Improve high-level APIs of the C++ library to provide the view and operations at the graph level

Is your feature request related to a problem? Please describe.
Currently, the C++ library of GraphAr provides some high-level structures and related methods, i.e.,  VerticesCollection and EdgesCollection. However, a view of the whole graph and the operations are required for conduct processing more conveniently.
Describe the solution you'd like
Proposal TBF

May be we can provide a Graph class, which can traverse all vertices and edges, instead of a specific type.
class Graph {
  explicit Graph(const GraphInfo& graph_info);

  Result<VertexIter> GetAllVerticesBegin();
  Result<VertexIter> GetAllVerticesEnd();
  bool GetNextVertexIter(VertexIter& iter);
  size_t GetVerticesNum();

  Result<EdgeIter> GetAllEdgesBegin();
  Result<EdgeIter> GetAllEdgesEnd();
  bool GetNextEdgeIter(EdgeIter& iter);
  size_t GetEdgesNum();
}

Result<Graph> ConstructGraph(const GraphInfo& graph_info);

TODO:

support to look for a vertex? edges of a single vertex?
provide graph-level reading/writing/transforming  methods?


[HOLD for payment 2024-09-19][Search v1.2] Sort report views by newest transaction date

Problem
Coming from here, we're sorting report views by the report date, instead of transaction date
Solution
Sort report views by the newest transaction date.

Got a PR upd

Looks like the automation didn't work, this was deployed to prod 9/12. Updating to note 7 day hold before issuing payment t

Summarizing payment on this issue:

Contributor: N/A Internal
Contributor+: @ikevin127 $250 via Upwork -- offer sent, please accept when you get a chance https://www.upwork.com/nx/wm/offer/104050499

Upwork job is here: https://www.upwork.com/jobs/~021837012605241491332

@stephanieelliott Offer accepted, thank you!

All paid! Thanks


Labeller attempt 2

Which issue does this PR close?

Closes #.
Rationale for this change

Follow up to #5172
What changes are included in this PR?

Are there any user-facing changes?

I'm going to merge this to get unblock PRs


BasicGroup or Supergroup list by user

There is the following command: getSupergroupMembers
that returns the list of members of a supergroup.
Is there a command or a way to get the list of supergroups of member (by used_id)?
Thanks

No, you can't find list of all chats of other users. You can only find common chats using the method getGroupsInCommon.


Adding sheetFormatPr for better compat with macos preview

@SheetJSDev  We need to decide where to store the default row height and column width in the worksheet ...

We will eventually overhaul the whole thing, but we will commit something that writes default height/width in XLSX if you pass sheetFormat


kymotrack: add photon counts as an attribute

Why this PR?
We need an attribute that just has the photon counts when we need them (no matter how they were refined). This is especially important since in the future, we'd like to have photon counts originating from Gaussian refinement as well.

If you squint hard enough, maybe you can see some multimer binding
Docs build here: https://lumicks-pylake.readthedocs.io/en/count_dem_photons/tutorial/kymotracking.html
There are two open points left remaining after this PR:

How to best deal with the file export/import when a track has been refined via different methods. I have opened a separate ticket to figure out a way how to handle this. The CSV format is not ideal for storing metadata and ideally, we should move to something more readily extensible.
If we want to explore multimer binding with this, we need a model that describes what we see well. For this, we ideally need some good multimer data. The data shown here is aggressively downsampled prior to analysis. Without it, the counts are relatively low, and the distributions far less peaky.

looks good. one extra thing I just noticed reviewing the docs, we may want to add something in the "Extracting summed intensities" section about this? Just a note that (except for gaussian refined) the property uses the same method to calculate counts as sample_from_image. Not required, but might be useful

Good point! I will add that.


Windows objective_function import fails - Can't pickle function object

When using a separate objective_function in options an error occurs with multiprocessing on Windows:
Traceback (most recent call last):
  File "run_chirwut.py", line 8, in <module>
    configuration('config_chwirut.yaml')
  File "C:\Users\chris\miniconda3\envs\py37\lib\site-packages\rsopt\pkcli\optimize.py", line 26, in configuration
    H, persis_info, _ = runner.run()
  File "C:\Users\chris\miniconda3\envs\py37\lib\site-packages\rsopt\libe_tools\optimizer.py", line 74, in run
    self.alloc_specs, self.libE_specs, H0=self.H0)
  File "C:\Users\chris\miniconda3\envs\py37\lib\site-packages\libensemble\libE.py", line 232, in libE
    return libE_funcs[comms_type](sim_specs, gen_specs, exit_criteria, persis_info, alloc_specs, libE_specs, H0)
  File "C:\Users\chris\miniconda3\envs\py37\lib\site-packages\libensemble\libE.py", line 444, in libE_local
    wcomms = start_proc_team(nworkers, sim_specs, gen_specs, libE_specs)
  File "C:\Users\chris\miniconda3\envs\py37\lib\site-packages\libensemble\libE.py", line 404, in start_proc_team
    wcomm.run()
  File "C:\Users\chris\miniconda3\envs\py37\lib\site-packages\libensemble\comms\comms.py", line 261, in run
    self.process.start()
  File "C:\Users\chris\miniconda3\envs\py37\lib\multiprocessing\process.py", line 112, in start
    self._popen = self._Popen(self)
  File "C:\Users\chris\miniconda3\envs\py37\lib\multiprocessing\context.py", line 223, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "C:\Users\chris\miniconda3\envs\py37\lib\multiprocessing\context.py", line 322, in _Popen
    return Popen(process_obj)
  File "C:\Users\chris\miniconda3\envs\py37\lib\multiprocessing\popen_spawn_win32.py", line 89, in __init__
    reduction.dump(process_obj, to_child)
  File "C:\Users\chris\miniconda3\envs\py37\lib\multiprocessing\reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <function dummy_obj at 0x00000278DD2F2E58>: import of module 'chwirut_py' failed

Moving the objective function import out of the configuration and into the execution of Simulation will move the import to the work process level and negate this issue.

Another that should have closed automatically


lintrunner init fails in WSL

lintrunner rage report:
timestamp: 2023-01-25T07:33:24.637-08:00
args: 'lintrunner' 'init' '-v'
exit code: 1
err msg: Some("No such file or directory (os error 2)")

========= BEGIN LOGS =========
[2023-01-25T15:33:24Z DEBUG lintrunner] Version: 0.10.5
[2023-01-25T15:33:24Z DEBUG lintrunner] Passed args: Args { inner: ["lintrunner", "init", "-v"] }
[2023-01-25T15:33:24Z DEBUG lintrunner] Computed args: Args { verbose: 1, config: ".lintrunner.toml", apply_patches: false, paths_cmd: None, paths_from: None, revision: None, merge_base_with: None, skip: None, take: None, output: Default, cmd: Some(Init { dry_run: false }), paths: [], force_color: false, data_path: None, tee_json: None, all_files: false }
[2023-01-25T15:33:24Z DEBUG lintrunner] Current rev: 791ab90a320dd9a5948c951146f28aa808a1e840
[2023-01-25T15:33:24Z DEBUG lintrunner::lint_config] Found linters: {"FLAKE8", "PYLINT", "CLANGFORMAT", "NAMESPACE", "EDITORCONFIG-CHECKER", "MYPY", "BLACK-ISORT"}
[2023-01-25T15:33:24Z DEBUG lintrunner] Initializing linters: ["FLAKE8", "MYPY", "BLACK-ISORT", "NAMESPACE", "CLANGFORMAT", "PYLINT", "EDITORCONFIG-CHECKER"]
[2023-01-25T15:33:24Z INFO lintrunner::linter] Initializing linter: 'FLAKE8'
[2023-01-25T15:33:24Z DEBUG lintrunner::linter] Running: python '-m' 'lintrunner_adapters' 'run' 'pip_init' '--dry-run=0' 'flake8==5.0.4' 'flake8-bugbear==22.10.27' 'flake8-pyi==22.10.0' 'dlint==0.13.0'
[2023-01-25T15:33:24Z DEBUG lintrunner::persistent_data] Writing run info to /home/justinchu/.local/share/lintrunner/a68d229237ed30daadd2150156b0198386f18ad5bfed583651b4dbb6600b093a/runs/2023-01-25T07-33-24.637-08-00_e7da52f428fc352d2ec8d0dbcb839d986877fd833296a61efc912bf272b77352

It was because python did not exist in wsl. python3 will work.


Provide a way to set initial state of HMC

Moved to https://github.com/TuringLang/AdvancedHMC.jl/issues/11

@yebai This is a Turing interface issue. Even without AdvancedHMC we can do this. The problem is how to let user provide the initial value so that we can construct a varinfo for the model .

I'm posing a minimal example to use a hack to achieve this for people who wants to do this before we formally provide an API
using Turing

@model gdemo(x, y) = begin
  s ~ InverseGamma(2,3)
  m ~ Normal(0,sqrt(s))
  x ~ Normal(m, sqrt(s))
  y ~ Normal(m, sqrt(s))
end

# Call a "dummy" sample just to get `vi` initialised
chn_init = sample(gdemo(1.5, 2), HMC(1, 0.1, 5), save_state=true);
vi = chn_init.info.vi

# All the variable names are in `vi.vns` - you need to find which one you want to change
# I'm using the first one as an example
vn = vi.vns[1]
vi[vn] = [2.0]  # NOTE: you have to assign a vector

# Now do your real sampling
chn = sample(gdemo(1.5, 2), HMC(1000, 0.1, 5), resume_from=chn_init)

I'm posting a minimal example to use a hack to achieve this for people who wants to do this before we formally provide an API
using Turing

@model gdemo(x, y) = begin
  s ~ InverseGamma(2,3)
  m ~ Normal(0,sqrt(s))
  x ~ Normal(m, sqrt(s))
  y ~ Normal(m, sqrt(s))
end

# Call a "dummy" sample just to get `vi` initialised
chn_init = sample(gdemo(1.5, 2), HMC(1, 0.1, 5), save_state=true);
vi = chn_init.info.vi

# All the variable names are in `vi.vns` - you need to find which one you want to change
# I'm using the first one as an example
vn = vi.vns[1]
vi[vn] = [2.0]  # NOTE: you have to assign a vector

# Now do your real sampling
chn = sample(gdemo(1.5, 2), HMC(1000, 0.1, 5), resume_from=chn_init)

Hi guys,
I am using Turing.jl version 0.7.0, and the hack above seems not to work any more. Or is it only applicable for HMC? In fact, I am using the Metropolis Hastings sampler now because I have some troubles with the autodiff (and hence cannot use HMC). Could you guys give me some help?
I think this is a very useful feature. So, it would be very helpful if it is included in the manual (even in the from of a "hack").
Thank you very much.
Best,
Lam

A couple things have moved around on this one. I've updated the posted example to show how to do this in a 0.7+ world.
using Turing

@model gdemo(x, y) = begin
    s ~ InverseGamma(2,3)
    m ~ Normal(0,sqrt(s))
    x ~ Normal(m, sqrt(s))
    y ~ Normal(m, sqrt(s))
end

# Call a "dummy" sample just to get `vi` initialised
# Note that now the sample size of one has been moved
# out of the HMC call.
chn_init = sample(gdemo(1.5, 2), HMC(0.1, 5), 1, save_state=true);

# vi is now stored in .info.spl.state.vi, not .info.vi
vi = chn_init.info.spl.state.vi

# To get the varname out you'll need to extract the vn for a given symbol
# from vi.metadata. This gets the varname for m:
vn = vi.metadata.m.vns[1]
vi[vn] = [2.0]  # NOTE: you still have to assign a vector

# Now do your real sampling
chn = sample(gdemo(1.5, 2), HMC(0.1, 5), 1000, resume_from=chn_init)

You can also do the following, which is much shorter but has the problem that you have to specify all your parameters at once:
chn = sample(gdemo(1.5, 2), HMC(0.1, 5), 1000, init_theta=[2.0, 1.4])

There's been murmurings that we might support a more user friendly syntax like
theta = (m = 4.0, s = 2.0)
chn = sample(gdemo(1.5, 2), HMC(0.1, 5), 1000, init_theta=theta)

but it hasn't been implemented yet. I can give it a shot if you'd like, there seems to be some measure of interest in initializing parameters ergonomically.

Thank you very much, @cpfiffer. The codes above work perfectly.

Can we close this now?

Hi, currently migrating some of my code from AdvancedHMC into Turing but would love to be able to pass in all of the same initialisations as I can easily using AHMC. Commenting here to express my interest in having something like
theta = (m = 4.0, s = 2.0)
chn = sample(gdemo(1.5, 2), HMC(0.1, 5), 1000, init_theta=theta)

exposed to the user.

@mohamed82008 I saw you had mentioned somewhere that we now had a good way to input NamedTuples? I have the setnamedtuple function in Turing proper, but it's got a couple issues.
If we have one of these functions ready to go (that's better than setnamedtuple) I can prep a PR real quick.

Sorry @cpfiffer didn't see the mention. We have a way to input NamedTuples but it's not used or exposed in this context yet. We basically need to run the model in the PriorContext with the variables passed in the vars field of the context. model(vi, SampleFromPrior(), PriorContext((m = 1, s = 1))) should do the trick.

This is also quick generic.

Here is a quick hack for users that should work after the bug fix PR #1281 gets merged.
@model gdemo(x, y) = begin
    s ~ InverseGamma(2,3)
    m ~ truncated(Normal(0.0, sqrt(s)), 0.0, 2.0)
    x ~ Normal(m, sqrt(s))
    y ~ Normal(m, sqrt(s))
end;
model = gdemo(1.0, 1.0);
varinfo = Turing.VarInfo(model);
model(varinfo, Turing.SampleFromPrior(), Turing.PriorContext((m = 1.0, s = 1.0)));
init_theta = varinfo[Turing.SampleFromPrior()]
sample(model, HMC(0.01, 1), 100, init_theta = init_theta)

AdvancedHMC now supports AbstractMCMC interface.


area correct area_types

What
Update schema for correct area type relations
Describe what you have changed and why.
Corrected area types so the frontend web app displays the correct area type
How to review
Describe the steps required to test the changes.
check that the following equivalent  results or generated via the schema build:
-- RDS Updates
-- Yorkshire and the Humber
UPDATE area
    SET area_type_id = 2
WHERE code = 'E12000003';
-- Sheffield
UPDATE area
    SET area_type_id = 3
WHERE code = 'E08000019';

-- Wales
UPDATE area
SET area_type_id = 1
WHERE code = 'W92000004';
-- Gorseinon
UPDATE area
SET area_type_id = 2
WHERE code = 'W37000382';

Who can review
anyone
Describe who worked on the changes, so that other people can review.
myself

This repo has been archived. Closing PR.


feat: port CategoryTheory.Limits.Presheaf

TODO:

[ ] in extendAlongYoneda_map and restrictYonedaHomEquiv_natural for some reason ext is not working as expected
[ ] isExtensionAlongYoneda
[ ] colimitOfRepresentable
[ ] natIsoOfNatIsoOnRepresentables
[ ] For the very last line: invalid 'end', name mismatch?

Help is appreciated!

For the ext misbehaviour, I would like to see if merging #3340 changes anything. Assuming it persists, I guess we need to add an additional ext lemma for morphisms in the category of types (aka funext).

I hacked my way around the ext failures, which probably isn't the right thing to do because they'll perhaps bite us again. I fixed all but one of the errors and added some porting notes.

I need to stop doing Lean right now but I've just got the last proof to compile, by painfully taking apart what appears to be a nonconfluent simp set and doing everything in the right order. Obviously this needs to be fixed -- so please don't merge this yet -- but I have no time so I thought I'd just bank the proof and if nobody tidies it up within the next 24 hours I might have time to do it myself.

I think that the "not sure what happened there" commit was in error -- I have no time to fix this right now. The file was compiling locally for me.

8891f38

You accidentally undid my commit. I've fixed it.

Thanks Scott and sorry!

I hacked my way around the ext failures, which probably isn't the right thing to do because they'll perhaps bite us again. I fixed all but one of the errors and added some porting notes.

Can this be fixed by changing the priority of appropriate ext lemmas?

@Parcly-Taxel is again doing their "change labels on other people's PR's" trick, but there is arguably a discussion to be had about the ext failures here before this is merged.

I haven't looked at the ext failures here, but is it as simple as we're just missing some? ext uses a more restrictive indexing scheme now, so very often we just need additional lemmas whose syntactic form matches the use case (i.e. it might not be as complicated as priorities). I have to run soon, but I can try to look at this if no one has sorted it out in the meantime. :-)

Modulo the git nightmare caused by @Parcly-Taxel this is now finally awaiting review. It is supposed to depend on #3593

OK so this PR is finally ready. The changes in Mathlib/CategoryTheory/Elements.lean are I think some remnant of the recent force push -- they're nothing to do with this PR as far as I can see, and just appear to be whitespace changes.

bors merge


Registration 1

@JuliaRegistrator register()

Error while trying to register: "Pre-release version not allowed"


Tuya V2 not added to available integrations after installing via HACS

Describe the bug:
Followed installation instructions from Wiki (https://github.com/tuya/tuya-home-assistant/wiki/Install-Tuya-v2?_source=d10de34623e3daca5b02e3c31528a0c4) to install Tuya V2 on Home Assistant via HACS.  At step 2.4 in the wiki, after re-starting Home Assistant, the Tuya V2 integration does not appear to be available in list of integrations.
Expected behavior:
The wiki describes Tuya V2 being available as a separate integration from standard Tuya.  Only standard Tuya appears available.
Screenshots

Home Assistant Version
2021.9.6
No device info available as cannot install integration.

Can you send a screenshot of the custom repositories

hi tetsuo55, the problem seems to have gone away by itself.  TuyaV2 is now available in the integrations list.  Thanks anyway

Same issue:


Supports allow list using condition desc prop and custom titles

⚠ Fixes:
ℹ What is the context for these changes?

...
🕹 Demonstration
Locked

Unlocked

🎩 How can this be tophatted?

...
✅ Checklist

[ ] Tested on mobile
[ ] Tested on multiple browsers
[ ] Tested for accessibility
[ ] Includes unit tests
[ ] Updated relevant documentation for the changes (if necessary)

/snapit

/snapit

/snapit

/snapit


fix(layer-cache): Prevent jetstream consumers from exceeding their inactivity threshold

The default timeout was 5 seconds so we want to prevent any slowness of instances causing a disconnect

bors merge