a way to contact the author

should we leave the author field free form, to allow for something like Julian Gruber<EMAIL_ADDRESS>or https://juliangruber.com or @juliangruber etc, or should we standardize this more and have something like .author.name & .author.email?

i'd say lets not reinvent the wheel and use the way authors are described in this: http://specs.frictionlessdata.io/data-packages/#recommended-fields
the simplest way "Joe Bloggs<EMAIL_ADDRESS>also happens to be the same as it is in package.json files, so that's pretty convenient!

gotcha! how does this look? https://github.com/juliangruber/dat.json/blob/master/README.md

That looks good! Down the line, we may want to add the "contributors" or similar. Right now the author is the person that can write to the hyperdrive, but multiwriter may blur that line a bit.
That was one confusing thing when I was making some datapackages - I was the "author" but the data came from another source (so it wasn't actually my data).

yeah that makes sense.

great!


0.2 docs updates

[x] Hide pages that aren't filled out yet
[x] Minimize to-dos in docs
[x] Quick start notes on preset export/import - "each preset has its own JSON file" - emphasize that we need a preset folder.
[x] Assess links in code blocks (non-obvious formatting)
[x] Check library function (Project) hover text in VSCode
[x] Notes on desctructuring params for Project methods
[x] Assess asset import docs (maybe need example)
[ ] 0.2 Version notes
[ ] Readme on github
[x] Adjust beta notes
[x] Roadmap overview in beta notes
[x] SEO & OG data

Done (except for GitHub stuff) 129441f


Return local results with the offset of the local time

As observed by @zverok on #36, since Ruby 1.9.2, it has been possible to instantiate a Time with an offset using Time.new.
The results of conversions to local time are currently returned as UTC (when using both Time and DateTime). Such results should instead be returned with the correct offset.

I tried to lay my hands on it, and it seems now the discussion is required. The change is by no meand cosmetic, it is pretty huge and will require subsequent API change. For example:
# current API:
t = Time.now
# => 2016-03-24 20:10:25 +0200

tz = TZInfo::Timezone.get('Europe/Kiev')
tz.utc_to_local(t) # real t timezone is ignored and just dropped, t treated as UTC
# => 2016-03-24 22:10:25 UTC  -- no timezone info provided, but user should think of it as "+02:00"

# ...and same here, symmetrically
tz.local_to_utc(t)
# => 2016-03-24 18:10:25 UTC

# Proposed API:
tz.convert(t) # takes into consideration t's REAL utc offset
# => 2016-03-24 20:10:25 +0200  -- and also provides meaningful result UTC offset

Considering number of gems depending on tzinfo (including THE Rails), not everyone will be happy with this change. But currently I can't see any other reasonable solution.
Maybe compatibility layer could be provided (or unhappy ones could just rely on concrete older version).

(Though, for example, sequel implements manually functionality discussed in current issue. I've tried to understand from ActiveSupport code how much it relies on current behavior... but its just too much code for my small head.)

Any news here?.. Maybe I should just do a pull-request with proposed changes, for evaluation?..

@zverok Thank you for your comments. Sorry for not responding earlier - I've not had the time to consider this properly.
I think that the utc_to_local and local_to_utc methods should be retained. Both should continue to ignore the offset of the parameter (treating the time as either UTC or local). The result of utc_to_local should be changed to be a local time with the correct offset. This would avoid the current confusion of returning a local time that says it is UTC.
I'd add your convert method in addition to the existing methods (I might call it to_local though). A similar period_for method could probably also be added. These methods would be the equivalent of utc_to_local and period_for_utc, but start by converting the passed in time to UTC using it's declared offset.
My reason for retaining the old methods is that the local_to_utc and period_for_local methods are able to perform checks on ambiguous and non-existent local times during DST transitions. I don't think it would be possible for convert/to_local to be able to perform these checks.
I think ActiveSupport/Rails ignores the offset of the utc_to_local result, so any changes ought to be compatible. It looks like Sequel could be broken by the proposed change though.
If this ends up being an incompatible change, the major version of TZInfo will need to be incremented as per semantic versioning.
I hope to be able to work on removing the remaining Ruby 1.8 support code over the next few weeks (which may make implementing this easier). I'll then try and look into this further. In the meantime, you are welcome to submit a pull request with proposed changes and I'll take a look.

@philr Thank you for reply and sorry for my annoyance.
Will look at it during this week.


Library not loaded - Reason Image not found error

Hi
I need help with running my first epic2 command. I installed everything right (seemingly) but when I tried to run this command the terminal threw up this error. See snippets below.
epic2 -t /Users/sufyazi/Bioinformatics/PhD_works/bed_version/H2AZ_3CR1_39_aligned.sorted.bed -c /Users/sufyazi/Bioinformatics/PhD_works/bed_version/INPUT_3CR1_37_aligned.sorted.bed -egf 0.98 -cs /Users/sufyazi/Bioinformatics/PhD_works/BDP2_project/genome_db/Pf3D7v34_chrom_sizes.txt -o /Users/sufyazi/Bioinformatics/PhD_works/epic2_output/H2AZ_3CR1_epic2_called_peaks.bed

And here's the error
Traceback (most recent call last):
  File "/Users/sufyazi/opt/anaconda3/bin/epic2", line 10, in <module>
    from epic2.main import _main
  File "/Users/sufyazi/opt/anaconda3/lib/python3.8/site-packages/epic2/main.py", line 5, in <module>
    from epic2.src.reads_to_bins import files_to_bin_counts
  File "epic2/src/reads_to_bins.pyx", line 17, in init epic2.src.reads_to_bins
ImportError: dlopen(/Users/sufyazi/opt/anaconda3/lib/python3.8/site-packages/epic2/src/read_bam.cpython-38-darwin.so, 2): Library not loaded: @rpath/libctabixproxies.cpython-38-darwin.so
  Referenced from: /Users/sufyazi/opt/anaconda3/lib/python3.8/site-packages/epic2/src/read_bam.cpython-38-darwin.so
  Reason: image not found

I have tried googling and checking past issues but to no avail. Can someone help?

I solved my own problem. This issue arose because my base anaconda was messed up. Created an env and installed all dependencies and then installed epic2 in it and now the code works! Sorry!

Thanks for reporting. Great that you were able to figure it out yourself :)
On Sat, Apr 10, 2021 at 8:07 PM Ian Azizan @.***> wrote:

Closed #51 https://github.com/biocore-ntnu/epic2/issues/51.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/biocore-ntnu/epic2/issues/51#event-4577740066, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AEHURUU5EXAFZULPAZ4LYN3TICHVVANCNFSM42WXCNBA
.


Error: Illegal arguments for construction of _exports_Uart

Im working with the javascript uart example its giving me the following error when I attempt to run it with node version v4.4.0 on an Edison. Ive run it as a normal user and as root.

MRAA Version: v0.9.6
/home/abi/tma-comms/mraa_test.js:4
u = new m.Uart(1)
Error: Illegal arguments for construction of _exports_Uart
at Error (native)
at Object. (/home/abi/tma-comms/mraa_test.js:4:5)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3
root@ubilinux:/home/abi/tma-comms#

MRAA defines only one UART for Edison - Uart(0).
BR,
xbolshe

I have the exact same issue on Raspberry Pi (1) with Linux Jessie (it's occurring in a vendor lib that I'm using).

Does this fix the issue?

I uninstalled and completed from source. The issue persists with u = new m.Uart(0), but works with u = new m.Uart('/dev/ttyMFD1'). Im getting garbage from the reads, but I suspect thats an issue with my settings/electrical not so much MRAA.

The example provided in the node js docs for setting the mode of UART won't compile. Specifically it states that UART_PARITY_NONE isn't defined.

Looks like you're mixing several things in, so let's clarify that. First of all, m.Uart(0) (that @xbolshe  suggested) is the same thing as m.Uart('/dev/ttyMFD1'), which you've later tried. Using index is more future-proof as device names may change. So just use 0 and you should be good.
Now the second piece - what exactly won't compile, which example? Earlier you've tried the JS example, which doesn't need compilation and doesn't contain UART_PARITY_NONE references (there's just 0 used directly).

So Ive gotten everything working on my side. Here is what I did:
Initially I installed mraa simply via npm. The example that I linked to in the original location would not run and would produce the error code notes in the original post.
I then uninstalled the copy installed via nam, compiled and installed the pre-reqs to mraa and then mraa itself. That allowed me to open m.Uart('/dev/ttyMFD1'). While setting the parity bit as described in the  set mode documentation to UART_PARITY_NONE  node complained that it wasn't defined. I dug through the source and saw that UART_PARITY_NONE  had the value 0. Replacing that in the setMode call worked and I can now talk and listen to my device on UART.
Sorry if I wasn't clear with my earlier posts.

I see, thanks.
So generally, you should have better used port index (0) instead of the file name (/dev/ttyMFD1), as the latter may change in the future. Initially you have used port index 1, which is not supposed to work as max for Edison is 0.
As far as the UART_PARITY_NONE is concerned - in Node.js it would look like m.UART_PARITY_NONE, if you used m as the variable name when require-ing mraa module.
I.e.
m = require('mraa');

console.log('UART_PARITY_NONE is ' + m.UART_PARITY_NONE);

Using plain 0 would also work, as you've already discovered, but is also not recommended due to slight chance of this changing as well.
I'm glad you have everything workin now, so I'm closing this one.

I'm also got same issue how to resolve


Support Landscape

It should work with device rotation when the loading activity shows on screen.

http://prntscr.com/9i92qe
In landscape mode it doesn't properly place the activity it seems

That's weird, did you find a button in the center of screen?

I think I did something wrong when I downloaded this. Now it works fine, thanks :+1:

:beers:


Load data

Replace old dataframe API with new storage engine.
Integration test for load.
Remove Loaders and uses readers.

Close this pull request to make new one for the current master.


Polish based on use in secondary sampling and sleuth

notably secondary sampling needs to undo the shared flag
NPE due to forgotten decrement on tag
SpringBootTest timeout

So how about set to 10? ;)
11.5 and that's my final offer!


Implement recurring scan mechanism for package data that does not affect catalog

Some data on NuGet.org can be updated without a corresponding catalog leaf getting added. For example:

Adding, updating, or deleting symbols (.snupkg)
Adding, updating, or legacy readmes

Maybe every week or two every package should be checked for updates in these regards.

Step 1: partition packages into indexable buckets.
This commit does this. All packages on nuget.org will be partitioned into 1 of 1000 buckets in table storage
https://github.com/NuGet/Insights/commit/98cd6b72959760f934371e30435915c57048a206

Step 2: enable catalog scan on a ranges of bucket indexes instead of on timestamps
This commit does this. A table scan on a given range of bucket indexes yield catalog leaf scan entities and they are processable by drivers in much the same way as a catalog scan on a commit timestamp range
https://github.com/NuGet/Insights/commit/48f117469cb009b773ec276516d4b8acdd187aec

Step 3: automatically reprocess ranges of bucket indexes over a given time window
This commit does this.
https://github.com/NuGet/Insights/commit/f13701b03af7d11bf17307f5cbb7a25d756e14bc


test : GetLoadBalancerName method

What this PR does / why we need it:
Which issue this PR fixes(if applicable):
fixes #
Special notes for reviewers:

Release note:

NONE

implement the test to GetLoadBalanceName method and test all logical part of the code including edge cases
i found out the if all the input are empty, it returns kube_service___ ; i think this should be looked into since it failed during test
// i think there should be a check for "kube_service___ and an error should be returned if the important input are empty"

/re-test

Can you do it in a loop with multiple cases like in one of the previous versions of getSecurityGroupName() tests?

Okay I will do that

/retest

Thank you!
/lgtm

/retest


[GNA] GNA device must be closed before opening again

How to create multiple ExecutableNetwork instance that will open GNA device repeatedly?

Hi @fujunwei
Could you please provide additional information on what you are trying to accomplish?
Regards,
Jesus

It can be reproduced with creating second ExecutableNetwork in speech_sample L.649  such as:
 ExecutableNetwork secondeExecutableNet = ie.LoadNetwork(netBuilder.getNetwork(), deviceStr, genericPluginConfig);
There are below error messages when running including the two ExecutableNetwork  instance.
[ INFO ] Loading network files
[ INFO ] Batch size is 1
[ INFO ] Using scale factor of 2175.43 calculated from first utterance.
[ INFO ] Loading model to the device
[ ERROR ] [GNAPlugin] in function void GNADeviceHelper::checkStatus() const: Bad GNA status 14, GNA_INVALIDHANDLE - Error: Device: invalid handle

Another question is how to get file HCLG.fst/words.txt/final.mdl to produce text for the third step in the speech_sample?
3. Run the Kaldi decoder to produce n-best text hypotheses and select most likely text given the WFST (HCLG.fst), vocabulary (words.txt), and TID/PID mapping (final.mdl):

@fujunwei in the current release only one LoadNetwork at a time is supported by the GNA plugin.  This issue is fixed already (in the 2020 branch) but the fix depends on a new version of gna.dll/gna.so that is not yet open source and is not yet publicly available.  Sorry about the missing final.mdl.  I just attached it to this message and will try to get it uploaded to https://download.01.org/openvinotoolkit/models_contrib/speech/kaldi/
Note that it had to be renamed to final_mdl.txt so that github would allow it to be attached.
final_mdl.txt

Thanks so much.

in the current release only one LoadNetwork at a time is supported by the GNA plugin. This issue is fixed already (in the 2020 branch) but the fix depends on a new version of gna.dll/gna.so that is not yet open source and is not yet publicly available.

We will keep an eye on the version, it's helpful for me to let me know when it is publicly available.

Note that it had to be renamed to final_mdl.txt so that github would allow it to be attached.

4. Run the word error rate tool to check accuracy given the vocabulary (words.txt) and reference transcript (test_filt.txt):
Is it need to train the network with Kaldi if i want to generate new ark file to inference for the first step.
1. Prepare a speaker-transformed feature set given the feature transform specified in final.feature_transform and the feature files specified in feats.scp:

@fujunwei, the files from different Kaldi recipes are not compatible with one another.  The best way is to train from scratch using your favorite Kaldi recipe.  Then you will have all the required files.
I compressed all the missing files using 7-zip and then split it into a multi-part zip archive.  You may need to rename the files (e.g., by changing "_001.zip" to ".zip.001") in order for your un-archiver to reconstruct the original archive.
wsj_dnn5b_smbr_001.zip
wsj_dnn5b_smbr_002.zip
wsj_dnn5b_smbr_003.zip
wsj_dnn5b_smbr_004.zip
wsj_dnn5b_smbr_005.zip
wsj_dnn5b_smbr_006.zip
wsj_dnn5b_smbr_007.zip
wsj_dnn5b_smbr_008.zip
wsj_dnn5b_smbr_009.zip

Thanks for your help.


Start Presentation Template

Use the following headings as in the image and create the deck wireframe and template

Presentation Template Complete


Update log4j-over-slf4j, slf4j-api to 1.7.34

Updates

org.slf4j:log4j-over-slf4j
org.slf4j:slf4j-api

from 1.7.28 to 1.7.34.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.slf4j" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #92.


Add syntax highlighting for .tsx file.

Screenshot:

@RyanCavanaugh could you take a look?

Seems good. Once this is merged in I'll try it in my sample projects and see how it looks


ChainId
2415
Chainlist
https://chainlist.org/chain/2415
Contract deployed

[X] I confirm that the contracts are deployed

Version of contracts deployed
v1.3.0
Relevant information
https://explorer.xo-dex.com
deploying "SimulateTxAccessor" (tx: 0xb140f7478bd71c5fbe445a6c0f6630d697541a9962acc4f000ad15e1d0ca3b3a)...: deployed at 0x727a77a074D1E6c4530e814F89E618a3298FC044 with 237871 gas
deploying "GnosisSafeProxyFactory" (tx: 0x28a7e4d963818c64ba79e37d40cc05c6ec9bd115c1af05e6769cae5a4daa1629)...: deployed at 0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC with 867594 gas
deploying "DefaultCallbackHandler" (tx: 0x88f556cb072d229b483a3f9d754816dd16c42b68f3e22b9524b2893c07c32bd0)...: deployed at 0x3d8E605B02032A941Cfe26897Ca94d77a5BC24b3 with 542473 gas
deploying "CompatibilityFallbackHandler" (tx: 0x3b189707f03d9a8a530e6fcd62632f64de32812647c021bf2480cee979ed0b82)...: deployed at 0x017062a1dE2FE6b99BE3d9d37841FeD19F573804 with 1238095 gas
deploying "CreateCall" (tx: 0xb1c1636d9641ff0847cffc1db2be816a1fdba03492e0cbb959ebe80e78f4ff49)...: deployed at 0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d with 294718 gas
deploying "MultiSend" (tx: 0xa0225133eb689634925cd597cb408f55739cb9632c32671f8af2ae268857be54)...: deployed at 0x998739BFdAAdde7C933B942a68053933098f9EDa with 190004 gas
deploying "MultiSendCallOnly" (tx: 0xa99a0635f6d0b6ce0460b0853de78e581fc61b325e772c76a58312a270fdda46)...: deployed at 0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B with 142122 gas
deploying "SignMessageLib" (tx: 0x127e538af5bec8b662d408a429f57d917990ee38e3629b011b00441e07a63100)...: deployed at 0x98FFBBF51bb33A056B08ddf711f289936AafF717 with 262353 gas
deploying "GnosisSafeL2" (tx: 0x5016c4ae86b103006493f96ac53cf1d57f54fa3e639c952dfb7477769a9f32bb)...: deployed at 0xfb1bffC9d739B8D520DaF37dF666da4C687191EA with 5198141 gas
deploying "GnosisSafe" (tx: 0x978c559f57fd54b34498ec902d128ce486c257d522762924566f7453647d3de0)...: deployed at 0x69f4D1788e39c87893C980c06EdF4b7f686e2938 with 5015733 gas

@xo-dex are you going to create a PR to include this addresses?

Closing due to inactivity. Please feel free to create another issue when you're ready


compiling a flask application gives implicit error for crypto module

Error
Error, implicit module 'Crypto.Cipher._Salsa20' expected by 'Crypto.Protocol.KDF' not found.
Nutika version:
0.6.4
Python: 3.7.3 (default, May 11 2019, 00:45:16)
Executable: /usr/bin/python3
OS: Linux
Arch: x86_64

installation method
Pip
pip3 freeze | grep crypto gives:
asn1crypto==0.24.0
cryptography==2.7
pycrypto==2.6.1

command used
python3 -m nuitka --standalone --follow-imports  --show-progress --show-scons run.py
run.py is the entry point of flask application
Error Log
....
Nuitka:INFO:Optimizing module 'OpenSSL.SSL', 61 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for 'OpenSSL.SSL'.
Nuitka:INFO:Optimizing module 'weakref', 61 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'weakref':
Nuitka:INFO:Optimizing module 'main.applications.handlers', 60 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for 'main.applications.handlers'.
Nuitka:INFO:Optimizing module 'Crypto.PublicKey.RSA', 64 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for 'Crypto.PublicKey.RSA'.
Nuitka:INFO:Optimizing module 'Crypto.Cipher.DES', 78 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for 'Crypto.Cipher.DES'.
Nuitka:INFO:Optimizing module 'Crypto.Cipher._DES', 79 more modules to go after that.
Nuitka:INFO:Optimizing module 'Crypto.Cipher.blockalgo', 78 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for 'Crypto.Cipher.blockalgo'.
Nuitka:INFO:Optimizing module 'Crypto.Protocol.KDF', 77 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for 'Crypto.Protocol.KDF'.
Error, implicit module 'Crypto.Cipher._Salsa20' expected by 'Crypto.Protocol.KDF' not found.

How can i fix this, i searched for similar implicit import errors but could find anything specific to  Crypto.Protocol.KDF

i found the issue .it was because of missing pycryptodome package


Add a DomainStr type to validate domains

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
from pydantic import BaseModel, StringConstraints, ValidationError
from typing import Annotated

DomainStr = Annotated[str, StringConstraints(strip_whitespace=True, to_lower=True, min_length=1, max_length=253,
                                             pattern=r"^([a-z0-9-]+(\.[a-z0-9-]+)+)$")]

class MyModel(BaseModel):
  url: DomainStr

MyModel(url="google.com")  # Passes
MyModel(url="x.com")  # Passes
MyModel(url="www.a.co")  # Passes
try:
  MyModel(url="https://google.com")  # Raises ValidationError
except ValidationError:
  print("Raised validation error for http/s scheme")
  pass
try:
  MyModel(url="file:///etc/passwd")  # Raises ValidationError
except ValidationError:
  print("Raised validation error for file scheme")
  pass```

### Affected Components

- [ ] [Compatibility between releases](https://docs.pydantic.dev/changelog/)
- [ ] [Data validation/parsing](https://docs.pydantic.dev/concepts/models/#basic-model-usage)
- [ ] [Data serialization](https://docs.pydantic.dev/concepts/serialization/) - `.model_dump()` and `.model_dump_json()`
- [ ] [JSON Schema](https://docs.pydantic.dev/concepts/json_schema/)
- [ ] [Dataclasses](https://docs.pydantic.dev/concepts/dataclasses/)
- [ ] [Model Config](https://docs.pydantic.dev/concepts/config/)
- [X] [Field Types](https://docs.pydantic.dev/api/types/) - adding or changing a particular data type
- [ ] [Function validation decorator](https://docs.pydantic.dev/concepts/validation_decorator/)
- [ ] [Generic Models](https://docs.pydantic.dev/concepts/models/#generic-models)
- [ ] [Other Model behaviour](https://docs.pydantic.dev/concepts/models/) - `model_construct()`, pickling, private attributes, ORM mode
- [ ] [Plugins](https://docs.pydantic.dev/) and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

I can open a PR for the DomainStr if everything is okay :grin:

Feel free to open against pydantic-extra-types!


Remove Slash from Slash Command

Remove Slash from Slash Command

I cannot understand the issue, please help me with a bit more info 🙂

I found these two slashes in the new chat panel.
Are we talking about these @abeatrix ?

@iswarmondal sorry for the late reply and thanks for your interest in working on this issue.
I don't have enough information on how to proceed this atm, will close this issue for now. If there is something else you're interested in feel free to let me know :)

Closing issue as discussed with Tim in this slack thread: https://sourcegraph.slack.com/archives/C05AGQYD528/p1700173517887689


index error: _Map_base::at

Hi, there is an error when running on dataset from https://www.kaggle.com/datasets/ismailbustany/mlcad-2023-fpga-macro-placement-contest-dataset.
However, there is no error when running Design_181 from this repo.
The following is the error msg.

There is no error when using data from updated one. https://www.kaggle.com/datasets/ismailbustany/updated-mlcad-2023-contest-benchmark

There is no error when using data from updated dataset. (https://www.kaggle.com/datasets/ismailbustany/updated-mlcad-2023-contest-benchmark)


Fix issue 20478

std/traits.d(3936:15)[warn]: Methods 'opCmp', 'toHash', 'opEquals', 'opCast', and/or 'toString' are non-const.
std/traits.d(3945:11)[warn]: Methods 'opCmp', 'toHash', 'opEquals', 'opCast', and/or 'toString' are non-const.

BuildKite runs out of memory testing printf, and Pipelines fails in part because my name is weird. I don't see how the former is affected by this PR, so if it is, please tell me how to fix it.
As for fixing my name, I guess I can do that, but it seems somewhere there's a two- or three-level mojibake factory, and it will probably mess up other people's names as well. (my last name is Kjærås. Translating that from UTF-8 to Windows-1252 you get KjÃ¦rÃ¥s, which is the first version encountered. I'm not entirely sure what the next steps are to get Kjâ€~râ€ s, but since there's three characters where previously there were two, we've probably visited UTF-8 again before trying another )

BuildKite runs out of memory

Looks unrelated to me. In the last weeks we had several such false positives. If anyone has the ability to rerun these tests, it would be nice to see, if this repeats.

and Pipelines fails in part because my name is weird.

As far as I know,  @wilzbach set up the azur pipelines. Maybe he can help here?

See dlang/dmd#10575 for another case like this.

I don't think hasNanComparison is a good name. The right term for this is partial ordering. See e.g. Rust: https://doc.rust-lang.org/std/cmp/trait.PartialOrd.html

Also this as PR is adding a new symbol @atilaneves should approve it, before it can be merged.

BuildKite runs out of memory testing printf, and Pipelines fails in part because my name is weird. I don't see how the former is affected by this PR, so if it is, please tell me how to fix it.

:+1:

As far as I know, @wilzbach set up the azur pipelines. Maybe he can help here?

I don't know much about the Windows details, but I guess this would be a workaround: https://github.com/dlang/dmd/pull/10719.

I read the original issue and it says "it makes sense" to have this but doesn't actually explain why it's needed.

The autotester failures will most likely be fixed by a rebase, however, the rationale, as @atilaneves pointed out is still missing.

Closing due to lack of activity. We still have the bugzilla issue and this PR is linked to it. If anyone can provide a rationale for this change and is willing to take it to the finish line, feel free to reopen.


Batch execution of submessages

Hi,
I found that to batch a sequence of messages atomically from a contract, I had to reintroduce the following pattern:
enum MyContractMsg {
 Batch { messages: Vec<CosmosMsg> }
}

// In your handler
match msg {
   MyContractMsg::Batch { messages } if sender == self_addr =>  Response::new().add_messages(messages)
   ...
}

// Somewhere
Response::new().add_message(SubMsg::reply_on_error(REPLY_ID, wasm_execute(self_address, MyContractMsg::Batch { messages }))

The idea here is to execute N messages and get a single reply if any of them is failing (and also revert any state change made by a message in this sequence). In this case, we re-dispatch a contract message with the sequence and execute them from there, the top level reply_on_error is then executed when the previously mentioned case happen (any message error, everything is reverted). Is there a more idiomatic way to do that? If not, maybe it would be interesting to change SubMsg to accept a list of CosmosMsg? Or perhaps introduce a CosmosMsg::Batch { messages: Vec<CosmosMsg> } variant with a feature flag?

That looks like a nice solution to me.
I don't think we need add an additional message for something that can be achieved this nicely in contract code.

Closing, as your solution is basically the recommended way to do this and allows for the most amount of flexibility.


[HOLD for payment 2024-07-10] [HOLD for payment 2024-07-02] [$250]  Web - Subscription - No offline indicator on subscription page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.82-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
Issue found when executing PR https://github.com/Expensify/App/pull/43370
Action Performed:

Go to https://staging.new.expensify.com/settings/subscription
Go offline

Expected Result:
Offline indicator will appear at the bottom of the page
Actual Result:
Offline indicator does not appear at the bottom of the page
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/65d84216-e194-4ebc-911a-fe448aa81854
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~010b0cd5636fae177d
Upwork Job ID:<PHONE_NUMBER>888037908
Last Price Increase: 2024-06-17
Automatic offers:

akinwale | Reviewer | 102781798
cretadn22 | Contributor | 102781799

Issue OwnerCurrent Issue Owner: @kevinksullivan

We think that this bug might be related to #wave-collect - Release 2

@kevinksullivan  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

Putting into collect as this is focused on subscription page.

@akinwale please review the proposal above when you get a chance. Thanks!

We can move forward with @cretadn22's proposal here.
🎀👀🎀 C+ reviewed.

Sounds good, assigning @cretadn22

@akinwale please complete the checklist above

Paid @cretadn22 , waiting on checklist to pay @akinwale

[x]  [@akinwale] The PR that introduced the bug has been identified. Link to the PR:
[x]  [@akinwale] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[x]  [@akinwale] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:

Not a regression.

[x]  [@akinwale] Determine if we should create a regression test for this bug.
[x]  [@akinwale] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

Regression Test Steps

Launch Expensify
Navigate to the subscriptions settings screen - https://staging.new.expensify.com/settings/subscription
Go offline
Verify that the offline indicator is displayed at the bottom of the page

Do we agree 👍 or 👎?

Paid @cretadn22 , waiting on checklist to pay @akinwale

@kevinksullivan Done!

waiting on checklist, asked about it here
https://expensify.slack.com/archives/C02NK2DQWUX/p1721067253383449?thread_ts=1720555683.892599&cid=C02NK2DQWUX

waiting on checklist, asked about it here
https://expensify.slack.com/archives/C02NK2DQWUX/p1721067253383449?thread_ts=1720555683.892599&cid=C02NK2DQWUX

Completed the checklist here: https://github.com/Expensify/App/issues/43558#issuecomment-2206347683

All set


[🐞] Route is broken with deep nesting

Which component is affected?
Qwik City (routing)
Describe the bug
Hi,
When using [...lang] catchall route at the root of the routing, deeply nested routes are broken if lang is not provided.
src/routes/[...lang]/
    │
    ├── (app)/
    │   ├── index.tsx
    │   └── layout.tsx
    │
    ├── some/
    │   └── deep/
    │       └── nested/
    │           ├── [id]/
    │           │   └── index.tsx (broken without "lang")
    │           └── index.tsx
    │
    └── working/
        └── nesting/
            └── [id]/
                └── index.tsx

/some/deep/nested/some_id - broken
/some_lang/some/deep/nested/some_id - OK
/some/deep/nested - OK
/some_lang/some/deep/nested - OK
/working/nesting/some_id - OK
/some_lang/working/nesting/some_id - OK
Catchall route doesn't seem to be a great fit as an optional route, perhaps adding something like [?lang] could simplify routing logic with deep nesting to avoid this issue?
Reproduction
https://stackblitz.com/edit/qwik-starter-q65fv9?file=src%2Froutes%2F[...lang]%2F(app)%2Findex.tsx
Steps to reproduce
No response
System Info
<EMAIL_ADDRESS>"^1.5.4",
<EMAIL_ADDRESS>"^1.5.4",

Additional Information
No response

may I pick this up ?

may I pick this up ?

Go for it :+1: Thanks

maybe it can directly close this Issue?

oh yeah this was fixed in 1.5.5


Feature Request -> Language selection

A possibility to show the names of the maps and areas in other languages.

+++

Any follow up to this request? It would be a good feature


Import previous email addresses into mailchimp

Are we still going to do this @jdearie ?

@jdearie bueller, bueller, bueller

Need to get the list from @bendygirl
There are 135 names in the list now, but i believe those are ppl that signed up directly on the drupalgovcon.org site.

they signed up when we had the splash page up.
On Wed, Apr 1, 2015 at 9:41 AM, Jessica Dearie<EMAIL_ADDRESS>wrote:

Need to get the list from @bendygirl https://github.com/bendygirl
There are 135 names in the list now, but i believe those are ppl that
signed up directly on the drupalgovcon.org site.
—
Reply to this email directly or view it on GitHub
https://github.com/Drupal4Gov/Drupal-GovCon-2015/issues/7#issuecomment-88484656
.

--
Kirsten
http://uniongal.blogspot.com
Join Uniongal on Reddit http://www.reddit.com/r/Uniongal/

@bendygirl do you have the list of users we provided to the coffee sponsor last year? That would be a source of good email accounts without too many spam.

I'll look for it.
On Wed, Apr 1, 2015 at 9:55 AM, Tim Wood<EMAIL_ADDRESS>wrote:

@bendygirl https://github.com/bendygirl do you have the list of users
we provided to the coffee sponsor last year? That would be a source of good
email accounts without too many spam.
—
Reply to this email directly or view it on GitHub
https://github.com/Drupal4Gov/Drupal-GovCon-2015/issues/7#issuecomment-88488739
.

--
Kirsten
http://uniongal.blogspot.com
Join Uniongal on Reddit http://www.reddit.com/r/Uniongal/

I've imported last year's names into the Drupal GovCon list.  I also created some groups within the list (attendee,  volunteer, speaker, organizer).  The groups should allow us to send more targeted messages.

Awesome!
On Tue, Apr 7, 2015 at 8:18 AM, Jessica Dearie<EMAIL_ADDRESS>wrote:

I've imported last year's names into the Drupal GovCon list. I also
created some groups within the list (attendee, volunteer, speaker,
organizer). The groups should allow us to send more targeted messages.
—
Reply to this email directly or view it on GitHub
https://github.com/Drupal4Gov/Drupal-GovCon-2015/issues/7#issuecomment-90531388
.


"env: node\r: No such file or directory"

I get this error when attempting to run "htmlhint" from the command line. I installed with "npm install htmlhint -g". Any ideas?

Can you please publish an updated version to npm with this fix? This issue is still affecting new installs.

A fix pushed to npm would be much appreciated, as I'm still seeing this bug. In the meantime, referencing the executable directly works:
node /usr/local/bin/htmlhint index.html

+1


Possible Bug: Keyboard Override

Noticed that system keyboards does not fully override phone keyboard. some keys are linked to gestures on the phone.

Sorry, I don't understand the issue. What keys are linked to gestures?

My phone (Innjoo Halo Plus) has smart gesutures where if a specific character is drawn it performs a command. I noticed that if i press that specified character the command is performed despite the screen am on. Turning off the feautre does not solve the problem

Scrcpy just injects events, I don't know how it may interact with a specific "smart gestures". Sorry.


Invalid field name "typelib"

Hi folks,
Compiled some new rules and updated to the standard - however, one rule imports the dotnet module - which the YARA validator does not seem to like as I'm getting an error compiling with an invalid field name of typelib.
In the yara_file_processor.py I see several modules that are not defined - are they not supported natively in AL? Or is there another reason to not have these included?
Thanks!

I think this may come down to how YARA & yara-python was installed on the host as I think certain modules have to be enabled in order to take effect.
According to the documention, dotnet isn't enabled by default:
https://yara.readthedocs.io/en/stable/gettingstarted.html
dotnet should be enabled in the Assemblyline service since it compiles YARA with the flags to enable support:
https://github.com/CybercentreCanada/assemblyline-service-yara/blob/d92c59e9f1663b23939e482e9551e88dacc9bd31/yara_/Dockerfile#L24

Thanks @cccs-rs - will look into it! 😃


#15: As an Operator, I want to see alerts belong the specific camera shows up in the correct place

Display alert of corresponding camera; add send and ignore alert features


Artifacts logged with the same name but of different type crash wandb server

This has bit me several times. I have some generic artifact name, foo-bert, I've logged a foo-bert of type tokenizer. If I log a type model foo-bert the wandb server dies and my jupyter notebook is irrecoverable and must be restarted.

Hey @timothyjlaurent , thanks for reporting.
@annirudh can you please take a look?

I'm able to reproduce the issue. I can confirm that the notebook hangs once the mismatch error is thrown, and that the only way to proceed is to restart the kernel.
Given the severity of the bug, we're prioritizing a fix for this issue.

This issue has been fixed as of Nov 2020


Add DCAPE to NSE placefile output

This PR works in DCAPE as an addition to the NSE placefiles (and closes #53).
Because this involved changes to the meso lifting code/functions, running python cache_nse_funcs.py from within scripts/meso should be done again to cache the new cpython files for numba.

Thanks Lee. Was able to cache the new new files. 138.7s -> 15.4s loop difference!


how to add link of vue-easy-form to awesomevue list

docs: https://chengaohe45.github.io/vue-easy-form-docs/dist/
github: https://github.com/chengaohe45/vue-easy-form
demo: https://chengaohe45.github.io/vue-easy-form-docs/demo/#/

@chengaohe45 Follow the rules CONTRIBUTING


[not a bug?] ASM bug: Unauthorized type access. Reason: User does not have permissions to read an instance of type MediaFormat

Environment Details

Other environment details: https://dev-com-17.accdemo.b2c.ydev.hybris.com:9002/

Steps to Reproduce

Enable ASM
Login as agent
Emulate a customer (for example<EMAIL_ADDRESS>
Observed Results
A certain global message error appears saying:
Unauthorized type access. Reason: User does not have permissions to read an instance of type MediaFormat

ASM e2e tests are crashing because of this.

Issue is caused by sample data.

The clean solution to this is to use a commerce suite version 1905.5+ on dev17 (which has the sample data that will fix this issue).
We can also add the data via the console, but it will be lost each time we initialize, which isn't really viable on the long run.

Any idea if this will fix https://github.com/SAP/cloud-commerce-spartacus-storefront/issues/5819?

As mentioned in the comment above, this is not a bug with Spartacus, but rather some permissions missing on the backend.
@CarlEricLavoie see more explanation in #5819


fix(WorkflowInstance/FrontendActions): Changed unexecutable actions on the frontend to be hidden so the behaviour is more consistent with the backend.

fix(WorkflowInstance/FrontendActions): Changed unexecutable actions on the frontend to be hidden so the behaviour is more consistent with the backend.

Can this be made configurable (with the default being the 'old' behaviour) to be backwards compatible?


Cannot read property '1' of null

via slack:
i’m getting an error UnhandledPromiseRejectionWarning: TypeError: Cannot read property '1' of null at main (../upgrade.js:322::4) when running elm-upgrade in my recently published package for 0.18

I think this is the TODO: Error if packageName doesn't parse comment


Datashader resolution when exporting Jupyter notebook to HTML

Hello,
I want to export datashader plots from Jupyter notebook into HTML using Jupyter's File->Export functionality. Firstly, i don't expect to have dynamic datashading, i know i need a Bokeh server for that. What i want is a static image rendered from a large number of data points, with all the benefits of aggregation and rasterization that datashader provides. However, when i do this the image that i get in the HTML file has a very low resolution. Is there any way to get this HTML static image to have a higher resolution?
Thank you.

When I do e.g. this:
e = datashade(hv.Scatter(np.random.randn(100000,2)), dynamic=False)
hv.save(e, 'test.html')

I get the same resolution in the static html that I would get in a live Python kernel. If you want a higher resolution, why use datashader? Or do you mean a smoother datashaded image?

The datashade and rasterize operations have a default height and width that is used for an initial call, and then in a live kernel they are immediately updated to match the screen resolution.  A static export will use these initial values, and if you want higher resolution in them, just add specific height and width arguments to datashade or rasterize. You can also turn dynamic=False as @poplarShift  suggests so that you'll get the same resolution in the live and exported versions, to let you check the results ahead of time.  Note that you can supply much higher resolutions in this approach than would normally be useful, so that the exported version will allow zooming up to a point, which can often fully substitute for having a live Python server.

@jbednar @poplarShift Thanks, that's exactly what i was looking for. Closing this.

This would be really useful to have in the documentation!

A PR to achieve that would be very welcome!


Fix Integrity error when deleting and creating a voucher with same name

Fixes #3279
Deleting a voucher didn't delete the referenced offers so when deleting a voucher and
creating a new one with the same name, there was a unique name error because the name of an offer is "Offer for voucher [voucher name]". This fix deletes all referenced offers when
deleting a voucher.

Hi @solarissmoke can you please take a look and let me know if I should change anything else?
Thanks


Flow (v1.1.0)

Yet another massive changeset.
This introduces the Flow system.
Flow
The Flow System
Flow is a layout system which is intended to capture the rules which have surfaced in various UX mockups into tested, repeatable code. With Flow, each UI element is annotated with an optional label and help text component. Vertical spacing is kept consistent on every row. Horizontal alignment has sane defaults and a lot of options for fine-tuning. Flow is primarily designed for use inside forms to layout inputs, but it can be used anywhere you need it.
Recognizing a Flow.Item
Flow Items have a distinctive layout and appearance. When you see one in a design mockup, use the Flow system.

Flow Items have a label, help text, and content which has a fixed height. Sometimes they might be missing a label, or help text, or both. As a rule of thumb, though, anything which is on the same horizontal level as another Flow Item should also be a Flow Item.
Flow Recipes
Simple Row

<Flow>
  <Flow.Item label="User ID:" helpText={userIdHelpText}>
    <Input value={userId} disabled />
  </Flow.Item>
  <Flow.Item label="API Token and Secret:" helpText={apiHelpText}>
    <Button>Show Token and Secret</Button>
  </Flow.Item>
</Flow>

Precise Field Alignment
Sometimes you need to use nesting to achieve a precise alignment of various rows of fields. Particularly, if you want to break one column down into two columns on a certain row, you need to use nesting to line them up prefectly.

(Item contents omitted for brevity)
<Flow>
  <Flow.Row>
    <Flow.Item label="Company" />
    <Flow.Item label="Address" />
  </Flow.Row>
  <Flow.Row>
    <Flow.Item label="City" />
    <Flow.Row>
      <Flow.Item label="State" />
      <Flow.Item label="Zip" />
    </Flow.Row>
  </Flow.Row>
</Flow>

Redux Form
Flow includes built-in Redux Form fields for all our Input types. Reference them from Flow.fields. These components will take care of all transformations necessary for Redux Form Field usage.

// in a redux-form HOC
<Form onSubmit={this.props.handleSubmit}>
  <Flow>
    <Flow.Row>
      <Field
        name="name"
        label="Application name:"
        required
        component={Flow.fields.Input}
      />
      <Field
        name="id"
        label="Application ID:"
        disabled
        placeholder="We create this for you"
        component={Flow.fields.Input}
      />
    </Flow.Row>
    <Flow.Row>
      <Field
        name="callbackRequestMethod"
        label="Callback request method:"
        required
        options={['POST', 'GET']}
        component={Flow.fields.RadioGroup}
      />
      <Field
        name="type"
        label="Application type:"
        required
        options={['MESSAGING', 'VOICE', 'BOTH']}
        component={Flow.fields.RadioGroup}
      />
    </Flow.Row>
  </Flow>
</Form>

Form Controls
Usually in a form, submit buttons and other controls lay out differently. There are a variety of possibilities, but all are possible with Flow! Here are some examples:

<Flow>
  <Flow.Row alignment="left">
    <Flow.Item>
      <Button>Update</Button>
    </Flow.Item>
    <Flow.Item>
      <Anchor>Cancel</Anchor>
    </Flow.Item>
  </Flow.Row>
</Flow>

<Flow>
  <Flow.Row>
    <Flow.Item alignment="left">
      <Anchor>Show optional fields</Anchor>
    </Flow.Item>
    <Flow.Row alignment="right">
      <Flow.Item>
        <Anchor>Cancel</Anchor>
      </Flow.Item>
      <Flow.Item>
        <Button disabled>Create</Button>
      </Flow.Item>
    </Flow.Row>
  </Flow.Row>
</Flow>

To reviewers: no, I don't necessarily think you need to read all 6k lines. Most of it is docs. Please be sure to read Flow.js, FlowRow.js, FlowItem.js, and Flow/fields/flowField.js. These are the core of the code. Also check out changes to Select.js. There are new unit tests for components in this PR!


Flag to use bracket property access notation

I would like to have a flag which would enable property access generating using the bracket notation when using destructuring/structuring assignment.
Whole purpose of this is to be able to use google closure compiler's advanced compilation mode, which replaces names of all properties accessed with a dot, breaks incoming JSON in my case.
http://code.google.com/intl/cs/closure/compiler/docs/api-tutorial3.html#better
Simple dot access like this.something will remain unchanged, the flag will only affect assignments.
Example in coffeescript:
input = this['input']
{aaa,bbb} = input
alert(aaa)

this['output'] = {bbb,aaa}

Generated javascript:
var aaa, bbb, input;

input = this['input'];

aaa = input.aaa, bbb = input.bbb;

alert(aaa);

this['output'] = {
  bbb: bbb,
  aaa: aaa
};

Generated javascript using google closure advanced mode:
var a, b, c;
c = this.input;
a = c.a;
b = c.b;
alert(a);
this.output = {b:b, a:a};

a is no longer a value from this.input.aaa
Generated javascript using flag to use the bracket property access notation:
var aaa, bbb, input;

input = this['input'];

aaa = input['aaa'], bbb = input['bbb'];

alert(aaa);

this['output'] = {
  'bbb': bbb,
  'aaa': aaa
};

Generated javascript using google closure advanced mode:
var a, b, c;
c = this.input;
a = c.aaa;
b = c.bbb;
alert(a);
this.output = {bbb:b, aaa:a};

this.output.aaa now should be equal to this.input.aaa

-1: Just don't use destructuring assignment if you're in some way artificially limited. It's only a matter of time before your minifier figures out that obj["identifierName"] is exactly the same as obj.identifierName, and then what will you ask of us?

Minifier already knows the difference, it will only rename dot-syntax properties.
I don't want to rewrite or change my code style just because it will be minified by google closure compiler's advanced mode, I could just use the simple mode.
Renaming only affects code which works with input like JSON where keys must remain the same, most of it is destructuring assignment so I have figured out that this change could make advanced mode work.

I'm amazed that Closure Compiler does this. What's the point? The output is smaller, yes, but it's clearly not equivalent to the code that was put in!
I agree with Michael that this isn't a problem the CoffeeScript compiler should be concerned about. If you're adamant about using advanced mode, I'd suggest using a JS postprocessor to convert your dot-notation property accesses to bracket-notation prior to minification. Alternatively, look at a less finicky minifier like UglifyJS.


Viewport's render target update mode "When Visible" doesn't work

Godot version
4.0 beta 1 mono
System information
Windows 10
Issue description
Viewport's render target update mode "When Visible" doesn't work at all at as it works in 3.5
Steps to reproduce
Just create viewport and try render it to some texture.
Minimal reproduction project
No response

Probably a duplicate of #55471.

Given the lack of detailed info in here, it indeed seems like a duplicate of #55471. Hence closing.
@rarsp If you have some relevant info not mentioned in #55471, please add a comment in there. If you think you're facing a different/separate issue than #55471, please provide some more explanation/details in here and in such case this issue could be reopened.


Issuing credits to Guy

Issue 1500 credits to @41hulk.

 Follow up
On Thursday, 14-Mar-24 22:41:24 UTC by Gov4Git dev
Issued 1500 credits to member @41hulk.

Thank you


Add general advice to proof the results

Maybe add a general note on the top of the page or near the output to make users aware of proofing the results?

Parking lane tagging is complex and difficult and especially was in the past. Tagging mistakes, inconsistencies or missinterpretations were common in particular when tagging parking restrictions. Please check the results for plausibility and whether they are up-to-date!

Automated Edits code of conduct (see #6) could be linked in such a notice.

Thanks! Added in 0.0.8; UI will change a bit soon, though.


Documentation does not specify where to place the "Server-side rendering"

Hello, first at all thank you for the Document manager. Just more like a suggestion, and a question as well, also for people that never had to work with metas in the past like me, might be not aware where  and how to configure the ssr part. It's not specify, I also checked the repository looking for this part. In general will be cool to have a tutorial for this plugin because I noticed there not much information around on the web, and the places that I found where just a copy and paste from the read me file. :)

Anyone found a way to do this yet?

I'm also curious

there's already a simple example: https://github.com/vueuse/head#server-side-rendering
call renderHeadToString after renderToString

Issue seems stale, going to close.
Please re-open if you're still stuck and would like some help.


refactor: simplify handling of reused event sources

DependentResources that provide an EventSource should implement
EventSourceAware. If they want to reuse an already created event source
instead of providing their own, they need to select the appropriate
event source identified by the name specified by the useEventSourceNamed
method.

@metacosm would be good to create a separate PR on next just to see if integration test passing,
( change the CI later to run integration tests on all targets? )

Let's merge https://github.com/java-operator-sdk/java-operator-sdk/pull/1479 with the understanding that #1504 and this PR need to be addressed after.

Thinking about this, what if we just replace the doNotProvideEventSource, with useEventSourceByName in dependent resource? would not be little better?

Thinking about this, what if we just replace the doNotProvideEventSource, with useEventSourceByName in dependent resource? would not be little better?
regarding the comments I made, will create a PR for that, how it would look like.

Yes, was thinking about removing EventSourceAware altogether and put everything on DependentResource…


Does not respect html handed to text attribute.

I'd love to be able to include an icon inside the link that ember-linkify creates for me. The problem is that many popular libraries use an <i></i> tag to denote icons.  If this add-on were a component it could allow the user to specify the <a> tag's body.
I guess another suggestion would be to allow html in the text argument of the helper.

Thanks for creating this issue! The current behavior is currently by design, as it assumes that user generated text might be passed to it. I'd like to keep this as the default so it can safely handle user generated content.
However, we could add in the ability to set anunsafe option which will render html rather than escape it (for contexts where internal text is passed and we don't have to worry about XSS).
Thoughts?

After using and abusing this helper earlier this afternoon that's what I came to realize about the intended purpose.  Between looking at the source and looking through what @kevva did over at kevva/url-regex I was able to put together something together.  It probably belongs in the serializer/model but that's another story.  I'll be back to use this add-on when I have user-supplied content, tweets or similar!
I'm closing the issue but if someone comes back to +1 later maybe they'll see someone else had the same idea and thought better than to icky a good project up with unsafe html.  Cheers.


MedicationStatement not return

This GET request https://data.developer.nhs.uk/ccri-fhir/STU3/MedicationStatement?patient=1010&_format=json will return the payload of the MedicationStatement where the patient logical id is 1010. However, this GET request https://data.developer.nhs.uk/ccri-fhir/STU3/Patient?_id=1010&_format=json&_revinclude=MedicationStatement:patient returns the patient with the logical id of 1010 but the MedicationStatement payload does not return.

Suggest support for this is removed as it doesn't make sense operationally without parameters. (If current medication is required it should really be a FHIR operation)
It is not recommended in Care Connect Query API, so no issue there.

I think it would be useful to find relating resources for a specific patient. The _revinclude operation in the above statement works fine on other HAPI servers.


Conceptual Questions regarding S4/HiPPO

Dear authors/contributors,
First of all, thank you so much for publishing such a great work. I think it is really inspirational and we will see this model (or its variants) being deployed to solve variety of real-world problems in the next years.
I tried to go through your most recent papers starting from HiPPO, and I would like to kindly ask conceptual questions to deepen my understanding. As I couldn't find different sources of information other than your papers (and a couple of your recorded talks on Youtube and Annotated S4), I think this could be an appropriate place to ask those questions. If you prefer any other discussion platform, please let me know.
PS: These questions turned out to be a bit longer than I intended, but I don't expect you to clarify them all at once :)

A matrix <—> Polynomial basis : From my understanding about your HiPPO paper, you derive the A matrix for various measures and polynomial bases. Therefore, for a given A (and hence given polynomial basis), we know how to reconstruct the original signal u(t) based on the state/coefficients x(t). My question is: What does the model learn when we initialize A as HiPPO but train it over time (i.e. when A is not fixed)? In other words, how does the polynomial basis change in that sense and how does the model have the ability to reconstruct the original signal u(t) with varying A?
Learning the step size: In annotated S4, the step size is another parameter that’s learned through the training. (I am not sure if you do the same as I couldn't go over your code yet)

May I ask the intuition for why we learn this step size and what is its potential effect(s)? For instance, if we use a measure that is exponentially decaying over time, can we say that larger step size leads to prioritizing more recent history and smaller step size is better for giving more weight to a distant past (because its weight will decay smaller)?
If we work on a signal that has a natural sense of time (i.e. ECG signal) should we still make step size trainable (in first and all the intermediate layers) since the actual formulation (to my understanding) has no notion of the units of step size (e.g. seconds or days etc.)?

Irregular sampling of time series. I am convinced by the continuous-time view of S4 that it can naturally handle the irregularly-sampled time series of an underlying continuous dynamics. However, I am confused by the discretization step where we leverage convolution for training and recurrence for fast inference. If I have an irregular time series, how can I train S4?

Small comment: I think if the training data is regularly sampled, we can still handle irregular time series in real-time inference based on the bilinear transform of A_bar, B_bar etc. into their continuous equivalent. Is that true?

The effect of "deep" S4 layers. In Figure 2 of your paper “Efficiently Modeling Long Sequences with Structured State Spaces”, we see the visualization of the kernels for Path-X task for the first and last layers. We see that (mostly) first layers are for local context vs. last layers are for more global context. Why is it the case if HiPPO offers continuous-time memorization? In other words, why can’t it memorize the distant past in the first layers and why does it need stacking more layers to aggregate more context from the past? I assume it is related to a chosen measure and/or the step size itself, but I am really curious about your opinion.

For deep CNN-related models, we have the explanation that the receptive field grows with stacking more and more layers. (Field grows exponentially with dilated convolutions like TCN, and linearly for some other types). Is there any analogy or similar explanation for S4?

It is a great pleasure for me to know more about your exciting work. Many thanks in advance. I would be also happy to know if there are other resources that you can suggest.

I apologize for replying so late; this is an appropriate place to ask questions, but I spent several weeks/months releasing the new preprints and the corresponding V3 of this codebase. The preprints hopefully provide some new technical content to help with such conceptual questions

In general, the way I think about HIPPO is that it defines a set of basis functions $e^{tA}B$ (note that this is a length-N vector of functions). Depending on properties of these basis functions, they may allow reconstructing the original signal. Note that these basis functions are not necessarily polynomials, and that in general they may not allow reconstruction. It's unclear what exactly the model learns after training, but training seems to empirically help even if the resulting system of bases isn't orthogonal anymore. HTTYH explains some of these interpretations, derives the basis functions for the original S4 matrix (HiPPO-LegS). For example it shows how HiPPO produces "orthogonal SSMs" that allow "online function reconstruction", but general A/B matrices may not.
We do learn the step size in training. This was first mentioned in LSSL (the predecessor to S4) as a way to improve performance.

HTTYH defines the interpretation of step size more formally, and your intuition is exactly correct: larger step size prioritizes recent history while smaller step size weights further back. HTTYH defines a notion of "timescale" which is inversely proportional to the step size.
I view the step size as something "intrinsic to the model" instead of the data. What I mean is that it affects the context length of the model, and should be set based on how much context you want to capture. (Of course these are related; if the data was discretized at a 100Hz you may want the model to have a context length of 200, whereas if the data was sampled at 10000Hz you might need a much longer context, so the step size might end up being proportional to the data's natural sampling rate.) I usually initialize the step size based on any intuitions about the data (e.g. short sequences should have larger $\Delta$), and then train it, i.e. let the model learn its desired context length.

The convolutional form of S4 can't handle irregular sampling because convolutions are "linear time-invariant" systems. It is possible to calculate it reasonably efficiently purely in recurrent mode (see ongoing efforts like https://github.com/lindermanlab/S5), which can be extended to handle the irregular sampling case

Yes, at inference time you can still handle irregular sampling by choosing a different $\Delta$ per time step.
Also, note in practice many "irregularly sampled" time series arise from "missing values" time series; in other words time series that were regularly sampled but with missing values. Oftentimes, you can handle these cases simply by using uniformly-sampled inputs with a mask indicating missing values.

I'm not quite sure about the interpretation of the learned layers to be honest. I think it's still intuitively reasonable that the first layers learn shorter-context features. One explanation perhaps is that although a single HiPPO layer can learn long dependencies, it's still a limited form of dependencies (e.g. SSMs are linear) and perhaps a single layer isn't useful. So the model only learns these simple features with more limited context, and as they get progressively more complex through the network, it becomes useful to learn longer dependencies on them.

Overall, these are great questions and your intuitions are quite accurate. Sorry again for taking so long to respond, and hopefully the recent HTTYH preprint helps address a lot of these. Feel free to ask more questions here; I often get questions by email but I think having publicly available responses might be useful to the community.

Dear @albertfgu , thank you so much for all your time and effort for clarifying the points I raised!
Overall, you are definitely right that your most-recent HTTYH paper addresses many of these points. Your preprint arrived just two weeks after my post (a great coincidence :) ), and it shows how you are carefully eliminating the potential gaps in your work and taking the next steps accordingly. This makes your work more and more user-friendly with each step, which eventually broadens the applicability of this great work.
It is a great pleasure for me to exchange ideas with the first author of such an inspirational paper! I wish all the success for you and your colleagues.
I will be closing the issue now, and will be posting the new questions (if any) under a new thread. Many thanks!


Add index.html

adding the index.html file per instructions of  github learning lab

adding the index.html file per instructions of github learning lab


The file I sent does not have a name

What version of gotd are you using?
$ go list -m github.com/gotd/td
github.com/gotd/td v0.83.0

What Go version and environment are you using?
$ go version
go version go1.19.6 linux/amd64

I uploaded a file to send to the chat and the file does not have a display name

My code
res, err = tc.Sender.To(toPeer).Upload(message.FromBytes("name.xlsx", fileContent.Body)).File(tc.ctx)

I would like to know if the upload method is incorrect, thanks

message.UploadedDocument(f).Filename("name.xlsx").MIME(fileContent.MimeType)


How to disable or remove?

I have installed code completion recently but unfortunately, it slows down my computer to such a level that I have to wait multiple seconds to enter code. Apparently, my modest i3 processor is not sufficient to support this. I have already removed the user preferences but I can't modify the system defaults. I couldn't find any instructions how to disable or remove code completion. What is an easy/safe way for this?

Have a look at the rest of the issue template: completion performance is almost certainly a feature of the underlying language server, and likely can be configured using that language servers' preferred method (either through client configuration or as a standalone file).

If you mean to disable code completion but keep all other features:

Settings → Advanced Settings Editor → Code Completion → add disable: true

If you want to keep the completer themes but only disable LSP completions themselves add disableCompletionsFrom: ["LSP"].
If you mean to remove the extension: you can remove it the same way you installed it; this will vary depending on whether you used pip, conda, npm, etc. We cannot advise on it without more details.
PS. If something in particular is slow we always look forward to constructive feedback. That would usually involve a bug report template filled in with full version information and reproduction information (but as mentioned above, the slowness may be coming from the language server of choice in which case changing language server may be the only solution).

Thanks for the comments and guidance. I added disable: true to the user preferences and it seems to speed up, but not sure if this is sufficient. My language server is python-lsp-server 1.2.4. Unfortunately, I forgot how I installed it (pip3 or conda), I use both.


Scrollbar & Extension Minor Bug

VS Code Version: 1.68
OS Version: Windows 10

There is a bug if we Reduce the VS Code's Window Size.
Video:-
https://user-images.githubusercontent.com/88429776/174990595-1424d0ad-034a-4296-80c2-8e8205c1402e.mp4

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.68.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

My VS Code Version is 1.68.1 Only it's not older version

When this bug will be solved???

Do you want to work on it?

Ok, It means no attention is given on a Real Bug

@microsoft @mjbvz @sbatten @sandy081 Work on this bug

@Samyak-Bumb Cut it out. Bugging devs won't fix the bug or get it prioritized. If it matters that much to you, look into fixing it yourself
I'm locking this issue because you clearly haven't gotten the message about this

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!


Convert linting standards to markdown

Task

Make linting guidelines more readable with a markdown doc

Deliverables

Markdown file to go in standards folder

Size Estimation: Medium (2-4 hours)

Linting standards in folder. Complete.


Openebs PV not taking snapshot

What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.)
Creating a backup with velero of my elasticsearch cluster. That currently uses openebs cstor as storage provider. Openebs official documentation mentions velero to be used for backing up data. But it doesn't work, backup status says complete but is empty. Currently using minio that is hooked up to my NAS with a nfs pvc and setting up minio as a gateway for my nas. Logs state:
time="2019-04-10T14:29:36Z" level=info msg="PersistentVolume is not a supported volume type for snapshots, skipping." backup=velero/elasticsearch-10-4-2019-15-42 group=v1 groupResource=pods logSource="pkg/backup/item_backupper.go:436" name=pvc-d5c9beba-5ad3-11e9-be2c-8030e09cb251 namespace=qooqie-testing-resources persistentVolume=pvc-d5c9beba-5ad3-11e9-be2c-8030e09cb251
What did you expect to happen:
Full backup of all resources that have label app=elasticsearch
The output of the following commands will help us better understand what's going on:
(Pasting long output into a GitHub gist or other pastebin is fine.)

kubectl logs deployment/velero -n velero
velero backup describe <backupname> or kubectl get backup/<backupname> -n velero -o yaml
velero backup logs <backupname>
velero restore describe <restorename> or kubectl get restore/<restorename> -n velero -o yaml
velero restore logs <restorename>

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:

Velero version (use velero version):
Kubernetes version (use kubectl version):
Kubernetes installer & version:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):

Hi @davidq2q.
Reading https://docs.openebs.io/docs/next/backup.html, I think their steps are incomplete.
At the bottom, it says

The above backup and restore procedure is done using Restic, where the entire data is copied and restored in a bulk manner. More efficient backup and restore possible through incremental data snapshots using the OpenEBS ARK storage plugin which is planned for OpenEBS 0.9 release

However, they miss annotating the pod with the PV names. See our restic docs for how to do that.

Note that OpenEBS has also recently published a Velero plugin for getting native snapshots of OpenEBS volumes - see https://github.com/openebs/velero-plugin.
I'm closing this issue for now due to prior comments + inactivity, but feel free to reopen as needed!


 IF YOU DO NOT FOLLOW THE FORMAT OR MAKE A GENERIC TOKEN REQUEST YOUR ISSUE WILL BE DELETED WITHOUT COMMENT
YOUR JUSTLIST MUST FOLLOW THE JSON SPECIFICATION
https://github.com/justswaporg/justlists/blob/main/example.justlists.ts
Checklist

[x] I understand that this is not the place to request a token listing.
[x] I have tested that my JustList is compatible by pasting the URL into the add a list UI at justswap.org.
[x] I understand that filing an issue or adding liquidity does not guarantee addition to the justlists website.

Please provide the following information for your token.
JustList URL must be HTTPS.
JustList URL: https://btctw.com
JustList Name: USTW
Link to the official homepage of the JustList manager:

Please submit the correct information, invalid information will cause the issue to close


feat: reuse report results.

Description
The audit scanner now check if there is a policy evaluation result in the previous scan report for the same policy and resource version tuple. If there is, the result is copy into the new report.
Fix #44

I think we should use the ResourceRevision (see comment below), but we should not store that inside of the Properties. Rather, we should use the dedicated field inside of the ObjectReference struct: https://pkg.go.dev/k8s.io/api/core/v1#ObjectReference

@flavio, I gree that an ObjectReference to the policy is better. But where to store it? The PolicyReportResult CRD has only a policy field name. The resources field aims to store references to the checked resources. We can customize the usage of this field and add the ObjectReference to the policy. But then we will diverge from the original goal of the field. That's the reason I've suggested to create a proposal to the wg-policy  to add an optional field to keep the policy's ObjectReference.
Another workaround is to store all the ObjectReference fields individually in the properties  PolicyReportResult CRD field and build the ObjectReference object in runtime. Something similar to what we already did for the resourceVersion

Let's try to recap the situation.
We need to figure out if we can reuse an old evaluation result. The evaluation result has the following data:

the object being inspected
the policy that evaluated it
the timestamp that describes when the evaluation took place

From my understanding, we cannot use the evaluation timestamp because we cannot find a "trusted timestamp" that indicates when neither the policy nor the object being inspected was changed.
Because of that, the PR proposes to use the revision counter of the two resources (the policy and the object being inspected).
Due to the nature of the PolicyReportResult CR, we could use the following approach:

Store the revision of the object being inspected inside of the (Cluster)PolicyReport.scope.resourceRevision
Store the revision of the policy inside of a custom property defined inside of PolicyReportResult.properties. I don't see any issue with introducing this new property, afterall the properties field is a free-form dictionary

I guess that should be enough, isn't it?

As discussed during the daily, let's store the UID of the policy + its revision number inside of the policy report properties. Each one of them is going to be stored inside of its own dedicated property

As discussed during the daily, let's store the UID of the policy + its revision number inside of the policy report properties. Each one of them is going to be stored inside of its own dedicated property

Done

@jvanz please, don't force push again.  Luckily I still had it around and I was able to apply it without conflicts.
I you want to do more changes do a regular pull on your branch, it should work

@viccuad, as we discussed in a call last week, we will keep using the kubernetes go-client cache. Therefore, I'll keep the changes removing our in memory cache and mark your comments around that as resolved.
Besides that, I've made the other changes that you suggested.
Considering that, bigger changes are approved and you will not be able to review this PR soon, I'll merge it after CI passes. If you see something else that need to be changed, please, let me know. I'll be happy fixing them.


update workflows, add justfile for updating python versions

Update workflows to fix redundant python installations
Fix error in publishing workflow
add a justfile for automatic python upgrade

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.90%. Comparing base (3484f54) to head (8372f8f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #56   +/-   ##
=======================================
  Coverage   95.90%   95.90%
=======================================
  Files          19       19
  Lines         927      927
=======================================
  Hits          889      889
  Misses         38       38

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fix block heights; conditionally flatten inner statement notch.

#388 and #385.
Fixes positioning in the flyout, too :)

Please take another look :) I wasn't sure whether to rename lastConnectionInStack_ to be public...

Yes, please rename it to public.  Then lgtm.


getting some problem with ilqr_jax_MPC.py please can you help me to solve it !

D:\CARLA_0.9.5\PythonAPI\examples>py -3.7 ilqr_jax_MPC.py
pygame 2.0.1 (SDL 2.0.14, Python 3.7.0)
Hello from the pygame community. https://www.pygame.org/contribute.html
call reset
0%|                                                                                | 0/2000 [00:00<?, ?it/s]WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
0%|                                                                                | 0/2000 [00:00<?, ?it/s]
Traceback (most recent call last):
File "ilqr_jax_MPC.py", line 385, in
x_trj, u_trj, cost_trace = run_ilqr_main(state, u_trj, waypoints)
File "ilqr_jax_MPC.py", line 292, in run_ilqr_main
x_trj = rollout(x0, u_trj)
File "ilqr_jax_MPC.py", line 99, in rollout
return np.array((x0, x_trj,x_final))
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\site-packages\jax_src\numpy\lax_numpy.py", line 2859, in array
out = stack([asarray(elt, dtype=dtype) for elt in object])
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\site-packages\jax_src\numpy\lax_numpy.py", line 2859, in
out = stack([asarray(elt, dtype=dtype) for elt in object])
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\site-packages\jax_src\numpy\lax_numpy.py", line 2887, in asarray
return array(a, dtype=dtype, copy=False, order=order)
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\site-packages\jax_src\numpy\lax_numpy.py", line 2859, in array
out = stack([asarray(elt, dtype=dtype) for elt in object])
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\site-packages\jax_src\numpy\lax_numpy.py", line 2671, in stack
raise ValueError("All input arrays must have the same shape.")
jax._src.traceback_util.FilteredStackTrace: ValueError: All input arrays must have the same shape.

Hi, I'm not sure where does the return np.array((x0, x_trj,x_final)) come from. I'm guessing you wanna vertically stack x0, x_trj,x_final together, which is actually a numpy problem. If so, you can use np.vstack((x0, x_trj, x_final)). Besides, I remember that in Jax, lax loop scanner already includes x_final in x_trj, or at least that should be the case when I was writing the program. In that case, you only need to return np.vstack((x0, x_trj)) in the rollout function.

yes but in this case also it giving same error
when i tries to run this program as it is its giving same error

Could you provide a screenshot of your terminal, plus the environment you run on, eg. Jax version? Mentioning all the modifications you did will also help. Currently, I'm not sure how many changes you have made to the program.

Besides, it seems that the program couldn't be properly run on Windows at this point. The other programmer faced the issue with Jax version. Check this issue thread #3 .

Hi @Tanman1234 @YukunXia, thanks for the discussion here and thank @YukunXia for the code.
I also have problem with jaxlib after install jax 0.1.68, specifically a ImportError: cannot import name 'pytree' from 'jaxlib'.
I am working on ubuntu 18.04.
Here is what i have done for installation of jax 0.1.68 by following https://github.com/google/jax/tree/jaxlib-v0.1.68:
 ```

pip install --upgrade pip
sudo ln -s /path/to/cuda /usr/local/cuda-11.1
pip install --upgrade jax==0.1.68 jaxlib==0.1.67+cuda111 -f https://storage.googleapis.com/jax-releases/jax_releases.html

-result of installation:

`Successfully installed jax-0.1.68 jaxlib-0.1.67+cuda111`

- run lqr_jax_MPC.py and get ImportError:

Traceback (most recent call last):
File "/home/control/Documents/Carla projects/Carla_iLQR_MPC/MPC/ilqr_jax_MPC.py", line 1, in
from jax import jit, jacfwd, jacrev, hessian, lax
File "/home/control/.local/lib/python3.7/site-packages/jax/init.py", line 16, in
from .api import (
File "/home/control/.local/lib/python3.7/site-packages/jax/api.py", line 38, in
from . import core
File "/home/control/.local/lib/python3.7/site-packages/jax/core.py", line 30, in
from . import dtypes
File "/home/control/.local/lib/python3.7/site-packages/jax/dtypes.py", line 31, in
from .lib import xla_client
File "/home/control/.local/lib/python3.7/site-packages/jax/lib/init.py", line 51, in
from jaxlib import pytree
ImportError: cannot import name 'pytree' from 'jaxlib' (/home/control/.local/lib/python3.7/site-packages/jaxlib/init.py)

I have tried to install jaxlib from source but not succeed, it came up with this problem: https://stackoverflow.com/questions/70324228/how-to-deal-with-error-infinite-symlink-expansion-detected-in-building-jax-from

Also tried to install jaxlib and jax==0.2.14, 0.2.16 with pip and the lqr_jax_MPC.py still shows different Errors.

Do you know how to deal with them?

Many thanks.


Explain FinRL predictions

Is your feature request related to a problem? Please describe.
Does FinRL support explaining predictions from the network? It would be great to get some insights into how the network is taking decisions.
Describe the solution you'd like
System to explain each prediction
Describe alternatives you've considered
None
Additional context
None

Explainability is very very important!
We started with a simple one. But you can definitely help us get a better approach.

Codes: https://github.com/AI4Finance-Foundation/FinRL/blob/master/tutorials/2-Advance/FinRL_PortfolioAllocation_Explainable_DRL.ipynb
Medium blog: https://medium.com/mlearning-ai/an-empirical-approach-to-explain-deep-reinforcement-learning-in-portfolio-management-task-e65a42225d9d
Paper: Guan, Mao, and Xiao-Yang Liu. "Explainable deep reinforcement learning for portfolio management: an empirical approach." Proceedings of the Second ACM International Conference on AI in Finance. 2021.


taskEither.fold works differently across v1 and v2

I was trying to refactor my v1 code to v2 and I noticed that the behavior of fold has changed between versions:
Here's perfectly valid 1.1 code
const v1 = taskEither.of(42).fold(err => 42, response => response + 1); // typeof v1 => Task<number>

Wheras with 2.0, fold requires me to return a Task instead, which kind of makes it a bit inconvenient to work with.
const v2 = pipe(
  taskEither.of(42),
  fold(() => 42, response => response + 1)
);

Given the constraints, there are two approaches that seem like the most appropriate translation:
const v2_1 = pipe(
  taskEither.of(42),
  fold(() => task.of(42), response => task.of(response + 1))
);

const v2_2 = await taskEither.of(42)();
pipe(
  v2_2,
  either.fold(() => 42, response => response + 1)
);

I'd be interested in understanding the motivation for the change and your thoughts on how best to go about refactoring such scenarios.
Edit: Pointfree functions in the vein of fold(props.onFailed, props.onSuccess) were very convenient to have directly on a TaskEither with v1, but they become a bit verbose with the v2_2 approach

The rationale was to reduce the API surface (now allowed by the class-less encoding). With the new fold we get the same functionality of the old

fold
foldTask
foldTaskEither

methods.
Note that v2_2 is not ok since you are executing the side effects.
Here's some options:

using TE.fold (your v2_1)

import { pipe } from 'fp-ts/lib/pipeable'
import * as T from 'fp-ts/lib/Task'
import * as TE from 'fp-ts/lib/TaskEither'

const t = pipe(
  TE.right(42),
  TE.fold(() => T.of(42), response => T.of(response + 1))
)

T.map + E.fold

import * as E from 'fp-ts/lib/Either'
import { pipe } from 'fp-ts/lib/pipeable'
import * as T from 'fp-ts/lib/Task'
import * as TE from 'fp-ts/lib/TaskEither'

const t = pipe(
  TE.right(42),
  T.map(E.fold(() => 42, response => response + 1))
)

derive the old fold signature (probably the most convenient)

import * as E from 'fp-ts/lib/Either'
import { flow } from 'fp-ts/lib/function'
import { pipe } from 'fp-ts/lib/pipeable'
import * as T from 'fp-ts/lib/Task'
import * as TE from 'fp-ts/lib/TaskEither'

const oldFold = flow(
  E.fold,
  T.map
)

const t = pipe(
  TE.right(42),
  oldFold(() => 42, response => response + 1)
)

TE.map + TE.getOrElse

import { pipe } from 'fp-ts/lib/pipeable'
import * as T from 'fp-ts/lib/Task'
import * as TE from 'fp-ts/lib/TaskEither'

const t = pipe(
  TE.right(42),
  TE.map(response => response + 1),
  TE.getOrElse(() => T.of(42))
)

Thanks a lot for the very clear explanation :-)


Replace Obfuscation (XORing) with Encryption

RSPET currently uses XORing as a very basic Obfuscation technique for Client-Server communication.
The aim is to replace XORing and the approach of Obfuscation altogether with Encryption. But there is a catch. This is a PenTesting application. Having this in mind it would be at least unrealistic to expect to be able to just pip install something (in this case an encryption package) on the machine of the Client. So the aim is now to find and implement an Encryption System that has the smallest possible fingerprint on the client (ideally compact enough code to be feasible to include it in the main client python script).

Well, a basic encryption algorithm can be implemented in ~100 LOC (XXTEA for example...).
The other option is to make a DH handshake and exchange keys for XOR (Not for whole files, just for commands...).
Last, but not least python has native HTTPS connection package :)

