Processing large data is extremely slow (in VMware)

Environment
Windows build number: Win32NT 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2762.0

inside VMware Workstation Player 15.5.0 on Ubuntu 19.10

Core i5-6200U @ 2.30GHz

Steps to reproduce / Actual behavior
cat'ing my favorite test file for speed measurement takes extremely long time.
Inside VMware, in Windows Terminal it takes about 10 minutes of wall clock time.
On Linux (inside the same VMware) it takes from 2 to 22 seconds mesasured in various terminal emulators, namely: Konsole (KDE), Pterm (PuTTY), St (suckless), Terminology (Enlightenment), Urxvt, VTE, Xterm.
The test file is ~42MiB large, contains ~667k lines. It's the output of a ls -lR --color=always / on Ubuntu. (I'm not attaching it since it could leak private stuff, plus it would be a pointless waste of storage space.)
cat is executed either locally in PowerShell, or remotely over ssh to my host computer, it doesn't matter.
On the previous version of WT which I installed about a week ago, it took about 9:22 (the same time twice) to cat this file at the terminal's default size. If the terminal was iconified, or I switched to another (idle) tab, the time dropped to 6:50-ish. Interestingly, in a tiny but visible terminal (approx. 30x4) the time increased to 11 minutes. In a giant terminal (maximized with pretty small font) the time hardly increased, to 9:37.
With the current WT version 0.5.2762.0 now I'm seeing even larger numbers: 10:39 at the default size (measured only once), 7:30-ish in minimized window or when viewing another tab.
The exact times probably don't matter too much, we're talking about the magnitudes here, it's ~100x slower than VTE for example with its 5.2 seconds if it's in a good mood.
The given example is sure an extreme one (why would anyone cat such a giant file?), but smaller files, such as /etc/services already take a noticeable ~0.5 seconds, whereas on Linux terminals it's instantaneous. For verbose compilations of large projects, this could actually cause a noticeable productivity loss for developers.
I don't know whether running under VMware (e.g. no hardware graphics acceleration) is relevant, but again, the Linux numbers were also measured inside VMware, on a Fedora 30 guest.
Expected behavior
Windows Terminal should be comparably fast to most graphical terminals on *NIX.
Since I don't know the reason for the slowness (which needs to be investigated first), and I don't know whether it's specific to VMware, these are random guesses only and might completely miss the actual problem:
The terminal should read and parse as much data as possible, only stopping for updating its UI according to the monitor refresh rate, typically 60 times per second (or maybe at a hardwired 60Hz if refresh rate can't be detrmined or the concept doesn't exist – I don't know how it goes in VMware). If updating the UI takes so much time that there's hardly any time left for processing incoming data, it should start dropping frames (VTE counterpart, kind of). In iconified state or when another tab is selected, it shouldn't spend any time on drawing.

Note that I've checked other bugreports about slowness, e.g. #1064, but they don't seem to be about this kind of extreme slowness.

Re-marking this one for post-1.0 instead of pre-1.0. We're making improvements here, such that we can cut down on a bunch of unnecessary rendering, but we're not quite to the point where we can just shuttle all the data through the console driver at a great enough speed to make this "instantaneous". We'll keep investigating after our launch. Thanks for the robust bug reports, as always, @egmontkob.

https://github.com/microsoft/terminal/commit/90a24b20b8d27edbc8451936d215cf111cfe3164 is my attempt at experimenting to see if we can make this go even faster by breaking the locking that is occurring here.
For big.txt from #1064 (which is about 6MB), I go from
real    0m3.838s
user    0m0.000s
sys     0m0.150s

to
real    0m0.124s
user    0m0.000s
sys     0m0.113s

The graphical output still takes longer than that, but it's not backing up the actual I/O.  It's nowhere near ready. But I think it proves that there's a good return on investment to be had in this area by breaking up the locking.

Yes, IMO it's definitely worth it. The display/rendering should never block IO/CPU operations (as it happens now if I understood correct).

Yes, IMO it's definitely worth it. The display/rendering should never block IO/CPU operations (as it happens now if I understood correctly).

Well... I can't have it "never" block IO/CPU unless I consume an infinite amount of memory or otherwise optimize the entire pipeline to be balanced.

Same issue on windows 11 latest version :C

I'm trying to write like 40 thousands chars per 30 milliseconds too but it's very slow

I've had to modify ls -lR --color=always / to exclude /usr and /mnt in WSL2, because the former contains the WSL driver mount point (= slow), and the latter the NTFS mounts (same). The remaining output is ~10MB (measured with wc -c). It takes roughly 0.8s to produce the output (output redirected to /dev/null).
Printing the output in Windows 11 24H2 with conhost takes roughly 2.4s and about as long in Windows Terminal Preview 1.22. That's not quite as good as your best value of 2s, but that's because of the small WSL2 pipe buffer size of just 4KiB. I've meant to ask them to increase it to 128KiB which should double our performance down to <2s.
I'll be closing this issue then. 😊


Add support for setting counts in iOS push notifications

Following da8f4bc0e956e29b140fa89e963b67e3d23581df, we now have support for clearing old GCM push notifications as users read messages.  We should be able to use this same infrastructure for iOS.  It's possible that we can just grab the count from the len(get_mobile_push_notification_ids(user_profile)) function (needs some refactoring if we do that, since it's a test function) and set count to that.  But testing is required, and we might still need to trigger some sort of notification on-read (otherwise, how do counts go down?).

Would this approach include actually clearing the push notification (e.g the message from the Notification Center) or is this just about the badge count?

This approach will actually clear the push notifications.

For actually clearing the notifications, we have more details now in zulip/zulip-mobile#3119 . That will actually turn out to require some more work for iOS, so we might or might not ship it at the same time as we start setting badge counts. It's true that the essential information in the database for them is the same (and the same as we'll use for Android via GCM.)

See also https://github.com/zulip/zulip/pull/10683 for a possible backend change to set the badge counts.  @gnprice, I'm assuming you're driving the question of when to invest in doing the notification counts stuff for iOS.

Is there a version that has badge icon unread message counts that we can use on mobile?  I read a lot of issues about this, but no conclusions on if it will be implemented.

That's been fully implemented as works well on Android.  I'm not sure how much plumbing is required to make this work on iOS; @gnprice would know.  But probably not a ton.

Hello Greg @gnprice - would you have any insights here, or something I could try?  My users are desperate for this feature.

Hi @maltokyo -- this isn't something we've worked on recently.
One thing we'll need to figure out before we build it is what exactly the count should be a count of. To help us with that, I'd be curious to understand better how you and your users would use the badge count. When you say y'all are desperate for it: what are you missing without it? What do you find yourself trying to do, and can't do because it isn't there?
Or: is there an app or two that manages badge counts really well, and in a similar way to how you'd like to see Zulip do so? What are those apps; and how do you use their badge counts?

@zulipbot claim

Hello Greg, thank you for replying.
Currently, most of my users are on iOS, and a few on android.  They want
the same sort of unread message count that the desktop apps seem to have.
So when any stream has unread topics, then a counter for each topic would
be good.
On Wed, Sep 25, 2019 at 2:38 AM Greg Price<EMAIL_ADDRESS>wrote:

Hi @maltokyo https://github.com/maltokyo -- this isn't something we've
worked on recently.
One thing we'll need to figure out before we build it is what exactly the
count should be a count of. To help us with that, I'd be curious to
understand better how you and your users would use the badge count. When
you say y'all are desperate for it: what are you missing without it? What
do you find yourself trying to do, and can't do because it isn't there?
Or: is there an app or two that manages badge counts really well, and in a
similar way to how you'd like to see Zulip do so? What are those apps; and
how do you use their badge counts?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zulip/zulip/issues/10271?email_source=notifications&email_token=AAKS7WZF547D4L4Z5L6CH5DQLKXJTA5CNFSM4FPDIOQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7QGXUQ#issuecomment-534801362,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKS7W6RESNTQA67HXKOY4LQLKXJTANCNFSM4FPDIOQQ
.

on iOS the badge count stays at 1 and does not disappear. mobile version v26.28.151 on a zulipchat.com domain

@lukasIO thanks for the report.  This is likely caused by https://github.com/zulip/zulip/issues/15428.

@lukasIO we've dedeployed this from zulip.com for the moment to investigate #15428.  I'd like to investigate to confirm whether that issue is what you're seeing or something else.  Can you either post here your Zulip account's user ID (page_params.user_id in the JS console) or email<EMAIL_ADDRESS>with details on the account in question?
Also, can you confirm whether the Zulip webapp shows any unread messages, and whether you have any muted streams or topics?  (See https://zulipchat.com/help/mute-a-topic for how to get a list).

Awesome, thanks!


Fix issues with coverage and tests spawning unitest

We are seeing an odd issue where tests in test/cli/test.js are hanging when run with nyc. This seems to be due with some odd behavior with spawning sub processes with unitest.

I think this issue is no longer applicable


added github token support

added github token support via ACTIONS_ID_TOKEN_REQUEST_URL and ACTIONS_ID_TOKEN_REQUEST_TOKEN in workload identity login

tested in this github actions.

Codecov Report
Attention: 32 lines in your changes are missing coverage. Please review.

Comparison is base (a7eddd9) 65.16% compared to head (4e4d6fd) 64.94%.

Files
Patch %
Lines

pkg/token/federatedIdentity.go
53.03%
21 Missing and 10 partials :warning:

pkg/token/interactive.go
0.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #366      +/-   ##
==========================================
- Coverage   65.16%   64.94%   -0.22%
==========================================
  Files          23       23
  Lines        1728     1760      +32
==========================================
+ Hits         1126     1143      +17
- Misses        539      544       +5
- Partials       63       73      +10

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


FR: MT Finance and Purchase Block

Agile Requirement
As a Business Owner, I want to be able to embed into an accordion section a FInance and Purchase Block with the following design https://www.figma.com/file/oNwe2jHIICPMIe551EY62l/Mack-Reskin---Full-Project?type=design&node-id=2220-90281&mode=dev so that users can easily read and comprehend related relevant information.

related to #120


fix(sample): move putEventMetadata after putFrame

Issue #, if available:
When running the sample (./kvs_gstreamer_sample test-stream ~/test.mp4), we see the following error:
[ERROR] [30-05-2023 21:09:32:144.912 GMT] putKinesisVideoEventMetadata(): operation returned status code: 0x5200008c
[ERROR] [30-05-2023 21:09:32:144.981 GMT] Failed to insert event metadata with:<PHONE_NUMBER>

Which correlates to STREAM_NOT_STARTED.
Description of changes:

In kvs_gstreamer_sample, move putEventMetadata after putFrame. When uploading a file with only a single keyframe, and if the keyframe is the first frame in the file, the event metadata will not get added. This is because the stream is started in the putFrame call, and we attempt to add the event metadata before the putFrame call. This causes the put event metadata to fail the first time, but succeed the rest of the times. Since there isn't a second keyframe in the file, the metadata would never get put.
Also, translate the error codes into the hex format.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Note: Going to master as the putEventMetadata feature is not in develop.


Bring Wayland backend up to minimal support

Running a glazier application on the wayland backend now works.
Some issues:

Requesting a repaint in paint doesn't work. This is because the deferred task to paint is added whilst we're running through the deferred tasks list, so never reach normal events. Rendering still works fine, but we stop responding to other events. I think the correct solution here is to use the frame callback instead of our own deferring mechanism, but that'll come in the rewrite.
When to repaint is another issue. I think other backends have implicit painting on resize - do we want to emulate that here?

I also fixed keyboard handling - we were resetting the modifiers inadvertently.
This is not the expected rewrite to smithay client toolkit, instead it is a complimentary PR to #104 to get our backend to a less broken state

I've also tested the examples with --no-default-features --features wayland. Both shello and edit_text work for me (edit_text doesn't actually render the text, but it's the same on x11, so the issue isn't relevant here I guess, it renders the cursor and reacts to input).


