  The first layer Sparse is true, and the output layer Sparse is true.
I am wondering why the output data is sparse.
For the each userid, I guess the output is vector(27278 dimensions), of the score on each movie and the score is float.
So, it seems the output data is dense if I get scores of all movies.
Could you give me some advice on this?
Thank you!

Sparse=true is a flag to enable Sparseness Penalty on the Layer . Not marking the layer as Sparse. The data in the layer as Sparse is automatically detected by the DSSTNE Engine.
In the Standard config we have not provided the Sparseness Penalty

https://web.stanford.edu/class/cs294a/sparseAutoencoder.pdf Check from Page 14 which describes more about the Sparsness Penalty and other details

Input layer definition
"Sparse" : ,                       # Indicates whether layer is sparse (default false)
Output layer definition
"Sparse" : ,                       # Indicates whether layer is sparse (default false)
"SparsenessPenalty" :              # Indicates whether sparseness penalty should be applied (default false)
It seems that in the benchmark config.json, the output layer is sparse, and SparsenessPenalty is default value false.
I am wondering if the output layer is dense or sparse
Thank you!

So this is not quite right and I will soon be submitting a fix for this.  Currently, the Sparseness penalty is global.
The only piece here that is active is labelling a layer as sparse.  This automagically applies the global sparseness penalty to this layer.  SparsenessPenalty will be modified shortly to allow you to override the global penalty parameters on a per-layer basis.

@scottlegrand I tried to follow the benchmark guide but I'm not quite sure the autoencoder.py takes data input in which format. In the instructions it says -f ml-20all.remotcc which does not correspond to anything that I could imagine. Kindly advise, thanks in advance

You should download the file from https://s3-us-west-2.amazonaws.com/amazon-dsstne-samples/data/ml20m-all
wget wget https://s3-us-west-2.amazonaws.com/amazon-dsstne-samples/data/ml20m-all

@rgeorgej so you mean we are using that file directly as the input for the autoencoder.py? I tried that and got segmentation fault when running the benchmark. In particular, i run this on the EC2 (g2.2xlarge), with Cuda driver upgraded to 7.5, TF 0.9:
autoencoder.py -u 1024 -b 256 -i 1082 -v54 --vocab_size 27278 -l 3 -f ml20m-all
This gave me
python autoencoder.py -u 1024 -b 256 -i 1082 -v54 --vocab_size 27278 -l 3 -f ml20m-all I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcublas.so locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcudnn.so locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcufft.so locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcuda.so locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcurand.so locally Loading datasets Segmentation fault (core dumped)

We have used Tensorflow version 0.7 to evaluate this with Cuda driver version 7.0.

I think there might be an issue with tensorflow 0.9 as it cannot even detect gpus on the same machine on which I once ran tensorflow 0.8.

Over a year old - Tensorflow has moved on.  But for the first part, you had a flag to fix the sparseness penalty - has it been pushed?


Question about blurhash / dominantColor

Am I correct these don't work when using Imageboss? The blurhash is transparent and the dominantColor outputs: background-color: ; (empy) in the style tag.
Thanks.

Yes, ImageBoss doesn't support getting that information, so the transformed image model doesn't return it. But, powerpack should maybe just fall back to using a craft transformer for these things. Maybe behind a config setting. I'll give it some thought and see what I decide on.

Hi André, that's a great suggestion and was actually something I was looking for in the docs.

This has been resolved in 1.0.1.
There was a small inconsistency, where the ppplaceholder functionality relied on the local craft transformer, but the one enabled by the configuration didn't. I just made both base the placeholder on a local transform, since it's the only way to get a consistent behaviour across different transformers. This might not be ideal in cases where users absolutely don't want, or can have, transforms locally, but then the placeholder functionality can be solved outside of the context of the Power Pack.

@aelvan Thanks, works great!


Rng Animations

How to make rng animations?
does your lib have the ability to run random animations? If this is not possible, then I can offer a convenient implementation.

I don't plan on adding rng animations to JimmyAnims, but if you have a convenient implementation I'm ready to hear it.


Add Dim.Fit to Computed Layout to automatically size views based on content

See #2431 for some context.
Multiple times I've wanted to have a view dynamically be sized based on it's subviews. Also we have AutoSize which sorta does this for Text.
I'd like to propose the following for v2:

A new feature for ComputedLayout that adds Dim.Fit()
Replace AutoSize with something that builds on Dim.Fit()

I think this should be possible, but haven't thought THAT much about it.
view.Height = Dim.Fit();  // Height will be Margin.Height+Padding.Height+Border.Height+(height required for all Subviews to fit).
view.Width = Dim.Fit(1); // Width will be Margin.Width+Padding.Width+Border.Width+(Width required for all Subviews to fit) + 2

I love this idea.  But I wonder if Fit sounds too close to Fill?  We need to reinforce that (unlike other Dims) this is about the size of its children (not the available bounds of parent).  Maybe something like Grow? I.e. its size grows based on its content?
You could have it take a maximum:

Dim.Grow(20) resizes based on children to a max of 25 units

Maybe if its possible we could even give the max as a Dim (although that may be too far)

Dim.Grow(Dim.Percent(50)) would grow based on size of children up to 50% of width available.

Yes, I think it's a good idea. It's ideal for calculating content size to fit all views with the total of horizontal and vertical size. This size could be used on scroll bars to navigate through all the views. Some recursive method that will filter the sum of views size.

I love this idea. But I wonder if Fit sounds too close to Fill? We need to reinforce that (unlike other Dims) this is about the size of its children (not the available bounds of parent). Maybe something like Grow? I.e. its size grows based on its content? Or Dim.AutoSize() or just Dim.Auto()?
You could have it take a maximum:

Dim.Grow(25) resizes based on children to a max of 25 units

Maybe if its possible we could even give the max as a Dim (although that may be too far)

Dim.Grow(Dim.Percent(50)) would grow based on size of children up to 50% of width available.

Def worth thinking about more!
I still like the simplicity of "Make the dimension just big enough to fit the subviews."
I just realized that with the new View design, my example above of view.Width = Dim.Fit(1); could be achieved with:
view.Padding.Thickness = new Thickness (1,1,1,1);
view.Width = Dim.Fit ();

So, using the parameter for "Make the dimension just big enough to fit the subviews, plus a little more" isn't necessary. This does open up the possibility of a Max (and Min) parameter as you suggest.

Instead of:
view.Padding.Thickness = new Thickness (1,1,1,1);
you can use:
view.Padding.Thickness = new Thickness (1);
because the constructor will fill all the sides with the same size, at least the struct on the Border does.

Instead of: view.Padding.Thickness = new Thickness (1,1,1,1); you can use: view.Padding.Thickness = new Thickness (1); because the constructor will fill all the sides with the same size, at least the struct on the Border does.

I knew that, but wanted to make it clear to people who aren't familiar with Thickness that it has 4 dimensions.
In my View prototype I've added Vertical and Horizontal properties too:
	public int Vertical {
			get {
				return Top + Bottom;
			}
			set {
				Top = Bottom = value / 2;
			}
		}

		public int Horizontal {
			get {
				return Left + Right;
			}
			set {
				Left = Right = value / 2;
			}
		}

@tig do you agree that absolute Pos/Dim values must always have the same location and dimension values of the Frame no matter is layout style is Absolute or Compute. e.g. With a Frame=Rect(1, 2, 10, 20), will result on a Pos/Dim (X=1, Y=2, Width=10, Height=20).