what about RSA? http://stackoverflow.com/questions/6886240/python-pycrypto-sending-encrypted-data-over-network

Well as it's outlined in the initial issue message, it would be impractical to consider that the target/infected machine will have pycrypto installed (or that the PenTester will be able to pip install it beforehand). However in lack of a better solution the most probable course of action is that the Client script will first try to import Crypto, on fail try to pip install it through Popen (which is already used to implement the essence of the script, providing a reverse shell) and finally on fail fall back to the current obfuscation model. The only reason I was trying to avoid a solution like this is that it will further fragment the Client-base. Will add more management overhead, since there will be more than one communication methods to maintain (update, debug, test etc). But if nothing better comes up until I can steal some time for implementation I will do it this way.
(Also thanks for the suggestion :) )

@dzervas by native HTTPS connection package do you mean TLS ?  I'm asking that because it turns out that the ssl lib (designed to provide general TLS) has a socket wrapper that can make our lives soooooo much easier. My next in line change ! Self assigning this.


code comment typo fix

Please verify the following:

[x] yarn ci:test jest tests pass with new tests, if relevant | ( n/a )
[x] README.md has been updated with your changes, if relevant | ( n/a )

Describe your PR
Issue / PR ref:
( n/a )
Fix / changes made:
comment typo fix in boilerplate/app/navigators/navigation-utilities.tsx
Comments:
#firstpr