[HUDI-1539] Fix bug in HoodieCombineRealtimeRecordReader with reading…

… empty iterators
What is the purpose of the pull request
Fix bug in HoodieCombineRealtimeRecordReader with reading empty iterators
Brief change log

CombineRealtimeRecordReader has a bug when there are more than two consecutive empty iterators (because of filtering by predicate for example). Fix it by calling next on combine record reader. https://github.com/apache/hudi/issues/2346#issuecomment-758591316 has additional details

Verify this pull request
There are no existing tests to this module and looks like setup is quite involved. So I'm not able to add tests anytime soon. But this is a trivial fix and has been reported a while ago on support ticket. So sending PR for the fix.
Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Codecov Report

Merging #2583 (3693e3f) into master (b0010bf) will decrease coverage by 41.46%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master   #2583       +/-   ##
============================================
- Coverage     51.15%   9.68%   -41.47%
+ Complexity     3212      48     -3164
============================================
  Files           436      53      -383
  Lines         19987    1931    -18056
  Branches       2057     230     -1827
============================================
- Hits          10224     187    -10037
+ Misses         8922    1731     -7191
+ Partials        841      13      -828

Flag
Coverage Δ
Complexity Δ

hudicli
?
?

hudiclient
?
?

hudicommon
?
?

hudiflink
?
?

hudihadoopmr
?
?

hudisparkdatasource
?
?

hudisync
?
?

huditimelineservice
?
?

hudiutilities
9.68% <ø> (-59.71%)
0.00 <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Error spawn snapshot/... ENOENT; trying to use imagemin plugin

Hi,
I'm a bit lost, thus asking for help.
I try to use the "imagemin-jpeg-recompress"-module:
import * as imageminJpegRecompress from 'imagemin-jpeg-recompress';
...
imageminJpegRecompress({
  // options...
})(buffer).then((buffer: Buffer) => /* do other stuff */)

If I start the app and the buffer (image data) triggers the recompress module, I get  runtime errors...
If i do not set assets for config, then I get:
Error: { Error: The system cannot find the path specified.

    at notFoundError (E:\snapshot\img-sharp\node_modules\cross-spawn\lib\enoent.js:11:11)
    at verifyENOENT (E:\snapshot\img-sharp\node_modules\cross-spawn\lib\enoent.js:46:16)
    at ChildProcess.cp.emit (E:\snapshot\img-sharp\node_modules\cross-spawn\lib\enoent.js:33:19)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn E:\\snapshot\\img-sharp\\node_modules\\jpeg-recompress-bin\\vendor\\jpeg-recompress.exe',
  killed: false,
  stdout: '',
  stderr: 'The system cannot find the path specified.\r\n',
  failed: true,
  signal: null,
  cmd: 'E:\\snapshot\\img-sharp\\node_modules\\jpeg-recompress-bin\\vendor\\jpeg-recompress.exe --quiet --accurate --quality medium --method smallfry --min 60 --max 90 --loops 6 --subsample default --strip C:\\Users\\Manusan\\AppData\\Local\\Temp\\8dc183e6-aa2b-4315-a15b-32e18e1b0bf7 C:\\Users\\Manusan\\AppData\\Local\\Temp\\6214ebcb-4c5c-409d-8291-3a45538a7a7a',
  timedOut: false }

If I set in package.json:
  "pkg": {
    "assets": "node_modules/jpeg-recompress-bin/vendor/*"
  },

then I get:
Error: { Error: spawn E:\snapshot\img-sharp\node_modules\jpeg-recompress-bin\vendor\jpeg-recompress.exe ENOENT
    at exports._errnoException (util.js:1026:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:189:19)
    at onErrorNT (internal/child_process.js:366:16)
    at _combinedTickCallback (internal/process/next_tick.js:102:11)
    at process._tickCallback (internal/process/next_tick.js:161:9)
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn E:\\snapshot\\img-sharp\\node_modules\\jpeg-recompress-bin\\vendor\\jpeg-recompress.exe',
  path: 'E:\\snapshot\\img-sharp\\node_modules\\jpeg-recompress-bin\\vendor\\jpeg-recompress.exe',
  spawnargs:
   [ '--quiet',
     '--accurate',
     '--quality',
     'medium',
     '--method',
     'smallfry',
     '--min',
     60,
     '--max',
     90,
     '--loops',
     6,
     '--subsample',
     'default',
     '--strip',
     'C:\\Users\\Manusan\\AppData\\Local\\Temp\\aa432eda-0f8d-4d2f-be06-91e4728477de',
     'C:\\Users\\Manusan\\AppData\\Local\\Temp\\a78a387c-8c0c-4a95-b388-a78cf8174411' ],
  killed: false,
  stdout: '',
  stderr: '',
  failed: true,
  signal: null,
  cmd: 'E:\\snapshot\\img-sharp\\node_modules\\jpeg-recompress-bin\\vendor\\jpeg-recompress.exe --quiet --accurate --quality medium --method smallfry --min 60 --max 90 --loops 6 --subsample default --strip C:\\Users\\Manusan\\AppData\\Local\\Temp\\aa432eda-0f8d-4d2f-be06-91e4728477de C:\\Users\\Manusan\\AppData\\Local\\Temp\\a78a387c-8c0c-4a95-b388-a78cf8174411',
  timedOut: false }

pkg compile output has no warnings for this module.
I have no clue what I can try or if it's just not possible to use the module?
Any help is appreciated. Thanks.

Ok, nevermind,
after reading some responses to other tickets, I'm quite sure this is not solvabale by using the imagemin-jpeg-recompress module which internally spawns the child process, because pkg's snapshot-system automatically rewrites the access path.
But lukily the mudule is simplistic and I copied the code into my project. Then I was able to copy the binary to spawn with my build process to the destination folder next to the compiled application executable and using:
const binPath = path.join(path.parse(process.execPath).dir, path.parse(origBinPath).base);

to access the binary directly.

Hi @Manusan42
I am having the same problem with the module html-pdf.
Did you modify the code of the module?

It's been a while since I worked on that project and I do not remember, but I looked just quickly into the source and it seems that I have used the modules code and just mixed it with my code into one file.
Of course the module had dependencies which I just put to my imports.
It was a small project and a small module, so there was no big problem figuring out how to use the code directly.
I wish you good luck with your project.
Best,
Manuel


Typo in AzureAsyncOperationResponse documentation

comes from https://github.com/Azure/azure-rest-api-specs/blob/b0d83f3ccf1e4e4615c395b9a15f2a5186f2cf7f/arm-network/2015-05-01-preview/swagger/network.json#L6540

hopefully gets fixed someday...


(IGNORE) Fix bugs in publish workflow related to change in GH Actions API

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

Comparison is base (43e85d8) 83.91% compared to head (5b65aef) 83.91%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #147   +/-   ##
=======================================
  Coverage   83.91%   83.91%
=======================================
  Files           3        3
  Lines         373      373
=======================================
  Hits          313      313
  Misses         60       60

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


Error when creating Revolute joint with planck js and phaser 3

Hi, I am new to planck js and one issue that I keep facing is when creating Revolute joints here is my code:
Planckjs_joint_bug.zip
I followed tutorial by Emanuele Feronato: https://www.emanueleferonato.com/2019/10/12/use-box2d-physics-in-your-phaser-3-projects-with-planck-js-javascript-physics-engine/
And planck js Chain example: https://piqnt.com/planck.js/Chain
Can you help me and tell me what I'm doing wrong? Thanks.

What is the error?

this:

Ok, so check line 117 of RevoluteJoint, it seems bodyB in undefined.

Oh, I found the error. I have to return box variable in the createBox function, thank you so much for your time 👍 🥇


RFP - phpmyadmin

We already have the pg admin install option for managing PostgreSQL, it would be very helpful to also have the phpMyAdmin install option for managing MySQL.
downloads
https://www.phpmyadmin.net/downloads/
PHPMyAdmin should be installed with PHP, MySQL and a webserver like Apache, IIS, or nginx
check if MySQL is installed, install if it's not
check if a webserver is installed, install one if not (default to Apache???)
Check if PHP is installed, install it if it's not

Hello, i think i'll use wamp-server for this, is it ok for you ?

I am on the triage process of WAMP-server.
It already includes phpmyadmin

@tunisiano187 this request for phpadmin is intended for those building a custom *AMP setup outside of WAMP.
WAMP was not meeting my needs and had too many limits so I went the road of building a custom *AMP via chocolatey.

@tunisiano187 here is a link to the article I wrote on building a custom *AMP setup using chocolatey.  It's a bit dated and I haven't reviewed it in a while for process updates.
https://brian.teeman.net/joomla/885-install-amp-on-windows-with-chocolatey

It looks like this package has been added to the community repository outside of the RFP process and is available here now: https://community.chocolatey.org/packages/phpmyadmin

@Windos thank you. That's great news.


Optional Chaining

Is it possible to do chaining like when using .AsQueryable() with LINQ?
I have a query:
 var query = await client.Cypher
        .Match("(card:Card)")
        .Where("card.Set = {set}")
        .WithParam("set", set)
        .Return(card => card.As<Card>())
        .OrderBy("card.Name")
        .Skip(limit * page)
        .Limit(limit)
        .ResultsAsync;

