Add more trivia questions

Description

Add more trivia questions.
Using a format i can copy and paste into a python script to generate the json.
list[tuple[str, list[str], Optional[str]]] = [(question, [answer1, answer2], hint)]
Python
[
("What common operation does this function implement?\n```py\nmystery = lambda *args: map(lambda *x: x, *args)\n```", ["zip"], None),
("What common operation does this function implement?\n```py\ndef f(a):\n    b = []\n    for b[len(b):] in a:3\n    return b\n```", ["flatten"], None),
("What algorithm does this function implement?\n```py\nmystery = lambda xs: xs and [*mystery([x for x in xs[1:] if x <= xs[0]]), xs[0], *mystery([x for x in xs[1:] if x > xs[0]])]\n```", ["quicksort"], "It is a sorting algorithm."),
("In what year did Python 2 reach End of Life?", ["2020"], None),
]

CS
A question I thought would be fun is generating a random directed graph and asking people to find the shortest path between two randomly selected nodes. Variations could be solving TSP, and so on. Would need to send images though, which would require some modifications to a lot of code. Additionally, we would need to bring in another dependency like networkx or graphviz. Maybe this would be turned into another issue/PR? I'm not sure what the protocol for that is, would like thoughts on that from maintainer people.
Another question I thought would be interesting is: "give a string matching this regular expression". And randomly generate regexes. Regex crosswords, even.
[
("What lemma is commonly used to prove non-regularity of languages?", ["pumping lemma", "pumping"], None),
("TCP congestion and flow control throttle the sender by adjusting the?", ["window size"], None),
("What algorithm was famously created at a cafe in 20 minutes?", ["dijkstra"], None),
("What is the minimal time complexity for a comparison-based sorting algorithm?", ["O(n log n)", "O(nlogn)", "n log n", "nlogn"], None),
("How many valid code points are in the Unicode codespace?", ["1112064", "2^16-2^11+2^20"], None),
("Deterministic finite automata are equivalent to nondeterministic finite automata (true/false).", ["true"], None),
("Deterministic pushdown automata are equivalent to context free grammars (true/false).", ["false"], None),
("The family of algorithms for choosing a simple random sample without replacement from a stream of unknown size in a single pass is called?", ["reservoir sampling"], None),
("A hash function with no hash collisions is known as?", ["perfect", "perfect hash function"], None),
]

Reasoning

More trivia questions good.
Proposed Implementation
Modify the json file for static questions. For the dynamic question we would implement this as a function that generates a graph and associated image.
Would you like to implement this yourself?

[x] I'd like to implement this feature myself
[ ] Anyone can implement this feature

The fixed questions all look good. Feel free to open a PR with them.
I like the regex idea, that would be cool. I think it would be good as it's own category. Feel free to open a (separate) PR with that if you want (you can also break the idea out into another issue if you think there are any details about behaviour/implementation to discuss first).
The graph idea also sounds cool, though I think it would require a bit more discussion first - I think it would be good to open a separate issue for it. It could be worth looking into if there's a Python package or API that could handle converting a graph to an image so we don't need to worry about installing graphviz.


Recreates DB when schema changes, refreshing data as needed  TECHOPS-677

Biggest change is creation of a GroomDatabase method on NameCache.

Current coverage is 53.37% (diff: 87.03%)

Merging #147 into master will increase coverage by 0.40%

@@             master       #147   diff @@
==========================================
  Files            99         99
  Lines          5012       5010     -2
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           2655       2674    +19
+ Misses         2119       2104    -15
+ Partials        238        232     -6

Powered by Codecov. Last update 7e5b84d...3c978d7


Feature Request - Add option to Enable-Disable Version Check in "About" Section

Description
When a user navigates to the "About" link in the Mailpit UI, a context window opens with information and performs a version check of the Mailpit (v1.19.3) Docker version. This version check impacts performance, because external connections could be blocked or not allowed. We would like have an option to enable or disable the version check.
Proposed Solution
Introduce an option MP_VERSION_CHECK that can be set to true or false. If set to false, the version check will be skipped when accessing the "About" section in the UI. The default value should be true to maintain the current behavior.
Environment Variable:

MP_MAILPIT_VERSION_CHECK=true (default)
MP_MAILPIT_VERSION_CHECK=false

Benefits

Improved performance for users who do not require the version check.
Greater flexibility in configuring Mailpit for different environments and use cases.
Compliance with enterprise policies that do not allow version checks.

Thank you for considering this feature request.

I am reluctant to add options like this because I see this feature being used primarily to hide the fact that the software does not get updated. To be clear, this is not an automated background update check, this is an on demand "what is the latest version" check which is only done when the modal is opened.
Are you able to share some more information on enterprise policies that do not allow version checks?

Thanks for the response. I have given this more consideration and can conclude that, while I understand your logic, there are two main points to note here:

This would only address the one "issue" (the version download). Mailpit also requires network/internet communication for various other tasks such as:

Link & HTML checking
Screenshots (which uses proxied images/CSS etc)
Optional extras such as SpamAssassin integration, SMTP release etc (I am aware that these two are likely intranet though)

Preventing the application from checking the latest release version (which is only done on demand if the "about" is clicked) would require another CLI flag and a matching environment setting. As there are already a lot of Mailpit options, I have to be very considerate when adding new ones, especially when they have little benefit / effect.

I do value your input and request, however I am going to politely decline this request. If you are concerned about timeouts / delays in the application, then internet connections should be rejected rather than dropped as that will give an immediate failed response.
I hope that makes sense to you?

Thanks a lot for your detailed explanation. I completly understand your argumentation. Keep up your excellent work!


Improve description of --check-leaks option

Also ensuring the --globals option references --check-leaks as well.

@platinumazure thanks! merging as part of https://github.com/mochajs/mocha/pull/3123


Added PyMOTW3

Python Module of the Week has 2.x version and 3.x! A very valuable resource made by Doug Hellmann

Thanks!

:cake:


[Event Request] Codeunit::"Item Jnl.-Post Line" - Function PostConsumption - OnPostConsumptionBeforeLoop