thanks, @robinheinze!

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update SelectTree.php added storeResults() method to get the data in disabledOptions/hiddenOptions

@iotronlab Sorry for the delay, i thought i already released these changes.


Remove uses of implicit static typing from the documentation

See https://github.com/godotengine/godot/pull/99325#discussion_r1865820604 and prior comments
TL:DR: We shouldn't use static typing in the documentation (unless it's relevant to the code example). At least not yet.
Use this opportunity to point out oddities within the affected descriptions. There always are.

Thanks!

10 minutes World Record


Fix routeserver list not loading

remove extra backslash in list url

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (bbe06f9) 76.01% compared to head (2c39a00) 76.01%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@              Coverage Diff              @@
##           prep-release     #125   +/-   ##
=============================================
  Coverage         76.01%   76.01%
=============================================
  Files                47       47
  Lines              1576     1576
=============================================
  Hits               1198     1198
  Misses              378      378

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Add paths next to references when "Show Call Hierarchy" is run

It'd be nice to add paths next to the function names that show when running "Show Call Hierarchy" to better differentiate where they're coming from.
The screenshot below is from the FastAPI repo after installing the dependencies in a .venv,  opening .venv/Lib/site-packages/starlette/responses.py and then selecting "Show call hierarchy" on JSONResponse