But with conditional querying the method is alot more powerful:
public async Task<IEnumerable<Card>> GetCards(int? page, string set = "")
{
    var query = client.Cypher
        .Match("(card:Card)");

    if(!string.IsNullOrWhiteSpace(set)) {
        query = query.Where("card.Set = {set}").WithParam("set", set);
    }

    query = query.Return(card => card.As<Card>()).OrderBy("card.Name");

    if(page != null) {
        query = query.Skip(limit * page).Limit(limit);
    }

    return await query.ResultsAsync;
}

However this does not compile and I just get an error of
'ICypherFluentQuery' does not contain a definition for 'ResultsAsync' and no accessible extension method 'ResultsAsync' accepting a first argument of type 'ICypherFluentQuery' could be found (are you missing a using directive or an assembly reference?)
I went through all of the docs and did not see this.  Is this possible with the client?

It's because query.Return doesn't return an ICypherFluentQuery that your var is currently set to. It actually returns an ICypherFluentQuery<Card> - specifically that is needed for ResultsAsync to work.
I've not tested it but you probably need to do:
return await ((ICypherFluentQuery<Card>)query).ResultsAsync;

Ah I see now thank you.  It partially works, but when I try to use the page (skip and limit) I get
System.InvalidCastException: Unable to cast object of type 'Neo4jClient.Cypher.CypherFluentQuery' to type 'Neo4jClient.Cypher.ICypherFluentQuery1[-.Core.Models.Card]'.`
I've tried various casting but they all fail, and it seems like Skip and Limit wont take

Nevermind!  I got it to work with
((ICypherFluentQuery<Card>)query).Skip(limit * page).Limit(limit);
Is there any way to do this without the casting?


Knapsack problem In DP | C++

Knapsack problem In DP -
**space complexity can be improved from O(w*n) to O(w) ** -
Type of Issue -
Please add/delete options that are not relevant.

[x] Improving Code

Programming Language
Please add/delete options that are not relevant.

[x] C++

Self Check

Ask for issue assignment before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Happy Coding!

Hey,
Is it ok if I take this issue?
Thanks in advance 😄

Hey please assign this issue to me

/assign

Hey I can contribute to both Knapsack & Fractional Knapsack codes in cpp if you assign :)

Hey!! I am beginner to open source and I want to contribute, can you please assign this to me.


Continuing training on a previous trained model

Hi, I have trained an agent using PPO2 for 10000 steps and saved the model . I feel that the model can be improved by letting it train for more episodes. So I want to load this model and continue training on the loaded model which is already trained for 10000 steps. I have gone through the documentation but could find anything related to this. Is a feature available currently in stable baselines for this?

Please read the documentation more carefully ;)
You have an example of what you are looking for here: https://stable-baselines.readthedocs.io/en/master/guide/examples.html abd here: https://stable-baselines.readthedocs.io/en/master/guide/examples.html#continual-learning

I am training a model and saving it
model = PPO2(CustomPolicy,env,gamma=1, n_steps=132, ent_coef=0.01,
             learning_rate=2.5e-4, vf_coef=0.5, max_grad_norm=0.5, lam=0.95,
             nminibatches=4, noptepochs=4, cliprange=0.2, cliprange_vf=None,
             verbose=0, tensorboard_log="./03_12_2019_logs/", _init_setup_model=True,
             policy_kwargs=None, full_tensorboard_log=False)

model.learn(total_timesteps=10000,callback=None, seed=None,
            log_interval=1, tb_log_name="Logs", reset_num_timesteps=True)

model.save("agent_03_12_2019")

So now if I wish to continue with the training on the same environment as earlier, I am supposed to load the model and continue with the training. Say like
model = PPO2.load("agent_03_12_2019")
model.learn(total_timesteps=10000,callback=None, seed=None,
            log_interval=1, tb_log_name="Logs", reset_num_timesteps=True)

So will this continue the training ?

okay, i need to use model.set_env(env) before model.leran. Thanks.
But I one thing I found missing is , when I trained my model for first time I have integrated it with tensorbaord, now when I do the continual training, the tensorboard graphs are not updated for the new timesteps. Am I missing something ?

the tensorboard graphs are not updated for the new timesteps

again please read the doc about tensorboard integration, we cover that issue.

@araffin
Thanks a lot for your answer!
I must be missing something though - reading the code, I don't see how set_env makes it learn continuously. It seems like set_env in base_class.py only changes self.envs and self.env, and reading the code for Runner and learn (in particular ppo2.py), I can't find the code that makes it learn continuously instead of starting fresh.
Could you elaborate on which part of the code makes it learn continuously?
Thanks in advance!

I have tried with
model = PPO2(CustomPolicy,env,gamma=1, n_steps=132, ent_coef=0.01,
             learning_rate=2.5e-4, vf_coef=0.5, max_grad_norm=0.5, lam=0.95,
             nminibatches=4, noptepochs=4, cliprange=0.2, cliprange_vf=None,
             verbose=0, tensorboard_log="./03_12_2019_logs/", _init_setup_model=True,
             policy_kwargs=None, full_tensorboard_log=False)

model.learn(total_timesteps=10000,callback=None, seed=None,
            log_interval=1, tb_log_name="Logs", reset_num_timesteps=False)

model.save("agent_03_12_2019")

model = PPO2.load("agent_03_12_2019")

n_cpu = 8
env = DummyVecEnv([lambda: AHUenv() for i in range(n_cpu)])
model.set_env(env)

model.learn(total_timesteps=2000000,callback=None, seed=None,
            log_interval=1, tb_log_name="VAV 27_12_logs", reset_num_timesteps=False)

model.save("agent_03_12_2019_continued_training_1")

With this the continual training is happening but the tensor board graphs are being updated. I have manually changed the reset_num_timesteps to False. but still the tensorboard graphs are not updated.

I'm working on some similar code, but I am am having issues with TensorBoard throwing an exception:
  File "C:\Anaconda3\envs\envTF1\lib\site-packages\stable_baselines\ppo2\ppo2.py", line 442, in __init__
    super().__init__(env=env, model=model, n_steps=n_steps)
  File "C:\Anaconda3\envs\envTF1\lib\site-packages\stable_baselines\common\runners.py", line 19, in __init__
    self.obs[:] = env.reset()
  File "C:\Anaconda3\envs\envTF1\lib\site-packages\stable_baselines\common\vec_env\subproc_vec_env.py", line 111, in reset
    remote.send(('reset', None))
  File "C:\Anaconda3\envs\envTF1\lib\multiprocessing\connection.py", line 206, in send
    self._send_bytes(_ForkingPickler.dumps(obj))
  File "C:\Anaconda3\envs\envTF1\lib\multiprocessing\connection.py", line 280, in _send_bytes
    ov, err = _winapi.WriteFile(self._handle, buf, overlapped=True)
BrokenPipeError: [WinError 232] The pipe is being closed

a sampling of my code is shown below:
    env = SubprocVecEnv(env_list)

    model = PPO2(policy ='CustomPolicy', env = env, verbose = 1,
                 vf_coef = VF_COEFF,
                 noptepochs = EPOCHS,
                 ent_coef = ENT_COEFF,
                 learning_rate = LEARNING_RATE,
                 tensorboard_log = tensorboard_log_location,
                 n_steps = NSTEPS,
                 nminibatches = MINIBATCHES)

    model.save(results_folder + run_name)

    # Training the model
    for i in range(number_training_steps):
        logname = run_name + '_' + str(i)
        model.learn(total_timesteps = int((total_timesteps/number_training_steps)),
                    reset_num_timesteps = False,
                    tb_log_name = logname)

        env.close()

        path = results_folder + logname
        model.save(path)

        if i < number_training_steps:
            env = SubprocVecEnv(env_list)
            model.load(load_path=path, env=env)

The the first training will complete, but when the model attempts to execute the learn method on the second iteration, the BrokenPipeError: [WinError 232] The pipe is being closed is thrown.
Not sure what this error means or how to resolve the problem.  pointing me towards documentation or pointing out coding mistakes would be appreciated

I have tried with
model = PPO2(CustomPolicy,env,gamma=1, n_steps=132, ent_coef=0.01,
             learning_rate=2.5e-4, vf_coef=0.5, max_grad_norm=0.5, lam=0.95,
             nminibatches=4, noptepochs=4, cliprange=0.2, cliprange_vf=None,
             verbose=0, tensorboard_log="./03_12_2019_logs/", _init_setup_model=True,
             policy_kwargs=None, full_tensorboard_log=False)

model.learn(total_timesteps=10000,callback=None, seed=None,
            log_interval=1, tb_log_name="Logs", reset_num_timesteps=False)

model.save("agent_03_12_2019")

model = PPO2.load("agent_03_12_2019")

n_cpu = 8
env = DummyVecEnv([lambda: AHUenv() for i in range(n_cpu)])
model.set_env(env)

model.learn(total_timesteps=2000000,callback=None, seed=None,
            log_interval=1, tb_log_name="Logs", reset_num_timesteps=False)

model.save("agent_03_12_2019_continued_training_1")

With this the continual training is happening but the tensor board graphs are being updated. I have manually changed the reset_num_timesteps to False. but still the tensorboard graphs are not updated.

Hello, have you solved the problem that the tensorboard is not updated? Thanks!

@araffin I note that you mentioned:
"EDIT: you may need to set num_timesteps manually to continue properly the graphs"
Where do you set this parameter? Obviously it is not an argument to the PPO learn.

I could solve the tensorboard problem. When loading the model, set tensorboard_log too:
model = PPO2.load(model_path, tensorboard_log="some_name")
After that I could see my logs again

Hi,
my case is: if have a changing environment like a RNN network, and the reinforcment learning agent is to control whether I should mask the input. (inout - input*mask) and mask is [0,1] discrete.
So what I did is that I train RNN for some epochs, and RNN is the observation of agent.
Agent will then train by model.learn(5000), RNN is in infernce mode when model is trained
Then I go back and train RNN with model.predict(deterministic= True) for predicting the mask.
I am not sure if the model will sample from the updated RNN environment?

To sum up (I'm stupid so it took me a while to put everything together), the working code is something like this:
#Model (if no model is saved)
model = PPO('MlpPolicy', env, verbose=1, tensorboard_log=logdir)		#Multi-layer perceptron

#continue training (Path to the last saved model)
model_path = f"models/1660556760/5000"
log_path = f"logs/PPO/1660556760/5000"
model = PPO.load(model_path, tensorboard_log=log_path)
model.set_env(env)''

Comment the second part the first time you run the code, and the first one the other times.

I tried with
ppo_mlp = ppo2.PPO2("MlpPolicy",env,gamma=Gamma,verbose=1,n_steps=nSteps,nminibatches=nBatch,
learning_rate=learningRate,tensorboard_log=logDir,
policy_kwargs=dict(act_fun=tf.nn.tanh,net_arch=[dict(pi=[64],vf=[64])]))
ppo_mlp = ppo2.PPO2.load(model_path, tensorboard_log=log_path)
if name=="main":
env = SubprocVecEnv([lambda: gym.make('Resonator1D-v2')])
ppo_mlp.set_env(env)
# Training
ppo_mlp.learn(total_timesteps=totalTimeSteps, log_interval=1, callback=callback, reset_num_timesteps=False)
ppo_mlp.save(folder_out_weights)
but I got
ValueError: Cannot feed value of shape (10, 10) for Tensor 'loss/advs_ph:0', which has shape '(?,)'
What am I doing wrong? Thanks!

the tensorboard graphs are not updated for the new timesteps

again please read the doc about tensorboard integration, we cover that issue.
EDIT: you may need to set num_timesteps manually to continue properly the graphs

you are just not listening

make sure to use reset_num_timesteps=False when learning with previously saved model


Explain the difference between php and php-template in their comments

Both php and php-template only have the link to https://www.php.net in their header comments. How does one choose one over another?

The discussion was here: https://github.com/highlightjs/highlight.js/issues/2330

And it is unclear how it ended.
I believe that those two languages should have a short comments in headers like

Choose this for any PHP code, with the opening tag or not.

or

Choose this for PHP code with a required opening tag.

(If I got the difference right.)

The last option is what we ended up with:

PHP templates are detected as php-template
Raw php code (snippets) are detected as php

So print("blah") might be php while <?php print("blah") ?> would be a php-template.  I think an additional comment to explain in those files would be reasonable.


Solve flaky disconnection after 45s issue

Sometimes, people get disconnected after 45s
affect me, u9g and awesomestgamer
changing pseudo might help ; refreshing cache might help
cause mostly unknown

I'm getting disconnected around 28-29 seconds, trying to log-in.

I was stuck "logging in" but I cleared the "bot version" field and then I was able to connect.


Role based dashboard access in Application Builder

In one of the use case we need to give access to the user where they can only see specific dashboard in an application.

This feature is implemented in 1.3.1 release


Add JSON form of the table

I can't find the issue(s) where we discussed this but there's been a proposal on the table for a while that we represent the multicodec table as JSON for easier consumption and more flexibility. I'd like to switch it so that the CSV is generated from the JSON and people contribute to the JSON. A JSON table would let us add more items, like https://github.com/multiformats/multicodec/issues/297, and longer descriptions, and overall much more flexibility for entries and ease of downstream consumption.
This needs a PR to propose the format. Does it need to be line-delimited JSON? Can it be fully pretty-printed? What does linting look like? What does CSV generation look like?
Anyone want to give this a go?

I prefer to use CSV, and think it is simpler for many cases. (I do use the CSV myself.) However, it is also true that in some programming langauges, JSON will be better, so having both can be helpful.
One problem with using JSON for contribution is the lack of a trailing comma, meaning that the records do not all have the same format. Another note about JSON is that JSON does not properly have 64-bit integers; although JavaScript has a integer type now, JSON predates the integer type in JavaScript.
If JSON is implemented, ensure that the CSV is generated in the same format it is now (including spacing, although a column may be made wider if necessary), possibly adding additional columns at the end if such a thing is necessary (which it might or might not be). The CSV should be plain ASCII (do not use any non-ASCII characters), and should not have any quotation marks; if you convert JSON to CSV, ensure that this is the case, even though the JSON will definitely include quotation marks, and possibly non-ASCII characters. (If it includes long descriptions, they will need to somehow be truncated, or maybe it is better to have a separate field for a short description.)
If you do want to switch to JSON like that, you will first need to convert CSV to JSON first, so that it will all be JSON, and then you can convert JSON to CSV. (Then, you can check that the output matches the original, that the converter does not have a bug. Fortunately, you have a version control system, so you can revert it if something goes wrong.)
The program will have to check that it is valid. If the JSON includes the varint code (as suggested in #297), then it will have to check that the varint code matches the numeric code. This should be easily enough to implement.
(Some programs might use the numeric codes directly, such as the hash.c and hash.h files in Free Hero Mesh, where they are used for defining constants with names such as HASH_SHA3_256 (defined as 0x16) and passed as arguments to function calls. Passing numbers will be more efficient than passing strings to identify hash algorithms where they need to specified (in a function call or something else), and using multicodec numbers will allow the same numbers to be used in many programs, in case that is helpful sometimes. So, both numeric codes and varint codes will be in use.)

2023-01-03 IPLD triage conversation:
@mriise :  just curious if this would be something you'd be interested in picking up?

Here's a rough outline that in my head from the various evolved conversations about this:

table.json is the primary form of the table, new edits should only touch that
table.csv is compiled from table.json and CI should be involved in some way - either blocking contributions where the user hasn't run a compile and table.csv doesn't match table.json compiled, or by just compiling and committing back the compiled form into the PR
The table.csv format should be fixed in stone, no more columns please, those are all we get there  (e.g. #297 belongs in table.json only)
It would be nice if table.json wasn't too sprawling to read, so I'm thinking that we come up with our own prettified JSON and enforce that with a script (user-runnable and in CI), perhaps one entry per line, but with nice spacing in each line (not sure if just plain spaces or spaced so columns line up so it's readable). So something like this (incl #297, and I've made up a new "ref" field for links to specs):

[
  { "name": "identity", "tag": "multihash", "code": "0x00", "varint": "0", "status": "permanent", "description": "raw binary" },
  { "name": "cidv1",    "tag": "cid",       "code": "0x01", "varint": "1", "status": "permanent", "description": "CIDv1",     "ref": [ "https://github.com/multiformats/cid" ] },
  { "name": "cidv2",    "tag": "cid",       "code": "0x02", "varint": "2", "status": "draft",     "description": "CIDv2",     "ref": [ "https://github.com/multiformats/cid" ] },
  { "name": "cidv3",    "tag": "cid",       "code": "0x03", "varint": "3", "status": "draft",     "description": "CIDv3",     "ref": [ "https://github.com/multiformats/cid" ] },
  { "name": "ip4",      "tag": "multiaddr", "code": "0x04", "varint": "4", "status": "permanent" }
]

That looks like to me that it can work, that it seems good enough (the lack of a trailing comma is a bit messy because now the records do not all have the same format, although I suppose there is not a satisfactory way to avoid that). The reference seems a good idea, too.
However, please ensure that the CSV file contains no quotation marks, no commas within the data of a field (commas are only between fields), no non-ASCII characters. (If the JSON contains strings with commas, quotation marks, and/or non-ASCII characters, which would appear in the CSV file, then the conversion would need to somehow change them, when it is being converted to CSV.)
Also, how are those fields encoded? The varint field just stores a single digit number, even though it seems that varint encoding should be encoded just as a sequence of hex codes, e.g. 808001 for the number 16384 (according to the examples in the varint specification)).

One thing to note, might be useful to use jsonld for streaming parsing.
https://json-ld.org/

maybe? ndjson is nice, but makes it pretty inconvenient for just loading the whole lot
I quite like streaming parsing and it might be neat if this gets huge but perhaps consumers would get annoyed they can't just dump it through a standard JSON parser as it is.
One nice thing ndjson would give us is strict enforcement of one-entry-per-line, which is what I'd like to see.

Initial proposal for some feedback: https://github.com/multiformats/multicodec/pull/311


Fix: iOS test app compiles with Xcode 12.5

Overview

I couldn't get the example test app to build with Xcode 12.5. Following the info / minimum changes at this link (https://github.com/facebook/react-native/issues/31179#issuecomment-830184757), I was able to get the test app to compile
Test Plan

Ran the iOS test app and it loaded.

Hey @Naturalclar ! Let me know if you'd like anything changed with this PR. This is me starting work on trying to get macOS up and running, and I had to make these small changes to get the iOS test app to work


🐛 Loading Local images from Mirror Repo impossible due to wrong file extension

A clear and concise summary of what the bug is. Include the name/source of the badly rendered note, if applicable.

As described in the README, I want to be able to copy all images into my Obsidian Files by adding this snippet to the CLI config:
...,
"images" : {
    "internalRoot": "5etools-img",
    "copyInternal" : true,
    "copyExternal" : true
},
...

This is the error that is logged.
Unable to copy image from [...]\ttrpg-convert-cli-2.3.3-windows-x86_64\bin\5etools-img\adventure\WDH\Zhent-Warehouse-Upper-Players.jpg to Compendium\adventures\waterdeep-dragon-heist\img\zhent-warehouse-upper-players.jpg (java.nio.file.NoSuchFileException: [...]\ttrpg-convert-cli-2.3.3-windows-x86_64\bin\5etools-img\adventure\WDH\Zhent-Warehouse-Upper-Players.jpg)

The problem is, that all images in the Image Repo are .webp files while the CLI is looking for .jpg.
This also happens without cloning the image repository.
Configuration

OS: Windows
CLI version: ttrpg-convert version 2.3.3 - Git commit: e9a5145 - Build time: 2024-02-19T23:48:42+0000
CLI type: native command

Sources:
{
  "from": ["WDH"],
  "paths": {
    "compendium": "/Compendium/",
    "rules": "/Rules/"
  },
  "images": {
    "internalRoot": "5etools-img",
    "copyInternal": true,
    "copyExternal": true
  },
  "template": {},
  "useDiceRoller": true,
  "tagPrefix": "",
  "full-source": {
    "book": [],
    "adventure": ["WDH"]
  }
}

That was it, I was following an old tutorial. Thank you!


Linkeditor layout

This PR is a first iteration on the LinkEditor layout and features.

It includes the 3 panels of the editor (Linked Dataset, Linking and Summary).
In this PR, the Linked Dataset widget only allows to select dataset, which displays the list of attributes in the Linking widget.
The Linking widget allows to select attributes, but does not glue these attributes yet.
The next steps should probably be done in follow up PRs:

gluing attributes using kernel
displaying glued dataset in Linked Dataset widget
displaying glued attributes in Summary widget
including advanced link

It's looking good ! I don't have particular comments for the moment.
I will spend time on the UI design (at the time I had only considered the UX of this, I didn't go deep into UI considerations) of the link editor for the next PR. For example the colours, the tabs design, and the titles of each section.

Thanks @brichet


Fix In IDE Build logging.

The Build logging displayed in the output window for an F# build was to say the least idiosyncratic.
This PR addresses that by producing in IDE logging that more closely aligns with the definitions of:

Minimal
Normal
Detailed
Diagnostic.

We have this failure, which looks unrelated, but we shuold work out what's caused it
1) Failed : Tests.LanguageService.Script.UsingProjectSystem.TypeProvider.Disposal.SmokeTest2
  Check1, countDisposals() < i, iteration 1
  Expected: True
  But was:  False
at Tests.LanguageService.Script.UsingMSBuild.TypeProviderDisposalSmokeTest(Boolean clearing) in D:\j\workspace\release_ci_pa---3f142ccc\vsintegration\tests\unittests\Tests.LanguageService.Script.fs:line 1625
at Tests.LanguageService.Script.UsingMSBuild.TypeProvider.Disposal.SmokeTest2() in D:\j\workspace\release_ci_pa---3f142ccc\vsintegration\tests\unittests\Tests.LanguageService.Script.fs:line 1662

@dotnet-bot test Windows_NT Release_ci_part1 Build please


Walk HDF5 data tree?

Any example how to walk HDF5 data tree using hdf5.node?
Following HDF5 examples, visit and iterate methods shall be used, like done in h5py for example: https://github.com/h5py/h5py/issues/406.

added recursive visiting on links. Returns an "xpath" of the groups from the root group or the file itself.
looking at the object visiting next


search function in module finds duplicates

e.g. search(brianrender, 'color') finds colorMap` multiple times (in modules that import it).
It also returns variables, not just functions!