We like to request the following Event:
Object: Codeunit::"Item Jnl.-Post Line"
Function: PostConsumption
Publisher Event: OnPostConsumptionBeforeLoop
Reason: To implement custom business logic
Where is the event placed:
repeat
IsHandled := false;
OnPostConsumptionBeforeLoop(ProdOrderComp, ItemJnlLine, TempHandlingSpecification, RemQtyToPost, UseItemTrackingApplication, LastLoop, IsHandled);
if not IsHandled then
if UseItemTrackingApplication then begin
TempHandlingSpecification.SetRange("Source Ref. No.", "Line No.");
if LastLoop then begin
RemQtyToPostThisLine := "Remaining Qty. (Base)";
if TempHandlingSpecification.FindSet() then
repeat
Event Code:
[IntegrationEvent(false, false)]
local procedure OnPostConsumptionBeforeLoop(var ProdOrderComp: Record "Prod. Order Component"; var ItemJnlLine: Record "Item Journal Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; RemQtyToPost: Decimal; UseItemTrackingApplication: Boolean; LastLoop: Boolean; var IsHandled: Boolean)
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Update github actions to deploy LWA layer in china regions

Issue #, if available:
Description of changes:
Update github actions to deploy LWA layer in china regions.
Created necessary resources (s3 buckets, IAM roles) in AWS China accounts.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Only deploy layers to Prod account in China regions may not be enough. I recommend to have a Gamma account in China regions as well.

We need to consider if we should backfill previous layers in China regions.


additive effects for background RNA correction in scVI

Introduction
I would argue that after 5+ years of analysing droplet-based sc/snRNA-seq data, we know the top-N technical RNA detection effects:

Per-batch (10x reaction/inlet) detection rate originating from PCR+sequencing step, in part due to the sequencing budget normally allocated to 10x reactions.
Within-batch per cell RNA detection efficiency originating from RT variability between droplets.
Background RNA contamination originating from free-floating/ambient/soup RNA, cell barcode swapping, other mechanisms as described in detail by CellBender authors (https://github.com/broadinstitute/CellBender). This effect is specific to batch (10x reaction/inlet).
Technology and gene-specific RNA detection efficiency. For example, 5' vs 3' 10x technology. Other technologies such as probe-hybridisation-based methods could have the more complex gene- and batch-specific RNA detection efficiency effects.
Add yours

Note that here, the goal is to enumerate and correct for as many technical effects as possible retaining all other heterogeneity as biology - even if the biological change in expression is induced by experiment factors such as cell dissociation-induced stress or disease effects.

Effects 1, 2 and 4 are multiplicative in nature because they change RNA detection rates - while effect 3 is inherently additive, because ambient RNA is physically added to RNA from cells, and subject to the same RNA detection rates as a biological expression from cells. This suggests a more principled approach to correcting tech effect by modelling additive effects for each gene * batch and multiplicative effects for batch, cell and technology * gene. In scVI, effects 1 and 2 are corrected by cell-specific normalisation variable, effect 4 is corrected by parameters introduced via batch_key and categorical_covariate_keys. Effect 3 is not corrected within scVI but is corrected by an independent tool CellBender.
Would be great if scVI model could perform correction of additive background RNA. The approach can be limited compared to https://github.com/broadinstitute/CellBender but would be great to have an option.
Current scVI LDVAE could be viewed as follows:
$D_{c,g} ~ NB(alpha=alpha_{g}, mu=mu_{c,g})$
$mu_{c,g} = softmax_{c} (z_{c, f} @ weights_{f, g} + y_{e,g}) * y_{c} $
which loosely corresponds to the multiplicative effect in combat:
$mu_{c,g} = softmax_{c} (z_{c, f} @ weights_{f, g}) * y_{c} * y_{e,g}$
Non-linear decoder scVI adds the same multiplicative correction in the final layer:
$mu_{c,g} = softmax_{c} (z_{c, h} @ weights_{h, g}) * y_{c} * y_{e,g}$
$z_{c, h} = ReLu(z_{c, f} @ weights_{f, h} + y_{e,h})$
Notation:
c - cell
g - gene
e - batch_key
b - background_batch_key
t - categorical_covariate_keys
f - latent variables (n_latent)
h - hidden nodes (n_hidden)

Proposed modification
I propose introducing the following additional parameter
$mu_{c,g} = softmax_{c} (z_{c, h} @ weights_{h, g} + y_{e,g} + y_{t,g}) * y_{c}  + (s_{b,g} * yBackground_{c})$
$z_{c, h} = ReLu(z_{c, f} @ weights_{f, h} + y_{e,h} + y_{t,h})$
where the following new variables are introduced:
s_{b,g} - batch-specific additive background
yBackground_{c} - cell-specific RNA detection efficiency for background RNA

where the following variables work exactly as current scVI:
y_{e,g} , y_{e,h} - parameters introduced via batch_key
y_{t,g} , y_{t,h} - parameters introduced via categorial_covariate_keys
y_{c} - cell size factors
z_{c, f} - latent variables
z_{c, h} - decoder, last layer hidden nodes
weights_{f, h}, weights_{f, h} - weights and biases in each layer

This should be fairly straightforward to implement - just adding 2 new variables and corresponding setup_anndata.
What do you think @adamgayoso?

I think I need more time to digest this! But would you be willing to move it over to discourse? You can use $ $ for inline math and $$ $$ for math blocks there with latex rendering.

I've implemented a working version of this paper in an external scvi module: https://github.com/ricomnl/scvi-ar/pull/1/files. Am currently running some tests but I will create a PR to merge this in

Thank you @ricomnl ! I will read that paper. One common issue is assuming that the background RNA constitute the same proportion rather than the same absolute number. This is a problem because cell types with more RNA are assumed to have more background which is not true for free-floating RNA. Cell barcode swapping can indeed lead to a higher background in cell types with more RNA - but barcode swapping seems to be lower than snRNA free-floating contamination. How does this paper address this?
scVI model is quite popular so there is also an argument for including background correction directly into scVI.
Another issue is that we don't have count matrices for empty droplets for many multi-atlas integration projects. Those are possible to generate by completely remapping data but that could be challenging due to resources required and/or data access. So good to have a middle ground option between no background correction and background correction that utilises empty droplets.

@adamgayoso As we discussed elsewhere, the reason I created an issue rather than scverse discussion is that I think this is a very concrete implementable suggestion. However, I need some explanation of how to add/modify variables in scVI code.

We have a version of this implemented in scvi.external.SCAR.


Performance report - 2023 M2 Max 96GB

(Using my CLI options here )

time python main.py --prompt "Luxury food photograph" --steps 2 --seed 2  3.94s user 10.78s system 56% cpu 26.109 total

time python main.py --prompt "detailed cinematic dof render of an old dusty detailed CRT monitor on a wooden desk in a dim room with items around, messy dirty room. On the screen are the letters "FLUX" glowing softly. High detail hard surface render" --steps 2 --seed 2  3.94s user 11.75s system 61% cpu 25.565 total

So about 25-26 seconds.

@explorigin Thanks for the report (and nice picture with the food for --seed 2 :) ). I have looked at your PR and will include this performance result and some other numbers in the README once this PR is merged.

 On the screen are the letters "FLUX" glowing softly. High detail hard surface render" --steps 2 --seed 2  3.94s user 11.75s system 61% cpu 25.565 total

So about 25-26 seconds.

On the same machine (M2 Max 96GB MBP), the same prompt takes about 8 seconds longer to complete. I'm not sure what the reason is.  On the screen are the letters "FLUX" glowing softly. High detail hard surface render" --steps 2 --seed 2
Fetching 8 files: 100%|███████████████████████| 8/8 [00:00<00:00, 127100.12it/s]
Fetching 7 files: 100%|████████████████████████| 7/7 [00:00<00:00, 74518.09it/s]
100%|█████████████████████████████████████████████| 2/2 [00:28<00:00, 14.00s/it]
python main.py --prompt  --steps 2 --seed 2  4.26s user 13.21s system 49% cpu 35.015 total

There could be a loading time difference. Let's compare a few more things:

virtualenv environment, Python 3.12.1
Sonoma 14.6.1
4TB harddrive (APFS Encrypted)

There could be a loading time difference. Let's compare a few more things:

virtualenv environment, Python 3.12.1
Sonoma 14.6.1
4TB harddrive (APFS Encrypted)

Thanks for the reply. Here is mine:

virtualenv environment, Python 3.12.4
Sonoma 14.6.1
1TB harddrive (APFS Not encrypted)

There could be a loading time difference. Let's compare a few more things:

virtualenv environment, Python 3.12.1
Sonoma 14.6.1
4TB harddrive (APFS Encrypted)

Thanks for the reply. Here is mine:

virtualenv environment, Python 3.12.4
Sonoma 14.6.1
1TB harddrive (APFS Not encrypted)

Forgot one thing, I'm using the latest version of mflux

Encryption also includes compression. For loading large models into memory, that might be the difference if the drive is the bottleneck. I'm speculating.

Encryption also includes compression. For loading large models into memory, that might be the difference if the drive is the bottleneck. I'm speculating.

Interesting. If the drive is the bottleneck, then the time difference for FLUX.1 dev, which takes 20 steps, should be less.

Encryption also includes compression. For loading large models into memory, that might be the difference if the drive is the bottleneck. I'm speculating.

Interesting. If the drive is the bottleneck, then the time difference for FLUX.1 dev, which takes 20 steps, should be less.

I tried turning on encryption and it didn't take significantly less time, it was still around 34s 😂

I'm speculating

That leaves drive size as the remaining differentiator.

I'm speculating

That leaves drive size as the remaining differentiator.

Yeah, maybe the 4T harddrive doesn't have the same read/write speeds as 1T...


Hello, where can I find these txt files? Or how do I need to create it? thanks！！

@ferrari700 have you found the files? I also looking for the files and not found yet.

You can create these files via python tools/kitti_converter.py --data_root ${DATA_ROOT} as mentioned in README.md


Tautology in a sentence

The edited sentence contained the "example" word twice, making it difficult to read and grammatically inaccurate.

Thanks @MiroJ


Refactor Bubbl.us Widget

update Bubbl.us widget, refactor code to oop, add classes and methods

done.


All tabs path resets to %system32% on restore

Windows Terminal version
1.14.2281.0
Windows build number
10.0.19044.0
Other Software
No response
Steps to reproduce
Run PowerShell 7, PowerShell 5, cmd, bash... whatever... Choose their own paths...
Close wt (it shows "Do you want to close all tabs")
Ok. Close all. Than run wt again
Expected Behavior
It restores all tabs with their own paths.
Or opens only one default tab because we had "Do you want to close all tabs"
Actual Behavior
It restores all tabs but resets paths

Did you configure the shell to tell the Terminal about the CWD/? Otherwise yea, the Terminal won't know what path the client application is in, and will default to your startingDirectory.

It was %USERPROFILE% but anyway there is no sense to restore tabs if they lost


fix: upgrade plan name to v4.1.0

Codecov Report

Merging #1832 (8ea66d1) into main (a094ee0) will decrease coverage by 1.26%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main    #1832      +/-   ##
==========================================
- Coverage   58.13%   56.88%   -1.26%
==========================================
  Files          80       93      +13
  Lines        8213     8783     +570
==========================================
+ Hits         4775     4996     +221
- Misses       3097     3422     +325
- Partials      341      365      +24

Impacted Files
Coverage Δ

x/uibc/quota/keeper/quota.go
38.65% <0.00%> (ø)

x/uibc/params.go
63.41% <0.00%> (ø)

x/uibc/quota/keeper/genesis.go
100.00% <0.00%> (ø)

x/uibc/quota/keeper/keeper.go
100.00% <0.00%> (ø)

x/uibc/msg.go
22.22% <0.00%> (ø)

x/uibc/quota/keeper/msg_server.go
77.77% <0.00%> (ø)

x/uibc/query.pb.gw.go
0.00% <0.00%> (ø)

x/uibc/codec.go
46.66% <0.00%> (ø)

x/uibc/quota/keeper/relay.go
0.00% <0.00%> (ø)

x/uibc/genesis.go
55.55% <0.00%> (ø)

... and 4 more


Make Tynwald Day movable for Isle of Man

Proposed change

Unlike the current implementation where Tynwald Day is fixed as July 5 only, Tynwald Day is, in fact, move to the following Monday should it fall on the weekends.. This PR addresses this issue as well as its related test case.

Each year on Tynwald Day, which is usually celebrated on July 5th, Tynwald Court participates at the Tynwald Day Ceremony at St John's. If Tynwald Day occurs on a Saturday or Sunday, the ceremony is normally held on the following Monday. After a religious service in the Royal Chapel, the members of Tynwald process to Tynwald Hill, one of the ancient open air sites of Tynwald. Following the proceedings on Tynwald Hill, presided over by the Lieutenant Governor, the members of Tynwald return to the Royal Chapel where a formal sitting of Tynwald takes place.

Type of change

[ ] New country/market holidays support (thank you!)
[x] Supported country/market holidays update (calendar discrepancy fix, localization)
[ ] Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
[ ] Dependency upgrade (version update)
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (a code change causing existing functionality to break)
[ ] New feature (new python-holidays functionality in general)

Checklist

[x] I've followed the contributing guidelines
[x] This PR is filed against beta branch of the repository
[x] This PR doesn't contain any merge conflicts and has clean commit history
[x] The code style looks good: make pre-commit
[x] All tests pass locally: make test, make tox (we strongly encourage adding tests to your code)
[x] The related documentation has been added/updated (check off the box for free if no updates is required)

coverage: 99.991%. remained the same when pulling 47e0f72554505a2c85d459a1f647af4cdd32f63e on PPsyrius:make_tynwald_day_movable into 522a9951f4457c68977016ecc8d8d9e08011f8d2 on dr-prodigy:beta.

I think it's more like "observed" holiday, in our terminology.

I think it's more like "observed" holiday, in our terminology.

I'ld beg to differ as the ceremony itself is also moved, rather than just a day off being given on Mondays.

More on this, it turns out that Tynwald Day is still fixed by 1970, and while I cannot find the relevant law on this which makes it movable, the earliest record so far that I can find on this was QE2's Tynwald Day visit in 2003 which already has the date moved.

Yes, I agree now, it's moving holiday for sure.

It has been merged into beta. Thank you for your deep research! 👍


Roll Plugins from 91d7fe59ab03 to f68f83bc224a (6 revisions)

https://github.com/flutter/plugins/compare/91d7fe59ab03...f68f83bc224a
2022-11-01<EMAIL_ADDRESS>[camera] Interface method to allow concurrent recording and streaming of video (flutter/plugins#6550)
2022-10-31<EMAIL_ADDRESS>Roll Flutter from ea0ddc94ccc6 to 8f0c35d4869e (17 revisions) (flutter/plugins#6639)
2022-10-31<EMAIL_ADDRESS>[camera]: Bump camerax_version from 1.2.0-beta02 to 1.2.0-rc01 in /packages/camera/camera_android_camerax/android (flutter/plugins#6647)
2022-10-31<EMAIL_ADDRESS>[local_auth]: Bump fragment from 1.5.2 to 1.5.4 in /packages/local_auth/local_auth_android/android (flutter/plugins#6645)
2022-10-31<EMAIL_ADDRESS>[tool] Rename all-plugins-app command (flutter/plugins#6600)
2022-10-31<EMAIL_ADDRESS>[path_provider]: Bump gradle from 3.3.0 to 7.3.1 in /packages/path_provider/path_provider_android/android (flutter/plugins#6578)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-plugins-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Remove (or make optional) create-react-context dependency

The create-react-context library appears to be abandoned and has peer dependency for React 14, 15 and 16 (causeing peer depenceny issue when installing this library).
Use React.createContext instead?

done


Slight variation in production leads to "backwards" display

The following production
key_value ::= ( key ( ':' | '=' ) value ( ',' | EOL )? EOL* )*

leads to diagram

However, adding EOL* to the beginning of the production
key_value ::= EOL* ( key ( ':' | '=' ) value ( ',' | EOL )? EOL* )*

leads to

which, while not wrong, can confuse the reader because of the right-to-left ordering of key and value in the diagram. Is there a workaround for this? I tried changing some of the options but nothing caused left-to-right display of key and value.

RR tries to detect repetitions with separators, and it comes up here with an empty repeated part, with everything else as the separator. This depends on the order of left- and right-factoring steps, and there is no way to influence this, but rephrasing the production. In this case you will get the desired result, if you put EOL* first in the original repetition, rather than last:
key_value ::= ( EOL* key ( ':' | '=' ) value ','? )* EOL*

But what I would probably do is separate the key value pair from the repetion into separate productions:
key_value_pairs ::= EOL* ( key_value_pair EOL* )*
key_value_pair ::= key ( ':' | '=' ) value ','?


Fix for ReactNative 0.4.3

Solid stuff, going to update the package.json and then merge this puppy in, thanks!!
:+1:


Add support of multithreaded story execution. Upgrade to JBehave 4.1.1

Implementation of https://github.com/codecentric/jbehave-junit-runner/issues/20

Coverage increased (+2.6%) to 93.279% when pulling 355ce948d11e95e61719b3e7d2d6eb9e0c45eb50 on valfirst:multithreading into d0d877c7c515c7f0c70c35e5524238456b093a07 on codecentric:master.

@AndreasEK , @joshiste, does anybody support this project?

@britter, maybe you know the future of this project?

@valfirst sorry, I don't. I'll reach out to some guys who maintained it in the past. Maybe we can just transfer ownership.

@britter, thank you! looking forward for updates. I'm really sorry inconvenience, but it looks like you are the only one who really cares

@valfirst I talked to the people who have been working on this project in the past and they don't have the time to maintain it any more. Would you be willing to maintain this project? Then we are willing to transfer ownership of this repository to you. Since the artifacts are currently distributed under de.codecentric Group ID you will probably have to change those coordinates.

@britter, yes, I would like to maintain this project. And I'm absolutely fine with group ID change. What's required from my side?

@valfirst you need to delete your fork of this repository. Otherwise I cannot transfer it, because there can be only one repository of this name in your account.

@britter I've renamed the fork. would it be enough?

@valfirst still not possible. I get this error message:

valfirst already has a repository in the avh4/jbehave-junit-monitor network and You can only transfer a repository from an organization to yourself at this time

@britter I've completely removed the fork, could you please try again? thanks

@britter it looks like transfer was successful, thank you very much for your help!

Take good care of this code! :-)


How do I know that its working?

After compiling simple example (adding thread::sleep to the loop to be able to observe it) I am getting:
/snap/bcc/current/usr/bin/python /snap/bcc/8/usr/share/bcc/tools/tplist -p pidof testprobes -v 'foo*'
/home/maciej/tmp/probes/src/target/debug/testprobes foo:begin [sema 0x0]
1 location(s)
0 argument(s)
/home/maciej/tmp/probes/src/target/debug/testprobes foo:end [sema 0x0]
1 location(s)
0 argument(s)
/home/maciej/tmp/probes/src/target/debug/testprobes foo:loop [sema 0x0]
1 location(s)
2 argument(s)
so this seem to work
bcc.trace -p pidof testprobes 'u::loop'
PID    TID    COMM         FUNC
31292  31292  testprobes   loop
31292  31292  testprobes   loop
...
so events are reported, but when I am trying to look at parameters:
bcc.trace -p pidof testprobes 'u::loop "%d", arg1'
check dmesg output for possible cause
Failed to attach BPF to kprobe
dmesg shows:
[231732.373470] Failed to allocate trace_probe.(-22)

I haven't really used bcc, but you can use readelf -n to look at the ELF notes and see if it looks reasonable.  That what the in-tree tests/readelf.rs is doing on itself.  That output will look something like:
Displaying notes found at file offset 0x000b75dc with length 0x00000074:
  Owner                 Data size       Description
  stapsdt              0x00000022       NT_STAPSDT (SystemTap probe descriptors)
    Provider: test
    Name: foo
    Location: 0x00000000000177e3, Base: 0x0000000000097130, Semaphore: 0x0000000000000000
    Arguments:
  stapsdt              0x00000028       NT_STAPSDT (SystemTap probe descriptors)
    Provider: test
    Name: bar
    Location: 0x00000000000177e4, Base: 0x0000000000097130, Semaphore: 0x0000000000000000
    Arguments: -8@$42

Failed to attach BPF to kprobe

It should be a uprobe, not kprobe -- is this just a bcc or bpf oddity?

[231732.373470] Failed to allocate trace_probe.(-22)

FWIW, -22 is EINVAL, "Invalid argument".  Perhaps your "%d" doesn't match what bcc wants for that arg1?  Note that this library casts all arguments to i64, because I don't know any way to do proper type resolution within this sort of macro.  So maybe use "%ld" or something like that?

It should be a uprobe, not kprobe -- is this just a bcc or bpf oddity?

Don't know. Maybe its me not understanding how it works and what I am doing (most likely).

So maybe use "%ld" or something like that?

No luck so far.
I've set up a repo with my code in description of what I am doing: https://github.com/Fiedzia/rust-bpf-test
Could you take a look and see if it works at all?

One more thing - looking at the source I've found out that I can use gdb to set breakpoints on probes - and that works fine too. So it all comes to me not knowing how to use bcc probably.

This is what I see for your binary:
Displaying notes found at file offset 0x0004c49c with length 0x000000c4:
  Owner                 Data size       Description
  stapsdt              0x00000023       NT_STAPSDT (SystemTap probe descriptors)
    Provider: foo
    Name: begin
    Location: 0x0000000000005eeb, Base: 0x000000000003dcb1, Semaphore: 0x0000000000000000
    Arguments:
  stapsdt              0x0000003d       NT_STAPSDT (SystemTap probe descriptors)
    Provider: foo
    Name: loop
    Location: 0x0000000000006092, Base: 0x000000000003dcb1, Semaphore: 0x0000000000000000
    Arguments: -8@-456(%rbp) -8@-464(%rbp)
  stapsdt              0x00000021       NT_STAPSDT (SystemTap probe descriptors)
    Provider: foo
    Name: end
    Location: 0x00000000000061d7, Base: 0x000000000003dcb1, Semaphore: 0x0000000000000000
    Arguments:

So loop does have two arguments, both at offsets on the stack.  And I can get gdb working with this, even printing the arguments correctly, which it calls $_probe_arg0 and $_probe_arg1.
Actually, I got bcc working too, with just 'u::loop "%d", arg1' as you had before.  Maybe your kernel is missing some useful options?  You said you have Ubuntu 16.10, which should be plenty new enough.
Can you try some probes that are not Rust-based?  Then we can completely rule out it being a problem with this crate.  Thanks!

I've installed bcc from ubuntu repository instead of using snap and that solved the problem.


feat(workload): default restartPolicy to ALWAYS (#1145)

Backport
This will backport the following commits from k8s-24/main to k8s-22/main:

feat(workload): default restartPolicy to ALWAYS (#1145)

Questions ?
Please refer to the Backport tool documentation

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1149

Questions ?
Please refer to the Backport tool documentation


Fine Tune model using GPU

Hello,
I am fine-tuning the model using GPU. Running into the memory issue since the process using only one of the GPUs I have. Is there a way to distribute the process?
Thank you

Hi, yes there's one way to do it but it's not straightforward.
Could you please try the snippet below?
import joblib
import torch

reader = joblib.load("bert_qa.joblib")
reader.local_rank = -1
reader.device = torch.device("cuda")
reader.n_gpu = torch.cuda.device_count()

from cdqa.pipeline import QAPipeline
cdqa_pipeline = QAPipeline(reader=reader)
cdqa_pipeline.fit_reader('path-to-custom-squad-like-dataset.json')

I haven't tried this snippet yet but will do soon.
I will close this issue for now.
Thanks


A small fix for 'Cancel' Text button alignment in header

Description
A small PR to fix the alignment of the cancel button when it is shown as text.
Recovery Phrase

Edit Profile

Tested
Tested locally on iOS and Android
How others should test

Complete onboarding with a new account and navigate to setup account key complete the process until the account key is displayed - The cancel button should be correctly aligned to the right regardless of text sizing
Using an existing account with a balance and default text sizing navigate to buy or sell CELO -> On the review screen observe the cancel button alignment - Should be consistent.

Backwards compatibility
This PR is backwards compatible.

Hey @MuckT We have verified issue on Android internal build & Testflight Build V:1.19.0 and updated status in below sheet
GSuite sheeet link: https://docs.google.com/spreadsheets/d/1bWi6smdTMClreG96sGjYxb2lee9Ja6eT4-Lm7eXm1gM/edit#gid=283267830
Verified On Devices: OnePlus 7T (11.0), Iphone 6+ (12.5.4), Samsung Galaxy J5 Prime (8.0), Samsung Galaxy M01 Core (10.0)
New Bug:

We have observed that "<" arrow instead of "cancel" button for both Buy/Sell CELO & Buy/Sell CELO total screen

https://valora.testquality.com requirement R96.

Hey @MuckT We have verified this issue using latest Test flight build V 1.19.0 and Android internal build V1.19.0 & updated status in Test Quality Tool
Test Quality Tool link:
iOS (13.0):

https://valora.testquality.com/project/12128/plan/21816/run/150277/result/2485065

Verified On Devices: iPhone SE (13.6.1)
CC : @jeanregisser

Hey @MuckT We have verified this issue using latest Test flight build V 1.19.0 and Android internal build V1.19.0 & updated status in Test Quality Tool
Test Quality Tool link:
Android (9.0):

https://valora.testquality.com/project/12128/plan/21816/run/150277/result/2485129

Verified On Devices: Redmi Note 8 (9.0)


Minor fixes

Removes not used code and fixes some typos

Pull Request Test Coverage Report for Build 108658970

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.605%

Totals

Change from base Build 105758584:
0.0%

Covered Lines:
105

Relevant Lines:
105

💛  - Coveralls


Unfinished TODO in permutationtable.rs

In commit #92 (41c0df5) @amaranth added a TODO to permutationtable.rs (was seed.rs). It looks like this TODO was partially completed by @arturoc in commit #94 but never actually finished.
The intent of the code is to extract the lowest byte from the input value and use that as the index into the table. This can be done with just the NumCast trait, so I don't see the purpose of the Signed and PrimInt traits.
@amaranth, would you be able to explain your thinking at the time?

Not really sure, I think I was just trying to replicate what we had already and was trying to get the traits that meant "this is a uint but I don't care what size".

TODO cleaned up as a part of removing all usage of num_traits.


make integration for terratests keeps failing

Description
after running make integration to run all the terraform tests alll of them expcept some tests are failed
many of them due to the version in the main.tf files

the tests should be running on the current version and should pass

The agreed on workflow is
1- against all commits we run the unittest suite
2- nightly runs the following
- full integration tests against devnet environment from development branch
- full integration tests against testnet, mainnet environment from the latest version (this is needed even after releases in case of hotfixes being applied on testnet/mainnet environments)

do we need also to run this integration test right after releases to different networks?
for example when we release 2.0.0-rc to run them against test net?

scenarios are done.
opening another issues for tests which are failing.


cmd/compile: panic by building with GOSSAFUNC in Go1.15

What version of Go are you using (go version)?

$ go version
go version go1.15 darwin/amd64

Does this issue reproduce with the latest release?
Yes. It does not happen in Go1.14.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/tenntenn/Library/Caches/go-build"
GOENV="/Users/tenntenn/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/tenntenn/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/tenntenn/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/dr/gn16sh9935zcz37xt2ghpk480000gn/T/go-build058106775=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

% cat main.go
package main
func main() {}
% GOSSAFUNC=main go build main.go
# runtime
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x12708a7]
goroutine 121 [running]:
cmd/compile/internal/ssa.(*Func).Fatalf(...)
	/usr/local/go/src/cmd/compile/internal/ssa/func.go:625
cmd/compile/internal/ssa.NewHTMLWriter(0x1843e7d, 0x8, 0xc00555bce0, 0x0, 0x0, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssa/html.go:33 +0xe7
cmd/compile/internal/gc.buildssa(0xc00194c840, 0x2, 0x0)
	/usr/local/go/src/cmd/compile/internal/gc/ssa.go:342 +0x1172
cmd/compile/internal/gc.compileSSA(0xc00194c840, 0x2)
	/usr/local/go/src/cmd/compile/internal/gc/pgen.go:317 +0x5d
cmd/compile/internal/gc.compileFunctions.func2(0xc00448f080, 0xc0008f7e80, 0x2)
	/usr/local/go/src/cmd/compile/internal/gc/pgen.go:382 +0x4d
created by cmd/compile/internal/gc.compileFunctions
	/usr/local/go/src/cmd/compile/internal/gc/pgen.go:380 +0x129

What did you expect to see?
Build successfully and generate ssa.html.
What did you see instead?
panic has been occurred.

It's trying to print you an error because it couldn't open the ssa.html file. Is the directory not writeable? Ah, maybe its trying to print an ssa.html for runtime.main, and you have the Go distribution directories read only. I can reproduce by making the runtime directory unwriteable.
Part of the problem is GOSSAFUNC uses a package-local name, so it can match in multiple packages, including stdlib.
I'm not sure why it is crashing when it tries to print you an error. That's something we should probably fix in the distribution.

I see now. The error writer tries to use the entry block's line number to annotate the error, but the entry block has not been set yet. Oops.

I don't think this is worth backporting, GOSSAFUNC is a best-effort service.
The fix will come out in 1.16. Until then, make the destination directory (or directories) writeable. Use a unique function name to prevent collision with stdlib names, if needed.

As noted already, the specific panic here seems to be around error printing. The underlying issue that causes the error in this case seems like it could be similar to https://github.com/golang/go/issues/33278, so it may be helpful to consult that issue for reference (it looks like using go tool compile instead of go build may be sufficient to work around the issue).

See also https://go-review.googlesource.com/c/go/+/246937


Bump k3s-root to 0.4.1

Just switched my nodes over to this build (off my temporary build with patched k3s-root) and everything is peachy. Thanks y'all!

https://github.com/rancher/k3s/issues/1682


feat(types): generated type declarations

Summary
Props to @jooohhn for discovering this. WIP to see what the types auto-generated by npx look like
Checklist

[ ] Does your PR title have the correct title format?
Does your PR have a breaking change?:

Hi @kelvin-lu, do we still want to pursue this?


Hide "Lyrics" link

Unfortunately, I'm not managing to finish it until the deadline. Let's leave it for the next versions.

Done.


chore(Update): updated provider to use latest beta api changes as well as updated the examples

Hey Nathan,
Thanks for the PR.
Except for the comment in devTools.js everything else is fine.
I'll merge as soon as this is fixed.
Thanks a lot :+1:

@wbuchwalter n/p, Good catch! ready now.

:+1:


[WIP] Update issue templates

These are the default github examples and need to be customized.
https://blog.github.com/2018-05-02-issue-template-improvements/

@hamishwillee @LorenzMeier @thomasgubler feel free to edit.

@dagar Nice one. Please review in #9541 #9542 #9543


tBTC token list update

We launched tBTCv2 a couple of months ago and it is gaining fast traction.
This PR is for:

update tBTCv1 listing by adding (deprecated) to its name
Adding tBTCv2 as a new asset

Why this update?
tBTC v1 is the original version of tBTC that launched in September 2020 by Keep Network and has been winding down.
tBTC v2 launched . It's the successor of tBTC v1, which dramatically increases scalability through capital efficiency.
We want to minimize the chance for confusion for your users.
Adding 'deprecated' to the tBTC v1 token listings, will reduce the chance of someone attempting to acquire tBTC v2 to acquire tBTC v1
Adding tBTC v2 as a new listing, with the correct logo, will increase the chance that someone that attempts to acquire tBTC v2 will select the correct asset.

Hey, any update on this PR ? Do we need to provide additional information ? Thanks


cross bug of MACD RSI Strategy

wrong cross
crossover_bear = crossunder(signal_line, macd_line)
right cross
crossover_bear = crossunder(macd_line, signal_line)

thank you for address this error. I fixed the script right now

My pleasure! MACD with CSI is a brilliant and effective strategy


Add EBS_ENDPOINT to EBS Docker Managed plugin

This patch adds EBS_ENDPOINT to the Docker managed plugin, which should allow a user to set the endpoint directly when using the plugin. This should solve #1118 .

Codecov Report

Merging #1132 into master will increase coverage by 0.46%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1132      +/-   ##
==========================================
+ Coverage   34.25%   34.71%   +0.46%
==========================================
  Files          36       36
  Lines        2362     2362
==========================================
+ Hits          809      820      +11
+ Misses       1450     1439      -11
  Partials      103      103

Impacted Files
Coverage Δ

...storage/drivers/storage/vfs/storage/vfs_storage.go
43.13% <0%> (+3.59%)
: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 a704f03...febfb77. Read the comment docs.


Web fonts rendering issue

If you have a look at this REPL, it loads a Raleway font. Trying to switch to it changes the time axis font, but does not the price one initially.

As I see both axes do not switch the font the first time. I'll try to figure out what's wrong.

It looks like the browser starts downloading this font only on the first real use. At the time of the real use, it is not yet ready, and the "font-display: swap" option does not work for canvas.

Well, yes,seems to be the reason. Updated REPL resolves the issue somehow -
Raleway font is applied to the .
Thanks a lot.
On Wed, May 11, 2022 at 12:45 PM trash-and-fire @.***>
wrote:

It looks like the browser starts downloading this font only on the first
real use. At the time of the real use, it is not yet ready, and the
"font-display: swap" option does not work for canvas.
—
Reply to this email directly, view it on GitHub
https://github.com/trash-and-fire/svelte-lightweight-charts/issues/28#issuecomment-1123375209,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBI25233D2F7CL2AEZA6QDVJNXSZANCNFSM5VTWPKHQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


:black_nib: Changed wordings.

Changes Unknown when pulling 58ef9d6ba9221dfb9c18e84a510ae4300161e57a on quick-fixes into ** on master**.

Changes Unknown when pulling 6d7cf0ec11542cd892fb759b3da2473bf9e45d7d on quick-fixes into ** on master**.

Changes Unknown when pulling b5e3110be5c50a0a0d9f4764ba3e136e8da9736c on quick-fixes into ** on master**.


Clock conversion and improvements to blackpill board

convert clocks for blackpill_f401ce and blackpill_f411ce to devicetree
remove unneeded nodes in board DT
enable LSE

I decided to revert the "remove unneeded nodes". If I should add this back please let me know


Lots of macro redefined warnings with clang

Tried building 0.2.18 with clang, but seems that I quickly hit 4MB of just warnings about macros that were redefined. See this log. Also, here is the recipe I used to build it.

Same or at least similar problem as #818 ?

Don't think so as this is occurring on Mac with clang and I am not setting CFLAGS at all. So, even the proposed workaround cannot be applied here.

Symptoms are very similar - I did not create a pull request for my Makefile changes as I was hoping for a more elegant solution, but that issue did not attract much interest apparently.
If you feel like experimenting, you could add my proposed "#ifdef DOIT" and "#endif" around the
CCOMMON_OPT     += -DASMNAME ...
line (~ line 906) in Makefile.system and the corresponding "DOIT=1" between the "TOPDIR=" and the "include" at the top of interface/Makefile (and eventually the five other Makefiles named in #818)
and see if that removes the warnings from that part of the build.

Can you try to build on clean system with clean xcode?
"official" conda-forge recipe is officially failing, your guess at least builds some result.

After playing around some more, I agree with you @martin-frbg. This is a dup of this issue ( https://github.com/xianyi/OpenBLAS/issues/818 ). I was able to resolve my issue by following this comment.


typo fixed: "PubSub function"

Thank @jojow for the PR. By fixing typo on README, would you mind correcting this line as well (double funcion call):
$ kubeless function call kubeless function call test --data {'kube':'coodle'}

Sure, just fixed it.

Tks @jojow 👍


Use lts-info to download correct previous image for LTS release

~This is a part of a strawman proposal to generate and use lts-info generated during making a new release.~
LTS info file is a fact now, so we can start using it.

Cherry-picked to 3227, 3277, 3346, 3033 and 2605.


Examples / Tutorial

Hi,
Where can I find examples of it's usage and is there any tutorial with explanation ?
Thanks

Hey @aqilzeeshan,
you can find examples here and running examples of those here. A tutorial is unfortunately not available at the moment.
Cheers


fix Fix potential data loss during disk migration

The following operations may trigger this issue.

migration start
load start using old tablet，but wait migration lock in RowsetBuilder::prepare_txn.
migration finish, old tablet -> new tablet
obtained migration lock and commit successfully using old tablet.
publish failed using old tablet, because old tablet has been dropped. It cause the data loss.

Therefore, after acquiring the migration lock, check if the tablet has already been shut down. If it has, it indicates that it is an old tablet, and data should not be imported into the old tablet.

run buildall

run buildall

run buildall

run buildall

run buildall


Fixed "AttributeError: 'list' object has no attribute 'add'"

Was having issues with the following error when a new client was added:
connection handler failed
Traceback (most recent call last):
  File "/.../websockets/legacy/server.py", line 236, in handler
    await self.ws_handler(self)
  File "/.../pywnp/pywnp.py", line 190, in _onConnect
    WNPRedux._mediaInfoDictionary.add(currentMediaInfo)
AttributeError: 'list' object has no attribute 'add'

When looking though the code, I saw that the _mediaInfoDictionary variable was stored as a set and then later sorted and the variable set to the value of a sorted function. This is an issue as sets are unsorted by nature and the sorted function returns a list. To fix this I changed the variable to a list and changed line 190 to append to the list rather than add to a set.
Was also having an issue where sometimes the duration would be not a number:
connection handler failed
Traceback (most recent call last):
  File "/home/agsheeran/.local/lib/python3.10/site-packages/websockets/legacy/server.py", line 236, in handler
    await self.ws_handler(self)
  File "/home/agsheeran/Development/_python/webnowplaying-applet/../PyWNP/src/pywnp/pywnp.py", line 206, in _onConnect
    currentMediaInfo.DurationSeconds = WNPRedux._ConvertTimeToSeconds(info)
  File "/home/agsheeran/Development/_python/webnowplaying-applet/../PyWNP/src/pywnp/pywnp.py", line 262, in _ConvertTimeToSeconds
    dur_sec = int(dur_arr[-1])
ValueError: invalid literal for int() with base 10: 'NaN'

Fixed by wrapping the casts in a try except block and returning 0 if it fails.
Also saw that the message type was being stored in a variable type which is a reserved name for the type function that returns the datatype of a variable. This is bad practice, so I changed the name to messageType.

Good catch, would've run into this if I hadn't changed the browser extension to only communicate via one websocket per browser instead of per tab.
I assume the duration not being a number is due to the browser extension returning nonsense?
As for using type as a variable name being bad practice, I can blame that on this being my first time touching python, was just porting my existing C# logic.
I'd merge right now but you're still adding commits a few minutes ago so I'll wait for you to tell me it's ready to be merged ^^

Believe its good now. Was just setting up my app that uses it and ran into those issues and decided to quickly fix them.
If I come across any other unexpected behavior I'll open up another pull request.
Thanks so much for making this available btw. its a great help in my current project!
Have a good one!

Would love to hear more about your use case for this. I didn't even think about it being compatible with other OS's now, it was originally just for Rainmeter which is windows only.
Message me on discord if you wanna talk about it ^^ (keifufu#3431)
I'll make this a new release later today.


No Error Check Causes "invisible" inventory items

Noticed when using this plugin that one time I dropped 2 logs while mid-animation entering Kharazi jungle.
Because of this the client side update from this plugin "removed" them from my inventory, but they were infact still there. So possibly needs to check if the drop actually happened and if not, revert the client side change.
Opening the bank alerted me to this as they now became visible, but even banking and re-withdrawing them did not update the client side. Had to disable plugin, then bank/re-withdraw.

This is already fixed in v1.0.1! (the version needs to be be approved by the runelite team)
Items which does not change in two ticks (1,2 seconds) will be reverted to the correct state.
Sorry for the inconvenience


Calling getUser() as a result of an userLoaded event causes infinite loop

Hi,
I have run into a situation in which some code calls UserManager.getUser() whenever a userLoaded event is fired. This is causing an infinite loop, as the getUser() function emits a userLoaded event internally.
I'm wondering if this is intentional, or if it is a bug? A userLoaded event should only be fired when a signin-process is successful, or when loading a token from local storage, right?

Well, the recursion is certainly not intended, thus we can safely call it a bug.
As for requirements -- when should userLoaded be called? Yes, I guess I can agree that it might make most sense to limit it to only when signin is complete.

Also, BTW, I don't think you'd need to call getUser() from inside the userLoaded event, since the user just loaded is a param to the promise callback.

Fixed.

Thanks! I'm aware that the User-object is provided to the callback-function. However, in my case the caller of the getUser-method was inside a long chain of functions called as a result of the userLoaded event. Instead of passing the User-object down the entire chain I thought that I could just call the getUser-method whenever I needed it.


Parameter missing in new home assistant version.

https://github.com/DarkC35/ha_linznetz/blob/2c35ee5a2b522c26b6c59fd5be2139f4bf991f0d/custom_components/linznetz/sensor.py#L127
if you add , {} to the call it works again ;)

Tanks for the info! I was afraid that something like rhis would happen after reading the release changelog x'D
I will try to fix this on the weekend and hopefully get some tests ready for the CI to catch failures until the next time something in the internal APIs changes.

Maybe there are some more problems:
File "/config/custom_components/linznetz/sensor.py", line 142, in import_report
and dt_util.parse_datetime(
-> I think they changed the return value of last_inserted_stat[self.entity_id][0]["start"] from string to datetime?

One more problem:
File "/config/custom_components/linznetz/sensor.py", line 149, in import_report
_sum = Decimal(last_inserted_stat[self.entity_id][0]["sum"])
2022-12-08 20:03:24.252 ERROR (MainThread) [homeassistant.components.automation.import_linz_netz_email_reports] Import Linz Netz Email Reports: Error executing script. Unexpected error for call_service at pos 1: 'sum'
sum is not defined anymore...
I dumped the variable one line above the error:
Result: {'start': datetime.datetime(2022, 12, 4, 22, 0, tzinfo=datetime.timezone.utc), 'end': datetime.datetime(2022, 12, 4, 23, 0, tzinfo=datetime.timezone.utc)}
I don't have a plan right now to fix that, maybe you have an idea ;)

Yeah I did not update my HA to 2022.12 yet because I was afraid that the integration breaks. I hope I get to fix it on the weekend... it already bugs me to think how such internal breaking changes need to be handled to ensure backward compatibility ^^'

Looking on the PR that changes the API the only core integration that rely on it is tibber and in the tibber/sensor.py file they had to add a {"sum"} argument.
https://github.com/home-assistant/core/commit/607a0e7697a640e524405f5560868125781bdf0c

That's true with sum as param it works again ;)

I added a PR (#8) with an updated version of the sensor.py file that worked with the documented tests in a dev container. You could tests this code on your installation and give feedback if you are brave enough ;D
I'm not sure when I will update my HA installation to > 2022.12.0 so I will wait with the merge a bit longer and maybe test a bit more.

Just a quick feedback, everything is working as expected ;-)
Thanks a lot!


Support modern MSBuild 15 like fsproj

I have a project with MSBuild 15 see
https://github.com/fable-compiler/fable-suave-scaffold/blob/master/src/Server/Server.fsproj and works perfectly in ionide. Visual Studio 2017 RC says it is not supported.
@cartermp @kevinransom @enricosada what's the plan for this?

Just use Ionide, mate ;]

I do obviously.

Issue solved, can be closed ;P

@forki -- the dotnet sdk team are creating templates for F# VS and coreclr.

We don't need templates. We need vs to load fsproj - or what am I missing?
Am 24.01.2017 8:14 nachm. schrieb "Kevin Ransom (msft)" <
<EMAIL_ADDRESS>
@forki https://github.com/forki -- the dotnet sdk team are creating
templates for F# VS and coreclr.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/visualfsharp/issues/2316#issuecomment-274905465,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNHXdVdtC4HLBpM6O8GhYedoG4WZCks5rVk14gaJpZM4LskAL
.

Sounds great ... looks like it's using the new dotnet SDK ... perhaps you can chat with them about what is missing ...
@enricosada might also be able to point you in the right direction.

who is them?

@KevinRansom just to clarify the scenario:

I create an MSBuild15-based F# project with the .NET CLI.
I attempt to open this project in Visual Studio
It fails, because we do not recognize MSBuild15 fsprojs

I'm not sure this is a CLI or SDK concern; I think this is squarely our problem to solve.  As it stands, there is no way to open an F# project using the MSBuild15 fsproj in VS 2017.  This is a bad situation because it means that you're locked out of anything .NET Core or .NET Standard for F# in VS 2017.  This is what I get on the build with Brett's insertion:

Thanks @cartermp - started to completely question myself.

I think the generated fsproj is fine dotnetcli is doing the right thing thanks to @enricosada. It's "just" VS is rejecting it. So it's definitely a VF# concern.

@cartermp @forki,
Visual Studio is apparently not yet shipping with an SDK that installs enrico's sdk additions.  I am looking at a build from the latest rtm branch.
I will follow up with the DOTNET SDK team directly, or someone can follow up with them on the dotnet cli repo.  Piotr is in a one on one and then shiproom right now otherwise I would have a definitive answer.
Kevin

@KevinRansom preview4 already works, What's needed always ship with sdk, after preview3 are just enhancement and cleanups. Also preview3 was working.
See my PR #2250 there there is also an example https://github.com/enricosada/visualfsharp/blob/use_net_core_sdk/examples/dotnetcoresdk/simple/console/ConsoleApp.fsproj who use FscTask too instead of dotnet-compile-fsc
AFAIK vs should

use Roslyn-project-system so we get all vs ui stuff (treeview etc)
I think we should add an FSharp capability (I can add that in the sdk target files, so is added for every fsproj, like the other props), that add the and initialize the languageservice parsing the compiler args from fsproj (similar on how now works) so intellisense works.

How vscode works now? How can have intellisense? On build a compile-fsc.rsp is generated who is the response file use for fsc, and ionide read that to initialize the FCS.
Now we can use FscTask (my pr) so compiler args gathering should change a bit (no response file).
If you want to try latest version with preview4, see my pr.

@KevinRansom what sdk version is used? Becuase fsproj works with all msbuild based preview3,4 and new rc.
Based on sdk version I can give you right templates (or just do dotnet new).
If we know a valid c# template is also easy to modify to be an f# one, changes are minimal.
I hope to have an installed VS2017 RC soon, to try it.

@ enrico so ...
C# is not helpful in this case, because it is supported in the box.  I know that they intend to ship your modifications in the box, which will make this template fine.  However ... it's not there yet.
Moving the project system to CPS should now be orthogonal.  The "joy" of moving back to msbuild based projects means that our current project system should work reasonably well.
As I said I will chat with Piotr and find out why your stuff didn't yet ship.  And see if there are some modifications we can propose to the templates.
Kevin

@KevinRansom about c# I mean seeing the template can show what version of f# template use. In Preview3 for example The f# is just an additional normal PackageReference, so nothing ship with sdk.
Anyway easier wait Piotr
About cps/Roslyn yes is orthogonal, but maybe we can start work on that on master branch, more work becuase need to be implemented, but less work to adapt current code to msbuild.
For example current project system reorder fsproj items on save, no multi fw support, reference but no PackageReference etc.
with Roslyn workspaces already implemented we have a good starting point. Lots of possible PR :)

@enricosada
It seems to me that Goal 1 should be that VS can load a dotnet/cli fsharp template so that we can edit the source.  Since we are now using msbuild that should not be too bad a problem to solve.
Most of the project file editing would not have UI because we aren't yet on CPS but we should be able to add --- move, rename and remove F# source files.  References will be problematic because they are quite different now and moving to CPS will help address that.
It seems that we are not at Goal 1 - Piotr on DotnetCLI and Daniel on the MSBuild team tells me that your SDK project is included in box for dotnet cli, but not included inbox for VS.
However, we should be able to author an F# template that doesn't use the SDK wiring which can be loaded into the F# Project System as is.  For sure the current templates do not do so.

Any progress on this? A month has passed. Could you be more clear where people can click New -> F# -> .NET Core console application and it will work, including debugging? Are we waiting until @enricosada has finished something? MSBuild team? Other people?

Are we waiting until @enricosada has finished something

@vasily-kirichenko i have nothing more to do for f# in .net core sdk 1.0 and the new fsproj afaik.
From command line all cli commands works (based on latest fsc released by vf# team), and everything is msbuild based (FSharp.Build.dll). Just minor bugfixes/improvement left, but can be done later (already logged in https://github.com/dotnet/netcorecli-fsc/issues ).
I need to do some work for community based FSAC (like vscode) to reenable intellisense, but is not related to VS.
Debugging in vscode already works too because the portable pdb work really well (thx about that @KevinRansom ) in my local tests with vscode debugger.
I added f# templates to dotnet new and these templates are imported as VS templates, for c# at least (used in New-> C#->.NET Core), but afaik are not going in for VS rtm (and is ok, because will not work).
About intellisense/projectsystem/debug/etc in VS dunno, i'll try to work on it, but on the long term roslyn-project-system based option, and later after rtm.

@vasily-kirichenko some wip by kevin about this in https://github.com/Microsoft/visualfsharp/pull/2482

@enricosada and I were trying to make it work. Results (VS RC4 + OSS VSIX built from current master):

Install .NET Core SDK 1.0 rc4 from here https://github.com/dotnet/core/blob/master/release-notes/rc4-download.md
Copy c:\Program Files\dotnet\sdk\1.0.0-rc4-004771\Sdks\FSharp.NET.Sdk\ to c:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\ (it should be done automatically by whom?)
dotnet new console -lang f#
It generates wrong fsproj, we should grab the proper one from here https://github.com/dotnet/netcorecli-fsc/blob/master/examples/rc4/console/console.fsproj

<Project Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp1.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="Program.fs" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="FSharp.NET.Sdk" Version="1.0.*" PrivateAssets="All" />
    <PackageReference Include="FSharp.Core" Version="4.1.*" />
  </ItemGroup>

</Project>

Try to load it in VS
We expect <ProjectGuid> tag in fsproj and crash here https://github.com/Microsoft/visualfsharp/blob/master/vsintegration/src/FSharp.Editor/Common/LanguageService.fs#L296 if it does not exist (site.ProjectGuid is null). After adding the tag the project is successfully loaded.
Build from VS does not work until we added the following (it seems to be ralated to the OSS VSIX, so it may work on stock / Full VSIX ootb):

<DontRunFscWithDotnet>true</DontRunFscWithDotnet>
<FscToolExe>fsc.exe</FscToolExe>
<FscToolPath>e:\github\visualfsharp\release\net40\bin\</FscToolPath>

and we had to copy a bunch of assemblies from related packages to c:\Users<user>.nuget\packages\fsharp.compiler.tools\4.1.0\build\netcoreapp1.0\ so that it look as following:
15-Feb-17  15:26               490 default.win32manifest
15-Feb-17  15:26             3,633 fsc.deps.json
15-Feb-17  15:26            25,744 fsc.dll
15-Feb-17  15:26               118 fsc.runtimeconfig.json
28-Feb-17  15:23            58,880 FSharp.Build.dll
28-Feb-17  15:23            69,120 FSharp.Build.pdb
28-Feb-17  15:23             1,465 FSharp.Build.xml
28-Feb-17  15:24        12,011,520 FSharp.Compiler.dll
28-Feb-17  15:24        13,129,216 FSharp.Compiler.pdb
28-Feb-17  15:24         1,050,766 FSharp.Compiler.xml
28-Feb-17  15:23         1,619,968 FSharp.Core.dll
28-Feb-17  15:23           430,744 FSharp.Core.optdata
28-Feb-17  15:23         2,731,520 FSharp.Core.pdb
28-Feb-17  15:23           561,214 FSharp.Core.sigdata
28-Feb-17  15:23           721,710 FSharp.Core.xml
15-Feb-17  15:26            25,040 Microsoft.DiaSymReader.dll
15-Feb-17  15:26            92,640 Microsoft.DiaSymReader.PortablePdb.dll
28-Feb-17  14:27    <DIR>          runtimes
11-Jun-16  23:13            21,704 System.AppContext.dll
11-Jun-16  23:13            22,184 System.IO.dll
11-Jun-16  23:14            22,728 System.Reflection.dll
15-Feb-17  15:26           432,872 System.Reflection.Metadata.dll
11-Jun-16  23:14            29,880 System.Runtime.dll
11-Jun-16  23:14            33,000 System.Runtime.Extensions.dll
15-Feb-17  15:26            47,304 System.ValueTuple.dll

and we had to copy FSharp.Core.dll/opdata/sigdata, FSharp.Compiler.dll and FSharp.Build.dll from e:\github\visualfsharp\release\net40\bin\ to c:\Users\<user>\.nuget\packages\fsharp.compiler.tools\4.1.0\build\netcoreapp1.0\, because it crashes with MethodNotFoundException.
After all these hacks:

The project is loaded to VS
It can be built inside VS
It can be debugged by attaching to process
All IDE features work

What does not work:

F5 does not start debugging because it cannot find *.exe file to run:

.NET Core console apps are DLLs which must be launched with dotnet run <dll> (@enricosada am I right?), so we should change something in ProjectSystem.Base or ProjectSystem I think.
There are phantom nodes in Solution Explorer:

which are from

<ItemGroup>
    <PackageReference Include="FSharp.NET.Sdk" Version="1.0.*" PrivateAssets="All" />
    <PackageReference Include="FSharp.Core" Version="4.1.*" />
</ItemGroup>

I think they should be moved to References node or a new Packages node.
Debugging:

Love seeing process on this 😃
.NET Core console apps should be launched with just dotnet, like dotnet myapp.dll, dotnet run is for when you are in the project folder and want the cli to take care of figuring out if it needs building etc.

@slang25 thanks :)

Added https://github.com/dotnet/netcorecli-fsc/issues/87 to locate dotnet, so netcore fsc will work (no need to override with .net full version of fsc)

I'll add some todo there, but should be a checklist in another meta issue (not this one) about "modify current project system to handle new fsproj", with all open points, issues found.
Maybe is better if you @vasily-kirichenko open it, so you can update the description with status/checklist later? @KevinRansom can already update that as admin.

[ ] fix location of dotnet , ref https://github.com/dotnet/netcorecli-fsc/issues/87
[ ] Manage projectguid (used also for project reference in the vf# project system afaik). Maybe read it from solution? because a solution file always exists, and guid there exists.
[ ] Special msbuild items (like PackageReference, DotnetCliTool) as nodes, filter out (fast) or add new node types (useful?)
[ ] make it readonly from ui. On save current vf# code will change fsproj and afaik that is risky. ihmo better tell everyone to manually edit fsproj.
[ ] use netcoreapp1.0 fsc or net40 fsc when building inside VS? as default?
[ ] use FSharp.Build.dll for net40 when building inside VS, but i think the current packaged in FSharp.Compiler.Tools has signing (read internal visible) issues?
[ ] propose dotnet restore at opening of project? because nothing works if is not restored already before open.
[ ] check build, ctrl-f5 run for netcoreapp
[ ] check build, ctrl-f5 run for net461 app
[ ] how crossgen (multiple target framework will work) will work? what is the current target fw executed by VS? a combo somewhere?
[ ] write a wiki with existing workarounds (like restore before load solution) may be enough for some things

Add file dialog shows no templates:

make it readonly from ui. On save current vf# code will change fsproj and afaik that is risky. ihmo better tell everyone to manually edit fsproj.

I think it's not risky. That's the change VS made after warning level was changed via UI:

look pretty good.

@vasily-kirichenko good, but that Condition is not what it's used normally in new fsproj. i mean the `|$(Platform)'. If we can remove or change that condition is better
@vasily-kirichenko i am more scared about file moves/deleted/added, or references added

@enricosada

Move up / down works OK.
Add does not work, see above.
Delete works OK.

Trying to add reference:

After the really promising and unexpected work in https://github.com/dotnet/roslyn-project-system/pull/1670 to enable F# with CPS and new roslyn project system, ihmo is useless to do work to patch the old project system. @KevinRansom what do you think?

How can this process be speed up? Which help is required?

@xperiandri see comments in https://github.com/dotnet/roslyn-project-system/pull/1670
work is pratically finish that PR.
with FSharp.NET.Sdk 1.0.2 the msbuild fsc task should be ok

How this affects ability to use it in Visual Studio 2017 soon?
Will Visual F# tools update just support it or it will require a new build of Visual Studio 2017 Update Preview to try this?

@cartermp any update on when we might see usable (even if beta) release for VS2017?

AFAIK, July is a super optimistic estimate.

@GiorgioG Current target is July.  Issues tracking it are here: https://github.com/dotnet/project-system/issues?q=is%3Aopen+is%3Aissue+label%3AArea-F%23
The "15.3" milestone represents the third update to VS 2017, which is likely to be around July.

I apologize if I missed something, but here is my issue/question:
I created a FSharp project using dotnet new dotnet new mvc -lang F#. Opening it in VS 2017 update 15.2 fails with this error.
From command line, when I run 'MSBuild myproj.fsproj' it fails with same error. However, dotnet build myproj.fsproj' builds fine. My understanding is that dotnet CLI uses MSBuild 15 engine (APIs) under the covers, so why does dotnet buildwork and notMSBuild```?
My environment:

VS 2017 15.2 (26430.6)
.NET Core 1.1, SDK 1.0.4
MSBuild 15.1.1012.6693

Thanks

@stanuku because VS msbuild doesnt include FSharp.NET.Sdk in the Sdks msbuild cache.
See https://github.com/Microsoft/visualfsharp/issues/2928#issue-224519514
If you copy %PATH_OF_DOTNET_EXE%\sdk\1.0.4\Sdks\FSharp.NET.Sdk into C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\FSharp.NET.Sdk\ will work in msbuild.exe (more info in https://github.com/dotnet/netcorecli-fsc/releases/tag/v1.0.3 )
But will not work in VS, because VS doesnt yet understand new project format ( more info in https://github.com/Microsoft/visualfsharp/issues/3069 ) expected in July update

@enricosada: Ok, understood. Thank you and please keep up the great work on F# front.

@enricosada I've copied the F# SDK to the MSBuild cache and when I opened the .fsproj I got this error:

Please let me know if I should wait till the next VS 2017 update or if there is a work around for this error. or post this error/issue in some other repo?

@stanuku  while copying sdk directory will make msbuild work from command line, is not enough for VS VF# extension, who need work for support the new project format (is a big change, but near completion).
See roadmap, need to wait until VS 2017 15.3 update at least (july timeframe)

Closing this now, as these projects load with 15.3.  The current way to use them and get a (mostly) good experience:

Download VS 2017 Update 3 Preview 3 (or a further preview if it's released and you're reading this)
Download the latest CLI/SDK from here: https://github.com/dotnet/cli/tree/release/2.0.0#installers-and-binaries

There is a small amount of remaining work left in our own language service to no longer depend on IProjectSite.  This the root cause behind #3260 and #3266.  Work to support file ordering, and any other project system-specific F# issues is being tracked here: https://github.com/dotnet/project-system/issues?q=is%3Aopen+is%3Aissue+label%3AArea-F%23

Should it be Preview 3 CLI?

Nope, the one linked above is the one to use.  There is no Preview 3 of the CLI.  There is also no affinity between the VS version and CLI version.  They have been designed so that you can update the .NET Core CLI and SDK out of band from VS.

@cartermp, thanks. Here is the issue https://github.com/dotnet/project-system/issues/2534

Should the files be in alphabetical order?
Also FSharp CoreApp 2.0 project's intellisense seems not to work with VS2017 and latest daily release of the tools.

@Thorium Most issues are being tracked here: https://github.com/dotnet/project-system/issues?q=is%3Aopen+is%3Aissue+label%3AArea-F%23
If you're using 15.5, then I suspect your issues with IntelliSense are due to #3653, which enables project-to-project references and fixes a bug where adding files results in IntelliSense issues.
In 15.3, the projects will load but they're not fully supported at all.

Thanks, I'm using 15.3 as there is no official 15.5 yet. Let's hope it won't vanish from the release version of 15.5 like F# features of Visual Studio often tend to.


Easy deploy to Heroku

It should be drop-dead simple to deploy an instance of Origin demo-dapp to Heroku.
Heroku-Github integration instructions here: https://devcenter.heroku.com/articles/github-integration
The thorny part of this feature is that it requires that the published npm version of origin.js be working and compatible with the version of demo-dapp. (Heroku will install that npm package like any other.)
EDIT: Of course, we could also have our package.json refer to a specific commit instead of a version. This seems a brittle, but perhaps is okay given our early state of development.
Related: https://github.com/OriginProtocol/demo-dapp/issues/105
Where there is discussion about how to do versioning.

Have the Heroku buttons working on the company-website repo already:
https://github.com/OriginProtocol/company-website
Wish there was a nicer way to detect which brach you are currently on in the Github UI versus showing separate buttons for develop and master. Sounds like a lot of people want that functionality, but Github don't seem in a rush to implement it:
https://github.com/github/markup/issues/913

Awesome! Such a cool feature.
I proposed a few edits to the readme after trying out the deploy:
https://github.com/OriginProtocol/company-website/pull/165

Done via #241 ✅


[JDK-12]: Getting illegal warnings in maven project

Excepted Result:
Should not get illegal access warnings
Actual Result
Getting below warnings
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/C:/Users/Debas/.m2/repository/com/google/pro
tobuf/protobuf-java/3.6.1/protobuf-java-3.6.1.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Steps to reproduce

Create gauge init java_maven project
run mvn test
Observe warnings in console output

Tested version
Gauge version: 1.0.5.nightly-2019-03-20
Commit Hash: 7aaf683
Plugins
csharp (0.10.6.nightly-2019-03-12)
dotnet (0.1.1)
html-report (4.0.8.nightly-2019-03-08)
java (0.7.2.nightly-2019-03-24)

Issue is not replicable with the above mentioned versions.

Reproducible in the below version:
Gauge version: 1.0.4
Plugins
-------
java (0.7.1)

The issue is not replicable in the latest release of java 0.7.2.

works fine with java (0.7.3.nightly-2019-04-01)


Overwrite stream.members in tar_file_iterator

Problem
When iterating through webdataset objects, memory grows as the tar files are read. For reading large shards or for reading shards in parallel, this memory build up can be an issue and ultimately cause the process to be killed due to lack of memory.
Proposed solution
Overwrite the stream.members class variable to an empty list after reading each item from the tar file.
By design, the TarFile class holds TarInfo objects in memory until they are manually removed or the object itself is deleted (see here). Manually overwriting this variable allows the TarInfo objects to be removed from memory and the memory footprint of the webdataset to be minimized during iteration. On direct comparison with the current head, this change dramatically lowers the memory consumption of the webdataset objects as they are being read and enables parallel reads with ease, even on small memory compute instances.
Affected functions
Only the tar_file_iterator function is affected, as the stream.members class variable is overwritten to an empty list after each example is read from the stream and yielded. This change should not affect any down stream process as the stream is deleted after all records are read and yielded.

Thanks for tracking this down.


Adding Brazilian Portuguese books

What does this PR do?
Add resource(s)
For resources
Description
Brazilian Portuguese Books:

Linguagem Assembly: Introdução ao padrão Intel 8086 - José Augusto N. G. Manzano (@J-AugustoManzano)
Programação de Computadores com Linguagem Julia - José Augusto N. G. Manzano (@J-AugustoManzano)
Linguagem LISP - Primeiros passos com Common LISP (CL) - José Augusto N. G. Manzano (@J-AugustoManzano)
Academia da Tartaruga - José Augusto N. G. Manzano (@J-AugustoManzano)
Linguagem Logo: Introdução com UCBLogo 6.2.2 - José Augusto N. G. Manzano (@J-AugustoManzano)
Programação de computadores para iniciantes com Small Basic - José Augusto N. G. Manzano (@J-AugustoManzano)

Why is this valuable (or not)?
Books with high quality content used even in universities
How do we know it's really free?
The author has published them on his GitHub and he is aware of publishing them in this repository. I used to be his student.
For book lists, is it a book? For course lists, is it a course? etc.
All are books.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

To Whom It May Concern: I am aware of the indication and free distribution of these books of my authorship. Authorized distribution.

Thanks for the feedback. Correction has been made and pull request is updated.

Thanks, and welcome to free-programming-books!


recreate from external PR #337

Closes #335
The actual fix had happened elsewhere, but this includes the new unit test written by CyberDNS in #337. I wasn't able to merge that branch or update their repo to fix the merge conflict, so I re-opened here.

Self-merging as this is a copy of a PR I reviewed.


[WASM] - Handle shared memory across any/all WASMModules

We need to be able to create a reusable memory module so that memory can be shared across all WASMModule.
An example code that would be valid for this use case may look like:
entry.js
import(“./abc.js”).then(abc => abc.doIt());

abc.js
import { duplicateText } from “./string.cpp”;

export function doIt() {
  console.log(duplicateText(“Hello World”));
}

string.cpp
extern “C” const char* duplicateText(const char* text) {
  int len = strlen(text);
  char* newstr = new char[len*2 + 1];
  strcpy(newstr, text);
  strcat(newstr, text);
  return newstr;
}

I can join hands with someone else interested in this.

@imvetri That would be awesome. Since we do not have the implementation of WASM started yet, we should create a few examples including the one above and use it as the basis for development.
Also if you would like to generate some more sample modules, there is a great LLVM online IDE that you can leverage.
Why don't we start drafting out together each of the features we would like to see from this and what it would entail.

@TheLarkInn  Any scenarios you have in mind for sample modules, if so could you list them for me. I will start with POCs for them.

Of course and absolutely. I'll share this issue with the community and see if anyone else would like to be involved!!

It appears there is already a great discussion happening here also: https://github.com/systemjs/systemjs/issues/1671 should try to work as closely as possible on a single module that both projects can use (if possible)

Did you all have thoughts on whether or not shared memory is truly a priority at this point? It's important to make some distinctions to clarify what I mean and my current expectations: compiling source like rust/c files using a loader would presumably create a single wasm module aka binary as a combination of all the files. These wouldn't need shared memory because there is only wasm binary.
If instead you're linking already compiled wasm binaries, that's a different story because they need ABI compatibility as a prerequisite which isn't doable right now reliably. There's also the argument that it's not a good default because unrelated modules could cause memory corruption to the others, e.g. imagine one brings in a GC the others don't use/know about. In systemjs/systemjs#1671 the recommendation was that separate modules each get their own memory (at least by default).
I'm on the fence about it, probably because I haven't thought enough about the practical implications. I feel separate by default is nice (and doable now) however seemingly can introduce hard to understand issues where one module calls the other (directly or indirectly) passing along a pointer that the receiver cannot deference because it's not in their own memory. I feel (without proof) that will be critical to understand for webpack users which is pretty unfortunate.
All that said, I'm an armchair compiler dude so certainly my understanding has gaps. We'll really need to lean heavily on the wasm team on this one for direction, with clarification IMO.

Although I'm hesitant to duplicate discussions, certainly webpack has different requirements/usecases as systemjs so IMO it's worth discussing partially independently and then we can collect our thoughts and collab.

@jayphelps I'm just learning about this but I needed it (shared memory across modules) already for a scenario I'm working on.
I would like to make a language but I don't want to use C or any traditional languages as the base. One of the interesting features about wasm is that you can dynamically compile to wasm and either run it or save it to disk and load it again later.
So I grabbed a compile of stdlib as a module so I can at least get malloc/free but since it's its own module I need to share memory across the two. Its not that hard to do but if you malloc in one module and need to get the memory at that location in another then you need to share it.
I'm not sure how common what I'm doing will be but it seems pretty critical for any scenario where you have more than 1 module.

We actually close this now. wasm modules are able to import the memory of other wasm modules.

I guess we can close this, as memory sharing is possible


Add WG related files

I've put this as a tools repository since it's not specific to any architecture but perhaps someone has a better idea?
I've also added some fairly simple tests for the init_data and zero_bss functions, just building on the host target for now. Is there any need to also build on thumb etc?

Would it be possible to co-maintain this with the cortex-m, cortex-a, risc-v and msp430 teams?

Good idea, I've updated to be owned by the various platform teams here and in bare-metal.

I'd like to hear from some other wg members on whether they like having the project be owned by multiple teams vs tools team, but I've fixed up the README and test name.

Platform teams seem the more logical choice to me.

I was thinking about this, too. Seems @japaric already had it set up for the platform teams so I kept it since it made a smidge more sense to me.

I think I prefer tools team but I can live with platform teams providing they promise to play nice. By that I mean I wouldn't want cortex-m to put in changes that negatively affect msp430, for example. Good CI for all the targets will help.
Maybe we can eventually get CI to produce cycle counts for initialising fixed size blocks for each supported target, to help spot regressions.


Migration 3.1.5 -> 5 -> 6

Hello!
To fix out previous issue: https://github.com/matteofabbri/AspNetCore.Identity.Mongo/issues/60 we need to update AspNetCore.Identity.Mongo to version 6+
There is instruction, how to migrate 5 -> 6, but there is no instruction how to migrate from 3.1.5 -> 5/6.
I'we fount out that collection structure changed severely:
Fields names changed, structure of collection of claims of user changed also, fields type changed:
Collection Users:
_id was ObjectId in 3.1.5, became string in 5.x (and back to ObjectId in 6.x)
LocautEndDateUtc changed to LocautEnd in 5.x
ClaimStructure changed from {"Subject", "OriginalIssuer", "Issuer", "Type", "Value" } to {"_id", "UserId", "ClaimType", "ClaimValue"} in 5.x
Is there a good way to migrate from 3.1.5 to 5.x ? Have we determined changes correctly, or more has changed? Thank you.

The best solution is to use the newest version.
As i can see we have different changes from version to version.
Also there was big changes with roles. Previously they stored in User entity like string (name). Now it's string too, but with id inside. Maybe some other (most likely).
I'll check all changes between 3.1.5 and 6.7.0 versions and create separate migration guide.

@Uterr I already created pull request for migration guide from version 3.1.5
But you can use it right now at migration_doc_to_newer_version branch


[WIP] Stable 2.0 backports3

@akallabeth Could you also consider including the commit from https://github.com/FreeRDP/FreeRDP/pull/6320?


running on GPU

I tried to run this on GPU, but it becomes much slower. I basically installed the CUDA backed dynet:
BACKEND=cuda pip install git+https://github.com/clab/dynet#egg=dynet
Then passed

--dynet-gpus 2

when training. But everything became much slower. For instance training on 500 sentence, each epoch took ~18 seconds, whereas with gpu-enabled, it took ~30 seconds. Is there a reason why this happens? Is there a solution for it?

GPUs are useful when training in big batches. (If small amount of
computation  is being done then it's slower than CPU because  of the
latency of moving stuff between  the CPU and GPU). This code was not
designed to work on a GPU, i.e. it works in small batches which include
each sentence separately (for graph-based approach) or even in smaller
granularity (for transition-based approach).
In order to improve the running time of the transition based method please
see Yoav Goldberg's auto batching paper. In order to improve the graph
based method running, address multiple sentences at once.
Best,
Eli.
On Sat, Apr 14, 2018, 4:15 PM TheElephantInTheRoom<EMAIL_ADDRESS>wrote:

I tried to run this on GPU, but it becomes much slower. I basically
installed the CUDA backed dynet:
BACKEND=cuda pip install git+https://github.com/clab/dynet#egg=dynet
Then passed
--dynet-gpus 2
when training. But everything became much slower. For instance training on
500 sentence, each epoch took ~18 seconds, whereas with gpu-enabled, it
took ~30 seconds. Is there a reason why this happens? Is there a solution
for it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/elikip/bist-parser/issues/21, or mute the thread
https://github.com/notifications/unsubscribe-auth/AFM5CGfWc7QX6cC58oD5aKOZYX5_NgC1ks5tofZ4gaJpZM4TVEFQ
.

Thank you for prompt reply.  For the transition s this the paper? For the graph-based method, I think all that is needed is to refine the Train function, to simulate something like this?


Integration tests

We are using this library in production code, so we want this library to be well-tested. Issues #19 and #20 might have been prevented with an integration test. I wrote some integration tests to validate the library.

Good Job! :+1:


fix: fix sidebar href

Summary
fix href. Now it will not reload when click.
Does this close any open issues?
Closes #2994

@likyh PR is failing Lint Commit Message CI Check


Add participate_in_2i_coverage riak option

Allows marking of nodes 'down' in calculations for 2i coverage
queries.  In create_plan, it queries each node for the value of the
participate_in_2i_coverage and treats those with the value set
explicitly to false as 'down' for the calculation of avaiable
vnodes.
See related riak_kv commit that adds a default value to the KV schema.
This is an operator feature. The operator must bring down the node,
change the config, and start the node, for it to have effect.

LGTM

The structure looks OK - but I notice there are no tests for this new functionality - are they in a separate repository?

Duh, just read comments above.

Don't you think maybe your comments about the schema from https://github.com/basho/riak_kv/pull/1664 should be on this PR?

I don't mind which PR is used to do it. the cuttlefish one could be merged in (to here) first.

I don't understand.

Looks ok for me.


Allow using a markdown parser on the examples captions (surrounded by…

… useless HTML p tags)

Thanks, Will take a look soon, just short on time.

Thanks @vbardales - how do I get markdown in my caption in jsdoc to compile?

In your jsdocConfig.json,
  "markdown": {
    "tags": ["examples"]
  },

I've published this, but I cannot get it to work - when I switch on markdown parsing of examples, everything in the example tag gets parsed, meaning my code gets br tags in it..
Is there something I'm missing?
You can see my test in the commit above (I removed the config for now, but obviously tested with "tags": ["examples"]

Here is an example of @example tag I'm using:
  /**
   * @summary Returns an Hello World
   * @example
   * <caption>Simple function declaration</caption>
   * function restApiResource() {
   *   return 'helloWorld';
   * }
   */

and it works fine


Attempt to use MonkeyType on sentry-python

Benefit seems minimal since this codebase already has lots of type hints

hey @vbro thanks but we have to support python2.7 so we're still using type hints in comments.
That's a much bigger refactor and we'll need to do that first before we can do fancy new typing stuff.
Closing, sorry!


Cost of each container under a storage account

Azure documentation issue guidance
Thanks for opening an issue in the Azure technical documentation repository.
We use GitHub issues as the primary channel for customer and community feedback about the Azure documentation.
Creating an issue
We prefer that you create documentation feedback issues using the Feedback link on the published article - the feedback control on the doc page creates an issue that contains all the article details so you can focus on the feedback part.
You can also create a feedback issue here in the repo. If you do this, please make sure your issue lists:

[ ] The relevant Azure service or technology.
[ ] A link to the published documentation article that you have feedback about.
[ ] Clear, specific feedback that the author can act on.

Pull requests and article contributions
If you know the change that is needed in an article, we encourage you to submit the changes directly using a pull request. If the change is large, or if you want to contribute an entire article, follow these guidelines:

[ ] Don't surprise us with a big pull request or a pull request with a new article! Submit an issue that describes the details of the proposed large change or new article.
[ ] Include the service or technology area.

We'll route the issue to the appropriate content team for review and discussion.
Tech support and product feedback
If you would like to contact Microsoft about other things, such as product feedback or tech support, please review these guidelines:

If you need technical support using Azure, the paid and free support options are described here: https://azure.microsoft.com/support/options/.

Each article in the Azure technical documentation contains a product feedback button - it's best to submit product feedback directly from a relevant article. Otherwise, you can submit product feedback for most Azure products in the following product feedback forum: https://feedback.azure.com/forums/34192--general-feedback.

How to view the cost of each container and their corresponding bandwidth usage from the cost analysis?

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

ID: 7349e660-9bb8-9676-6e48-17796a97b674
Version Independent ID: 3b80ab4a-f9c2-0b81-aa7b-99fff673d813
Content: Quickstart - Explore Azure costs with cost analysis
Content Source: articles/cost-management-billing/costs/quick-acm-cost-analysis.md
Service: cost-management-billing
GitHub Login: @bandersmsft
Microsoft Alias: banders

@Rinshad To assist you better on your query could you provide us with the link to the document you are referring to ?
In case your query in not related to document content, open a new forum thread either Microsoft Q&A or StackOverflow as it could be better place to get help on your scenario where the community members could provide their expert guidance to you based on their experience.

Hi Saurabh,
I referring below two documents to understand Azure cost analysis. But both these documents don't have any information about how to view the cost of each container and bandwidth in a storage account.
https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/quick-acm-cost-analysis
https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/cost-analysis-common-uses
Thanks

@Rinshad Thanks for sharing links!  I have assigned this issue to content author to investigate and update the document as appropriate.

@Rinshad Hi there. There are about 100 different Azure services, so not all of their billable meters are documented by Cost Management.
To see Azure Storage bandwith costs, in Cost Management, add a filter for Meter category then choose storage. Add another filter for meter subcategory then choose bandwidth.
To view costs in a tabular format, in the default Cost Management view, select Cost by resource at the top to the page. Then add filters, or just drill into whatever you want to see.
I'll have to investigate further about container names. I do not think that Cost Management gets container names from Azure Storage. I think the lowest level of detail available is meter subcategory. For Azure Storage thats: files, general block blob, tiered block blob, tables, bandwidth, standard page blob v2, and standard page blob. I'll reply here when I have definitive details.

@Rinshad I verified my assumptions with the Azure Storage engineering team: Costs for containers are aggregated in whatever service tiers/meter subcategory they belong to--that's the lowest level of cost detail available. Names of storage containers names aren’t available in billing data.
#please-close


react router optional params does not work?

How can I add an optional param to react router? here is my routes.json
{
  "HOME": "/",
  "INTERMEDIATE": "/intermediate/:cat",
  "CATEGORY": "/category/:cat/:subCat/:subSubCat?"
}

I want to set the third param in CATEGORY field as an optional, I added ? but it did not match the route.
react-router version: ^4.3.1

This is equivalent to doing something like <Link to="/category/:cat/:subCat/:subSubCat?" />. Please try that. If that doesn't work then it is an application related issue on your end.

Sorry it's my bad, my code was working
thanks for replay, you can close this issue