This would match what we have for "show type hierarchy":

Dupe of https://github.com/microsoft/pylance-release/discussions/2854? Although for the example I put in there I was thinking that we'd show a class name instead of a path. Maybe we need both? Or one or the other depending on the scenario?

Yeah it seems to be a dupe, but good point that the path may not be enough. Maybe both would be a good approach? We seem to support the following format for "Show Type Hierarchy":


Get it working as is

I haven't had chance to test this yet. Just wanted to check if we can mark this as done? Is it all working as expected? @tayganr

Updates published to cater for breaking changes introduced by Azure AD to Microsoft Graph migration in Azure PowerShell.


Update sbt-dotty to 0.5.1

Updates ch.epfl.lamp:sbt-dotty from 0.5.0 to 0.5.1.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "ch.epfl.lamp", artifactId = "sbt-dotty" } ]

labels: sbt-plugin-update, semver-patch

Codecov Report

Merging #1610 (84066f3) into master (853f39d) will decrease coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1610      +/-   ##
==========================================
- Coverage   85.08%   84.99%   -0.10%
==========================================
  Files          58       58
  Lines        2219     2219
  Branches      105      105
==========================================
- Hits         1888     1886       -2
- Misses        331      333       +2

Impacted Files
Coverage Δ

...rc/main/scala/io/circe/shapes/SizedInstances.scala
78.57% <0.00%> (-14.29%)
:arrow_down:

...rc/main/scala/io/circe/numbers/BiggerDecimal.scala
84.21% <0.00%> (-1.17%)
:arrow_down:

.../core/shared/src/main/scala/io/circe/Decoder.scala
85.05% <0.00%> (-0.28%)
:arrow_down:

...re/shared/src/main/scala/io/circe/JsonNumber.scala
92.77% <0.00%> (ø)

...les/core/shared/src/main/scala/io/circe/Json.scala
81.00% <0.00%> (+1.11%)
:arrow_up:

...re/shared/src/main/scala/io/circe/KeyDecoder.scala
100.00% <0.00%> (+2.70%)
:arrow_up:

Continue to review full report at Codecov.

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


add CI for build and test

Proposed changes
Add CI for build and test
Checklist
Put an x in the boxes that apply.

[x] I have read the CONTRIBUTING document

Unfortunately we are not allowed to use github actions. Thanks for the contribution. Feel free to open an issue or discussion if you are unsure of an addition in the future.


Printing precedence levels incorrect

The current precedence levels used when printing seem to have some minor inconsistencies which lead to the absence or redundancy of parentheses in some places. These occur in a couple different situations:
open Nv_lang
(* a function for reprinting parsed strings *)
let f s = Printing.exp_to_string (Parser.expreof Lexer.token (Lexing.from_string s);;
(* operator function arguments are missing parentheses *)
let s = "foldNodes (fun u -> fun v -> fun acc -> assert_node u v && acc) sol true";;
f s;; (* u"foldNodes fun u~0 -> fun v~0 -> fun acc~0 -> ((assert_node~0 u~0 ) v~0 ) && acc~0    sol~0 true" *)
(* extra parentheses around function bodies *)
let t = "fun u -> fun v -> match (u,v) with | (None, None) -> false | (_, _) -> true";;
f t;; (* u"fun u~0 -> fun v~0 -> (match (u~0,v~0) with \n | (None,None) -> false\n | (_,_) -> true\n)  " *)

I'd like to fix these inconsistencies but I'm not too familiar with how the precedence levels align between the printer and the parser.

@DKLoehr @nickgian can either of you lend any insight into this, or how I could modify prec_exp and the other functions here? I can see that we have some functions where parentheses get added if the precedence is lower than max_prec (func_to_string, closure_to_string) and then in exp_to_string we add parentheses if the precedence is higher in the inner expression relative to the outer one.

Don't think I have much to contribute here -- if I were to try to fix this myself I'd probably just try a bunch of examples and see what the parser does, then edit printing to match that. I suspect we probably erred on the side of putting in more parens than necessary to be safe. If there are any cases where the printed version doesn't actually parse to the same thing (especially if parens are missing) that's worth fixing, but I never thought too hard about the inner workings of the printer.


cmd/compile: 386 SSA support

Implement an SSA backend for the 386 architecture.

Should be complete as of https://go-review.googlesource.com/c/26811/


Added docs about Merkle Tree

Feature type

[ ] UI
[ ] Implementation
[X] Specification
[ ] CI/CD
[ ] Other

Feature description
Pull request checklist
Please check if your PR fulfills the following requirements:

[X] Your code builds clean without any errors or warnings.
[X] Tests for changes have been added (for bug fixes / features). If no, why?

Over all LGTM, just some minor issues need to be fixed and the security concern.


Add link to Help Center to invitation emails

cc: @alexsroth @terrett101

Thank you @javitonino!
@alexsroth @terrett101 this should be working now.


Add step files of individual components. Not just Programmable-Air as a whole.

Especially for the custom components(motors and valves)

Added models of valve and motor.


Support for module transforms only.

With Canary at 96% es6 complete, I'd like to use es6-module-loader with babel only transpiling the module import/export statements.  I believe this will be needed as we get closer to all browsers being nearly es6 complete, but still needing module loading.
To be clear, my goal is to use the

No way! My goal is to use the, too!

You should be able to achieve this by disabling the default babel presets with:
  babelOptions: {
    "es2015": false,
    "stage3": false
  }

in your jspm.config.js.

I'm not using jspm, but es6-module-loader. But I'd also need to add module transpilation to the babelOptions .. not sure how to do that in the browser .. which babel has abandoned, alas.

Note the es6-module-loader project on its own does not come with production workflows without using custom hooks on top of it.


Adds GA events to onboarding

What's this PR do?
Adds signup event
Adds view more event
How should this be reviewed?
Enable GA debug with Google Analytics Debugger
Signing up should

Trigger a signup event

and NOT trigger any view more events (see the boolean value in code for why this is tested)

Clicking view more should trigger a view more event

Any background context you want to provide?
no
Relevant tickets
Fixes #6828
Checklist

[ ] Tested on staging.

yeah see the comment above -- ideally thats what i wanted to do but github/editor rendering is all derped from react & I wouldnt be able to read wtf i was doing lol


I removed all the N/A values and CDR 0.5/2

Also remove some the rows which I think are unnecessary
Resulted in 68 rows and 9 columns

Will push to main once we agree as a team what patients to use


:construction: Multiple choice

This commit also includes refactor of SCSS files - @vjrantal, @liliankasem  you may require gulp sass to rebuild your 'main.css' file.