Also, when not passing name it should ignore builtins and special stuff by default.

bug fixed: now search for functions in a module only finds functions and classes (with an option to hide classes) and it ignores functions that have been imported from other modules. E.g. pi.search(brainrender, 'color') yields the correct result:

The layout of the output table has been improved significantly (note classes are in yellow and functions in green):

search methods format also changed:

with methods found in parent classes being shown in red:


Steam shortcuts are not linked correctly to the launcher executables

When running the script as is, the installation of the launchers works fine, however the steam shortcuts that are created are pointing to the wrong executables or just generally an invalid path. Everything is very hardcoded as well which limits the flexibility of the script for use on other linux systems that are not the steam deck or non-default usernames on the steam deck. When they are linked to the wrong place, you also can't select a steam compatibility layer in the menu. I was able to just browse and select the correct executable, so obviously the hardcoded path is just incorrect and needs to be changed to the correct one. It should be the same executable that is pointed to by the desktop shortcuts on Windows, just within the given prefix, which might change depending on the "separate app id" menu selection. The steam shortcuts did not work when running the script in both cases, so the pathing needs to be fixed for both options.

@Dartis4 this seems like something new that has happened... could you show  me your log file? youre the first to describe this bug! thank you for reaching out and letting me know!

@richardestes i see, well ill be able to help you as soon as you show me your log so i can see whats going on.. NonsteamLaunchers exports a log to a file in the downloads folder..