I now think Dim.AutoSize () might be the right name for this.
Implementing was ridiculously easy (I've done very little testing, so something is probably broken).

var textField = new TextField { Text = "Type here", X = 1, Y = 0, Width = 20, Height = 1 };

var label = new Label {
	X = Pos.Left (textField),
	Y = Pos.Bottom (textField),
	AutoSize = true,
};

textField.TextChanged += (s, e) => {
	label.Text = textField.Text;
};

var button = new Button () { Text = "Press to make button move down.",
	X = Pos.Center(),
	Y = Pos.Bottom (label),
};
button.Clicked += (s, e) => {
	button.Y = button.Frame.Y + 1;
};

var view = new FrameView () {
	Title = "Type in the TextField to make it grow.",
	X = 3,
	Y = 3,
	Width = Dim.AutoSize (),
	Height = Dim.AutoSize ()
};

view.Add (textField, label, button);

Auto wins.

Dim.Auto and not Dim.Auot 😃

DimAutoStyle.Text is now complete and merged in #3416.
Now we need to address:

[ ] Fully implement/test DimAutoStyle.Content
[ ] Implemement Dim.AutoSize (max: dim)
[ ] Use Dialog and MessageBox as test cases - This will require moving the dialog buttons to Padding as adornments.
[ ] Dive deep into all other PosDim objects and get clarity on behavior relative to Dim.Auto - Improve unit tests to validate

[x] Dim.Absolute
[ ] Dim.Auto
[ ] Dim.Fill
[ ] Dim.Function
[ ] Dim.Width/Height
[x] Pos.Absolute/At
[ ] Pos.AnchorEnd
[ ] Pos.Function
[ ] Pos.Anchor
[ ] Pos.Percent
[ ] Pos.Center
[ ] Pos.X/Y etc...


Q: What is the benefit of streaming?

It is not clear what is the benefit of reading manually parsing of the request body ("Streaming"), above using IFormFile ("Buffering").
You say that IFormFile is for uploading small files, and for large files it's better to use streaming.
But IFormFile also have only streaming methods. so where is the buffering?
In addition, in your examples, streaming method also ended up with bufferning. the ProcessFormFile read all data to byte array.
So, what is the difference?

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

ID: 9a5cfa38-0e6c-4346-dafc-84ea5c513fcf
Version Independent ID: c6787f0f-3e9a-6efb-0e6e-5ccb957d3f4a
Content: Upload files in ASP.NET Core
Content Source: aspnetcore/mvc/models/file-uploads.md
Product: aspnet-core
Technology: aspnetcore-mvc
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Moved to  File Uploads topic enhancements and master issue #12285


Heartbeat

Add a message to version() so that it returns 200 instead of 500, so that check_mk can use as a heartbeat.

Next we need the defib.


Modify Guild Channel Positions https://discord.com/developers/docs/resources/guild#modify-guild-channel-positions

Done


Translation problem English to french

In English , you write : « Teams user », you have to translate it by « Utilisateur Teams », that is better than : « l’utilisateur d’équipes »

Détails du document
⚠ Ne pas modifier cette section. C’est obligatoire pour docs.microsoft.com ➟ Liaison des problèmes GitHub.

ID: c59eff85-a7f1-764b-4716-b79d70c18d18
Version Independent ID: 49ecb4f7-3e80-c81a-32b6-4f3fda8826dd
Content: Licence Office 365 pour Microsoft Teams - Microsoft Teams
Content Source: Teams/Office-365-licensing.md
Service: msteams
GitHub Login: @LolaJacobsen
Microsoft Alias: lolaj

@officeglobal Hi! Could you please help with this issue? Thanks!

Working on a fix

@OfficeGlobal  Any update on this issue? Thanks

@eudaele , @scanum the affected text was updated by "Utilisateur Teams"

@eudaele Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


bilobe, encastage (logical-conflict)

This pull request was generated by the 'mq' tool

/trunk merge


Add Jenkinsjob to test with golang race mode set

Also suggested by https://github.com/cilium/cilium/issues/9604#issuecomment-558924564
A branch that has some work already started:
https://github.com/cilium/cilium/tree/wip-run-with-race-detector

Fixed


add movie module

Codecov Report
Patch coverage: 100.00% and project coverage change: -0.24% :warning:

Comparison is base (94db8ba) 97.11% compared to head (f394eac) 96.88%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #78      +/-   ##
==========================================
- Coverage   97.11%   96.88%   -0.24%
==========================================
  Files          24       25       +1
  Lines        1805     1828      +23
==========================================
+ Hits         1753     1771      +18
- Misses         52       57       +5

Files Changed
Coverage Δ

src/modules/movie/MovieTest.cpp
100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

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


Xcode8 searches reference screenshots in wrong directory (_32 instead of _64)

I'm using Xcode8 and getting following error:
-[swiftGift2Tests.AddVoucherTests testVoucherAddedState] : failed - Snapshot comparison failed: Optional(Error Domain=FBSnapshotTestControllerErrorDomain Code=1 "Unable to load reference image." UserInfo={NSLocalizedFailureReason=Reference image not found. You need to run the test in record mode, NSLocalizedDescription=Unable to load reference image<EMAIL_ADDRESS>Notice ReferenceImages_32. I tried iPhone 6 (iOS 9) / iPhone 6s / iPhone 7. I expected it to be
ReferenceImages_64 as it was when I used it along with Xcode7.
Probably this can be important: I'm using Carthage as dependency manager, so library is assembled as a framework.
I tried to test the following method in empty Xcode8 project but in this case it works as expected and returns YES for all x64 devices.
BOOL FBSnapshotTestCaseIs64Bit(void)
{
#if __LP64__
    return YES;
#else
    return NO;
#endif
}

Probably it's not related with architecture.
Short story short:
Looks like you didn't record image.
Short story long:
Test first check your device architecture snapshot (64 bit for iPhones 6(s)/7) and then checks other architecture (32 bit). If compare between reference image and your view snapshot is OK your test pass. But if compare for first architecture fails framework try to check other architecture. If this fail you will get fail only for other than your device architecture.
Check FBSnapshotTestCase.h, line 88:

start test loop
first check 64 bit
remove all errors
fails, so add error to errors array
check 32 bit
remove all errors
fails, so add error to errors array
end test loop
assert with first error (but in array is only one error)

We discussed about this with @nscoding here: https://github.com/facebook/ios-snapshot-test-case/pull/119 (you need to expand 2-nd comment.

@Grubas7 thanks for the explanation, I am not able to check it ATM but I think you are right.


Mandatory parameter 'origclientorderid' was not sent, was empty/null, or malformed.

when I trigger query kline function, this error print out.
client.klines(symbol=market, interval=interval, limit=1000, endTime=last_time)
binance.error.ClientError: (400, -1102, "Mandatory parameter 'origclientorderid' was not sent, was empty/null, or malformed.", {'Date': 'Sat, 13 Jul 2024 04:27:42 GMT', 'Content-Type': 'application/json', 'Content-Length': '106', 'Connection': 'keep-alive', 'Server': 'Tengine', 'x-mbx-used-weight-1m': '34', 'x-response-time': '0ms', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS'})

pass wrong value of endTime, use this function:
def current_milli_time():
return round(time.time() * 1000)


[SPARK-46090][SQL] Support plan fragment level SQL configs in AQE

What changes were proposed in this pull request?

This pr introduces case class AdaptiveRuleContext(isSubquery: Boolean, isFinalStage: Boolean) which can be used inside adaptive sql extension rules through thread local, so that developers can modify the next plan fragment configs using AdaptiveRuleContext.get().
The plan fragment configs can be propagated through multi-phases, e.g., if set a config in queryPostPlannerStrategyRules then the config can be gotten in queryStagePrepRules, queryStageOptimizerRules and columnarRules. The configs will be cleanup before going to execute, so in next round the configs will be empty.
Why are the changes needed?

To support modify the plan fragment level SQL configs through AQE rules.
Does this PR introduce any user-facing change?

no, only affect developers.
How was this patch tested?

add new tests
Was this patch authored or co-authored using generative AI tooling?

no

cc @cloud-fan @maryannxue @dongjoon-hyun if you have time to take a look at this idea, thank you.

I merged it. Could you rebase this PR, @ulysses-you ? 😄

#44142

thank you @dongjoon-hyun it's done

cc @cloud-fan , @wangyum

@beliefer for example, change the initial shuffle partition number per plan fragment to avoid too big or too small, change the advisory partition size according to the feature of plan fragment(small for generate, big for filter).

@beliefer for example, change the initial shuffle partition number per plan fragment to avoid too big or too small, change the advisory partition size according to the feature of plan fragment(small for generate, big for filter).

Thank you for explanation.

@cloud-fan any concern to land this at 4.0 ?

thank you all, merged to master(4.0.0)

Hi @ulysses-you , we tried to use this RuleContext framework and found some design issues:

the AQE rules are not always stage-local, but can transform the whole plan. It doesn't make sense to put stage information in the RuleContext. e.g. how can OptimizeSkewedJoin rule leverage it? What does the isFinalStage even mean in this context?
The protocol for setting this plan fragment level configs is very hacky. The test uses one custom rule to update RuleContext, expecting another rule to access the RuleContext. This assumes that there is a global RuleContext instance shared between all rules, which is quite messy if the rule transforms the whole plan and needs to deal with multiple stages.

I think a better design is to put the context (plan fragment level confs or something more general) in the query stage itself. Then all the rules can either update or consume the query stage context. The only problem is that we don't have a query stage node for the final result stage, but we should add one (@liuzqt is working on it).


Use forked package of SteamKit that improves testability

Codecov Report

Merging #26 into master will decrease coverage by 12.27%.
The diff coverage is 40.29%.

@@             Coverage Diff             @@
##           master      #26       +/-   ##
===========================================
- Coverage   99.71%   87.43%   -12.28%
===========================================
  Files          60       61        +1
  Lines         699      812      +113
  Branches       62       62
===========================================
+ Hits          697      710       +13
- Misses          1      101      +100
  Partials        1        1

Impacted Files
Coverage Δ

...aderboards/Steam/ClientApi/SteamClientApiClient.cs
100% <100%> (ø)
:arrow_up:

...Leaderboards/Steam/ClientApi/SteamClientAdapter.cs
13.79% <14.89%> (ø)

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 7f25c16...490af27. Read the comment docs.


declare and fetch to execute in slave

TODO: Add tests for the declare fetch and close commands to be redirected to slaves.


Medium publish and backfeed support

...obligatory at this point, since they launched an API. cc'ing @tantek, @kevinmarks, @aaronpk who can fill in more details and itches.

I wrote up my experience of POSSEing to Medium (TL/DR: pretty straightforward):
https://adactio.com/journal/9694
It would be great if "recommends" and "responses" on Medium could be sent back to a webmention endpoint via Brid.gy.

thanks @adactio! that's definitely useful. i've updated the issue to include backfeed. i agree, it'd be great to add!

looks like the API only supports posting right now, not fetching recommends/responses, so backfeed isn't possible just yet. :/

https://github.com/Medium/medium-api-docs#contents
https://medium.com/developers/welcome-to-the-medium-api-3418f956552
https://medium.com/the-story/medium-s-publishing-api-31b9f05fada1

Boo! :-1:
I’ll see about opening an issue/request on the Medium API github project.

if anyone's interested in tackling this, i've written up comprehensive instructions on how to add a new silo to bridgy. feel free to jump in!

oauth-dropins is snarfed/oauth-dropins@746dd414d00880825d01c36529df97891353dd67

just for the hell of it, i looked at what it would take to scrape medium for backfeed. example post: https://medium.com/@mroth/wtf-just-happened-at-khan-academy-a840612930b
short answer: neither responses nor recommends are in the page itself, both are behind AJAX requests. ah well.

I have a need for this now, as backchannel is moving to wired, and the
replies aren't going with them.
I'll have a look myself
On 25 Jun 2017 10:49 pm, "Ryan Barrett"<EMAIL_ADDRESS>wrote:

just for the hell of it, i looked at what it would take to scrape medium
for backfeed. example post: https://medium.com/@mroth/wtf-
just-happened-at-khan-academy-a840612930b
short answer: neither responses nor recommends are in the page itself,
both are behind AJAX requests. ah well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/snarfed/bridgy/issues/506#issuecomment-310930752, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAGCwGiZDnWav3Os26fsoSOgkM0WeZ7Jks5sHtXsgaJpZM4GMkyU
.

Er, this post
https://medium.com/backchannel/how-the-web-became-unreadable-a781ddc711b6
On 25 Jun 2017 10:51 pm, "Kevin Marks"<EMAIL_ADDRESS>wrote:

I have a need for this now, as backchannel is moving to wired, and the
replies aren't going with them.
I'll have a look myself
On 25 Jun 2017 10:49 pm, "Ryan Barrett"<EMAIL_ADDRESS>wrote:

just for the hell of it, i looked at what it would take to scrape medium
for backfeed. example post: https://medium.com/@mroth/wtf-
just-happened-at-khan-academy-a840612930b
short answer: neither responses nor recommends are in the page itself,
both are behind AJAX requests. ah well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/snarfed/bridgy/issues/506#issuecomment-310930752,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGCwGiZDnWav3Os26fsoSOgkM0WeZ7Jks5sHtXsgaJpZM4GMkyU
.

just for the hell of it, i looked at what it would take to scrape medium for backfeed.

🙈


improve: add Python 3.12 support

Draft: currently blocked by argilla not supporting 3.12
Waiting for this PR to be released: https://github.com/argilla-io/argilla/pull/4837
Fixes #2959

Thanks for this @nicoloboschi ! Just turned on the CI pipeline. If I recall correctly, it was onnx that was blocking 3.12 support before, but that should be resolved now.

CI failure was due to this. We may be able to work around that though.
ERROR: Cannot install argilla==1.28.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    argilla 1.28.0 depends on numpy<1.24.0
    The user requested (constraint) numpy>=1.26.0
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

Ahh disregard, I see you have a PR open for 3.12 support in Argilla as well.

@MthwRobinson  hi I experience the below error when trying to use python 3.12 with unstructured

Meanwhile are there any hotfixes I can apply?

@gokturkDev - In the meantime, I'd try manually running make install on the branch for this PR. The version updates @nicoloboschi added to contraints.txt are what you need to enable 3.12. As long as you aren't using the Argilla integration I don't think it should be an issue, though I haven't tested it myself yet.

Hey thanks for the response. I ended up installing the latest onnx manually instead of using the one installed as an unstructured dependency and its working so far 👍

@nicoloboschi - Going to merge this into a feature branch and then get it into main from there. Failing tests are because env vars are missing on the fork. Thank you for this contribution!

New PR is #3047


Error: All configured authentication methods failed ；Network is disconnected

配置文件里要配置登录密码
---- 回复的原邮件 ----
| 发件人 | @.> |
| 日期 | 2022年02月18日 15:00 |
| 收件人 | @.> |
| 抄送至 | @.***> |
| 主题 | [nxshell/nxshell] Error: All configured authentication methods failed ；Network is disconnected (Issue #143) |
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


Development Fix sorting not working in course management exercise list

Checklist
General

[x] I tested all changes and their related features with all corresponding user types on a test server.
[ ] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Client

[x] I followed the coding and design guidelines.
[x] I added multiple integration tests (Jest) related to the features (with a high test coverage), while following the test guidelines.
[x] I added authorities to all new routes and checked the course groups for displaying navigation elements (links, buttons).
[x] I documented the TypeScript code using JSDoc style.
[x] I added multiple screenshots/screencasts of my UI changes.
[x] I translated all newly inserted strings into English and German.

Motivation and Context

Fixes #4346
The exercise lists in the course management exercise page can currently not be sorted.
This is a bug that was introduced with #4205
Description

The filtered exercise lists were not updated properly after sorting the unfiltered exercises. This PR fixes this.
Steps for Testing

Prerequisites:

1 Instructor
1 Course with a couple of exercises

Log in to Artemis
Navigate to Course Management Exercise Page
Try to sort the tables of exercises

Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Unchanged
Screenshots

No UI change

Tested on TS1, sorting works for almost all values again, but not for the points. Clicking on the table header changes the arrow indicator, but the table remains unsorted. This is the case for all exercise types.

Good catch. Looks like this was a bug that has existed for a few months now and was introduced back in #2797
Should be fixed now.

Tested on TS1, sorting works except sorting by "Start Time" in quiz exercises. Here is a screenshot:

I investigated this issue and I think what causes it.
The Start Time column is being filled with the following expression: quizExercise.isPlannedToStart ? (quizExercise.releaseDate | artemisDate: 'long':true) : '-' and the table column is sorted solely by the release date.
So even if the quiz has a release date it will not show if the isPlannedToStart property is set to false. The underlying issue here is that every quiz exercise has a releaseDate set, even if you do not tick the "Start Time" box in the quiz creation. Also if you ever untick this box the releaseDate will remain unchanged.
This is what you are seeing. The quizzes are sorted correctly by their releaseDate property, but the release dates are simply not all shown.
Due to the way that the table sorting is handled I don't really see a quick way to solve this. And it might even be worth to consider changing the underlying problem that I mentioned in another PR.

Tested on TS1, works as described. Sorting by points is fixed now, too. One minor thing, that may be out of scope for this PR but IMO not worth an own issue:

The column header 'Participation Mode' for programming exercises also has an icon for sorting, while it actually cannot be sorted by.

I removed the sorting icon from the Participation Mode column, as sorting is not active for this column.


Getting 'active' spells?

Not sure if this is handled in a particular way (or at all), but I can't seem to find a way to get a list of spells that are currently active or in progress. For example, if a spell is cast has a projectile that lasts x amount of seconds, I want to get a list that shows that spell is active until it's completed.
Current functions such as getActiveSpells() (on Mage) or isActive (under MageSpell) only return correct information about spells that has active costs (Such as LevitateSpell).

Mage.getPendingBatches is maybe what you want. It's the only thing that tracks in-progress ActionSpells running.
You can get the name of the batch, which I think is the name of the spell. There is not currently a way via the API to reference back to the spell that started the batch, though I think that could be added or you could do some non-API casting to figure it out.

That worked, thanks!


Update app.js

An exception is thrown when calling loadSensorsFromCacheAndShowAQI if no sensor data is stored locally.

LGTM. (@ramatevish - Just to confirm, this is a correctness fix, but the live site isn't failing to work for end-users, right?)

Seems straight forward enough.

Correct.
On Tue, Sep 8, 2020 at 11:16 AM Jesse Vincent<EMAIL_ADDRESS>wrote:

LGTM. (@ramatevish https://github.com/ramatevish - Just to confirm,
this is a correctness fix, but the live site isn't failing to work for
end-users, right?)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/skalnik/aqi-wtf/pull/43#issuecomment-689051001, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AALTMVKD3YHCE35SEPM5ROLSEZYIHANCNFSM4RAKKGNQ
.


About the monotonicity of the predict layer in the coral network

Hi,
Sorry to bother. I had a problem when understanding the monotonicity of the coral network's predict layer. Here's the only statement I found modifying the bias layer adding to the fc result:
self.linear_1_bias = nn.Parameter(torch.zeros(self.num_classes-1).float())
Is it enough to restrict the monotonicity ? Or is there any other statement restricting the  monotonicity of the biases？

I would call it "guaranteeing" monotonicity :). Yeah, it's the bias and the weight sharing together with the loss function. Regarding the changes compared to a regular network, maybe this overview helps? https://github.com/Raschka-research-group/coral-cnn/blob/master/github-images/differences-at-a-glance.pdf

Yeah, that helps. Thank you so much.


Tree-shaking seems to be broken

Running webpack bundle analyzer, I am seeing every icon being included in my minified bundles:

Not sure if I am doing something wrong of if there is a problem in the package.
babelrc settings:
{
    "presets": [
        ["env", {
            "loose": true,
            "modules": false
        }], "react"
    ],
    plugins: [
        'syntax-dynamic-import',
        'transform-object-rest-spread',
        'transform-class-properties'
    ]
}

I am using import statements as well.

Same problem, but i use TypeScript without Babel.

This is still broken.
I'm using it like this:
import { Users } from "react-feather";
But in analyze I see this:

I'm using create-react-app latest default.
Something broken?

This will always be the case untill this project is using babel to build ES modules into module.exports. It happens because WebPack only does tree shaking from ES modules. You can read it here.
You will need to import using the full path like described above.

Ok. I understand. Can I follow this thread for updates to when ES modules will be there? There is a PR?

@RinkAttendant6 I don't see how it will help because the library is still transpiling ES modules to CommonJS, thereby making it hard to tree shake. It's not only Webpack that suffers from this, but also Rollup, which is geared towards ES modules as well.
If we were to go with ESM, we'd not only need "sideEffects": false but also "modules": false in .babelrc. But then anyone using Node would either need to transpile ESM to CJS themselves, or introduce a bundler to their build step. Coincidentally, many people already bundle their React server-rendered code, just as they have to their front-end. So I think this change would be welcomed, and IMO this is the most viable way to go forward. @cichelero What are your thoughts?
Other prospects are dim. We could ship two bundles, both CJS and ESM, but this will double the size, and put us at risk of timeout when installing the package. We could also publish react-feather-es, just like lodash-es did, but this would inevitably lead to duplication. End users would need to alias the library or force-rewrite the import path in their bundler config, which is doable, but hacky.
Just throwing out ideas. On the same note, has anyone tried webpack-common-shake to shake these icons?

@alex996 What about referencing the ESM file from the module field in package.json? From https://rollupjs.org/guide/en#tree-shaking:

If your package.json file also has a module field, ES6-aware tools like Rollup and webpack 2+ will import the ES6 module version directly.

And it looks like Webpack prefers the module field over the main field in the default mainFields configuration.
I don't have experience in publishing a library to npm, just trying to throw out some ideas here. If it comes to shipping two bundles, I don't really see that as problematic as long as the size of the final output doesn't increase (it shouldn't, because either the CJS or ESM would be considered depending on the build toolchain, not both.)

@RinkAttendant6 You're right.

Might be worth looking at Styled Icons. They boast:

styled-icons provides the Font Awesome, Feather, Icomoon, Material Design, Octicons, Typicons, Crypto Icons and Boxicons icon packs as Styled Components, with full support for TypeScript types and tree-shaking / ES modules.

Version 2.0.1 is out, with all the latest icons and support for tree-shaking.

@carmelopullara I'm using 2.0.8 and I still seem to have the issue.

I'm using ES imports (reexports, not full paths) within a CRA app.

@carmelopullara I don't see the tree-shaking working properly with es imports:
import { Download, Trash2, Copy } from 'react-feather';

All library ends up in the bundle.
What's the intended way to use the lib?

I believe this is still broken as of 2.0.8.  I switched to react-icons, and it fixed the tree shaking.  I'd rather use this library though, react-icons seems to bring more functionality than I want.

If ya'll are experiencing a regression in functionality I would recommend using codesandbox to reproduce the issue that way you can provide a working link to show the example. Probably want to do something with webpack bundle analyzer or something.

The basic webpack + babel (.js) or webpack + typescript (.tsx) seems to tree shake just fine. I was suspicious that the forwardRef wrapper, combined with both propTypes and displayName assignment, might be breaking compression in terser, but it's not! So, something is probably not right in your webpack config.
To lib authors: consider using oliviertassinari/babel-plugin-transform-react-remove-prop-types to strip prop types in production. It's generally a good practice in React and can make or break tree shaking (see terser/terser#293). I don't believe it's causing any issues here, but it still is a safety net.

Love the icons, totally possible that my config is wrong, and I don't expect anyone to spend their time debugging my personal issue.  But just switching to react-icons, with no other changes, reduced by bundle size by ~250kb (see commit above).  I shrunk my build down to this reproducible example, npx webpack and you'll see this:

https://github.com/nedtwigg/react-feather-bundle-debug/blob/master/webpack.config.js
https://github.com/nedtwigg/react-feather-bundle-debug/blob/master/tsconfig.json

@nedtwigg You need to change the following lines in tsconfig.json:
-"module": "commonjs",
+"module": "esnext",
+moduleResolution": "node",

Check out the size before 409054 B and after 27987 B.
Basically, with commonjs you are telling typescript to transpile ES Modules into CommonJS require/exports syntax. CommonJS is notoriously hard to tree shake due to its dynamic nature, and most bundlers doesn't even try. If you set esnext however, this will leave import/export syntax intact so that webpack can take care of module resolution and tree shaking.

Thanks very much @alex996, sorry for making noise here, hope it was at least useful to others.  In the app we're using this on, changing the module to esnext basically cut our compiled size in half - improved a lot of things besides just react-feather.  I'm kinda curious why lodash and react-icons managed to get some shrinking done in our badly-configured environment, but not curious enough to dig further.  I'm gonna just take the solution and run!


Coursewares Confirming Prematurely

When typing the correct solution into the second courseware challenge (http://www.freecodecamp.com/coursewares/use-the-h2-element), I am congratulated before I have closed the h2 tag. The congratulations modal pops up once I have typed this much:

If I click away from the modal, I am able to complete the tag, and then the modal pops up again. I'm assuming whatever regex or otherwise that is checking this needs some tweaking?

To confirm, I just rechecked this after the latest push to Heroku and it still exists. I will take a look at the regex later today if you don't get to it first. The same issue happens on the subsequent  challenge.

This is a side effect of the browser being helpful and rendering the element even though it's technically incomplete, as far as I can tell. Unless over-ruled, it's something I'm willing to live with as the alternative is to pattern match the entire document body vs. just checking an individual element.

As @terakilobyte said, it's the browser's fault that it's so robust and user-friendly! We're planning to remove the success modal from the completion page and replace it with a more subtle button that appears when all tests are passing. That way, even though all tests are passing, you can still easily finish closing the tag before proceeding.


Add BYOL implementation

Resolves: https://github.com/facebookresearch/vissl/issues/190

Hi @iseessel , will you be able to update this branch purely with just your changes so that BYOL accuracy is closer than the gap in this PR? Thank you. This will allow someone else to pick up from where you are at :)

@prigoyal @lluiscastrejonsubira I am closing in favor of: https://github.com/facebookresearch/vissl/pull/454 with the updated changes.


v4 changes

This will be necessary to handle the additional data load from DSEW-CPR and several other planned indicator additions. These changes complete the scalability requirements of the data scaling PRD, but not the expressiveness requirements -- we’ll layer on expressiveness later. This release will include only the following changes:

split off signal and geo dimension tables
split off a latest-only table
create views which query like the existing table (minimizing necessary API server changes)

Four parts:

ddl
acquisition
API server
Stress test

1: ddl - @jgreene1959

[ ] Changes to covidcast.sql
[ ] 0.3 -> 0.4 migration -- unlike previous migrations this will actually involve substantial data mutation, which Joe has a draft of in Python

2: acquisition - @jgreene1959 + @melange396 to pair

[ ] convert csv_import and database.py to do initial import into a load table instead of the main fact tables
[ ] add a new acquisition phase "loader" which does the dimension table updates, puts new rows from the load table into the latest and history fact tables, and records some stats in a job log and meta data etc

3: api server - @melange396

[ ] remove USE INDEX
[ ] point latest queries to latest view
[ ] point as-of, issue, and lag queries to history view

4: stress test in qa environment with replication

a day's worth of CSV imports - Katie to collect
playback a day's worth of traffic - George to collect
a batch issue upload - Katie to collect
metadata - we get this for free in Loader, but we should time it anyway

@chinandrew

Development branch: https://github.com/cmu-delphi/delphi-epidata/tree/joe/v4-schema-revisions


Unable to render server-side without setting a global mock for navigator.userAgent

I'm experimenting with this library in a universal redux app, but keep getting the following Cannot read property 'CSS' of undefined.
In the server console I see the following, Material-UI expects the global navigator.userAgent to be defined for server-side rendering. Set this property when receiving the request headers.', which lead me to auto-prefix.js`.
I found a temporary fix by setting GLOBAL.navigator.userAgent to the request.header.userAgent, but this approach only works since I'm only developing with 1 browser ATM.
Any help would be appreciated

I've got the same issue. All I can think of to work around the GLOBAL issue is something like vm.runInNewContext() ... but ... ugh.

Same here. Silented the error with same fix as @hypno7oad.

@cbioley works in development.. but it's not really a viable solution for production.

@adieuadieu Sure.

Same error here…

Did you noticed any drastic dip in performance by using that?
On Wednesday, December 2, 2015, Marco Lüthy<EMAIL_ADDRESS>wrote:

I've got the same issue. All I can think of to work around the GLOBAL
issue is something like vm.runInNewContext()
https://nodejs.org/api/vm.html#vm_vm_runinnewcontext_code_sandbox_options
... but ... ugh.
—
Reply to this email directly or view it on GitHub
https://github.com/callemall/material-ui/issues/2316#issuecomment-161506911
.

--
+-----------------------------------------------------+
Robert Curl https://www.linkedin.com/in/rcurl
(founder @CosmoDog Software Inc.) https://www.linkedin.com/in/rcurl
phone:<PHONE_NUMBER>
+-----------------------------------------------------+

@hypno7oad I haven't tried it.

Same here

same error here.....

Yeah, that's preaty ugly! I want to fix this with the next release.


ClientModel: Ensure inline TODO comments have been addressed an removed

Per PR comment: https://github.com/Azure/azure-sdk-for-net/pull/41085#discussion_r1449695569

Addressed


Auto-detect Intune Mode and Munki presence

The app could auto-detect some settings automatically if no configuration profile is present, this would ease up deployment in some scenarios.
I.e. the following:

Intune Mode: if MSC is not installed and machine is enrolled in Intune (verify enrollment URL in MDM enrollment profile), Intune Mode would default to Enabled
Hidden widgets: If MSC is not installed, hide all Munki-specific widgets and Evergreen info

This will be part of the Swift update currently in public preview


Real-time video stream application

Great Work!
I am wondering if this method can handle video stream in real-time?

Hi, currently the model is off-line, where t-1 and t+1 frames are utilized. The simplest way for real-time or online model is to change the bidirectional mode to single directional mode and use a smaller model. Plus, you can based on bidavideo to use a real-time raftstereo.

Thanks for ur reply!!!!!
Is that means I can try to modify Bidavideo's stablizer to single directional mode and plugin it into some real-time stereo network?

yes, that's it.


"inputting RTK results from the F9P" need two separate C099-F9P boards?

"When inputting RTK results from the F9P into the Eagleye, two F9Ps are used as follows.
(1) A receiver that outputs NMEA (RTK results from the F9P internal engine)
(2) A receiver that measures RAW data through RTKLIB and outputs Doppler velocity."
as this said.
by the way, "A receiver that measures RAW data", the RAW data is the RTCM V3 raw data ?
or rtcm v3 data can be used to calc velocity?
Thanks

The raw data here should be in any format that can be positioned by rtklib, but map4 uses ubx and spf files, and We have not tested it with rtcm.
inpstr1-format     =ubx        # (0:rtcm2,1:rtcm3,2:oem4,3:oem3,4:ubx,5:ss2,6:hemis,7:skytraq,8:gw10,9:javad,10:nvs,11:binex,12:rt17,13:sbf,14:cmr,15:tersus,18:sp3)

https://github.com/MapIV/RTKLIB/blob/rtklib_ros_bridge/app/rtkrcv/conf/rtklib_ros_bridge_meijo_rtk.conf#L14

"inputting RTK results from the F9P" need two separate C099-F9P boards?

Yes.

"inputting RTK results from the F9P" need two separate C099-F9P boards?

Yes.

Thank you for the kindly reply.
why need two separate C099-F9P boards?
one C099-F9P board can output both raw data and NMEA?

This is because when we did that before, the output of f9p became abnormal.

thanks.
If it can use only one f9p, it will be great.
By the, MapIV/eagleye's RTK function can work well with ubox NEO-M8T? and still need two NEO-M8T?

We have not tested it with m8t, but maybe eagleye will work with m8t.
I don't know if it can be done with one m8t, but if one m8t can output nmea and ubx, eagleye will work.
Also, m8t is a single-frequency receiver, so I don't recommend it because of its poor rtk performance.

Are both gnss mounted on the vehicle? How do you get rtk corrections when both are moving?

Both GNSS are mounted on the vehicle.
Correction information is also obtained from another GNSS reference station.
Three GNSS receivers are required.

This issue is closed for now. If you have problems again, please reopen this issue.


refactor Remove useless codes about low cardinality

Proposed changes
Low cardinality related code comes from ck, it is useless in Doirs and will cause trouble to developers, so delete it
Problem Summary:
Describe the overview of changes.
Checklist(Required)

Does it affect the original behavior: (Yes/No/I Don't know)
Has unit tests been added: (Yes/No/No Need)
Has document been added or modified: (Yes/No/No Need)
Does it need to update dependencies: (Yes/No)
Are there any changes that cannot be rolled back: (Yes/No)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

I am implementing low cardinality feature...Maybe I will use these code

I thought you didn't need this code, so I deleted it. If you think it may be useful, then I will close this pr. 😅

I am implementing low cardinality feature...Maybe I will use these code

I thought you didn't need this code, so I deleted it. If you think it may be useful, then I will close this pr. 😅


Implement A* search for Route Problem Considering Safe coordinates

The AI agent will change plan depending on how safe is the action to take. So we need a shortest path from (x1, y1) to (x2, y2) Considering only visited (x, y)

Not for this project, LOL


Tegola Lambda: "Endpoint request timed out"

I've now gone through the Tegola Lambda tutorial 3 times, checking to make sure that there were no errors in my implementation. I've tried with both tegola_lambda 0.9x and 0.8x. I know that my config.toml file works because it runs locally.
Each time I finish, after copying the API endpoint with "/capabilities," I receive an "Endpoint request timed out." I've double checked and my implementation correctly includes the maximum (29s) time out length.
One thing I've noticed is that the "Basic Edge Lambda Permissions" under Policy Templates is now called "Basic Lambda@Edge permissions (for CloudFront trigger)," but that seems to be the only significant difference.
Any thoughts?

@stdmn usually you need to prefix the name of the deployment stage to the URL, like /dev/capabilities. Have you tried that yet?

Wow. Speedy reply. Yep, for reference, this is what my call looks like:
https://[APIAddress].execute-api.us-east-1.amazonaws.com/dev/capabilities

@stdmn Looks like there's an issue connecting to your database instance so tegola is never running as a webserver. I would suggest checking your security groups and IAM roles to make sure your Lambda function can communicate with your database. Once that's addressed the function might run fine.

Will do. Thanks for the help!

Anytime!


openapi-typescript-helpers documentation

Per the openapi-typescript-helpers package README.MD:
This package isn’t as well-documented as the others, so it’s a bit “use at your own discretion.”
I am opening an issue to start a conversation about adding documentation. I would like to offer help in documenting as this package has recently helped me and the message about documentation gave me some pause as I reviewed it.  While I'm not claiming to be an expert, I think some basic documentation could be added, but I am new to this project and welcome any direction.
I think import examples like in the openapi-typescript [README.md] (https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/README.md) and a code example like in the openapi-fetch [README.md] (https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-fetch/README.md) would be a reasonable starting place. If that sounds good I can try to put something together and submit a PR linking to this issue.

Tagging @kerwanp who may have thoughts on this. My rough opinion is that all documentation is welcome, even for beta libraries. As long as it’s flagged appropriately with “beta” in the sidebar (Vitepress supports this and in titles I think), I’d be +1 for adding. But I know there’s already a PR to get this started: #2006

In my opinion, for openapi-typescript-helpers it would be overkilled to have a complete new section for just openapi-typescript-helpers which is a small types library mostly used internally or by projects that anyway requires a certain knowledge about Typescript types. Maybe a new page Helpers under the openapi-typescript could work.
This led me to a question. @drwpow is there a reason why the helpers are not part of the openapi-typescript package (under openapi-typescript/helpers)?

This led me to a question. @drwpow is there a reason why the helpers are not part of the openapi-typescript package (under openapi-typescript/helpers)?

Yeah good question! 2 main reasons:

openapi-typescript-helpers came from openapi-fetch, not openapi-typescript
openapi-typescript-helpers are a dep of openapi-fetch. If they were moved into openapi-typescript then it would make that a dep of openapi-fetch, which has a lot of node_modules weight by comparison that openapi-fetch doesn’t need. Even though that doesn’t go to the client or anything, I still like to limit downloads and network transfer (both for consideration of end users but also being a generally good OSS citizen for npm etc)


Fix wrong import after scipy dependency upgrade

Description
In #23, we needed to upgrade scipy to the newest version. However, as described here, in this version some structural changes happened, so that we need to update that in our code too.
Steps to reproduce the behavior
Import maxilib in any python file
import maxi

Minimum acceptance criteria

import works again

After some commits on the main branch the problematic lines were restored.


Indenting elements for formatting ps1xml files don't work

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
The reference docs for formatting files say that the Frame element inside of CustomItem can contain elements to specify indenting that will happen to the formatted text: LeftIndent, RightIndent, FirstLineIndent, and/or FirstLineHanging.  However, none of these elements actually do any indenting to the output.
From what I can tell, Windows PowerShell 5.1 has the same problem.
The following is an example formatting ps1xml file and script that demonstrates the problem:
FormatBug.ps1xml:
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
  <Controls>
    <Control>
      <Name>LongMessageInfo-Grouping</Name>
      <CustomControl>
        <CustomEntries>
          <CustomEntry>
            <CustomItem>
              <Frame>
                <LeftIndent>10</LeftIndent>
                <RightIndent>10</RightIndent>
                <FirstLineHanging>8</FirstLineHanging>
                <!-- <FirstLineIndent>3</FirstLineIndent> -->
                <CustomItem>
                  <NewLine />
                  <Text>Start Group: </Text>
                  <ExpressionBinding>
                    <!-- <PropertyName>Start</PropertyName> -->
                    <ScriptBlock>"[$($_.Start)] $((@($_.Message) * $_.RepeatCount) -join ' ')"</ScriptBlock>
                  </ExpressionBinding>
                </CustomItem>
              </Frame>
            </CustomItem>
          </CustomEntry>
        </CustomEntries>
      </CustomControl>
    </Control>
  </Controls>
  <ViewDefinitions>
    <View>
      <Name>LongMessageInfo</Name>
      <ViewSelectedBy>
        <TypeName>LongMessageInfo</TypeName>
      </ViewSelectedBy>
      <GroupBy>
        <PropertyName>Start</PropertyName>
        <CustomControlName>LongMessageInfo-Grouping</CustomControlName>
      </GroupBy>
      <CustomControl>
        <CustomEntries>
          <CustomEntry>
            <CustomItem>
              <Frame>
                <LeftIndent>3</LeftIndent>
                <FirstLineHanging>4</FirstLineHanging>
                <!-- <FirstLineIndent>2</FirstLineIndent> -->
                <CustomItem>
                  <ExpressionBinding>
                    <ScriptBlock>"$($_.Start) $((@($_.Message) * $_.RepeatCount) -join ' ')"</ScriptBlock>
                  </ExpressionBinding>
                </CustomItem>
              </Frame>
            </CustomItem>
          </CustomEntry>
        </CustomEntries>
      </CustomControl>
    </View>
  </ViewDefinitions>
</Configuration>

FormatBug.ps1:
class LongMessageInfo
{
    [string]$Start
    [string]$Message
    [int]$RepeatCount
}

Update-FormatData '.\FormatBug.ps1xml'

$longMessage = [LongMessageInfo]::new()
$longMessage.Start = 'start'
$longMessage.Message = 'This is a long message'
$longMessage.RepeatCount = 30

Write-Output $longMessage

Expected behavior
Output text is indented according to the formatting file (left, right, and first-line indents).

Actual behavior
Output text has no indents at all.

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      7.2.1
PSEdition                      Core
GitCommitId                    7.2.1
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

Update-FormatData

Try Update-FormatData -PrependPath file.ps1xml

Try -AppendPath parameter.
Use this parameter to add a file that formats a .NET object that is not referenced in the built-in formatting files.

Try -AppendPath parameter.

-AppendPath is the position 0 parameter.  So Update-FormatData .\FormatBug.ps1xml is the same as Update-FormatData -AppendPath .\FormatBug.ps1xml.  And, before you say anything, -PrependPath doesn't make any different here, either.

Working XML
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
    <Controls>
        <Control>
            <Name>LongMessageInfo-Grouping</Name>
            <CustomControl>
                <CustomEntries>
                    <CustomEntry>
                        <CustomItem>
                            <Frame>
                                <LeftIndent>10</LeftIndent>
                                <RightIndent>10</RightIndent>
                                <FirstLineHanging>8</FirstLineHanging>
                                <CustomItem>
                                    <Text>Start group </Text>
                                    <ExpressionBinding>
                                        <ScriptBlock>
                                            <ScriptBlock>"[$($_.Start)] $((@($_.Message) * $_.RepeatCount) -join ' ')"</ScriptBlock>
                                        </ScriptBlock>
                                    </ExpressionBinding>
                                            <NewLine/>
                                </CustomItem>
                            </Frame>
                        </CustomItem>
                    </CustomEntry>
                </CustomEntries>
            </CustomControl>
        </Control>
    </Controls>
    <ViewDefinitions>
        <View>
            <Name>LongMessageInfo</Name>
            <ViewSelectedBy>
            <TypeName>LongMessageInfo</TypeName>
            </ViewSelectedBy>
            <GroupBy>
                <PropertyName>Start</PropertyName>
                <CustomControlName>LongMessageInfo-Grouping</CustomControlName>
            </GroupBy>
            <CustomControl>
                <CustomEntries>
                    <CustomEntry>
                        <CustomItem>
                            <Frame>
                                <LeftIndent>3</LeftIndent>
                                <FirstLineHanging>4</FirstLineHanging>
                                <!-- <FirstLineIndent>2</FirstLineIndent> -->
                                <CustomItem>
                                    <ExpressionBinding>
                                        <ScriptBlock>
                                            <ScriptBlock>"$($_.Start) $((@($_.Message) * $_.RepeatCount) -join ' ')"</ScriptBlock>
                                        </ScriptBlock>
                                    </ExpressionBinding>
                                    <NewLine/>
                                </CustomItem>
                            </Frame>
                        </CustomItem>
                    </CustomEntry>
                </CustomEntries>
            </CustomControl>
        </View>
    </ViewDefinitions>
</Configuration>

Thanks for providing this.  Based on this I played around with it a bit and determined that it only works when the ExpressionBinding is followed by a NewLine.  The docs say nothing about this.  But is it a doc bug or a bug in the implementation?  Should the NewLine really be required?  I didn't want my items to be separated by linefeeds--the whole point of the hanging indent was to avoid this.

How do I re-open and un-answer this bug?  Based on the last statement this is still a bug.

The  in my sample were doubled up. although that does not seem to change anything.
This version removes them and the line break after expression binding
this works
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
    <Controls><Control><Name>LongMessageInfo-Grouping</Name><CustomControl><CustomEntries><CustomEntry><CustomItem><Frame>
            <LeftIndent>10</LeftIndent><RightIndent>10</RightIndent><FirstLineHanging>8</FirstLineHanging>
            <CustomItem><Text>Start group</Text><ExpressionBinding><ScriptBlock>"[$($_.Start)] $((@($_.Message + "~") * $_.RepeatCount) -join ' ')"</ScriptBlock></ExpressionBinding><NewLine/></CustomItem>
    </Frame></CustomItem></CustomEntry></CustomEntries></CustomControl></Control></Controls>
    <ViewDefinitions><View><Name>LongMessageInfo</Name><ViewSelectedBy><TypeName>LongMessageInfo</TypeName></ViewSelectedBy>
        <GroupBy><PropertyName>Start</PropertyName><CustomControlName>LongMessageInfo-Grouping</CustomControlName></GroupBy>
        <CustomControl><CustomEntries><CustomEntry><CustomItem><Frame>
            <LeftIndent>3</LeftIndent><FirstLineHanging>4</FirstLineHanging>
            <!-- <FirstLineIndent>2</FirstLineIndent> -->
            <CustomItem><ExpressionBinding><ScriptBlock>"$($_.Start) $((@($_.Message+ "#") * $_.RepeatCount) -join ' ')"</ScriptBlock></ExpressionBinding><NewLine/></CustomItem>
        </Frame></CustomItem></CustomEntry></CustomEntries>        </CustomControl>
    </View></ViewDefinitions>
</Configuration>

(ignore the ~ and # being inserted they are so can see the code has been reloaded)
> Update-FormatData
> Write-Output $longMessage

          Start group[start] This is a long message~ This is a long message~ This is a long message~ This is a long message~ This is a long message~ This is a
                  long message~ This is a long message~ This is a long message~ This is a long message~ This is a long message~ This is a long message~ This is
                  a long message~ This is a long message~ This is a long message~ This is a long message~ This is a long message~ This is a long message~ This
                  is a long message~ This is a long message~ This is a long message~ This is a long message~ This is a long message~ This is a long message~
                  This is a long message~ This is a long message~ This is a long message~ This is a long message~ This is a long message~ This is a long
                  message~ This is a long message~

   start This is a long message# This is a long message# This is a long message# This is a long message# This is a long message# This is a long message# This is a long
       message# This is a long message# This is a long message# This is a long message# This is a long message# This is a long message# This is a long message# This is a
       long message# This is a long message# This is a long message# This is a long message# This is a long message# This is a long message# This is a long message# This
       is a long message# This is a long message# This is a long message# This is a long message# This is a long message# This is a long message# This is a long message#
       This is a long message# This is a long message# This is a long message#

Even this works
<?xml version="1.0" encoding="utf-8"?>
<Configuration><Controls><Control><Name>LongMessageInfo-Grouping</Name><CustomControl><CustomEntries><CustomEntry><CustomItem><Frame><LeftIndent>10</LeftIndent><RightIndent>10</RightIndent><FirstLineHanging>8</FirstLineHanging><CustomItem><Text>Start group</Text><ExpressionBinding><ScriptBlock>"[$($_.Start)] $((@($_.Message + "~") * $_.RepeatCount) -join ' ')"</ScriptBlock></ExpressionBinding><NewLine/></CustomItem></Frame></CustomItem></CustomEntry></CustomEntries></CustomControl></Control></Controls><ViewDefinitions><View><Name>LongMessageInfo</Name><ViewSelectedBy><TypeName>LongMessageInfo</TypeName></ViewSelectedBy><GroupBy><PropertyName>Start</PropertyName><CustomControlName>LongMessageInfo-Grouping</CustomControlName></GroupBy><CustomControl><CustomEntries><CustomEntry><CustomItem><Frame><LeftIndent>3</LeftIndent><FirstLineHanging>4</FirstLineHanging><CustomItem><ExpressionBinding><ScriptBlock>"$($_.Start) $((@($_.Message+ "#") * $_.RepeatCount) -join ' ')"</ScriptBlock></ExpressionBinding><NewLine/></CustomItem></Frame></CustomItem></CustomEntry></CustomEntries></CustomControl></View></ViewDefinitions></Configuration>

I wasn't talking about whitespace in the XML.  I was talking about the <NewLine/> element in the XML.  Is the <NewLine/> element after the <ExpressionBinding> element required?  The docs don't say that it is, and I really don't want to have a blank line after each of the objects just so I can get the indentation to work.

@DJackman123  Sorry that's a loud DOH ! from me.  I read it as a "Line feed" as a "" .
I get the same behaviour, remove the newline and the indents don't work.
I've written quite a few format files, but I don't use the  tags. I did a search through all the Ps1xml files I have and the only indents in them a left, and the sampling I did showed everyone has a newline combined with it. I can't see why this would need to be so. It may be intentional but not properly documented or it may a long standing bug.


Allow changing the timeout by tapping the quick tile again

Is your feature request related to a problem? Please describe.
As it is now: tap the QT to enable Coffee, then repeatably tap the "Next Timeout" on the notification to change the timeout.
Describe the solution you'd like
This should be doable by tapping the QT itself, so it all in one place.
Describe alternatives you've considered
N/A
Additional context

See LineageOS for some inspiration.
This should probably an option. I know some people just want their QT to be an on/off toggle.
This depends on the QT showing the remaining time, see #218 .

Duplicate of #206


Parallelize query planning

Overview
This commit changes the tsm1.Engine to create individual series iterators in batches so that it can be parallelized. Iterators are combined at the end so they can be redistributed to the parallelized merge iterator.
/cc @jwilder @toddboom
Results
The query time for a SELECT count(value) FROM cpu across 1B points on an AWS c4.8xlarge instance dropped from 16s (62.5M pt/sec) to 9s (111M pt/sec).
TODO

[x] Rebased/mergable
[x] Tests pass
[x] Sign CLA (if not already signed)

Just the one question. Aside from that LGTM 👍


Duplicate SkeletonAnimation

What is the best way to duplicate SkeletonAnimation?
Calling buildSpriteSkeleton many times causes memory leaks and crash.
Especially, if setting isNative to true

In general, SkeletonData objects are reused, and multiple buildSpriteSkeletons do not generate a large number of SkeletonData objects. Is there a more detailed information on the object of the memory leak?

Simple example that causes crash during short period of time
        var openflSprite:SkeletonAnimation;

        spineTextureAtals.load(function(textureAtals:SpineTextureAtals):Void{

            Lib.setInterval(() -> {
                if (openflSprite != null)
                {
                    openflSprite.parent.removeChild(openflSprite);
                    openflSprite = null;
                }

                openflSprite = textureAtals.buildSpriteSkeleton("wild",jsonData);
                this.addChild(openflSprite);
                openflSprite.y = 300;
                openflSprite.x = 300;
                openflSprite.play(cast(openflSprite.state.getData().getSkeletonData().animations[0]));
                openflSprite.scaleX = 0.6;
                openflSprite.scaleY = 0.6;
                openflSprite.isNative = true;
            }, 200);
        },function(error:String):Void{
            trace("Error：",error);
        });

Looks like calling openflSprite.destroy(); resolved the fast memory leak issue

Probably because the Event.ENTER_FRAME event did not stop after the object was removed.


⚠ Samsung has degraded performance

In 8cf4e78, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2361 ms

Resolved: Samsung performance has improved in 559bc15.


Add ImGuiIO basics

I gonna do a minor Hackage release with the bits provided. I only need setIniFilename nullPtr, but an unresolved cabal bug prevents building from git.


Better error reporting when unable to write to path

Description
When starting besu with a --data-path that it is unable to write to, besu gives an unhelpful error message and exits:
➜  besu git:(heads/main) ✗ build/install/besu/bin/besu --data-path=/not_allowed_to_write_here
2022-03-04 15:56:10.450-08:00 | main | INFO  | Besu | Using LibEthPairings native alt bn128
2022-03-04 15:56:10.451-08:00 | main | INFO  | Besu | Using the native implementation of the signature algorithm
2022-03-04 15:56:10.453-08:00 | main | INFO  | Besu | Starting Besu version: besu/v22.1.2-dev-6f7eeca1/osx-aarch_64/oracle-java-17
2022-03-04 15:56:10.601-08:00 | main | INFO  | Besu | Static Nodes file = /not_allowed_to_write_here/static-nodes.json
2022-03-04 15:56:10.601-08:00 | main | INFO  | StaticNodesParser | StaticNodes file /not_allowed_to_write_here/static-nodes.json does not exist, no static connections will be created.
2022-03-04 15:56:10.601-08:00 | main | INFO  | Besu | Connecting to 0 static nodes.
2022-03-04 15:56:10.602-08:00 | main | INFO  | Besu | Security Module: localfile
2022-03-04 15:56:10.609-08:00 | main | INFO  | RocksDBKeyValueStorageFactory | No existing database detected at /not_allowed_to_write_here. Using version 1
Failed to retrieve the RocksDB database meta version

To display full help:
besu [COMMAND] --help

Acceptance Criteria

Besu should provide a better error when it is unable to create/initialize the data-dir

Steps to Reproduce (Bug)

start besu with a --data-dir that the user is unable to write to

Expected behavior: [What you expect to happen]

Besu provides useful feedback about the problem before exiting

Actual behavior: [What actually happens]

Besu gives a generic error about failing to retrieve the rocksdb meta version, then exits.

Frequency: [What percentage of the time does it occur?] 100%
Versions (Add all that apply)

Software version: 22.1.x

Additional Information

I just ran into this in the wild, I'm glad you posted this issue or I'd have no idea what was happening. Thank you @garyschulte!

The log message now reads:
2022-06-02 22:55:11.294-04:00 | main | INFO  | Besu | Connecting to 0 static nodes.
2022-06-02 22:55:11.301-04:00 | main | INFO  | Besu | Security Module: localfile
2022-06-02 22:55:11.323-04:00 | main | INFO  | RocksDBKeyValueStorageFactory | No existing database detected at /not_allowed_to_write_here. Using version 1
Failed to retrieve the RocksDB database meta version: /not_allowed_to_write_here/DATABASE_METADATA.json (Operation not permitted)


Add default favicon.ico

Just like there is a default 404.html and dirlist.html, I think it would be beneficial to serve a default favicon.ico for when users are using the site to serve simple files. If nothing else, it helps keep logs clean of 404s.
I think it could be easily implemented in server.go:HandleNotFound and I am happy to submit a PR with what I can come up with, but I wanted to hear thoughts first.

Yes, please - this sounds like a good improvement, and I'd certainly merge a patch that implements it.


White flash on transition

I got this boilerplate setup with CRNA and it's working great! Thanks.
I do see a white flash, seems to be loading styles like bg color later in the render, so the initial page load starts with a white bg.  Tested a greenfield bootstrap install in the ios emulator and did not see that issue.  Wondering if it's a CRNA thing or maybe expo?
Thanks!

I was able to mitigate this issue modifying StackNavigator
export default StackNavigator({
  PresentationScreen: {screen: PresentationScreen},
  APITestingScreen: {screen: APITestingScreen},
  ComponentExamplesScreen: {screen: ComponentExamplesScreen},
  PluginExamplesScreen: {screen: PluginExamplesScreen},
  ThemeScreen: {screen: ThemeScreen},
  FaqScreen: {screen: FaqScreen}
}, {
  cardStyle: {
    opacity: 1,
    backgroundColor: '#3e243f'
  },
  initialRouteName: 'PresentationScreen',
  headerMode: 'none',
  // Keeping this here for future when we can make
  navigationOptions: {
    header: {
      left: (
        <TouchableOpacity onPress={() => window.alert('pop')} ><Image source={Images.closeButton} style={{marginHorizontal: 10}} /></TouchableOpacity>
      ),
      style: {
        backgroundColor: '#3e243f'
      }
    }
  }
})

Happy to create a PR if needed.

That's interesting.   We might need that PR, let me see if I can get a local test with the same result.

Got it queued up if needed.

@ryanlntn are you seeing this same problem with your current app?

how are you liking building expo with ignite btw  @jhblacklock ?  That's on our todo list.

Great IMO.  Although I haven't gotten far.
I just attached ignite to a create-react-native-app.  Had to reconfigure the entry point, removed index.ios.js and index.android.js, added index.js to /App and copied App/Containers/App.js to /App/index.js then removed App/Containers/App.js. I also manually copied over the ignite folder and contents, and merged package.json.
I've only tested on ios but so far so good. Real smooth.
FYI, I guess this issue is really a https://github.com/infinitered/ignite DevScreens thing 😄 I modifed that repo in a PR.

@GantMan I've been mainly using TabNavigator so I didn't notice until today. The StackNavigator definitely exhibits this issue.

@ryanlntn Is this still an issue?

@jamonholmgren It doesn't show up for me with a newly ignited app. Closing this for now.


Extension not working on custom types

Problem
Definition an OperationAtom extension does not seem to work if the type signature contains custom types.
How to reproduce the problem
Create the following python file, my-extension.py:
from hyperon.atoms import E, S, OperationAtom, ValueAtom
from hyperon.ext import *

def foo(x):
    print("foo(x={})".format(x))
    return E(S("Ctor"), ValueAtom(0.42))

@register_atoms
def my_function():
    return {'foo': OperationAtom('foo', foo, ['T', 'T'], True)}

Create the following metta file, my-extension-test.metta
(: T Type)
(: Ctor (-> Number T))

!(extend-py! my-extension)
!(foo (Ctor 0.1))

Then run this file via metta.py (you may need to have those files under the same folder as metta.py)
python metta.py my-extension-test.metta

What should be normally expected
foo(x=(Ctor 0.1))
[]
[(Ctor 0.42)]

What is output instead
[]
[(foo (Ctor 0.1))]

This indicates that foo is not called.
Remark
Note that if
!(foo (Ctor 0.1))

is replaced by
!(foo 0.1)

in my-extension-test.metta, and
    return {'foo': OperationAtom('foo', foo, ['T', 'T'], True)}

is replaced by
    return {'foo': OperationAtom('foo', foo, ['Number', 'Number'], True)}

in my-extension.py, then it outputs
foo(x=0.1)
[]
[(Ctor 0.42)]

indicating that problems comes from the custom type T.
I should also mention, though that might be another issue, that the output type of foo, after these replacements, was not checked, since it had no problem outputting (Ctor 0.42), which is not of type Number.

The root cause is that last argument in OperationAtom('foo', foo, ['T', 'T'], True) is True. The name of the flag is unwrap and this flag means that grounded function expects grounded Python objects as arguments and Python API should automatically unwrap them from atoms. The code above passed the expression (Ctor ...) as input for foo, Python API checks that atom is not a grounded atom and raises NoReduceError exception which leads to (foo ...) call is not reduced:
https://github.com/trueagi-io/hyperon-experimental/blob/ec382262c824e4f3c97bd0464a39ad9cdb75d36a/python/hyperon/atoms.py#L160-L166
OperationAtom('foo', foo, ['T', 'T'], False) works as expected.
Another small issue is that:
def foo(x):
    print("foo(x={})".format(x))
    return E(S("Ctor"), ValueAtom(0.42))

shoudl return a list of atoms:
def foo(x):
    print("foo(x={})".format(x))
    return [E(S("Ctor"), ValueAtom(0.42))]

but it is clearly reported by interpreter when first issue is fixed.
@Necr0x0Der I would suggest convert NoReduceError to the RuntimeError to stop interpreting the code and gracefully return error, what do you think?

I would suggest convert NoReduceError to the RuntimeError to stop interpreting the code and gracefully return error, what do you think?

Well, this behavior was intentional, and it is covered by unit tests, which will be broken if we change the behavior. It seems that we may need both types of behavior, and a better default behavior might be to return RuntimeError after all to reduce confusion. I think it is not a problem to add a flag to OperationObject, which can be used in if not isinstance(arg, GroundedAtom) in order to decide, what type of exception to return. But maybe, no one really needs NoReduceError for such expressions as (+ my-symbol 5) and we should just modify unit tests...

Unit test we have are:

(> 4 (+ ln 2))
(> 4 (+ $x 2))
((lambda $x (+ $x 1)) 2)

To me first should return a type error, and other two should not be reduced. Thus + should have different behaviour in different context and flag on OperationObject will not solve this issue for +.
I think if + requires Number and it cannot do anything useful with anything else then it should not be called with anything which is a strict Number. It should be detected by interpreter and it should not try to call it on the first place. The reason why interpreter tries to reduce (+ $x 4) or (+ ln 2) is that $x or ln has type %Undefined% which can be matched with anything.
Thus we have three different situations when interpreter tries to match type of the grounded function and an argument before call:

types are equal - function can be called
types are not equal but can be matched - then call should be made and we should left expression non-reduced
types cannot be matched - type error

To me first should return a type error

In this example, ln is %Undefined% as you noticed.

types are not equal but can be matched - then call should be made and we should left expression non-reduced

Does it mean that (> 4 (+ ln 2)) should remain unreduced after all? My idea was that MeTTa can work similarly to Wolfram - when an expression cannot be reduced, it simply remains unreduced. For example, we can write down (+ 5 inf) and keep it unreduced until we decide how to add numbers to infinity. I wanted the behavior of grounded functions to be similar to that of symbolic functions, i.e. the latter can be partial.
We may want to have even something like (: inf Number) and to define (= (+ $x inf) inf) later. That is, if a grounded function cannot process its input data (while it is declared to be of a right type), it returns NoReduceError and the interpreter tries to find symbolic equalities for it, and can keep it non-reduced if no such equalities are found.

we should be able to detect that type is not correct on interpreter level before grounded function is called

yes, I agree

The grounded function itself anyway can return NoReduce if it finds it should do it

Well, yes, any grounded function can have unwrap=False and do all the necessary processing by itself and it can by itself decide whether to return NoReduceError or RunTimeError. So, the question is more about default behavior to ease implementation of grounded functions in extensions. I still think that there can be an additional flag in OperationAtom to customize the behavior for unwrap=True, and it's pretty easy to implement, but it seems to be not the root cause anyway, right?

but it seems to be not the root cause anyway, right?

I you are right. I just realized that if interpreter detects the type error and prevents the grounded function call then the default behavior doesn't matter. And it looks like all this discussion is more about types then about default behavior of unwrap.

I can confirm that it works on my side when setting unwrap to False.
I'm therefore closing that issue and a separate one about type checking function calls may be raised if necessary.


Debugging Tests with VSCode - no breakpoints

I'm trying to setup vscode to debug tests, I haven't been able to find any guidance.
The tests run fine, but breakpoints are not hit. Any have a working setup for debugging tests in vs-code?
node: 9.5.0
jest: 21.2.1
react-app-rewired: 1.4.1
My vs-code launch.json
{   "version": "0.2.0",   "configurations": [     {       "name": "Debug Jest Tests",       "type": "node",       "request": "launch",       "program": "${workspaceFolder}/node_modules/.bin/react-app-rewired",       "env": {},       "args": [         "test",         "--env=jsdom",         "--testPathPattern",         "ActionButton.test.js"         //"--testNamePattern",         //"renders the loading state",       ],       "protocol": "inspector",       "console": "integratedTerminal",       "internalConsoleOptions": "neverOpen"     }   ] }

Oops wrong project


Fire pre_delete earlier

Fire pre_delete earlier before instance data is wiped by FakeInstance().

Fixes https://github.com/un1t/django-cleanup/issues/96

I don't think it will work to fire earlier, as that on_commit runs at a specific time in the transaction. I think those signals need a rework anyways and I have a few ideas around that I want to explore.


[Suggestion]: Improve code in Tic-Tac-Toe demo

Summary
I believe there's a good scope to improve the code in the Tic-Tac-Toe example here.
Page
https://react.dev/learn/tutorial-tic-tac-toe
Details

The Board component returns the Square component statically. This could instead be returned dynamically using the map method. This will also be a good way to demonstrate the key prop.
Talking about the styling, instead of defining a board-row class that puts each box in a row, we can instead use a grid container with 3 columns and fit-content width.
Instead of attaching a click listener to each box, the click event handling can be delegated to the parent container.

It's a good suggestion! may I open a pull request?

Sure

I've edited it according to your suggestion, is it ok?


Installation problem

I'm getting following error “ImportError: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /app/Applications/MATLAB/R2017a/extern/engines/python/dist/matlab/engine/glnxa64/../../../../../../../bin/glnxa64/libmx.so)
“
during kernel installation step. it seems it is unagble to load matlab.engine.
/app/Applications/Python-3.5.2/Build/bin/python3.5   -mimatlab install
Traceback (most recent call last):
  File "/app/Applications/Python-3.5.2/Build/lib/python3.5/site-packages/matlab/engine/__init__.py", line 42, in <module>
    pythonengine = importlib.import_module("matlabengineforpython"+_PYTHONVERSION)
  File "/app/Applications/Python-3.5.2/Build/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named 'matlabengineforpython3_5'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/Applications/Python-3.5.2/Build/lib/python3.5/site-packages/matlab/engine/__init__.py", line 58, in <module>
    pythonengine = importlib.import_module("matlabengineforpython"+_PYTHONVERSION)
  File "/app/Applications/Python-3.5.2/Build/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 577, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 906, in create_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
ImportError: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /app/Applications/MATLAB/R2017a/extern/engines/python/dist/matlab/engine/glnxa64/../../../../../../../bin/glnxa64/libmx.so)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/Applications/Python-3.5.2/Build/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/app/Applications/Python-3.5.2/Build/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/app/Applications/Python-3.5.2/Build/lib/python3.5/site-packages/imatlab/__main__.py", line 3, in <module>
    from ._kernel import MatlabKernel
  File "/app/Applications/Python-3.5.2/Build/lib/python3.5/site-packages/imatlab/_kernel.py", line 19, in <module>
    import matlab.engine
  File "/app/Applications/Python-3.5.2/Build/lib/python3.5/site-packages/matlab/engine/__init__.py", line 61, in <module>
    'MathWorks Technical Support for assistance: %s' % e)
OSError: Please reinstall MATLAB Engine for Python or contact MathWorks Technical Support for assistance: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /app/Applications/MATLAB/R2017a/extern/engines/python/dist/matlab/engine/glnxa64/../../../../../../../bin/glnxa64/libmx.so)

However, I can load matlab.engine inside the python3.5 with no errors
/app/Applications/Python-3.5.2/Build/bin/python3.5
Python 3.5.2 (default, Nov 18 2016, 18:23:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matlab.engine
>>>

What could be the reason? Many thanks.

For others who are reading: my solution within jupyter, implementing the solution in the link above: add the following line to the kernelspec (choose your proper system/conda environment libstdc++)
    "env": {"LD_PRELOAD": "/share/apps/jupyterhub/live/miniconda/lib/libstdc++.so" }

Kernelspec is in your prefix's share/jupyter/kernels/matlab/kernel.json or ~/.local/share/jupyter/kernels/matlab/kernel.json.

@anntzer , Could one have 2 MATLAB Kernels in parallel?
Thank You.

dunno, did you try? :)

@atom77 Can you try the solution at https://github.com/imatlab/imatlab/issues/33#issuecomment-357101465?  If that works, I think I have a "reasonable" solution...

@anntzer ,
I tried.
Both imatlab and matlab_kernel can work together as you call yours as MATLAB and they use Matlab.

Interestingly, I just tried reinstalling everything from scratch, and imatlab just works without this work-around.  Before, I made a mistake and was using matlab_kernel when I thought it was this one.  Still, the answer should be the same for both I guess.
Likely this is irrelevant to others, but the following (makefile) stipend uses the jq program to automatically fix the kernel.json file, so I can deploy automatically.  edit for your environment:
        cat $(KERNEL_PREFIX)/share/jupyter/kernels/matlab/kernel.json | jq "setpath ([\"env\"]; {LD_PRELOAD: \"$$PWD/miniconda/lib/libstdc++.so\" \})" > $(KERNEL_PREFIX)/share/jupyter/kernels/matlab/kernel.json.new
        mv $(KERNEL_PREFIX)/share/jupyter/kernels/matlab/kernel.json{.new,}

I also install them along side each other.  For each kernel, you can give it a name(identifier) to install as, and as long as the names are unique you can have the same kernel.  These two kernel have different default names, so it's easy.  Check the install subcommand help text for options on changing the names.

The patch I'm proposing is basically
+# Work around LD_PRELOAD tricks played by MATLAB by looking for a working
+# import order.
+if subprocess.call(
+        [sys.executable, "-c", "import plotly, matlab.engine"],
+        stderr=subprocess.DEVNULL) == 0:
+    import plotly
+    import matlab.engine
+    from matlab.engine import EngineError, MatlabExecutionError
+elif subprocess.call(
+        [sys.executable, "-c", "import matlab.engine, plotly"],
+        stderr=subprocess.DEVNULL) == 0:
+    import matlab.engine
+    from matlab.engine import EngineError, MatlabExecutionError
+    import plotly
+else:
+    import matlab.engine
+    from matlab.engine import EngineError, MatlabExecutionError
+    plotly = None
+    warnings.warn(
+        "Failed to import both matlab.engine and plotly in the same process; "
+        "plotly output is unavailable.")

i.e. try to import both matlab.engine and plotly in a subprocess in either order, and check what order works.
If one of you can confirm that this fixes a previously present problem (on the same install) then I'll push the fix.

If you can give me the commit, I am happy to try it out.  But like I said, apparently the original problem doesn't occur for me with imatlab.

Would rather have someone who does have the original problem to try it :-)  If no one manifests themselves I'll just leave things as they are.

Pushed the above fix.

@anntzer ,
I'm installing this on Linux Mint 18.3 (Ubunti 16.04 basically) with MATLAB R0218a.
When I run python -mimatlab install I get [Errno 13] Permission denied: '/usr/local/share/jupyter'.
Could it use the local user Jupyter configuration files?
I don't have root permission.


[Release] Provider version 2.1.0

Release provider 2.1.0.
@vasyaxparfenov added opensearch serverless support
@timwisbauer-contsec Add proxy support
@Sovietaced Improve documentation for HTTP basic authentication
@rblcoder Add step to generate terraform provider documentation, Add anomaly detection, upgrade aws-sdk-go
@massimob76  When the provider assumes a given role, don't use the default profile
@moritzzimmer fix: use provider locally in debug mode
@prudhvigodithi Update Readme docs

Huge thanks to all the contributors part of this release.:tada:


bad hyperlink promises to take me to GitHub sample instead takes me to docs.microsoft

In the very first table, 3rd row - if I am to believe the column header, this should go to github, but it does not

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

ID: 22a7af57-0b9c-0bd5-b234-af87b5140108
Version Independent ID: 753a9bb3-1e41-83b5-72c2-0d727fa037bb
Content: Configure a web app that signs in users - Microsoft identity platform
Content Source: articles/active-directory/develop/scenario-web-app-sign-user-app-configuration.md
Service: active-directory
Sub-service: develop
GitHub Login: @jmprieur
Microsoft Alias: jmprieur

@bkwdesign
Thanks for your feedback! We will investigate and update as appropriate.

@bkwdesign
It looks like the original ASP.NET Security GitHub project has been archived. However, ongoing development on this project can be found within the new ASP.NET Core GitHub project.
I've assigned this issue to the author who will investigate and update the documentation as appropriate.
Thank you for pointing this out!

@JamesTran-MSFT, feel free to fix the doc by providing the link to the ASP.NET Core GitHub project.

@bkwdesign
Thank you for pointing this out! I've created a PR to update the documentation and it's currently waiting for the author to review and sign off.
I will now close out this issue. Please allow some time for the author to review and the changes to reflect.
Thank you for your time and patience!


Support custom calibration datasets

With this change, the user can supply a custom json or jsonl  with a text column for calibration.

Hi @syuoni ,would u please review this PR?

Thanks @DreamGenX . I've started to integrate this PR to our internal repo, and probably this will be available in the next Github weekly update.

Thank you @syuoni -- I just noticed it should also be probably added for the nemo codepath.

Hi @DreamGenX , this PR is using dataset_name_or_dir as a single data file path, and supports json/jsonl only.
An more general way is to prepare a HF dataset repo (according to this instruction), and use the local path to this repo for calibration. This allows more complex data structures (e.g., multiple files) and formats (e.g., csv). Does this make sense to you?

Thank you @syuoni -- I just noticed it should also be probably added for the nemo codepath.

Yes, I will cover the nemo path. Thanks for the reminder.

Hi @DreamGenX , this PR is using dataset_name_or_dir as a single data file path, and supports json/jsonl only.
An more general way is to prepare a HF dataset repo (according to this instruction), and use the local path to this repo for calibration. This allows more complex data structures (e.g., multiple files) and formats (e.g., csv). Does this make sense to you?

Hi @DreamGenX , We will go with this HF repo style support for customized calibration dataset.
If you have a data file path/to/data.json that you want to pass to dataset_name_or_dir, you can just:

move it to a separate folder and rename like path/to/repo/train.json, then
pass path/to/repo to dataset_name_or_dir.


Resize headers ALL the time

Resize the headers when we scroll with mouse! and touch
The slider will update for the wheel scroll, but not with touch. Do you guys think that's okay?

Unrelated but the step description should zoom too.


Fix StochKit export of certain PySB rxn Expressions

Reactions with a rate as a PySB Expression object
(rather than merely containing one) are exported to StochKit
by string conversion, which renders like "Expression(...)".
This PR detects and fixes this case.

Codecov Report

Merging #521 (981dca9) into master (a6a61fc) will decrease coverage by 0.00%.
The diff coverage is 91.66%.

@@            Coverage Diff             @@
##           master     #521      +/-   ##
==========================================
- Coverage   80.24%   80.23%   -0.01%
==========================================
  Files         101      101
  Lines       10650    10652       +2
==========================================
+ Hits         8546     8547       +1
- Misses       2104     2105       +1

Impacted Files
Coverage Δ

pysb/export/stochkit.py
95.65% <91.66%> (-0.51%)
:arrow_down:

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 a6a61fc...981dca9. Read the comment docs.


[Bug] :

This text is displayed when I enter the extension

Kamyroll got a DMCA notice and is shut down

Please add crunchyroll from consumet api

@Gtbita why did you close the issue? Please reopen this

What's the point of reopening? Kamyroll isn't coming back

I requested crunchyroll from Consumet api above. They might look into it if it's open


GovTool Getting Started page needs copy

Currently, it's just a bunch of boxes:

This page now: https://docs.sanchogov.tools/how-to-use-the-govtool/getting-started