From what it looks like, the directory is being truncated at some point? It's missing the drive_c directory.
EXPECTED: /home/deck/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/drive_c/Program Files (x86)/...
ACTUAL: /home/deck/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/Files (x86)/...
I've attached the log file as well. For future reference, the log file was located in /home/deck, not my downloads folder.
NonSteamLaunchers-install.log

@richardestes hey brother how are you downloading and running the .sh file? youre error log says this at the top and throughout ... chmod: cannot access 'bash': No such file or directory.

@moraroy I downloaded the latest zip from the releases page. Then I extracted it to my downloads folder and double-clicked the .desktop file to run the script. I wasn't directly running the .sh file at any point

@richardestes strange... @cchrkk upgraded the download page just a couple hours ago. Perhaps try the big download button now? It shouldn't give a zip anymore it should just give you the .desktop file now. I would "Start Fresh" and then delete those left over shortcuts in your library that you don't want. And then see if the script works properly. If it doesn't, it seems you may have a bash or command issue happening either in the script or on your system.

Just tried again with 2.85 and still seeing the incorrect pathing issue. This is after running through the "Start Fresh" option and removing all previous shortcuts in my library. Tested with both the newest release from the GitHub page (which is still a zip file) as well as the download page that's linked in the README. Appreciate you trying to help but I think I'll end up using Lutris in the meantime!

@moraroy please don't do releases or at least write a disclaimer to not download the .sh but go on the main page and hit that huge DOWNLOAD button 😂Or when you do releases just ad the same .desktop file. It's too confusing for users I see

@cchrkk is very correct. I am a pretty savvy user and was not really able to understand or find what I was supposed to do. I downloaded the zip from the releases which is normally what you do on GitHub and just used the desktop shortcut from that.
Here is my log file for cross-referencing as well.
NonSteamLaunchers-install.log

@Dartis4 @cchrkk @richardestes I hear you guys loud and clear and don't worry optimizing and getting these bugs cleared is the top priority right now, just today a huge number of changes were made. Thank you guys for being patient and sending these logs they are very helpful. I'm also still learning how to use github lol I never know when to do a "release" so everything a major changes happens I just do a release lol my bad guys.

A release is used for versioning. Whatever is the latest stable version that you want people to use, add it to the releases. If you just want people to download the desktop file, just put that in the release, if you want to make an executable, put that in the release. Whatever people should be downloading, that is the easiest and simplest way to give people what they need to get up and running.

@Dartis4 wait so you're saying I can pick and choose what gets released file wise? Like just the desktop file. In the release? Dang I see why you guys were confused my bad.

@Dartis4 wait so you're saying I can pick and choose what gets released file wise? Like just the desktop file. In the release? Dang I see why you guys were confused my bad.

You simply add the desktop file there and idk maybe write a note in the changelog section to just download the .desktop file or just use the one you already have on desktop to use the latest version

@cchrkk I see, I'd I do it like that from now on does github removed the zip files under assets? Or are those permamant?

@cchrkk I see, I'd I do it like that from now on does github removed the zip files under assets? Or are those permamant?

I think GitHub still zips all the source code every release, I'm not a GitHub expert as well 😂

GitHub always has the zip of the full repo. You just add what ever you want as the release and people can download that. You can take a look at other repos and see what people have in their releases for examples.

@Dartis4 I've been trying to stay consistent with the updates and adding the .desktop file...seems to be better right?

@moraroy looks great. Seems like things are coming along well. If the launcher linkage issue is resolved, you're probably good to close this issue. Good luck! I know myself and many others appreciate the work you're doing on the script and making life easier on the deck.

@Dartis4 were you able to fix all of your issues?

@Dartis4 I've been trying to stay consistent with the updates and adding the .desktop file...seems to be better right?

It's not working Bro. You added a .desktop.download file and It doesnt run sadly

@cchrkk well when I download the desktop file from the raw it turns into .desktop.download

@cchrkk well when I download the desktop file from the raw it turns into .desktop.download

Exactly, It should be .desktop to run. I need to check and fix because it needs thinkering right now

You find the .desktop file and attach it to every release. It's 100% possibile, see here https://github.com/cchrkk/NSLOSD-DL/releases/tag/DlLinkFix

@cchrkk gotcha thanks brother, in the next release I'll add the .desktop instead of the .desktop.download


Search issue in Heap.swift

What a gem of a repository!
What is the purpose of
if isOrderedBefore(element, elements[i]) { return nil }
on line 221 of Heap/Heap.swift ?
Shouldn't it be removed?

It looks like the purpose of that line is to allow for an early return.
Since the heap guarantees that the parent is always greater(max heap) or lesser(min heap) than it's children, once isOrderedBefore returns true, there's no point in searching further.

Thanks! You are right, that's a good point.
My problem was: the heap was storing pairs (key, value) (a min heap on value), and I was searching it for a pair (x,val) with val being a dummy value. So val was interfering with that condition.


Add choice for Redeem/RedeemAny  for STAS-20 tokens

It would be nice to define in contract if redeem for STAS-20 tokens can be standard or RedeemAny

Thank you for your feedback! Currently the STAS templates all have a specific set or properties that make them unique. This is defined in the smart contract part of the script itself, therefore any changes to the STAS templates would then create a new token type.
The legacy "STAS" tokens however do have the ability for anyone to redeem them if they are the token owner of the address. The only other difference between the STAS and STAS-20 token is the additional Op Return output that can be added to the STAS-20 transactions that can contain additional meta data etc.


Fix small typo - Line 75: "smalle" => "smaller"

Thanks for providing readable docs in book format, definitely helpful for dev UX. Thanks!

There were the following issues with your Pull Request

Commit: 85ffb398ec034c9d4be101c8ef7a0e13e7a3d6b5
Commits must be in the following format: %{type}/%{scope}: %{description}

Guidelines are available at https://github.com/autumnai/leaf/blob/master/CONTRIBUTING.md#git-commit-guidelines

This message was auto-generated by https://gitcop.com


CSS functions

Description
Proposal for https://github.com/sass/sass/issues/3176, based on first-class-calc.
I don't intend to merge this PR here, just get an initial round of review from the birds before opening it upstream. "This is enough for upstream" is also valid feedback 😅

I don't intend to merge this PR here, just get an initial round of review from the birds before opening it in the official repo

Thanks for the feedback @mirisuzanne @dvdherron! Closing here and submitting upstream https://github.com/sass/sass/pull/3446


Spanish translation

A lot of Misunderstandings and corrections made.

2 hours or more doing this, with my english teacher helping me in some things...
Please let me know if it's something wrong :)
Ask me if you need to do a merge with other contributor...

Thanks for helping this project, @marce1994 :)

No problem! there are things that are difficult to translate literally, and because i'm from argentina it's even more complicated.
Thanks a lot :) if you think there is a mistake, let me know.


fix: fixed token permission and pinned dependencies issue

Which issue(s) this PR fixes:

Part of #9247
What this PR does / why we need it:
fixed token permission and pinned dependencies issue reported by scorecard.
Special notes for your reviewer:
Additional documentation or context

@harshitasao Can you help resolve the comment from @innobead? Thanks.


Migrate Go client to kuksa-incubation

To be merged after
https://github.com/eclipse-kuksa/kuksa-incubation/pull/6 has been merged.

@SebastianSchildt @lukasmittag - Go code is now in kuksa-incubation, so now this PR can reviewed and merged


model detects a lot of object classes where there are none

Helo Bro! The yolov4.weights file in  your github is down. I use the file from darknet (https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v3_optimal/yolov4.weights), but the recognicion from the model detects a lot of object classes where there are none
Convert darknet weights to tensorflow
yolov4
python save_model.py --weights ./data/yolov4.weights --output ./checkpoints/yolov4-416 --input_size 416 --model yolov4
Run demo tensorflow
python detect.py --weights ./checkpoints/yolov4-416 --size 416 --model yolov4 --image ./data/kite.jpg

Hi @Marianoxis
I got the same mess detection issue yesterday. In my case, I used different cmd for model saving.

I added the extra --framework tf and --tiny False
For the weights, I also downloaded them from AB's repo and worked fine locally.

The issue is fixed by replacing --tiny False with  --tiny=False. (the repo's demo cmd is correct).
For your case, I'd recommend to double check whether your saved model is valid w.r.t. number of layers, parameters, etc. It should have 110 conv2d layers and 602 layers in total.
Good luck


Consider adding vulnerability detection to PR checks in SBRP

In this PR comment, it was highlighted that we might accidentally introduce (or re-introduce) vulnerable packages into SBRP without being aware of potential vulnerabilities until we check for them internally.
Given the complexity of removing certain packages in SBRP (adding a new package, waiting for rebootstrap, removing the old package, updating self-reference), it's crucial to avoid adding vulnerable packages whenever possible. Implementing a validation check in PRs to detect vulnerable packages would be beneficial. We need a solution that is easy to use and does not require submitting reports to an internal system. According to this blog post, the dotnet CLI can detect vulnerabilities using the command dotnet list package --vulnerable in projects, so we might be able to leverage that.
The other thing to consider is whether we'd want to detect already-checked-in packages for vulnerabilities, or if we'd rather only check packages being introduced in the PR.

See also https://devblogs.microsoft.com/nuget/nugetaudit-2-0-elevating-security-and-trust-in-package-management/

See also https://github.com/dotnet/arcade/issues/15019

Related to https://github.com/dotnet/source-build/issues/3559


Managin relationships

Hi everyone!
I'm trying to do something and I want to know what is the best way.
I have two tables: categories and category_translations. The relationship is one to many. A category has many category_translations.
When I run the generator with scaffold option for both tables i'm obtaining a complete CRUD. I want to have a create form for the category where I could add directly the translations to be stored on category_translations table. This makes me store the translation info in the store method from CateogryRepository
What's the way to do this? Calling the CategoryTranslation model into CatagoryRepository is a bad practice?

@gabrieldasilva can you post a complete schema here ? then we can have better idea. Because if category translations are always added from Category then I think you don't need a separate CRUD at all.
But if you have one translation in more than one category then you need a CRUD.
Also, you can directly attach or save translations via relationship. I don't think you should call translation repository into category repository. Even you call, I don't think its a bad practice, as long as that function is called from various places. By that way, you can avoid code redundancy.


Support curio

Is support for the async library curio present or planned in pyzmq?

I haven't planned on it, but I suspect it could be done.

Thank you for your swift reply, that's nice to hear. I'm currently using asyncio with pyzmq, and it's working okay. That being said, I (and other people) find the learning curve for asyncio quite steep, and a lot of people in the Python community seem to think that curio is a cleaner and simpler approach.
I don't know how much effort would be involved in adding support for curio, but it might be worth keeping it on your radar if curio keeps gaining momentum.

I've only learned recently about curio, and it sounds attractive.
I should say that pyzmq doesn't need to support it, one can always write a curio-compatible wrapper in a separate package as has been done in aiozmq. I can then merge it upstream if it seems standard enough, or just leave it as its own project.

Bump. Is this still a possibility?

It's always a possibility, but I'm not planning to work on it soon. Integration with eventloops doesn't need to be done in pyzmq itself. It can always be done as a separate package (it's already that way effectively in pyzmq, they just happen to be bundled together). If anyone is interested in doing this, making a package that makes zmq sockets available to curio (following aiozmq's example) would be great.

It seems the author of curio has already written a wrapper for pyzmq. Don't know whether it is finished or not.

Closing some old issues. I don't think this should be in pyzmq, since it can be in an external package that extends FutureSocket.


Move to react-mdl ?

Why ?

It has richer components that are more flexible.
It is primarily CSS, hence giving decent performance, something which material-ui is struggling with.
It is more regularly updated.

How ?
Thankfully most of the component names are similar, so it shouldn't take much time to port the components.

We also need to improve layout of search and AngBar. Proper design is needed to give great experience on mobile and desktop

https://github.com/bogas04/sikhjs/tree/react-mdl


updated histogram app

The histogram app looks much more professional and I like the new design/layout. Thank you, @AnnMarieW


SA1642: Validation incorrect for classes with generic parametes

Hi,
This case seems to be very similar to Case #415, but relates to dynamic parameters. For example StyleCop classic still finds this violation but not the analyzer. The violation of wrong type name XXX not picked up:
	public class AuthorizationPolicy<TIDENT>
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="AuthorizationPolicy{XXX}"/> class.
		/// </summary>
		public AuthorizationPolicy()
		{
			Id = Guid.NewGuid().ToString();
		}

According to the C# compiler, there is no difference between AuthorizationPolicy{TIDENT}, AuthorizationPolicy{T}, and AuthorizationPolicy{XXX}. All of them reference the same generic type AuthorizationPolicy<TIDENT>.

Right, the compiler will not tell, since this is a documentation mismatch with declared name. Like I said Classic StyleCop picks up this as violation.

I think this would make the most sense as a new rule, as opposed to updating existing rules to start checking this.


Access word frequency information

is the word frequency information available in the C++ code? In that case This would be a great feature to have for example for pruning the size of the embeddings.

hi @elyase ,
Yes, it's available in the private fields Dictionary::words_ (entry.count)


docs: Update settings location for mission control caveat

Fixes #1586

I'll do a pass on the documentation when everything works properly on Ventura. For now it will remain as Big Sur/Monterey compatibility and the respective instructions for those versions.

Makes sense, I'll close this then :)

wiki and readme is updated.


Automate compatibility broke

After the most recent update automate seems to no longer be working with this and it did previously could you please take a look and try to fix it
https://smapi.io/log/c85c497b49c3451e9173e11be03a19b0

Thanks for the quick fix :D

Thanks for the quick fix :D


zipkin http header keys in canonical format

Hi,
we are experimenting go-kit micro service with openzipkin/zipkin-go-opentracing. One thing I found is that the HTTP header keys like  "X-B3-TraceId, X-B3-SpanId, X-B3-ParentSpanId" according to  http://zipkin.io/pages/instrumenting.html   BECOMES "X-B3-Traceid, X-B3-Spanid, X-B3-Parentspanid" when the http header is sent from go-kit micro service using zipkin-go-opentracing.
While this is fine for tracing between go-kit micro services because the Extract() method of zipkin-go-opentracing/propagation_ot.go resolves the case difference.
However, when the go-kit micro service sends requests with trace to other services  implemented in Java or C/C++, the canonical format could create mismatch.
I believe whoever implemented the Extract() method of zipkin-go-opentracing/propagation_ot.go understands the issue I'm talking about.
Any idea on how to resolve this discrepancy between zipkin instruments implemented by different languages?
thanks

Problem is that server side instrumentation really should treat HTTP headers as case insensitive per RFC. Most browsers capitalize words (words separated by -) So X-B3-TraceId would become X-B3-Traceid
In Go this is done by net/http automatically see:
https://golang.org/src/net/http/header.go?s=711:749#L166
So unfortunately there is not much we can do here, you can however file a report with the other tracing libraries you are using to make sure they treat the headers in a case insensitive matter as they should.

Agreed. It is a bug to read http header names case sensitively.

I'm closing this issue. It needs to be resolved in the other libraries / implementations.


[ts-sdk] Remove old coin selection APIs

Description
Describe the changes or additions included in this PR.
Test Plan
How did you test the new or updated feature?

If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)

[ ] user-visible impact
[ ] breaking change for a client SDKs
[ ] breaking change for FNs (FN binary must upgrade)
[ ] breaking change for validators or node operators (must upgrade binaries)
[ ] breaking change for on-chain data layout
[ ] necessitate either a data wipe or data migration

Release notes

Current dependencies on/for this PR:

main

PR #9332   👈

This comment was auto-generated by Graphite.


Add a test using the disk_use tool to prove the delta in disk usage running the auction (run the test before and after)

duplicated by #196


conv2d layer needs refactoring

There are a number of issues with conv2d layer:

number of weights are dependent on the number of filters (user configuration at runtime) - it should not be
lot of unnecessary memory copies
manually transposing the data instead of using transpose provided by blas in backwarding
weight regularization loss is wrong as it divides by number of filters

:octocat: cibot: Thank you for posting issue #761. The person in charge will reply soon.


Fix some warnings and C89 compatibility.

With these fixes, csrp can be built with very old and current g++ versions with pedantic error checks.

Looks good. Thanks


[Feature Request (long term)] Light up systems based on statistics (like the ingame map)

This would probably be hard to implement, but it would be amazing if I could make systems light up based on different statistics, like the ingame map.  For example, if I used "Gas sigs" it would light up systems with lots of gas sigs brightly, and ones with few less brightly.
I would prefer this as a client-side thing so different people can view different things, but I have no clue if its viable.

Yeah, this is a good "nice to have" feature, nothing on top of my TODO list ;).
The implementation is not difficult.


Create codeql.yml

Adding Codeql scanner

Hi @ZsoltMollie
Thanks for reaching out to us.
Please note that our dev team will review your pull request and we will update you accordingly.
Best regards


fix "ip not found" spec using <IP_ADDRESS> instead of random ip

the "ip not found" spec was using a specific ip that now shows up in the latest version of the geo ip database.
this pr changes the test to use <IP_ADDRESS>, which we know won't show up.

Good change!! definitely  <IP_ADDRESS> will not be in the database.
LGTM
I guess there is no other way to ask for missing IP than ask for either localhost or this, so change looks good! 🚢 :shipit: 🚀


feat: add kili.synchronize_cloud_storage_connection

Work done:

add a gql websocket client. It doesn't work exactly the same way as our handcrafted Subscriptiongraphclient
in execute_query_from_paginated_call, I added a if isinstance(rows, Dict): since not all queries return lists
added a kili.cloud_storage_connection() to query information about the data_connection
verify_diff_computed does two things:

launch compute_difference in another thread with some delay.
launch a subscription and wait that the diff computation is finished (isChecking == False)

if we launch the compute_difference and then start listening to the subscription events, no events will arrive since the diff is already  computed before the subscription has even started. That's why we need a thread to start the compute_difference a bit later
once the e2e test pass, we can try to remove the time.sleep(1), but for now I can't have stable behavior without them

TODO:

[ ] add KILI_TEST_DATA_INTEGRATION_ID_PREPROD github secret
[ ] add KILI_TEST_DATA_INTEGRATION_ID_STAGING github secret
[ ] add KILI_TEST_DATA_INTEGRATION_ID_LTS github secret

e2e ongoing: https://github.com/kili-technology/kili-python-sdk/actions/runs/4302758695

e2e after fixing the (first=1) bug: https://github.com/kili-technology/kili-python-sdk/actions/runs/4306402879


Terminals broken in Remote-SSH

The terminal is just empty

I was worried that I had broken it from verification when I was messing with the permissions for /etc/shells but that should be back to normal, and this works in stable.
I don't see any obvious errors. The Pty Host log:
2023-12-18 10:17:53.836 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/zsh
2023-12-18 10:17:53.836 [trace] [RPC Request] PtyService#getDefaultSystemShell(2)
2023-12-18 10:17:53.836 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/zsh
2023-12-18 10:17:54.009 [trace] [RPC Request] PtyService#getDefaultSystemShell(2)
2023-12-18 10:17:54.010 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/zsh
2023-12-18 10:17:54.010 [trace] [RPC Request] PtyService#getDefaultSystemShell(2)
2023-12-18 10:17:54.010 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/zsh
2023-12-18 10:18:08.733 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.733 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.734 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.734 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.734 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.734 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.734 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.734 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.735 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.735 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.735 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.735 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.735 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.735 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.735 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.736 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.736 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.736 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.736 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.736 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.736 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.736 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.737 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.737 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.737 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.737 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.737 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.737 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.737 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.737 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.738 [trace] [RPC Request] PtyService#getDefaultSystemShell(3)
2023-12-18 10:18:08.738 [trace] [RPC Response] PtyService#getDefaultSystemShell /bin/bash
2023-12-18 10:18:08.779 [trace] [RPC Request] PtyService#getEnvironment()
2023-12-18 10:18:08.780 [trace] [RPC Response] PtyService#getEnvironment {"COMMAND_MODE":"unix2003","DISPLAY":"/private/tmp/com.apple.launchd.jwY01r8bVv/org.macosforge.xquartz:0","HOME":"/Users/roblou","LOGNAME":"roblou","MallocNanoZone":"0","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","PATH":"/usr/bin:/bin:/usr/sbin:/sbin","SHELL":"/bin/zsh","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.Y57f22F9yF/Listeners","TMPDIR":"/var/folders/tx/p0ycbfpj37786p760wwdg6y80000gn/T/","USER":"roblou","VSCODE_AMD_ENTRYPOINT":"vs/platform/terminal/node/ptyHostMain","VSCODE_CODE_CACHE_PATH":"/Users/roblou/Library/Application Support/Code - Insiders/CachedData/279872bd965e4030c81129a9bf1ce1710ff7cd55","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"ptyHost","VSCODE_CWD":"/","VSCODE_IPC_HOOK":"/Users/roblou/Library/Application Support/Code - Insiders/1.86-main.sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"7864","VSCODE_PIPE_LOGGING":"true","VSCODE_VERBOSE_LOGGING":"true","XPC_FLAGS":"0x0","XPC_SERVICE_NAME":"application.com.microsoft.VSCodeInsiders.283077056.283077062","__CFBundleIdentifier":"com.microsoft.VSCodeInsiders","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0"}

main:
2023-12-18 10:15:32.191 [warning] [perf] profiling DONE 2e8f0da7-a6b7-4ca0-99b9-3fedb8648ff4
2023-12-18 10:15:33.604 [warning] [perf] profiling DONE d07e5bd4-72dc-4c3b-8951-83fec3efcc3c
2023-12-18 10:15:49.281 [info] Extension host with pid 8088 exited with code: 0, signal: unknown.
2023-12-18 10:17:11.594 [info] Extension host with pid 9125 exited with code: 0, signal: unknown.
2023-12-18 10:17:50.496 [info] Extension host with pid 9612 exited with code: 0, signal: unknown.
2023-12-18 10:18:00.555 [warning] [perf] profiling STARTED 0cf137f8-8f8b-4bbc-a008-cb3320844853
2023-12-18 10:18:01.575 [info] Extension host with pid 9913 exited with code: 0, signal: unknown.
2023-12-18 10:18:05.636 [warning] [perf] profiling DONE 0cf137f8-8f8b-4bbc-a008-cb3320844853
2023-12-18 10:30:12.211 [info] Extension host with pid 9965 exited with code: 0, signal: unknown.
2023-12-18 10:30:26.422 [info] Extension host with pid 12407 exited with code: 0, signal: unknown.

lmk if I can provide any other logs

Ah here's one more useful, just capturing it when the server starts up
[10:37:11.581] [server] [IPC Library: Pty Host] innerError Error: Cannot find module '../build/Debug/pty.node'
[10:37:11.582] [server] Require stack:
[10:37:11.582] [server] - /home/roblou/.vscode-server-insiders/cli/servers/Insiders-279872bd965e4030c81129a9bf1ce1710ff7cd55/server/node_modules/node-pty/lib/unixTerminal.js
[10:37:11.583] [server] - /home/roblou/.vscode-server-insiders/cli/servers/Insiders-279872bd965e4030c81129a9bf1ce1710ff7cd55/server/node_modules/node-pty/lib/index.js
[10:37:11.584] [server] [IPC Library: Pty Host] innerError Error: Cannot find module '../build/Debug/pty.node'
[10:37:11.585] [server] Require stack:
[10:37:11.586] [server] - /home/roblou/.vscode-server-insiders/cli/servers/Insiders-279872bd965e4030c81129a9bf1ce1710ff7cd55/server/node_modules/node-pty/lib/unixTerminal.js
[10:37:11.586] [server] - /home/roblou/.vscode-server-insiders/cli/servers/Insiders-279872bd965e4030c81129a9bf1ce1710ff7cd55/server/node_modules/node-pty/lib/index.js
[10:37:11.586] [server]     at require (node:internal/modules/cjs/helpers:121:18)
[10:37:11.587] [server]     at Object.<anonymous> (/home/roblou/.vscode-server-insiders/cli/servers/Insiders-279872bd965e4030c81129a9bf1ce1710ff7cd55/server/node_modules/node-pty/lib/index.js:14:20)
[10:37:11.587] [server]     at Module._compile (node:internal/modules/cjs/loader:1256:14)
[10:37:11.587] [server]     at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
[10:37:11.587] [server]     at Module.load (node:internal/modules/cjs/loader:1119:32)
[10:37:11.588] [server]     at Module._load (node:internal/modules/cjs/loader:960:12)
[10:37:11.588] [server]     at Module.require (node:internal/modules/cjs/loader:1143:19)
[10:37:11.588] [server]     at require (node:internal/modules/cjs/helpers:121:18)
[10:37:11.589] [server]     at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
[10:37:11.589] [server] [IPC Library: Pty Host] Loading "node-pty" failed
[10:37:11.590] [server] [IPC Library: Pty Host] Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /home/roblou/.vscode-server-insiders/cli/servers/Insiders-279872bd965e4030c81129a9bf1ce1710ff7cd55/server/node_modules/node-pty/build/Release/pty.node)
[10:37:11.591] [server]     at Module._extensions..node (node:internal/modules/cjs/loader:1340:18)
[10:37:11.591] [server]     at Module.load (node:internal/modules/cjs/loader:1119:32)
[10:37:11.591] [server]     at Module._load (node:internal/modules/cjs/loader:960:12)
[10:37:11.591] [server]     at Module.require (node:internal/modules/cjs/loader:1143:19)
[10:37:11.592] [server]     at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
[10:37:11.592] [server]     at Module.load (node:internal/modules/cjs/loader:1119:32)
[10:37:11.592] [server]     at Module._load (node:internal/modules/cjs/loader:960:12)
[10:37:11.593] [server]     at Module.require (node:internal/modules/cjs/loader:1143:19)
[10:37:11.593] [server]     at require (node:internal/modules/cjs/helpers:121:18)
[10:37:11.593] [server]     at Object.<anonymous> (/home/roblou/.vscode-server-insiders/cli/servers/Insiders-279872bd965e4030c81129a9bf1ce1710ff7cd55/server/node_modules/node-pty/lib/index.js:14:20)
[10:37:11.593] [server]     at Module._compile (node:internal/modules/cjs/loader:1256:14)
[10:37:11.593] [server]     at f._resolve (/home/roblou/.vscode-server-insiders/cli/servers/Insiders-279872bd965e4030c81129a9bf1ce1710ff7cd55/server/out/vs/loader.js:6:452)
[10:37:11.594] [server]     at Object.<anonymous> (/home/roblou/.vscode-server-insiders/cli/servers/Insiders-279872bd965e4030c81129a9bf1ce1710ff7cd55/server/out/vs/platform/terminal/node/ptyHostMain.js:43:42642)
[10:37:11.594] [server]     at n._createAndEvalScript (/home/roblou/.vscode-server-insiders/cli/servers/Insiders-279872bd965e4030c81129a9bf1ce1710ff7cd55/server/out/vs/loader.js:4:2506)
[10:37:11.594] [server]     at /home/roblou/.vscode-server-insiders/cli/servers/Insiders-279872bd965e4030c81129a9bf1ce1710ff7cd55/server/out/vs/loader.js:4:2147
[10:37:11.594] [server]     at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)

duplicate of https://github.com/microsoft/vscode/issues/200754

@deepak1556 I see https://github.com/microsoft/vscode/issues/192685 and https://github.com/microsoft/vscode-remote-release/issues/8952, but not sure what the current status is, do you expect an error like that in the latest Insiders?

also cc @rzhao271


Double frame capture required and other oddities

Description
For some reason, I need to capture two sequential frames to be able to see any events in RenderDoc. I'm not sure if it's an issue on my end, perhaps due to dynamically loading a dll, but I can't work out what it is.
It looks like even when I do get some events in RenderDoc, some of them may be missing (again, not sure if this is an issue on my end).
Repro steps
See the repro application here:
https://www.dropbox.com/s/mtl1f2qwxtrkxjd/Repro.zip?dl=0
I've included a render doc settings file which shows the issue. If you launch the application, then Print Screen to capture then it will capture a frame, but there will be no events.
In order to actually see some events, I have to use the tools to trigger two sequential frames to be captured after a delay of zero.
Environment

RenderDoc v1.0
Windows 10
D3D11
GeForce GTX 680, driver 391.35

The reason sometimes you get empty captures (not always - if you're lucky you can get a single frame capture that contains events) is that your program seems to be calling Present twice with no work in between. Something like this:

Draws, etc...
Present()
Present()
Draws, etc..
Present()
Present()

Which means that sometimes the frame capture will start on present 3 and end on 5, meaning some drawcalls are enclosed and captured, and sometimes it will start on 5 and end on 6 (or 2->3) and be empty. It depends on the timing of when the button press or socket command from the UI is detected. Capturing two adjacent frames means you're always going to have one or the other.
There's no way around this from RenderDoc's side, it needs a way to know when the frame starts and end and the Present() boundary is as good as it gets. If you need to keep these extra Present() calls without any work in between, my recommendation would be to use the in-application API to manually denote the start and end of a capture based on your own metrics and trigger condition.
As to the missing events, I don't know what events are supposed to be there so I'd need more information about that - it certainly seemed to do all the same rendering as the main program.


Please fix readme

instead of
var Child = proto(Parent, function(superclass) {
    this.init = function() {
        superclass.init.call(this, arguments) // super-class method call
        // superclass.prototype.init.call(this, arguments) // remember that you probably need to access superclass.prototype for parents that aren't proto objects
        this.r = 10
    }

should be probably
var Child = proto(Parent, function(superclass) {
    this.init = function() {
        superclass.init.apply(this, arguments) // super-class method call
        // superclass.prototype.init.apply(this, arguments) // remember that you probably need to access superclass.prototype for parents that aren't proto objects
        this.r = 10
    }

Thanks for the tip, but the code written there is valid and will work. It demonstrates that the defined properties are given to the proto object itself.

But yeah, I'll add a note there that if its not a proto object, it may need to be different. Thanks!

Ah, yeah, I'll fix it. Thanks!

Done


[C#][Table Binding] Table input doesn't appear to be initialized properly

Issue
When trying to use the IQueryable or CloudTable object passed from a Table Input binding, I get the following error (new lines by me):
2016-03-28T08:05:19.812 Exception while executing function: Functions.cs-exponential-results.
mscorlib: Exception has been thrown by the target of an invocation.
Microsoft.WindowsAzure.Storage: Object reference not set to an instance of an object.
ƒ-cs-exponential-results#ℛ*fd98a0af-579c-479f-bf98-c346a62d9c6f#40-0: Object reference not set to an instance of an object.

This error is consistent with using a Storage object that hasn't been initialized correctly. I'm assuming this is a deeper SDK problem because queues and table output is still working.
Repro
run.csx
#r "Newtonsoft.Json"

using System;
using System.Net;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Microsoft.WindowsAzure.Storage.Table;
using Microsoft.WindowsAzure.Storage;

public static Task<HttpResponseMessage> Run(HttpRequestMessage req, CloudTable telemetry, TraceWriter log)
{
    log.Verbose($"C# HTTP trigger function processed a request. RequestUri={req.RequestUri}");

    TableQuery<LogItem> query = new TableQuery<LogItem>().Where(TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, "run3281214"));

    HttpResponseMessage res = null;
    res = new HttpResponseMessage(HttpStatusCode.OK)
    {
        Content = new StringContent(JsonConvert.SerializeObject(telemetry.ExecuteQuery(query)))
    };

    return Task.FromResult(res);
}

// Also fails (also a Run function)

public static Task<HttpResponseMessage> Run(HttpRequestMessage req, IQueryable<LogItem> telemetry, TraceWriter log)
{
    log.Verbose($"C# HTTP trigger function processed a request. RequestUri={req.RequestUri}");

    var query = telemetry.
    //(from t in telemetry select t).Take(100);

    HttpResponseMessage res = null;
    res = new HttpResponseMessage(HttpStatusCode.OK)
    {
        Content = new StringContent(JsonConvert.SerializeObject(query))
    };

    return Task.FromResult(res);
}

public class Item
{
    public string run_id { get; set; }
    public int multiplier { get; set; }
    public int max_generation { get; set; }
    public int current_generation { get; set; }
    public string id { get; set; }
    public string parent_id { get; set; }

    public static Item nextGen(Item item)
    {
        return new Item()
        {
            run_id = item.run_id,
            multiplier = item.multiplier,
            max_generation = item.max_generation,
            current_generation = item.current_generation + 1,
            id = Guid.NewGuid().ToString(),
            parent_id = item.id
        };
    }
}

public class LogItem : Item, ITableEntity
{
    private TableEntity tableEntity;

    public DateTimeOffset enqueue_time { get; set; }
    public DateTimeOffset process_time { get; set; }
    public string PartitionKey { get; set; }
    public string RowKey { get; set; }

    public DateTimeOffset Timestamp { get; set; }

    public string ETag { get; set; }

    public LogItem() { }

    public LogItem(Item item, DateTimeOffset InsertionTime)
    {
        this.tableEntity = new TableEntity();

        this.run_id = item.run_id;
        this.multiplier = item.multiplier;
        this.max_generation = item.max_generation;
        this.current_generation = item.current_generation;
        this.id = item.id;
        this.parent_id = item.parent_id;
        this.PartitionKey = item.run_id;
        this.RowKey = Guid.NewGuid().ToString();
        this.enqueue_time = InsertionTime;
        this.process_time = DateTimeOffset.UtcNow;
    }

    public void ReadEntity(IDictionary<string, EntityProperty> properties, OperationContext operationContext)
    {
        tableEntity.ReadEntity(properties, operationContext);
    }

    public IDictionary<string, EntityProperty> WriteEntity(OperationContext operationContext)
    {
        return tableEntity.WriteEntity(operationContext);
    }
}

function.json
{
  "bindings": [
    {
      "webHookType": "",
      "name": "req",
      "type": "httpTrigger",
      "direction": "in"
    },
    {
      "name": "res",
      "type": "http",
      "direction": "out"
    },
    {
      "name": "telemetry",
      "type": "table",
      "tableName": "exponentialtelemetry",
      "partitionKey": "run3281214",
      "take": "10000",
      "filter": "PartitionKey eq 'run3281214'",
      "connection": "<MY APP SETTING>",
      "direction": "in"
    }
  ],
  "disabled": false
}

Just tried this with telemetry as an out binding and CloudTable isn't supported there either. :(

Hrrrrrmmmmm, so this might be related to my "LogItem". I went and tried writing this from scratch and am still getting this error. Going to close this issue until I can figure out what I'm doing wrong...

Whelp, it was my LogItem. :P


Centered the contact form to keep it in sync with rest of the home page

🛠 Fixes Issue
Closes #331

👨💻 Changes proposed

I centered the contact form by applying w-75 to the contact div and then mx-auto to center it.
✔ Check List (Check all the applicable boxes)

[ x] My code follows the code style of this project.
[ x] This PR does not contain plagiarized content.
[ x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

The contact form was not properly centered and was disturbing the look of the page. So I centered it using bootstrap.
📷 Screenshots

It is not responsive!

On it bro !

It is not responsive!

if you can merge it and I will raise an issue to make it responsive for mobiles because tabs and desktop seems fine


macOS Catalina Qt Latest

Describe the bug
When running ./vcpkg --triplet x64-osx install qt5[latest] or ./vcpkg --triplet x64-osx install qt5-base[latest] i get the following error: zsh: no matches found: qt5[latest]
When i run ./vcpkg --triplet x64-osx install qt5 it starts compiling qt 5.9 not LTS 5.12.5 as it states in search. The control file under ports -> qt5 states LTS is 5.12.5 and [latest] is 5.13.1.
Environment

OS: macOS Catalina 10.15.1
Compiler: AppleClang <IP_ADDRESS>00033

To Reproduce
Steps to reproduce the behavior:

/vcpkg --triplet x64-osx install qt5[latest] or ./vcpkg --triplet x64-osx install qt5-base[latest]
zsh: no matches found: qt5[latest]

Tried latest release as well as master branch and same issue.

@sbrown89 zsh interprets the [ and ] as special characters, you either need to escape them or write it as a string like "qt[latest]"

Shoot! ... not used to the new zsh shell yet .. that fixed it .. stupid me. Thanks!


app.getVersion() getting electron lib version and don't updating

Hello guys , i'm using electron-updater for auto update my app  and it's don't work very well , in the console shows

Although my application is in version 0.0.1 in package.json

why this happen ?
I think  de app.getVersion is getting electron lib version , have some configuration to set in electron-updater or in the electron-core lib ?

Node version:8.1.3
NPM version:5.0.3
Operating System: win10 x64

I am not sure whether this will be helpful in your particular case. But i tried getVersion in my app to show it in About App dialog. I got the same release number. So i figured it was electron's version. So in development mode, it fetches electrons version instead of app's version which is in pacakage.json. But in production build it works perfectly.
I don't know anything about auto update feature yet. but if you are running in development environment, try production build instead.

Thanks man , it's work perfectly now. But it is a pity that don't work in the development environment because it would help me a lot to check methods.
But I can move on now , thank you very much

@CristopherYusuke
The following documentation explains how the app version is attained, but doesn't necessarily mention the differences during development like @emjimadhu mentions.

The version of the loaded application.

It's important to remember that during development you are using a prebuilt binary of electron, and not a final production build that your would normally expect. Since the prebuilt version lives in a separate scope of your projects package.json, it will then fallback to getting the electron version, or the "loaded application".
https://electron.atom.io/docs/api/app/#appgetversion

It's a known "issue". I'm using the following to grab the app version
const appVersion = require('./package.json').version;

@SimulatedGREG  Actually you can test updates in development, you just need to mock  the app.getVersion function before importing the 'electron-updater' package. Something like:
import {version} from './package.json';
app.getVersion = ()=> version;
const { autoUpdater } = require("electron-updater");


#error unknown CPU on ESP32

How to fix #error unknown CPU using ESP32  ?

Hello,
I'm sorry it took me so long to reply to you.
This is indeed a problem at the moment and I will deal with this as soon as possible

Hello,
I'm going to close this issue, feel free to re-open it if you have any other questions.
[Autocommentary]


Define the requirement rule for illuminate dependencies

illuminate/console and illuminate/support (version 6.0) has been released and being used in Laravel V6.0.

This should fix it #60


wrong bundler instructions

Hey, just found some wrong instructions on this page: https://payloadcms.com/docs/admin/bundlers

I think it should be yarn add @payloadcms/bundler-webpack and yarn add @payloadcms/bundler-vite.

This issue has been fixed but not released, I will rebuild the site now! Thanks