Log the crashes into a txt

When Edit crashes, the logger crashes too so can't see what makes it crash kek.

Fixed in https://github.com/space-wizards/RSIEdit/commit/3820996beb495ad9e300e767062cec303a5f6213


Feature: command to force log file rotation

It's not an issue but a feature suggestion.
I use rotating_file handler and by facing a disk space usage issue, I was needing a way to force the rotation on this log files. WDYT ?

The RotatingFileHandler is something useful for very basic website, but as soon as the website growth you will have to use a better stack (ELK, datadog, sentry, etc etc).
More ever I always prefered to use the logrotate from linux. It avoid extra PHP processing.
So I'm :-1: for this feature. And because there are no feadback from the community, I'm going to close this issue. Sorry.
But thanks for proposing such idea.


[WIP] Add text highlight mode for text background

Related to #468

hi Beto, excited to see this taking shape! A couple of issues that I'd love to get addressed:

When "Highlight" fill style is active, the padding input should affect the inner padding of the span, not the bounding box. While this is technically a different padding, it should feel the most intuitive.
I think we should try to calculate the line-height in this mode based on how I've done it in the codepen (see highlight spacing). A line height of "1", in highlight fill mode, shall mean "no spacing between lines". This is a little tricky to figure out, so can be a follow up PR.
In my codepen, I purposely clone the element and stack it on top of each other at the exact same position (it's a little too hacky in my codepen, obviously for your purposes use some sort of wrapper). This is important, as with overlapping lines (a desired effect, see codepen and set spacing to -0.3em), the letters otherwise get cut off.
Because 3) will be a common effect people use, we should not allow them to lower the opacity when the lines overlap - so please include some logic that disables opacity temporarily (disables the opacity field, but keeps the value) in that case.

Feel free to ping me if you have any questions.

@googlebot I consent.

Alright, it's getting a lot closer, but still a bit hacky. -webkit-box-decoration-break isn't rendered perfectly in Chrome and requires some CSS hacks to properly box in (it doesn't subtract padding properly, thus a need for a third element).
Here's a semi-transparent conic gradient highlight fill with negative line height and lots of padding displayed in the editor (left) and in the rendered amp story (right). Notice how the line breaks aren't calculated similarly between the two versions resulting in layout differences - but other than that it looks pretty good:

@pbakaus feel free to play around with the most recent version of this PR to get a feel for it. I tried to replicate your desires about both line height and padding.

Line height for highlight text fields is now relative - a line height of 0 is normal distance, negative overlaps the lines and positive adds space between the lines. It's not perfect, but pretty close.
Padding is not added to the text box itself, only to the box decorated lines inside the inner span.

@barklund thanks! couple things:

normal distance of line-height should be 1, not 0. The jump between fill and highlight is currently pretty jarring because of that. Bonus points if you can calculate between them so that the text stays where it is..
with line-height zero, the box is clipped, as the span now moves into negative y territory (look at the rounded corners)
When increasing the line-height, a visible gap at the top and bottom around the blue outline appears (the box being bigger than the span). This isn't desired.
Padding works pretty nice! But does increase the gap in #3 even more.

Getting closer! This is a fairly critical feature for the alpha, so I'm considering making an exception to get this in, but ultimately will leave this decision to @swissspidy.

Forgot an important one:

Text box resizing is super out of whack when highlight is active. Should be fixed.

Getting closer! This is a fairly critical feature for the alpha, so I'm considering making an exception to get this in, but ultimately will leave this decision to @swissspidy.

I'll give it one more shot.

normal distance of line-height should be 1, not 0. The jump between fill and highlight is currently pretty jarring because of that. Bonus points if you can calculate between them so that the text stays where it is..

Given that padding acts very differently in the two modes (per box vs per line), this (text stays the same when switching mode) won't be possible for any multi-line text field with non-zero padding.

Text box resizing is super out of whack when highlight is active. Should be fixed.

Yes, that's a tough one to do anything about in the current setup, I think - at least tonight. I'd rather leave that for a new ticket to be fixed later.

Getting closer! This is a fairly critical feature for the alpha, so I'm considering making an exception to get this in, but ultimately will leave this decision to @swissspidy.

I'll give it one more shot.

normal distance of line-height should be 1, not 0. The jump between fill and highlight is currently pretty jarring because of that. Bonus points if you can calculate between them so that the text stays where it is..

Given that padding acts very differently in the two modes (per box vs per line), this (text stays the same when switching mode) won't be possible for any multi-line text field with non-zero padding.

Yeah fair point. I think it will be a lot less jarring with the change from from 0 to 1. If it's still very jarring then, we can consider making it "dumb" again (no change to line-height, no recalc etc.).

Text box resizing is super out of whack when highlight is active. Should be fixed.

Yes, that's a tough one to do anything about in the current setup, I think - at least tonight. I'd rather leave that for a new ticket to be fixed later.

SGTM.

with line-height zero, the box is clipped, as the span now moves into negative y territory (look at the rounded corners)

That's actually a consequence of keeping the lines matching in size and placement between the modes. With positive line height, there will be space above the first line box, with negative the first line box will be cut short from the top. BUT, the first line will correctly match the position of the first line in regular fill mode. If we start move the first line up or down to make the box flux with the outer box top, then the first line won't match at all when switching modes.
I've just pushed a new version aligning things better.
If you have 0 padding, the lines will match perfectly now when switching mode (ignore the box changing size for now). If you have non-zero padding, the first line will match perfectly when switching mode, but subsequent lines will be pushed down ever more due to padding.
How do we reconcile these two visual wants:

Lines should match when switching from fill to highlight.
When in highlight mode, the first line box should be align perfect top with the outer box.

Also, how do I actually calculate this offset? It's some calculation in line height and padding, but I can't really seem to grasp it. I can get close, but it'll still either gap or cut it short.

@barklund this is really nice now! No concerns from my side anymore re: functionality at this moment. Please resolve conflicts and then lets get this baby merged if @dvoytenko approves.
We can then complete it with two follow-up issues / PRs:

Smooth highlight resizing
Perfect highlight formula to produce exact bounding box

@jauyong can you help file these new issues and assign to Beto and Morten?

@barklund found a bug with the outer part of the bounding box when padding is used:

I been struggling with this one all afternoon. I simply cannot get the word breaks to align in different calculations. It just can't happen. A scaled text box does not break at the same breakpoints - fonts just don't work like that.
In this video here:
https://youtu.be/l1ZP2ttOxzE
the left-most box is a visualization of the output render at 30% scale (it's calculated at the full 1080x1920 px size, then scaled down using transform:scale(.3)). The middle render use scaled pixel values (that scale to the current canvas size, which is some fraction of the full 1080x1920). Even though the pixels aren't rounded, there's still a difference. Notice how some word break happen in the right place, and some happen slightly earlier on the left version (the transformed one). I even found some instances where the word breaks happened first on the left for some lines and first on the middle for other lines.
The right-most version is the rendered story using percentages of the whole story width - directly calculated from the 1080x1920px valued just by ratios instead.
As you can see, there will be cases where the calculated height doesn't match the visual height. I can make sure it errs on either side though, so it's always guaranteed that all the lines will fit inside the visual box (bot the box might be a line or two too long), or that the box will never be too long (but might cut off the last line or two).
And this isn't only an issue for highlight text of course. I can find the same pixel-tight deviations for regular text as well.
The only "real" solution as I see it is to manually find line breaks in one of these instances and calculate number of lines from that - and then use explicit line breaks in the real output to match this calculation. We can calculate line breaks by pasting word for word into a fixed-width box and see when the high shifts or we can leverage CanvasRenderingContext2D.measureText().
@pbakaus, what's your call here? Do you have prior experience? Should we manually split the lines to ensure similarity or can we live with the slight shifts? The cut-off text is probably a big no-go here, right?

@barklund my condolences, this is indeed a tricky thing to do, and I've faced similar issues before. The browser's layout process works in mysterious ways sometimes.. So a couple things:

cut-off text is definitely a big no-go.
I think you are on the right track. The minuscule differences are usually related to scaling and rounding, and so slightly correcting the output in either direction should do the job.

Here's what I'd do: After resizing etc. (when you're ready to 'commit' a value), measure the total height of the span (fine to use offsetHeight or something here, causes layout but that's the lesser evil in this scenario) to find out how many lines you got, compare it to the total height of the percentage-based/resized 'finalized state' off screen, then, if the line count if off by one in either direction, add a 'padding' to the calculated float (experiment here, ~0.1 or ~0.01% might be enough) to correct.
If it helps, I'm happy to jump on a call for a pair programming / troubleshooting session or whatever. Good luck!

@pbakaus, the trick is though, that I can't test render the final story. At least we don't do that right now. I can only story some variables, that will be used to render the final story, but I can't actually "test run" it and see how long the text will be, how many lines will fit.
Also, this won't ever be static anyway, as the rendered story has width, height and font size in percent of the overall page size. Though these will relatively stay the same as the page resizes, the line breaks will change in the rendered story when the page resizes - that's unavoidable. I don't think we can find some magic relative width and height, that'll make all texts break correctly for all page sizes.
As far as I can see, we can only do two things to "fix" this:

Insert manual line breaks to make sure the lines always break exactly where we want them to break.
Remember the number of lines that's supposed to be in the output, send that to the rendered story and as an attribute of the textfield and in the rendered story add some AMP-compatible script, that'll for initial render and any resize validate, that the text field does in deed contain the required number of lines (and if not decrement/increment the width slightly until it does).

@barklund I'd be very surprised if 1) doesn't produce an accessibility / screen reader nightmare.. so I'm definitely leaning towards 2. But I'm not convinced that we can't simulate the final output under the hood in the editor. What stops us from recreating the conditions in the final output?

I'd be very surprised if 1) doesn't produce an accessibility / screen reader nightmare.

I actually just want to insert \n and do white-space: pre. That shouldn't impact accessibility at all, should it?

What stops us from recreating the conditions in the final output?

The output is not just one size. The output can be rendered in any size, and we'd have to check that the line breaks are correct for all of them - or at least a representative number of them. That sounds expensive!

What stops us from recreating the conditions in the final output?

The output is not just one size. The output can be rendered in any size, and we'd have to check that the line breaks are correct for all of them - or at least a representative number of them. That sounds expensive!

@pbakaus Hm, it seems the rendered story will always break lines at the same points at various viewport sizes - or at least I can't seem to find any combination of text size, font and width that'll make any line break differently at different viewport sizes. So that's a huge first step at least.
But in order to test how a rendered story will render a given text field, we need to create an iframe with an AMP story inside and measure it here? Or can we create "normal" html elements and assume they'd render identically?
I'm not completely aware how much "magic" (if any) that AMP adds to the browser rendering engine.

@barklund I don't think there's a crazy amount of magic, it depends more on the way resizing is done (transforms vs. pecentage vs. font-size vs. zoom). At this point, I'd say edge cases are OK, I'm mostly looking for a good enough approximation. Let's merge this soon and then polish later?
@dvoytenko I'd say ok to go ahead and review again.

I feel this is working pretty well now. There are many cases where line breaks occur differently in the editor preview vs the rendered story, but that's very hard to do anything about IMO. I've made sure that the text field is always at least as big as the contents, but sometimes it's too big (the test render has an extra line, thus room for an extra line in the preview), but that's erring on the right side, I feel.
I'll fix the edit component for highlight now. I don't really understand the purpose of the frame component, so not sure what needs fixing for this one.
@dvoytenko, PTAL again.

I simply cannot get highlight stying to work inside the editor component (draft.js). I don't really know what to do here. I have now made sure the edit component uses more or less the same line height as the display one, but there's still a lot of visual differences between editing and the resulting look. It's not a good user experience. but I recommend we merge this as-is and follow up asap.
Maybe someone else has better ideas for how to solve these last remaining issues?


Can't use optimizePackageImports because it causes rendering errors

If I add optimizePackageImports: ['react-tweet'], to my next.config.js it will cause the following error, breaking the page rendering
Error: (0 , _barrel_optimize_names_QuotedTweet_TweetActions_TweetBody_TweetContainer_TweetHeader_TweetInReplyTo_TweetInfo_TweetMedia_enrichTweet_react_tweet__WEBPACK_IMPORTED_MODULE_1__.enrichTweet) is not a function
at CustomTweet (webpack-internal:///(rsc)/./src/components/ui/blog/mdx/tweet/custom-tweet.tsx:11:208)
at eD (/Users/jahir/dev/jahir/website/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:35:359300)
at e (/Users/jahir/dev/jahir/website/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:35:365057)
at e8 (/Users/jahir/dev/jahir/website/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:35:365554)
at e8 (/Users/jahir/dev/jahir/website/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:35:365706)
at ta (/Users/jahir/dev/jahir/website/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:35:371259)
at ti (/Users/jahir/dev/jahir/website/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:35:371973)
at Timeout._onTimeout (/Users/jahir/dev/jahir/website/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:35:360498)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)

Why are you adding react-tweet to optimizePackageImports?

@lfades I certainly am not sure 😅 ... I copied the config from another repo that used it which had it. Probably to reduce the client bundle, but I think it might not be needed anymore 🤔😬


how do use transfer learning for custom class.  See above for specific issues. Use expect_partial() on the load status object, e.g. tf.train.Checkpoint.restore(...).expect_partial(), to silence these warnings, or use assert_consumed() to make the check explicit.
See https://www.tensorflow.org/alpha/guide/checkpoints#loading_mechanics for details.

you need to set the flag --weights_num_class for transfer learning with different number of classes
See this tutorial for details https://github.com/zzh8829/yolov3-tf2/blob/master/docs/training_voc.md

I set --weights_num_classes 80 but it still doesn't works.


USHIFT-1383: Upgradeability: rename (un)healthy to "backup / restore" action

Reusing the same health.json across many boots with "boot health" persisted might be confusing.
Changing healthy to backup and unhealthy to restore might be beneficial for clearly describing the procedures.

/test microshift-metal-tests

/hold
Let's think about this

/close
I'm not sure about this


enable adding sequenced cohorts into projects

not sure the best way to do this - currently you can add samples/sample IDs into a project, experiments and replicates from the wet bench can also be added into a project, and cohorts are added if they specify the project name in the queue form upload, however there is not a mechanism to add an already sequenced cohort into an existing project in PEGR.

https://github.com/seqcode/pegr/wiki/Re-assign-a-cohort-to-another-project


Puppeteer browser.close() hangs on AWS Lambda

Hello 👋
I have been having a problem running MemLab in an AWS Lambda (NodeJS v18) timing out no matter what time it is given and decided to investigate what's wrong. After a bit of investigation trying with and wihtout the warmup it looked like MemLab does all the needed work, but just fails to finish off and end, looked into it further and it seems to be an exact same problem that I had somewhere else with puppeteer.
https://github.com/Sparticuz/chromium/issues/85#issuecomment-1549894734
The issue was that the browser can not close properly for some reason, but when all the pages are closed beforehand then it closes all fine. However this is not the case in this situation and I am still experiencing the browser.close() hanging even with the following code of MemLab:
async function closePuppeteer(
  browser: Browser,
  pages: Page[],
  options: AnyOptions = {},
): Promise<void> {
  if (config.isLocalPuppeteer && !options.warmup) {
    await Promise.all(pages.map(page => page.close()));
    await browser.disconnect();
  } else {
    const allPages = await browser.pages();
    for (const page of allPages) {
      await page.close();
    }
    await browser.close();
  }
}

Any other ideas what could be wrong?
To add to this I could not use the defined pages as the passed array is [page] (inside testInBrowser) and does not include any other pages (not expected, but possible) therefore it is safer to just look for all the pages again with await browser.pages()
Puppeteer chromium flags just FYI if they would matter by any chance (one part from MemLab, other part from @sparticuz/chromium.
memlabConfig.puppeteerConfig.args [
  '--no-sandbox',
  '--disable-notifications',
  '--use-fake-ui-for-media-stream',
  '--use-fake-device-for-media-stream',
  '--js-flags="--no-move-object-start"',
  '--enable-precise-memory-info',
  'browser-test',
  '--allow-pre-commit-input',
  '--disable-background-networking',
  '--disable-background-timer-throttling',
  '--disable-backgrounding-occluded-windows',
  '--disable-breakpad',
  '--disable-client-side-phishing-detection',
  '--disable-component-extensions-with-background-pages',
  '--disable-component-update',
  '--disable-default-apps',
  '--disable-dev-shm-usage',
  '--disable-extensions',
  '--disable-hang-monitor',
  '--disable-ipc-flooding-protection',
  '--disable-popup-blocking',
  '--disable-prompt-on-repost',
  '--disable-renderer-backgrounding',
  '--disable-sync',
  '--enable-automation',
  '--enable-blink-features=IdleDetection',
  '--export-tagged-pdf',
  '--force-color-profile=srgb',
  '--metrics-recording-only',
  '--no-first-run',
  '--password-store=basic',
  '--use-mock-keychain',
  '--disable-domain-reliability',
  '--disable-print-preview',
  '--disable-speech-api',
  '--disk-cache-size=33554432',
  '--mute-audio',
  '--no-default-browser-check',
  '--no-pings',
  '--single-process',
  '--disable-features=Translate,BackForwardCache,AcceptCHFrame,MediaRouter,OptimizationHints,AudioServiceOutOfProcess,IsolateOrigins,site-per-process',
  '--enable-features=NetworkServiceInProcess2,SharedArrayBuffer',
  '--hide-scrollbars',
  '--ignore-gpu-blocklist',
  '--in-process-gpu',
  '--window-size=1920,1080',
  '--use-gl=angle',
  '--use-angle=swiftshader',
  '--allow-running-insecure-content',
  '--disable-setuid-sandbox',
  '--disable-site-isolation-trials',
  '--disable-web-security',
  '--no-sandbox',
  '--no-zygote',
  "--headless='new'"
]

"--headless='new'" - Not 100% sure if this is the problem, but this seems to be the new headless mode that puppeteer is testing. Could you try --headless=true and see if the browser can close without hanging (with your code that closes all the pages before closing the browser)?

Thanks @JacksonGL for the idea 💪
Sadly --headless=true + closing all pages before closing the browser does not seem to fix the issue with browser.close() hanging.
For now I will introduce a bypass to waiting for browser.close() to finish, but of course it's far from ideal so if you have any other ideas what could be wrong then I would highly appreciate it 🙇

Hello @JacksonGL
I assume you haven't looked into this problem?
Would you be okey for me to create a PR that contains an option to disable waiting for the browser to close? What do you think of that? Or maybe you have some other better approach on the back of your head?
Thank you

@doteric Feel free to create a PR, I am happy to review it

@doteric I left a comment on the PR.

Closing this as the PR is released in<EMAIL_ADDRESS>.


[BUG] Text unreadable (too light) on light and system themes

Describe the bug
Image description text is unreadable in Light and System themes.
Text and background colors are too similar.
Dark theme allows to read the text.
Version:
v1.5
To Reproduce
Open Diffusion Toolkit, select some image, try to read the generation parameters.
Expected behavior
Text and background colors to be different. E.g. text may be black if theme is Light or text color may use system text color if theme is System.
Source Image
Not related to the image
Source Image or Screenshots
Light theme font color:

Dark theme font color:

Additional context
Maybe related to Windows 11 Personalization / Colors settings of:
Apps: Light
Windows: Dark

Thanks, it's just some themeing issues I probably didn't check since I don't use light mode.

Thank you, fixed in master branch, just built and run, everything is readable now in both Light theme:

And System theme:

This is happening on my system as well, with the default windows 10 theme.

This is happening on my system as well, with the default windows 10 theme.

Workarounds for now:

Switch to the dark them in the app settings and wait for the next release that will include this fix
Check out the master branch and build it.

If you do not have .NET 6 SDK, download it here: https://dotnet.microsoft.com/en-us/download/dotnet/6.0
Select Windows x64 SDK variant
Install the downloaded SDK.
Adapt the command from the publish.cmd, instead of publish use build:

cd somewhere
git clone https://github.com/RupertAvery/DiffusionToolkit
cd DiffusionToolkit
dotnet build Diffusion.Toolkit\Diffusion.Toolkit.csproj -c Release -r win-x64 -o .\build --no-self-contained /p:PublishSingleFile=true /p:PublishReadyToRun=false /p:DebugType=None /p:DebugSymbols=false

You will have the new executable in DiffusionToolkit\build.


Remove quotes escaping for JULIA_DEPOT_PATH

Fix an incorrect quote escaping in the recommended JULIA_DEPOT_PATH value.
It now can be copied verbatim; following the recommendation at:
https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_DEPOT_PATH

Thanks again for the tool, it's clean and has a nice way of displaying things.

Thank you!


Introduction to YOLO Algorithm for Object Detection

Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
Proposed title of article
Introduction to YOLO Algorithm for Object Detection
Introduction paragraph(s):
YOLO (you only look once) is an algorithm that uses neural networks to provide real-time object detection. This algorithm is popular because of its speed and accuracy. It has been used in various applications to detect traffic signals, people, parking meters, animals, and food.
This article introduces readers to YOLO algorithm for object detection and explains how it works. It also highlights some of its real-life applications.
Key takeaways:

What is YOLO (You Only Look Once)
Importance of YOLO algorithm
How YOLO algorithm works
Applications of YOLO
Conclusion

References:
N/A.

good topic @gracekary - approved


Update submodule genmsg to latest Fri Aug 31 21:30:44 UTC 2018

- genmsg in PX4/Firmware (92b52c56af728741b4ac9f57e583350b0fcd7c3b): https://github.com/ros/genmsg/commit/a189fc78558e7276df59d2961cfe4f8b4de08a8b
- genmsg current upstream: https://github.com/ros/genmsg/commit/42e364661025b8f3d51486dc513d9e29cbd308da
- Changes: https://github.com/ros/genmsg/compare/a189fc78558e7276df59d2961cfe4f8b4de08a8b...42e364661025b8f3d51486dc513d9e29cbd308da

42e3646 2018-08-27 Jochen Sprickerhof - Use CATKIN_GLOBAL_ETC_DESTINATION for etc (#79)

No change for us, but might as well stay with the branch.


[litecheck] add CHECK_EMPTY, CHECK_ERR_EMPTY directive

test if stdout/stderr is empty
does not combine with other CHECK_* directive family

actually, emulate like the follow
# CHECK_RE: ^$


Only images? No gif?

it would be great if the api had GIFs too, and not only pictures.

Names too

Question is, why would there need to be gifs? It’s wifu.*pics, as an pictures of wifus, there’s a chance you are talking about a different endpoint than what I’m thinking about but yeah. Also I agree that names should be included (if possible).

I'm planning to rewrite the backend sooner or later. Right now I'm busy with life but in the future I plan to make a filtering feature so at the end of the URL you can put ?type=gif or ?type=image.


Finalize fMRIPrep settings

I'm planning to use version 23.1.5 (once it's released), since it has some nice CIFTI improvements.
Here are my planned settings:
--output-spaces func T1w MNI152NLin6Asym
--me-t2s-fit-method curvefit
--output-layout bids
--me-output-echos
--project-goodvoxels
--cifti-output

Is it worth it to include --use-aroma? Might be nice to have AROMA outputs to compare to tedana.

I think AROMA would mostly be useful if we could use the same ICA mixing matrix for AROMA & tedana. If they use different ICAs, then it would be hard to do useful comparisions.

Actually I just remembered that AROMA was removed from fMRIPrep. I'll have to wait until fmripost-aroma is working, but that might be a useful additional derivative set once it's up and running.


track statistical types through queries

sqlite3 tracks declared column types through queries, so that, e.g., after
create table t(x integer, y real, z boolean);

it can tell you, via fields in cursor.description, that the query
select x, y from t;

has an integer first column and real second column.
We ought to do the same thing with statistical types, and some others, such as probabilities or logprobabilities.  Needed in order to sanely implement #114.

This is blocked on #38.


Can't find elements on the desktop session using XPath

Hi.
Trying to find an element on the desktop session using XPath fails with a timeout error.
        [TestMethod]
        public void AppRoot()
        {
            AppiumOptions options = new AppiumOptions();
            options.PlatformName = "Windows";
            options.AddAdditionalCapability("platformVersion", "1.0");
            options.AddAdditionalCapability("app", "Root");

            WindowsDriver<WindowsElement> driver = new WindowsDriver<WindowsElement>(winAppDriverUri, options, TimeSpan.FromMinutes(5));

            driver.FindElementByName("Taskbar"); // this works

            driver.FindElementByXPath("//Pane[@ClassName=\"Shell_TrayWnd\"]"); // this fails with:
            // OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://<IP_ADDRESS>:4723/wd/hub/session/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/element timed out after 300 seconds. ---> System.Net.WebException: The request was aborted: The operation has timed out.
        }

Any ideas?
Thank you.

Hi, can you share what the winappdriver screen looks like?  Just want to confirm the request is getting through to winappdriver.

My XPath fail for a number of reasons... from your string I would guess double slash at the beginning?

After closing most other windows (running applications), the test passed.
Thank you.


Unable to Import or Use Electron

Hey there
I am facing this error when I am trying to import Electron in renderer/pages/login.vue component, I am trying to import it like this

I have fs installed in node_modules and here's my package.json

Can someone help me fix this bug? Thank you

Found this fix from next.js github issue (they were facing the same)
Use:
const {ipcRenderer} = eval('require(\'electron\')');
instead of:
import {ipcRenderer} from 'electron'; or const {ipcRenderer}=require('electron');

Found this fix from Nextron (next.js) github issue Use: const {ipcRenderer} = eval('require(\'electron\')');
instead of: import {ipcRenderer} from 'electron'; or const {ipcRenderer}=require('electron');

thanks a lot @riyaz7us!


Errors using Node JS

I have a bot up and running using MS Teams using the Node TS SDK. Going through the instructions here the messages never hit the backend, is there something I need to do.
There are no "Slack Adapters" that I can see for Node JS?

For now, the slack adapter is only available in the C# SDK. I'm not sure what the schedule is for porting it to the other languages. You can submit a feature request in the microsoft/botbuilder-js repo using the issues tab.
I'll update the Slack article to mention this limitation.


[Bug Report] Bug title

Describe the bug
NameNotFound error for previously registered environment
Code example
import gymnasium as gym

gym.envs.register(
        id="SprEnv-v0",
        entry_point='spr_rl.envs:SprEnv',
        kwargs={"config": param_config}
    )
    print(gym.spec("SprEnv-v0"))
    env = gym.make("SprEnv-v0")

Line 5 successfully prints the specs:
EnvSpec(id='SprEnv-v0', entry_point='spr_rl.envs:SprEnv', reward_threshold=None, nondeterministic=False, max_episode_steps=None, order_enforce=True, autoreset=False, disable_env_checker=False, apply_api_compatibility=False, kwargs={'config': {'seed': 8864, 'sim_config': 'inputs/config/simulator/mean-10.yaml', 'network': 'inputs/networks/abilene_1-5in-1eg/abilene-in1-rand-cap0-2.graphml', 'services': 'inputs/services/abc-start_delay0.yaml', 'training_duration': 100000, 'test_mode': None, 'sim_seed': None, 'best': False}}, namespace=None, name='SprEnv', version=0, additional_wrappers=(), vector_entry_point=None)

Then the following error message occurs:
env = gym.make("SprEnv-v0")
  File "/home/.conda/envs/ray/lib/python3.9/site-packages/gymnasium/envs/registration.py", line 741, in make
    env_spec = _find_spec(id)
  File "/home/.conda/envs/ray/lib/python3.9/site-packages/gymnasium/envs/registration.py", line 527, in _find_spec
    _check_version_exists(ns, name, version)
  File "/home/.conda/envs/ray/lib/python3.9/site-packages/gymnasium/envs/registration.py", line 393, in _check_version_exists
    _check_name_exists(ns, name)
  File "/home/.conda/envs/ray/lib/python3.9/site-packages/gymnasium/envs/registration.py", line 370, in _check_name_exists
    raise error.NameNotFound(
gymnasium.error.NameNotFound: Environment `SprEnv` doesn't exist.

System info
Gym was installed using pip, version 0.29.1
Python 3.9
Additional context
I don't know why or how this would cause an error, but:
from ray.rllib.env.multi_agent_env import MultiAgentEnv
class SprEnv(MultiAgentEnv):
Checklist

[X] I have checked that there is no similar issue in the repo

Running this code, I'm not able to replicate this issue.
I can't find the spr_rl module to install either, could you provide a more detail script to replicate the issue


tensor .bool() operator

We have float() and int() but missing bool() (similar to pytorch's)
Feature description
Similar conversation as PyTorch's https://pytorch.org/docs/stable/generated/torch.Tensor.bool.html
Feature motivation
To be feature complete. We explicitly do this with any() and all() operator.

It was an explicit decision not to support that function, as numeric comparison functions exist and provide a clearer indication of how the boolean conversion should be performed (e.g., let my_bool = tensor.not_equal(0)). Though I'm open into supporting bool as long as the behavior is intuitive.

I'm not against adding the .bool() operator, but I personally prefer explicit conversions so I agree with @nathanielsimard . As opposed to other types, the behavior doesn't feel very intuitive.
That's still just my personal opinion, but I'm pretty sure I never had to convert anything through .bool() in my experience.

@nathanielsimard , @laggui , this is for completeness. .all() on Int and Float tensors already uses implicit conversation. I am not sure if this was intended but this how PyTorch and NumpPy behaves for .all(): https://pytorch.org/docs/stable/generated/torch.all.html

Ahh ok I didn't realize .all() was implemented for all types.
No objections in that case :)


Add workspace permission checking method

Wrapper around SDK client

Coverage increased (+0.08%) to 97.871% when pulling 89a757916b5731e905d95040304cde55014d1d2e on MrCreosote:master into b9fe687bfd74e59be2a7c7371026c66352f7d868 on kbaseIncubator:master.


[New game]: space huggers

🎮 Game Request
Can you kill all the enemies within the given lives and travel along?
Point down the features
Game points will be awarded as per enemies killed and player will move to next level
Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @S-ishita !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hey @S-ishita 👋!
@kunjgit here,
We have this annoucement to make 📢!!
💥 Special Announcement:
It's the Call to all the designers 🔥 🎨
As you all know that GameZone has crossed 100 games 💗 , it's time that we all come up together and make the UI even better!!
We are redesigning the thumbnails, make sure you come up with the aesthetic and cool ideas 🚀 !
You are supposed to share the 4 different templates that can be used. Make sure that the size is: 1280 px X 720 px.
The frame should be such that there is only a single image of the game that's taking up the major portion of the frame. Any kind of text should not be there.
The design should be catchy and aesthetic! 🔥
Note: You are not supposed to create any issue right now for the same.
You have to share different designs right now in Discord  and Project Admin would be selecting one design and would be assigning the issue. After that only, you have to start working on it.

Hey @S-ishita ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


How to run 90B ?

I could not find instructions. ollama does not support it^1, llama.cpp does not support it^2, Google Vertex AI (only preview)^3
on my local machine with 128 GB RAM (and 2TB SSD) it is crashing with OOM
is there distributed mode? quantization? any guideline how to run it? how does Meta itself run it?

Here are some examples of where 90B should work:
https://aws.amazon.com/bedrock/llama/
https://www.together.ai/blog/llama-3-2-vision-stack
https://fireworks.ai/blog/llama32-with-fireworks

none of these examples are self hosted.
how to run 90B self hosted version using llama-stack?


Option to turn off toast on success

Extension
https://www.raycast.com/koinzhang/paste-as-plain-text
Description
Would love a toggle to turn off the toast on success. e.g. # @raycast.mode silent, since I use it so much.
Who will benefit from this feature?
No response
Anything else?
No response

@jweinstein Thanks for the suggestion, as you wish https://github.com/raycast/extensions/pull/13084

Woo!
On Thu, Jun 20, 2024 at 8:05 PM koin @.***> wrote:

@jweinstein https://github.com/jweinstein Thanks for the suggestion, as
you wish #13084 https://github.com/raycast/extensions/pull/13084
—
Reply to this email directly, view it on GitHub
https://github.com/raycast/extensions/issues/13081#issuecomment-2181910047,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEFUGRJEN6BDKXADQETNULZIOKBBAVCNFSM6AAAAABJUZBBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRHEYTAMBUG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

I'm a newbie here, what's the process by which this update gets into the
latest version? I've updated my extensions and don't see this toggle yet.
(No rush, and super thankful!)
On Thu, Jun 20, 2024 at 8:44 PM Jeff Weinstein @.***> wrote:

Woo!
On Thu, Jun 20, 2024 at 8:05 PM koin @.***> wrote:

@jweinstein https://github.com/jweinstein Thanks for the suggestion,
as you wish #13084 https://github.com/raycast/extensions/pull/13084
—
Reply to this email directly, view it on GitHub
https://github.com/raycast/extensions/issues/13081#issuecomment-2181910047,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEFUGRJEN6BDKXADQETNULZIOKBBAVCNFSM6AAAAABJUZBBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRHEYTAMBUG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

It needs this PR to be merged into the code repository before the extension will be updated, this process may last a week or two depending on the speed of the official Raycast review.
You can click the link https://github.com/raycast/extensions/pull/13084 to check the review progress


wxwidgets windows-static triplet is broken

Steps to reproduce the behavior:
./vcpkg install wxwidgets:x86-windows-static OR:
./vcpkg install wxwidgets:x64-windows-static
Now go and try use the package to link to ANY code... you'll get plenty of missing symbols.
Spent a day yesterday on this, then I went directly to their website, downloaded the source and built myself, boom, first try it linked without any issues at all.
If you want any example, just grab the Hello World (https://docs.wxwidgets.org/trunk/overview_helloworld.html) source from them and mark "Use Static Libraries" on Visual Studio vpkg options. I tested with that one.
Bye

Forget it.. tested again. Anything wanting to use Runtime Library in static /MT and /MTd (instead of /MD and /MDd) will crash to those same symbols. So not a vcpkg issue, but a wxWidgets one. Bye.


Shadow Map with SHADERed?

Recently I implement a blinn phong shading model with SHADERed, but had some problem with shadows. Is there any solution with shadow mapping by SHADERed? I'm a green hand at compute graphics. Anyone help? I'll appreciate it!

!

Hey!
Yeah, you can create shadow mapping in SHADERed.. First position your camera where you want to cast shadows from (your light), then go to Project → Camera snapshots → Add and create a new 'camera snapshot' -- this will copy the view matrix of the preview camera.
You can now use this view matrix to render your scene to a depth map from a different/static perspective...
Here's a very simple (and old) example project
ShadowMapping.zip


Write a medium article about jest builder

From @jogelin on August 16, 2018 9:29
I just see new a article Integrate Jest into an Angular application and library.
Now you need to communicate about your builder, a lot of person will like it ;)
Copied from original issue: angular-builders/jest#5

From @cgatian on August 17, 2018 13:44
This is LEGIT

It is in progress :) I just need to stabilize it first.
On Thu, Aug 16, 2018, 12:29 jogelin<EMAIL_ADDRESS>wrote:

I just see new a article Integrate Jest into an Angular application and
library
https://blog.angularindepth.com/integrate-jest-into-an-angular-application-and-library-163b01d977ce
.
Now you need to communicate about your builder, a lot of person will like
it ;)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/angular-builders/jest/issues/5, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJXjbyV2OZ-4OkIQqwXWAxad1ZoSfI6cks5uRTuTgaJpZM4V_gqL
.

Done. Reposts a and suggestions are welcome.


About test/validation set for the TCGA dataset

Thanks for the great work!
You mentioned that you randomly split 840 training slides and 210 testing slides in the paper. In the train_tcga.py, I noticed that all the slides are used for training and testing. The best model for the test set will be saved. The function of the test set here is more like a validation set. May I ask how you select the best model and what data you test your model on? Thanks!

You can perform cross-validation on the training set, and find the best threshold by considering all folds.

@binli123 Thank you for your excellent work!
I come up with the same problem. Did the test results of DSMIL on the TCGA dataset in Table 2 of the paper come from the best scored model's performance (L203 of train_tcga.py) on the test_path dataset (L182 of train_tcga.py)? Or they came from a cross validation by calculating the average of all validation splits (or reduced by other operations)?

@Vison307 I incorporated the training/testing into the same pipeline in the latest commit. I also incorporated an orthogonal weights initialization which helps making the training more table. You can set --eval_scheme=5-fold-cv-standalone-test which will perform a train/valid/test like this:

A standalone test set consisting of 20% samples is reserved, remaining 80% of samples are used to construct a 5-fold cross-validation.
For each fold, the best model and corresponding threshold are saved.
After the 5-fold cross-validation, 5 best models along with the corresponding optimal thresholds are obtained which are used to perform inference on the reserved test set. A final prediction for a test sample is the majority vote of the 5 models.
For a binary classification, accuracy and balanced accuracy scores are computed. For a multi-label classification, hamming loss (smaller the better) and subset accuracy are computed.

You can also simply run a 5-fold cv --eval_scheme=5-fold-cv
There were some issues with the testing script when loading pretrained weights (i.e., sometimes the weights are not fully loaded or there are missing weights, setting strict=False can reveal the problems.). The purpose of the testing script is to generate the heatmap, you should now read the performance directly from the training script. I will fix the issues in a couple of days.


Shell add minimal footprint feature

Added new Kconfig feature CONFIG_SHELL_MINIMAL that provides only basic shell functionality.
It deactivates the following features:

Build-in shell commands
History
Command help
Partial completion and autocompletion with the Tab key
Changing the prompt name in runtime
Calling shell_execute_cmd from the application
Colors in the shell
Arrows handling
Insert mode
Wildcards
Meta-keys

I observed the following impact on resources usage:
The standard build of the shell example:

The same example but with the CONFIG_SHELL_MINIMAL option set:

@carlescufi Good point

@carlescufi  I am having some problems when I am adding CONFIG_CBPRINTF_NANO.
When I've created Kconfig in this way:
config SHELL_MINIMAL
        bool "Enable minimal-footprint shell"
        select CBPRINTF_NANO
        help
          Enable only minimal shell functionality to limit memory footprint.
          Following features are not active:
          - Build-in shell commands
          - History
          - Command help
          - Partial completion and autocompletion with the Tab key
          - Changing the prompt name in runtime
          - Calling shell_execute_cmd from the application
          - Colors in the shell
          - Arrows handling
          - Insert mode
          - Wildcards
          - Meta-keys

I am getting the following build error:
warning: the choice symbol CBPRINTF_NANO (defined at lib/os/Kconfig.cbprintf:16) is selected by the following symbols, but select/imply has no effect on choice symbols
 - SHELL_MINIMAL (defined at subsys/shell/Kconfig:18)
Parsing /home/jakub/ncs/zephyr/samples/subsys/shell/shell_module/Kconfig
Loaded configuration '/home/jakub/ncs/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration '/home/jakub/ncs/zephyr/samples/subsys/shell/shell_module/prj.conf'

error: Aborting due to Kconfig warnings


chore: fix typo in docs

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

Comparison is base (51d8125) 55.40% compared to head (307f947) 55.42%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #124      +/-   ##
==========================================
+ Coverage   55.40%   55.42%   +0.02%
==========================================
  Files         130      130
  Lines        8510     8510
==========================================
+ Hits         4715     4717       +2
+ Misses       3795     3793       -2

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


RuntimeError: Function 'DotBackward0' returned nan values in its 0th output.

Hi~ Thank you for releasing the code. When I run the training code, the loss will appear Nan after several epochs. I have tried three times and encountered the same problem. I did not modify any parameters. Can you give me some advice?

Which version of code are you using? The main branch or the shape prior one?

Which version of code are you using? The main branch or the shape prior one?

I use the main branch

Thank you for your advice. I will try it

@Bingo-1996 can you post how you solved this?
or have you solved it?
:) thanks in advance

@lolrudy and @Bingo-1996
like that?
# backward
shape = total_loss.shape
total_loss = total_loss.reshape(shape[0], -1)
# Drop all rows containing any nan:
total_loss = total_loss[~torch.any(total_loss.isnan(), dim=1)]
# Reshape back:
 total_loss = total_loss.reshape(total_loss.shape[0], *shape[1:])

@HannahHaensen I haven't solved this problem, and there are other problems when I use the shape prior branch. Did you solve the problem?

Yes, this should work. Or you can set all nan values to 0.

@Bingo-1996 not sure yet this error occured for me after ~30 epochs not there again yet but if the training passes I can confirm or decline :) and i am on the main branch not the shape prior
@lolrudy thanks!


Issue with XMLReporter -  field contains empty

TestNG Version
6.14.3
Expected behavior
Inside the TEST-mytestname.xml when it's running with JUnit 4
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="0" failures="0" hostname="mw" name="tests.external_frameworks.PetclinicTests" skipped="0" tests="3" time="0.155" timestamp="2019-03-08T08:48:00">
  <properties/>
  <testcase classname="tests.external_frameworks.PetclinicTests" name="validateSecurityLog" time="0.001" />
  <system-out><![CDATA[Starting process: /home/users/mmmm/builds/jdk-hs-8u171-linux-x64/bin/java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b25, mixed mode)
Starting process: /home/users/mmmm/builds/jdk-hs-8u171-linux-x64/bin/java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b25, mixed mode)
Starting process: /opt/wawawa/java/jdk-1.8.0/bin/java -version
openjdk version "1.8.0_71"
OpenJDK Runtime Environment (build 1.8.0_71-b15)
OpenJDK 64-Bit Server VM (build 25.71-b15, mixed mode)
Starting process: hostname
.
.
.
]]></system-out>
  <system-err><![CDATA[]]></system-err>
</testsuite>

Actual behavior
Inside the TEST-mytestname.xml when it's running with TestNG
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="0" failures="0" hostname="mw" name="tests.external_frameworks.PetclinicTests" skipped="0" tests="3" time="0.155" timestamp="2019-03-08T08:48:00">
  <properties/>
  <testcase classname="tests.external_frameworks.PetclinicTests" name="validateSecurityLog" time="0.001" />
  <system-out><![CDATA[]]></system-out>
  <system-err><![CDATA[]]></system-err>
</testsuite>

Is the issue reproductible on runner?

[ ] Shell
[ ] Maven
[x] Gradle
[ ] Ant
[ ] Eclipse
[ ] IntelliJ
[ ] NetBeans

Test case sample
I'm not sure if it's an issue or expected behaviour but when I'm running the same test with JUnit in the .xml report I'm able to see the system output, which is executed in static blocks before the test.
So I mean everything which is appearing after:
> Task :Frameworks:test
Starting process 'Gradle Test Executor 1'. Working directory: /home/users/Projects/automation/Frameworks Command: /usr/lib/jvm/java-1.8.0-openjdk-<IP_ADDRESS>-1.b15.el6_7.x86_64/bin/java -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Dorg.gradle.native=false -Dfile.encoding=UTF-8 -Duser.country=IE -Duser.language=en -Duser.variant -ea -cp /home/users/mmmm/.gradle/caches/4.8/workerMain/gradle-worker.jar worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 1'
Successfully started process 'Gradle Test Executor 1'

Gradle Test Executor 1 STANDARD_OUT

but if I update annotations to TestNG annotations and update mu build.gradle file with
test {
    testLogging.showStandardStreams = true
    useTestNG() {
        useDefaultListeners = false
    }
}

then standard output is visible in the console but it's not saved in the .xml report file.
If that is a bug (not only issue with bad configuration) then I'll try to implement some small test which will be reproducing this.

I don't think that the xml reports that TestNG generates ever captured the sys out and sys error in the reports.
ping @cbeust @juherr WDYT ?

If possible, I think TestNG should have the same result than JUnit.
But I don't know what could be the technical impacts

@juherr - I think it would be a challenge when trying to implement this for parallel execution, because the underlying PrintStream within System class dont seem to be thread safe.

Right, maybe the feature can be only activated when parallel is not activated.
Not a priority issue IMO.

I'd like to extend on this issue. I think the report, generated by org.testng.reporters.JUnitReportReporter should at least show the output, previously sent to org.testng.Reporter. This should be possible by writing the content of Reporter.getOutput(currentTestResult) to the <system-out> tag in the Report.
Compared to handling sysout and syserr, this sould be relatively easy to implement.
Thank you!

@krmahadevan May I ask you kindly, for feedback on my request? Implementing this would be a considerable help for my project. Thank you!

@UrsLange - I don't want to club your ask in this issue, because this issue talks about capturing the sys out output, and you are asking for Reporter.log() contents. Please open up a new issue for your ask and I will try to get to it.

@krmahadevan Thank you for your response. I created #2124 for the matter.


[WIP] Add ability to add network latency for calls to Aerospike

Just a POC

Codecov Report

Merging #30 into develop will increase coverage by 0.04%.
The diff coverage is 100%.

@@              Coverage Diff              @@
##             develop      #30      +/-   ##
=============================================
+ Coverage      83.98%   84.03%   +0.04%
- Complexity       209      210       +1
=============================================
  Files             59       59
  Lines            712      714       +2
  Branches          10       10
=============================================
+ Hits             598      600       +2
  Misses           108      108
  Partials           6        6

Impacted Files
Coverage Δ
Complexity Δ

...spike/EmbeddedAerospikeBootstrapConfiguration.java
100% <100%> (ø)
6 <1> (+1)
:arrow_up:

Continue to review full report at Codecov.

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


what is the difference between react-native-web and react-web

react-native-web:
https://github.com/necolas/react-native-web

React Web is more react-native then react-native-web, aha!

@yuanyan yes, I agree with you!

@yuanyan
Do you know the reason about https://github.com/taobaofed/react-web/issues/148?

I believe a more elaborate answer would help new developers to pick the right library. Being "more native than react-native-web" got me interested, though!


Pascal Triangle in Java

🚀 Feature
(A clear and concise description of what the feature is.)
Have you read the Contributing Guidelines on Pull Requests?
Yes
Pitch
Program to implement Pascal Triangle in Java

/assign


There is no validation when inputting the duplicate stored procedure name

OS: Win10
Build Version: 20210105.1
Repro Steps:

Drill down the SQL account.
Create a stored procedure with name "test".
Right click the "Stored Procedures" node --> Click "Create Stored Procedure..." --> Input name "test" again.
Check if there is a validation for the duplicate name.

Expect:
There is a validation when inputting the duplicate stored procedure name.
Actual:
There is no validation when inputting the duplicate stored procedure name.

More Info:
There is an error when creating a stored procedure with the duplicate name.

Related #1773

Related #1773


OUTLINE display only a part of header written in note

I am writing a long note with a lot headers, in my case, after 2.3.2 I cannot see any new headers in outline meanwhile they are written in my note.
Is there a way to fix it?
Thanks

still don't know the result which caused this situation, but when I tried to copy paste to check part by part(no modification for headers), it works in the end


Client keeps disconnecting while trying to connect to AWS

Hi I am trying to connect my esp32 to my AWS. I have checked that my endpoint and certificates are correct. I have used the pubsubclient library before but i am using this as i want qos1 messages. Here is my code:
#include <WiFi.h>
#include <Ticker.h>
#include <espMqttClient.h>

#define WIFI_SSID "wifiname"
#define WIFI_PASSWORD "wifipassword"

#define MQTT_PORT 8883
#define MQTT_USER "username"
#define MQTT_PASS "password"

const char* awsEndpoint = "awsendpoint-ats.iot.us-west-2.amazonaws.com";

//End initialise AWS var

// xxxxxxxxxx-certificate.pem.crt
const char certificate_pem_crt []= \

"-----BEGIN CERTIFICATE-----\n"\
"sdfwerfiuweewkndwlekmdnewklmoiejdodjlemdklmwe*(Y&(*)LKmewpofmwpeomfweferreL\n"\
"BQAwTTFLMEksdfkmweoifwef*&BIjknjem9uIFdlYiBTZXJ2aWNlcyBPPUFtYXpvbi5jb20g\n"\
"wefiuwefowief208927492dneklndqowiIUhuygtybiohufuybkjoih*yuygjKKBKJBDSFEnlknkjl\n"\
"spfiubgerupifberpijbrepijbnrepinireniorenvrenvernvk;jnerr;kjvnev;kjnre;kjvnrek;vjner;kvnerk;jvn\n"\
"-----END CERTIFICATE-----\n";

// xxxxxxxxxx-private.pem.key
const char private_pem_key[] = \
"-----BEGIN RSA PRIVATE KEY-----\n"\
"ewnpifh3043jk4fn348fn34f3498fhn34fpierfjVESRGTrtgiu45bgg938gbf3o4fwwewe\n"\
"wefewiunfjerngjierbgoierbfij34nfiup34h89fh34iufnewjnwenkjwenfkjeanfkjafen\n"\
"sdfoigneroigfnerionglrkenglkerngklernglknerklgnerlknklernklernklernlkernlken\n"\
"-----END RSA PRIVATE KEY-----\n";

/* root CA can be downloaded in:
  https://www.symantec.com/content/en/us/enterprise/verisign/roots/VeriSign-Class%203-Public-Primary-Certification-Authority-G5.pem
*/
const char rootCA[]= \

"-----BEGIN CERTIFICATE-----\n" \
"ewnpifh3043jk4fn348fn34f3498fhn34fpierfjVESRGTrtgiu45bgg938gbf3o4fwwewe\n"\
"wefewiunfjerngjierbgoierbfij34nfiup34h89fh34iufnewjnwenkjwenfkjeanfkjafen\n"\
"sdfoigneroigfnerionglrkenglkerngklernglknerklgnerlknklernklernklernlkernlken\n"\
"-----END CERTIFICATE-----\n";

const char* clientID = "testingesppolicy";
const char* topicchar = "testtopic";
const char* payloadchar = "testpayload";

espMqttClientSecure mqttClient;
Ticker reconnectTimer;

void connectToWiFi() {
  Serial.println("Connecting to Wi-Fi...");
  WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
}

void connectToMqtt() {
  Serial.println("Connecting to MQTT...");
  // mqttClient.setClientId(clientID);
  mqttClient.connect();

}

void WiFiEvent(WiFiEvent_t event) {
  Serial.printf("[WiFi-event] event: %d\n", event);
  switch(event) {
    case SYSTEM_EVENT_STA_GOT_IP:
      Serial.println("WiFi connected");
      Serial.println("IP address: ");
      Serial.println(WiFi.localIP());
      connectToMqtt();
      break;
    case SYSTEM_EVENT_STA_DISCONNECTED:
      Serial.println("WiFi lost connection");
      reconnectTimer.once(5, connectToWiFi);
      break;
    default:
      break;
  }
}

void onMqttConnect(bool sessionPresent) {
  Serial.println("Connected to MQTT.");
  Serial.print("Session present: ");
  Serial.println(sessionPresent);

  uint16_t packetIdPub0 = mqttClient.publish(topicchar, 0, false, payloadchar);
  Serial.println("Publishing at QoS 0, packetId: ");
  Serial.println(packetIdPub0);
}

void onMqttDisconnect(espMqttClientTypes::DisconnectReason reason) {
  Serial.printf("Disconnected from MQTT: %u.\n", static_cast<uint8_t>(reason));

  if (WiFi.isConnected()) {
    reconnectTimer.once(5, connectToMqtt);
  }
}

void onMqttMessage(const espMqttClientTypes::MessageProperties& properties, const char* topic, const uint8_t* payload, size_t len, size_t index, size_t total) {
  Serial.println("Publish received.");
  Serial.print("  topic: ");
  Serial.println(topic);
  Serial.print("  qos: ");
  Serial.println(properties.qos);
  Serial.print("  dup: ");
  Serial.println(properties.dup);
  Serial.print("  retain: ");
  Serial.println(properties.retain);
  Serial.print("  len: ");
  Serial.println(len);
  Serial.print("  index: ");
  Serial.println(index);
  Serial.print("  total: ");
  Serial.println(total);
}

void onMqttPublish(uint16_t packetId) {
  Serial.println("Publish acknowledged.");
  Serial.print("  packetId: ");
  Serial.println(packetId);
}

void setup() {
  Serial.begin(115200);
  Serial.println();
  Serial.println();

  WiFi.onEvent(WiFiEvent);

  mqttClient.setInsecure();
  mqttClient.setCACert(rootCA);
  mqttClient.setCertificate(certificate_pem_crt);
  mqttClient.setPrivateKey(private_pem_key);
  mqttClient.setCredentials(MQTT_USER, MQTT_PASS);
  mqttClient.onConnect(onMqttConnect);
  mqttClient.onDisconnect(onMqttDisconnect);
  mqttClient.onMessage(onMqttMessage);
  mqttClient.onPublish(onMqttPublish);
  mqttClient.setServer(awsEndpoint, MQTT_PORT);
  mqttClient.setCleanSession(true);

  connectToWiFi();
}

void loop() {
  delay(1000);
  static uint32_t lastMillis = 0;
  if (millis() - lastMillis > 5000) {
    lastMillis = millis();
    Serial.printf("heap: %u\n", ESP.getFreeHeap());
  }
  mqttClient.publish(topicchar, 0, false, payloadchar);

}

I only copied and pasted the example in this library and pasted my own certs but i get this in the Serial monitor:
ELF file SHA256: 7e4ab9d6b66e846e

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
WiFi connected
IP address:
<IP_ADDRESS>
Connecting to MQTT...
Disconnected from MQTT: 7.
heap: 233476
Connecting to MQTT...
Disconnected from MQTT: 7.
heap: 233488
Connecting to MQTT...
Disconnected from MQTT: 7.
heap: 233488
Connecting to MQTT...
Disconnected from MQTT: 7.
heap: 233488
Connecting to MQTT...

and keeps on repeating.... i read somewhere that subscribing to the same topic can cause problems so i removed the subscribing part  of the code. i also use the endpoint of the oergon region where i have no registered devices.....what is going wrong?

Which IDE are you using to compile (and upload) the firmware to your esp32?
Could you please fetch the Serial output again, but with enabling debug output?
See https://docs.espressif.com/projects/arduino-esp32/en/latest/guides/tools_menu.html#core-debug-level for Arduino IDE or add this to your platformio.ini:
build_flags =
  -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
  -D LOG_LEVEL=LOG_LEVEL_VERBOSE
build_type = debug
monitor_filters = esp32_exception_decoder

espMqttClient doesn't have access to the underlying error codes of the TCP client. By enabling debug logging, they will show up in the monitor though.

By the way, I can't connect to the url at the given port.
Why are you using the certificate from Symantec? Amazon publishes them here: https://www.amazontrust.com/repository/

Which IDE are you using to compile (and upload) the firmware to your esp32?
I am using Arduino.

Here is what i got after enabling debug output

E (336) esp_core_dump_fl�.K�ɕ�dump data check failed:
Calculated checksum='7d2b2092'
Image checksum='17bd52fc'
[    28][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
E (237) psram: PSRAM ID read error: 0xffffffff
[    38][W][esp32-hal-psram.c:71] psramInit(): PSRAM init failed!

Connecting to Wi-Fi...
[    73][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 0 - WIFI_READY
[WiFi-event] event: 0
[   169][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 2 - STA_START
[WiFi-event] event: 2
[   304][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
[WiFi-event] event: 4
[   496][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[   497][D][WiFiGeneric.cpp:996] _eventCallback(): STA IP: <IP_ADDRESS>, MASK: <IP_ADDRESS>, GW: <IP_ADDRESS>
[WiFi-event] event: 7
WiFi connected
IP address:
<IP_ADDRESS>
Connecting to MQTT...
[   513][I][Packet.cpp:322] _allocate(): Alloc (l:50)
[   515][I][MqttClient.cpp:267] loop(): Stack usage: 556/5000
[  1177][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  2178][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  3010][D][ssl_client.cpp:287] start_ssl_client(): Protocol is TLSv1.2 Ciphersuite is TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256
[  3010][D][ssl_client.cpp:289] start_ssl_client(): Record expansion is 29
[  3017][I][MqttClient.cpp:267] loop(): Stack usage: 3100/5000
[  3023][I][MqttClient.cpp:313] _checkOutgoing(): tx 50/50 (10)
[  3028][I][MqttClient.cpp:313] _checkOutgoing(): tx 24/24 (30)
[  3034][I][MqttClient.cpp:313] _checkOutgoing(): tx 24/24 (30)
[  3178][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  3180][I][MqttClient.cpp:313] _checkOutgoing(): tx 24/24 (30)
[  3321][I][MqttClient.cpp:640] _clearQueue(): clearing queue (clear session: false)
Disconnected from MQTT: 7.
[  4178][I][Packet.cpp:322] _allocate(): Alloc (l:24)
heap: 232920
[  5178][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  6178][I][Packet.cpp:322] _allocate(): Alloc (l:24)

Which IDE are you using to compile (and upload) the firmware to your esp32?
I am using Arduino.

Here is what i got after enabling debug output

E (336) esp_core_dump_fl�.K�ɕ�dump data check failed:
Calculated checksum='7d2b2092'
Image checksum='17bd52fc'
[    28][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
E (237) psram: PSRAM ID read error: 0xffffffff
[    38][W][esp32-hal-psram.c:71] psramInit(): PSRAM init failed!

Connecting to Wi-Fi...
[    73][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 0 - WIFI_READY
[WiFi-event] event: 0
[   169][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 2 - STA_START
[WiFi-event] event: 2
[   304][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
[WiFi-event] event: 4
[   496][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[   497][D][WiFiGeneric.cpp:996] _eventCallback(): STA IP: <IP_ADDRESS>, MASK: <IP_ADDRESS>, GW: <IP_ADDRESS>
[WiFi-event] event: 7
WiFi connected
IP address:
<IP_ADDRESS>
Connecting to MQTT...
[   513][I][Packet.cpp:322] _allocate(): Alloc (l:50)
[   515][I][MqttClient.cpp:267] loop(): Stack usage: 556/5000
[  1177][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  2178][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  3010][D][ssl_client.cpp:287] start_ssl_client(): Protocol is TLSv1.2 Ciphersuite is TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256
[  3010][D][ssl_client.cpp:289] start_ssl_client(): Record expansion is 29
[  3017][I][MqttClient.cpp:267] loop(): Stack usage: 3100/5000
[  3023][I][MqttClient.cpp:313] _checkOutgoing(): tx 50/50 (10)
[  3028][I][MqttClient.cpp:313] _checkOutgoing(): tx 24/24 (30)
[  3034][I][MqttClient.cpp:313] _checkOutgoing(): tx 24/24 (30)
[  3178][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  3180][I][MqttClient.cpp:313] _checkOutgoing(): tx 24/24 (30)
[  3321][I][MqttClient.cpp:640] _clearQueue(): clearing queue (clear session: false)
Disconnected from MQTT: 7.
[  4178][I][Packet.cpp:322] _allocate(): Alloc (l:24)
heap: 232920
[  5178][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  6178][I][Packet.cpp:322] _allocate(): Alloc (l:24)

By the way, I can't connect to the url at the given port. Why are you using the certificate from Symantec? Amazon publishes them here: https://www.amazontrust.com/repository/

Oh is it ok to post my endpoint? im sorry i wasnt aware so i just changed my endpoint to a sample one. I just tried the arduino-mqtt library (https://github.com/256dpi/arduino-mqtt) with  the same certs and endpoint and was able to publish messages

Why are you using the certificate from Symantec

Sorry i also changed the certs.....I am using the certs that were provided by aws at the time of my thing creation

Strange. I have to look into this.
It is quite odd because there is a portion of the logging missing: The last log output you posted from the connection is here. but that function doesn't stop there so there should be more logging.
Anyway, because the client starts sending things, I suppose the connection has been made. Afterwards, the broker disconnects you.
Are you using the same username/password for multiple devices? Are you setting a clientID? (if not, try to set to a unique value).

I think i should have mentioned that the log doesn't really end. Like this is an endless loop basically (like it will start from the first line again) (Thousand apologies, here is the proper loop)
Connecting to Wi-Fi...
[    73][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 0 - WIFI_READY
[WiFi-event] event: 0
[   166][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 2 - STA_START
[WiFi-event] event: 2
[   221][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
[WiFi-event] event: 4
[   454][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[   454][D][WiFiGeneric.cpp:996] _eventCallback(): STA IP: <IP_ADDRESS>, MASK: <IP_ADDRESS>, GW: <IP_ADDRESS>
[WiFi-event] event: 7
WiFi connected
IP address:
<IP_ADDRESS>
Connecting to MQTT...
[   470][I][Packet.cpp:322] _allocate(): Alloc (l:50)
[   472][I][MqttClient.cpp:267] loop(): Stack usage: 556/5000
[  1173][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  2174][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  2805][D][ssl_client.cpp:287] start_ssl_client(): Protocol is TLSv1.2 Ciphersuite is TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256
[  2806][D][ssl_client.cpp:289] start_ssl_client(): Record expansion is 29
[  2813][I][MqttClient.cpp:267] loop(): Stack usage: 3084/5000
[  2819][I][MqttClient.cpp:313] _checkOutgoing(): tx 50/50 (10)
[  2824][I][MqttClient.cpp:313] _checkOutgoing(): tx 24/24 (30)
[  2830][I][MqttClient.cpp:313] _checkOutgoing(): tx 24/24 (30)
[  3174][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  3176][I][MqttClient.cpp:313] _checkOutgoing(): tx 24/24 (30)
[  3187][I][MqttClient.cpp:640] _clearQueue(): clearing queue (clear session: false)
Disconnected from MQTT: 7.
[  4174][I][Packet.cpp:322] _allocate(): Alloc (l:24)
heap: 233280
[  5174][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  6174][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  7174][I][Packet.cpp:322] _allocate(): Alloc (l:24)
[  8174][I][Packet.cpp:322] _allocate(): Alloc (l:24)

Are you using the same username/password for multiple devices? Are you setting a clientID? (if not, try to set to a unique value).
I only have 1 more device set up that too in other region of aws (N.Virginia) and i created this device for Oregon just to make sure im not making that error. The ClientID and username/passwords are unique too

Sure, but there should be some lines "missing":
[  2806][D][ssl_client.cpp:289] start_ssl_client(): Record expansion is 29
--> HERE SHOULD BE MORE <--
[  2813][I][MqttClient.cpp:267] loop(): Stack usage: 3084/5000
[  2819][I][MqttClient.cpp:313] _checkOutgoing(): tx 50/50 (10)

It's probably a Serial buffer thing. Anyways, let's move on why the broker disconnects.
Could you try again but without publishing something in your loop? Maybe AWS doesn't allow publishing without being fully connected.

Correct! That works. Thanks! I added a delay of 10 seconds at the end of my void setup() and it works perfectly!

Just wanted to add that although it works after adding a delay at the end of setup, the same problem occurs when the device loses wifi connection and reconnects

That's why it is still a bug. It's one of the scenarios I was referring to in my last answer.
I'm working on a fix.

I made a branch: https://github.com/bertmelis/espMqttClient/tree/wait-for-connack
By default, it should wait for connection acknowledgment before starting to send other packets (unless the broker doesn't respond, but then we want to terminate the connection anyway). That part should work. I'm reviewing the changes to see if I didn't introduce new bugs though. Could you check too?


Serialize numbers < 1e-15 or >= 1e+21 to scientific notation

Currently codegen prints out plain integers and floats, but for large numbers using a scientific notation is desirable.
JS stringifies integers up to 1e+21 (exclusive). The floating precision varies, but going after the default value of Math.PI I'd assume 1e-15 being the boundary should be fine.

Closed by #32


eds: optionalize counting of unknown fields

Commit Message: In order to speed up eds, don't necessarily visit every proto field to count its validity as WarningValidationVisitor does. This yields a ~30% speed improvement in processing very large updates in EDS.
Risk Level: medium, new feature behind a command line flag.
Testing: Unit and bechmark tests.
Docs Changes: These are probably wrong, thus the draft-ness.
Release Notes: EDS can now ignore unknown dynamic fields, for a ~30% improvement in update processing time. Behind --ignore-unknown-dynamic-fields

@pgenera see typo at https://dev.azure.com/cncf/envoy/_build/results?buildId=39159&view=logs&j=9fd74226-df5b-5f29-39da-76fc341cc763&t=068b98b1-acf0-52d0-fc6e-f6d1a5b1d5ef.

The remaining clang-tidy complaint is pre-existing, I believe.


[FEATURE REQUEST] (Headless Install and Updates)

Please confirm these before moving forward

[X] I have searched for my feature proposal and not found a work-in-progress/duplicate/resolved/discarded issue.
[X] This proposal is a completely new feature. If you want to suggest an improvement or an enhancement, please use this template

Describe the new feature
I would like to be able to install WingetUI on a headless machine from the terminal and never worry about configuring it or UAC prompts.
That means the following should be possible:

be able to customise which package managers to use from the command-line parameters
enable "Cache administrator rights, but elevate installers only when required" from the command-line parameters
enable "always elevate Winget installation by default"  from the command-line parameters
enable "always elevate Chocolatey installation by default"  from the command-line parameters
enable "always elevate Pip installation by default"  from the command-line parameters
set the time when to check for updates from the command-line parameters
some way to disable any possible UAC prompt

I am guessing this might also require WingetUI to run as Admin by default at startup as some apps will be local-machine installed.
If so, WingetUI should be able to update anything within the same scope it was installed (so local machine install should be updates as local machine install and user installs should be updated as user installs). WinGetUI might already be doing this, but it's not entirely clear to me.
Describe how this new feature could help users.
So that this can be deployed from the terminal/SSH on Windows Server machines where WinGet/Chocolatey is installed and maybe no one RD-es into the machines for weeks to click accept on the UAC prompts.
Right now I use chocolatey auto-update for this, but there doesn't seem to a WinGet update option to do this.

You can tune wingetui to work how you want it to, and then compress a folder named .wingetui placed under your user directory.
Install WingetUI silently and deploy that folder to that machine, under %userprofile%.wingetui
Then, you can run WingetUI from the command prompt and it should be able to update all packages automatically.
Did this solve the issue?

You can enable automatic updates within WingetUI, but on-demand not yet. Please note that on-demand install/updates can be easily done from the package managers themselves

Hi, any update?


Add timeout to lambda, fix name conflicts

Lambda timeouts (as well as the grader timeout) has been added as part of the terraform files.

Lambda timeout is the duration before AWS timeouts the node process; a lambda timeout results in a 504 Gateway Timeout, and all information is lost.
Grader timeout is the duration that the grader program gives each student + grader program combination to run (they run in parallel); a grader timeout results in a error only for that one student + grader program, and the other successful programs are unaffected (they still return their grades). See https://github.com/source-academy/grader/pull/15.

Fix some problems with name conflicts between staging and production resources.

@tuesmiddt Not sure if the timeout case is considered in your #188

@indocomsoft it's covered here https://github.com/source-academy/cadet/blob/b22421a2dc20a91a9be0c9732972530a787211a5/lib/cadet/jobs/autograder/lambda_worker.ex#L24

Ah OK cool


Create Dockerfile

Dockerfile to create an image of Caddy2 with caddy-auth-jwt plugin

@greenpau This looks like some good work to me, would be nice to have 👍

@hogsim , thank you for the PR. Closing this. Please see my comment here.
Also, as an FYI, regarding Dockerfile, see how other people build here.


Ability to Set Symbol to None

Once you select an symbol for a key, there is no way to set that key to have no symbol. I also noticed that when you have a key with a symbol selected and select a blank key, the symbol stays selected, therefore the new key has that symbol, and there is no way to remove it.

I added the feature and documented how to use it in the README.


WSL 2 umask for /home folder accessed from Windows

When creating folders or files on WSL2's Linux partition (/home etc.) from Windows Explorer folders are always created with 777 permissions, and files with 666 - looks like umask 0 in effect. I can't find way to change system-wide umask for folders accessed from Windows - are there one?

are there one?

No I don't think so. Not yet anyway. A wsl.conf addition with [9p] section with a umask parameter is a reasonable ask. [If one assumes the WSL default user is the only WSL user per the current model.]
Possible work-around, while the MSFT's house brand 9p client and server death marches to feature parity with Samba, is to run Samba (set the create umask in smb.conf). Samba works as advertised in WSL2 (ref #764).
The other way to go is follow the guidance given in the WSL2 launch blog post and do all ext4 (aka /home) filesystem operations from inside WSL. This is how VS Code Remote works. However you'll have to use the "Remote - SSH" variety (contrast "Remote - WSL" variety) so sshd inside WSL can set the umask correctly.

@therealkenc - Agreed, some wsl.conf settings for the 9p server likely make sense.  @SvenGroot - is this something you'd be open to us adding?

Unilateral default of 0022 would make around  93.7% of users happy, overridable in wsl.conf so much the better. Ditto tangential #352.

I've changed the default umask of the 9p server to 022, with an override available in /etc/wsl.conf:
[filesystem]
umask = 022

Fix will be in an upcoming Insider build.

I've changed the default umask of the 9p server to 022, with an override available in /etc/wsl.conf:

Doesn't seem to work with build 18362.295
Is the [filesystem] section available only in Insider builds?

Is Remote SSH the only workaround in WSL 1 + Remote WSL?


Question about how to get the accurate distance to object?

I know there is a function to get distance in librealsense2 api. But how to get distance by ros package if I know the x and y coordinate in camera/color/image_raw. It seems that I need to subscribe /camera/depth/color/points. But I know little about how to transform rgbxyz to distance. Can anyone give some suggestions?

you should subscribe to aligned_depth_to_color and check the value of the color pixel on that image.

[Please Ignore - RealSense system comment]

Can I ask you how to get distance in librealsense2 api (python wrapper)?


Add a force update action, that forces the addon to always update

Some addons don't change version numbers. /me shakes tiny fist at The Undermine Journal

please change your commit to just clear the version field in the addonList to None and then call self.updateAddon. I prefer this way, cause the code of updating an addon isn't doubled then.
And btw. your "addon" list when saving includes the addon twice afaiks once from the append at checkforupdate and then the second append before the actual update.

I just duplicated "updateAddon" to pass none to the addon check.

Checkout latest commit.


ClientData missing from DevDefault

I think a git merge deleted the ClientData plugin from Default.psi (Now DevDefault.psi).

Resolved by PR #816


Yoshi Woolly World 60fps hub world?

Is it possible to have 60fps again in the main hub world?
It used to be 60fps and ran nice and smooth but then later cemu updates it locked it at 30fps on the hub world and switches to 60fps in the levels
Playing at 30 makes everything feel so sluggish and is really bad on the eye :(
I saw a few 60fps patches for cemu so thought id ask if possible for this game

Not working anymore with CEMU 1.22.10b?


Allow a negative Cost per kWh

What would you like to be added:
I would like to be able to set a negative "Cost per kWh" on the geo-fence page.
Why is this needed:
We pay a monthly subscription to have a charging station at home and then get reimbursed for the amount used. However, the amount reimbursed is slightly higher than what we pay per kWh on our electrical bill.
Additional context:
While the amount is relatively low, it's still a part of our Tesla economy and we would like to be able to track it.

I'll try to implement it


Add specialized fetchRequest() func to Swift's machine generated files

All platforms are now included in the availability check.
Sorry for that!

Nice catch!
I think I have to use <$sanitizedManagedObjectClassName$> or _<$sanitizedManagedObjectClassName$> don't I?
What do you think @rentzsch
Thanks!


Added reporterOutputOnly flag

This flag allows for a reporter to send output both to stdout and a
specified filepath.

Does anyone take a look at these?

Thanks for summoning, why it couldn't be just a custom reporter?

Sorry about that, I just wasn't sure what the process was on getting feedback :D
From my understanding you can only have one reporter. Is that right?

Yeah, but with the custom reporter you can write anywhere you like, or you can write it in the file, in stdout and in some third party service with some api

For example, that console.log could be a call request call, console.log one and fs.writeSync simultaneously

Ah I see, I just figured others might want this functionality as well since it's not super custom. The problem with making this a custom reporter is that since I can only have one I would have to duplicate code from any existing reporters in this custom one adding whatever else I needed. Again, this would make sense if what I wanted to do was make a request but printing to stdout seems like a pretty general behavior.

You can create your own reporter, which would require already existing reporter and do the same thing as you did in here - hook to the console.
All and all, i don't think this issue should be solved this way, jscs reporters though, could be improved, so they would pipe their data instead of just printing it right away

Ok if output destination manipulation should be done using a reporter then I guess I'm confused as to why you have reporterOuput. Why not just require people to provide a reporter that manipulates the output to a file @markelog?

Only because jshint has it :), i would call it "legacy" in other words :)


GetConsoleScreenBufferInfoEx, return value, GetLastError?

Environment
v:> ver
TCC 27.00.18 x64
Microsoft Windows 10 Pro for Workstations
10.0.19042.746 (2009, 20H2)
WindowsTerminalPreview_1.5.3242.0_x64
Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

See below.
Expected behavior
Something else.

Actual behavior

Here's some code I'm using to test an unrelated ussue.  Sorry it uses a bit of plugin interface language.  You'll get the gist.
	CONOUT conout;
	CONSOLE_SCREEN_BUFFER_INFOEX csbiex = {sizeof(CONSOLE_SCREEN_BUFFER_INFOEX), 0};
	if ( GetConsoleScreenBufferInfoEx(conout.h, &csbiex) == FALSE );
		TCError(GetLastError(), NULL);
	for ( INT i=0; i<16; i++ )
		Printf(L"Color %d = 0x%06lX\r\n", i, csbiex.ColorTable[i]);

If it's run in WT, in OpenConsole, or in conhost it produces (snipped) ...

... apparently succeeding but returning FALSE with GetLastError() == 0.

And those color values look more like RGBs than COLORREFs.

And those color values look more like RGBs than COLORREFs.

As for the return value ... my mistake (misplaced semicolon) ... sorry.
But are they supposed to look like RGBs?  Color 1 is red and red's COLORREF is 0x000080.

As for the return value ... my mistake (misplaced semicolon) ... sorry.
But are they supposed to look like RGBs?  Color 1 is red and red's COLORREF is 0x000080.

Color 1 is red

But the CHAR_INFO structure documentation says FOREGROUND_BLUE is 0x0001.

Color 1 is red

But the CHAR_INFO structure documentation says FOREGROUND_BLUE is 0x0001.

The color numbering of the Windows console API originates from the IBM CGA color palette, I think. It's not the same as what is used in SGR control sequences.

The color numbering of the Windows console API originates from the IBM CGA color palette, I think. It's not the same as what is used in SGR control sequences.

Just to confirm: your return value issue was caused by user error?
@KalleOlaviNiemitalo is correct. The colors are not indexed the same as in VT. The colors match the values you get if you OR together the FOREGROUND_ constants.

Just to confirm: your return value issue was caused by user error?
@KalleOlaviNiemitalo is correct. The colors are not indexed the same as in VT. The colors match the values you get if you OR together the FOREGROUND_ constants.

Yes, indeed! ... user error on the return value part.
What's CHAR_INFO got to do with it?
The docs say GetConsoleScreenBufferInfoEx gives an array of COLORREFs and the docs for COLORREFs give examples where red is in the low byte.  Is the meaning of COLORREF subject to interpretation?

Yes, indeed! ... user error on the return value part.
What's CHAR_INFO got to do with it?
The docs say GetConsoleScreenBufferInfoEx gives an array of COLORREFs and the docs for COLORREFs give examples where red is in the low byte.  Is the meaning of COLORREF subject to interpretation?

No, COLORREF is always BGR.

The low-order byte contains a value for the relative intensity of red; the second byte contains a value for green; and the third byte contains a value for blue.

The low-order byte is the last one in the hex-text representation 0x00BBGGRR.
The CHAR_INFO structure, as linked by @KalleOlaviNiemitalo, documents the values of the color constants. Are you looking for a way in which it has even more to do with the color ordering? :wink:

No, COLORREF is always BGR.

The low-order byte contains a value for the relative intensity of red; the second byte contains a value for green; and the third byte contains a value for blue.

The low-order byte is the last one in the hex-text representation 0x00BBGGRR.
The CHAR_INFO structure, as linked by @KalleOlaviNiemitalo, documents the values of the color constants. Are you looking for a way in which it has even more to do with the color ordering? :wink:

Try again ... GetConsoleScreenBufferInfoEx uses a CONSOLE_SCREEN_BUFFER_INFOEX, one member of which is
COLORREF   ColorTable[16];
The numbers that GetConsoleScreenBufferInfoEx puts in that array are in the format 0x00RRGGBB which is not the format of a COLORREF.

Try again ... GetConsoleScreenBufferInfoEx uses a CONSOLE_SCREEN_BUFFER_INFOEX, one member of which is
COLORREF   ColorTable[16];
The numbers that GetConsoleScreenBufferInfoEx puts in that array are in the format 0x00RRGGBB which is not the format of a COLORREF.

Wait I'm not so sure about that.
ColorTable[1] in the console is DARK_BLUE, so 0x800000 as a 0xBBGGRR color would be rgb(0, 0, 128). Right?
It might be easier to debug by changing the colors first a little, so red is something like 0x40, green as 0x60, blue as 0x80, so you'd know exactly which ones were getting returned.

Wait I'm not so sure about that.
ColorTable[1] in the console is DARK_BLUE, so 0x800000 as a 0xBBGGRR color would be rgb(0, 0, 128). Right?
It might be easier to debug by changing the colors first a little, so red is something like 0x40, green as 0x60, blue as 0x80, so you'd know exactly which ones were getting returned.

Thanks, Mike.  I experimented a bit with the values in HKCU\Console.  User error again.  I don't know where I got the idea that ColorTable 1,2,4 were R,G,B ... maybe from the 31, 32, 34 used in the control sequences (but those didn't come from MS).  Sorry for bugging you guys.

Thanks, Mike.  I experimented a bit with the values in HKCU\Console.  User error again.  I don't know where I got the idea that ColorTable 1,2,4 were R,G,B ... maybe from the 31, 32, 34 used in the control sequences (but those didn't come from MS).  Sorry for bugging you guys.

No worries, glad you got it figured out! The Windows Console is definitely the odd one out with the color table being in BGR order, and the COLORREFs being BBGGRR. Everyone else on the planet has them in RGB order 🤷♂

No worries, glad you got it figured out! The Windows Console is definitely the odd one out with the color table being in BGR order, and the COLORREFs being BBGGRR. Everyone else on the planet has them in RGB order 🤷♂

Try again

I’m glad you got your problem sorted out, but I have to tell you that this comes off as particularly unkind. I am here trying to help and point you towards relevant documentation[1], but the page Kalle linked being a few short hops away from does not really mean that I should “try again.” If I fail to provide you details you find relevant or interesting, you can say that without ordering me to take twenty.
I know you probably didn’t intend that, but I figured I’d let you know how it reads.
1: we all use a common infrastructure here in the console; the color orders are dictated by history and documented with CHAR_INFO. The table you called out would therefore be in the order documented for other parts of the console, right? :smile:

Try again

I’m glad you got your problem sorted out, but I have to tell you that this comes off as particularly unkind. I am here trying to help and point you towards relevant documentation[1], but the page Kalle linked being a few short hops away from does not really mean that I should “try again.” If I fail to provide you details you find relevant or interesting, you can say that without ordering me to take twenty.
I know you probably didn’t intend that, but I figured I’d let you know how it reads.
1: we all use a common infrastructure here in the console; the color orders are dictated by history and documented with CHAR_INFO. The table you called out would therefore be in the order documented for other parts of the console, right? :smile:

I may have been adamant (thinking I was right).  I never mean to be unkind.  I'm sorry if you took offense.  I have great respect for the members of the Windows Terminal team.

I may have been adamant (thinking I was right).  I never mean to be unkind.  I'm sorry if you took offense.  I have great respect for the members of the Windows Terminal team.

Thanks
d


Update color of Step List component

As per discussion on Slack, let's change the color of the Step List component from the "primary" color variable to the "highlight" color variable.
This will make the step list more prominent and add more visual variety to the pages that it appears on.

[x] Update component in Figma [@adam-little]
[ ] Update color on Cannabis (from #2F4C2C to #C0633B) [@chachasikes]
[ ] Update color for Design system (from #004ABC to #FEC02F) [@kkoryaka]

The new step list on the design system will look like this by default

@adam-little  What will the color be for drought - for @xjensen ?

Highlight color for drought is #FBAD23
https://www.figma.com/file/3N4dFWhFqiGpWr1DRQoJUM/Design-system-colors?node-id=0%3A1

@chachasikes I have updated design system package to v2.0.1 and published it to NPM, now you can go ahead and update cannabis (and drought?) website.

Updated it in headless: https://headless.cannabis.ca.gov/applicants/how-to-apply-renew/

Looks good to me. Thanks!


I just want to say thank you

I am creating my first a SaaS and your components helped a lot, as soon I can I will try to help here!

No problem @JorgeMadson I'm glad it helped!


Fixed #10107 -- Allowed mark_safe() to be used as decorator

I pulled down the patch from @ArcTanSusan's PR (https://github.com/django/django/pull/6390) and incorporated the changes that @timgraham and @funkybob were looking for.
Please let me know if this needs to be squashed or if there's a better way to attribute the work to @ArcTanSusan.  Thanks!  (and good to meet you today, @MarkusH).

buildbot, add to whitelist.

I would put the tests in tests/utils_tests/test_safestring.py.
You may squash commits when updating and put something like "Thanks ArcTanSusan for the initial patch." in the commit message. We don't use the @ mention because that pushes notifications to those people if the commit is pushed to another branch.

Thanks @timgraham, incorporated those additional changes from this morning.  Appreciate all your guidance here.

Is it worth adding more documentation on how it can be used as a decorator? This might seem facetious, but if I came across the idea that mark_safe could be used as a decorator, I would wonder if I should be wrapping my whole view function with it.

merged in be729b6120a50fff28195c28896c83a9b1e0c355, thanks!
@phildini I think decorator usage is a basic Python concept that we don't need to repeat in our docs. I hope anyone who knows that they need this function knows decorators by now.


adding draggable option

adding config to disable draggable behavior for the ruler.
what u think?

just implemented a version with options for disable dragging for cells / ruler
I'll open a new PR


feat: Add the -fvisibility=hidden flag to the C compiler

Not required for the moment, but it would be a bonus.

It doesn't seem to work with clang. Closing for the moment.


Add missing space causing parse error.

Was getting an error on install and on starting zsh.

@robbyrussell there was a typo in #3986, please merge this ASAP to fix

yup, kinda crashes zsh now
please merge!

:+1:

Please add fixes #4009, fixes #4010, fixes #4011 to your PR description so those duplicates are automatically closed when this PR is merged.

This closes #4018, #4019, #4020, #4021 and #4022 as well.

Can we get this merged asap?

shellcheck would have found that one. Has someone an idea how to automatically shellcheck PRs in the future?

Probably using some CI service might be helpful (e.g. Semaphore, Travis, Codeship, etc.)? I'm not sure if there's any CI service supporting shellcheck though.

@aliafshar For your convenience, you can simply add the following line to your PR description.
fixes #4009, fixes #4010, fixes #4011, fixes #4018, closes #4019, fixes #4020, closes #4021 and fixes #4022

@Kevin-Lee afaik you can install Ubuntu packages on Travis. I think Travis runs Ubuntu 12.04 which does not have shellcheck. Shellcheck comes in utopic and trusty-backports. But it should be possible to get it from a PPA.

@webmaster128 If so, I recommend Semaphore because it has Ubuntu 14.04 and you can even choose 12.04 if you want whereas Travis has only Ubuntu 12.04. In fact, I found this one. https://semaphoreci.com/docs/how-to-install-dependency-from-ppa.html So yeah there is a way to run shellcheck I think. :smile:

how about merging this? its not that there are not hundreds of users which are wondering why their config broke and a growing number of issues created.

Merge please?

@webmaster128 I was trying to set up CI for oh-my-zsh using shellcheck. Could you please tell me if what I did was correct?
shellcheck -s zsh **/*.zsh

If so, that shows so many issues. I tested on Ubuntu 14.04 shellcheck version 0.3.3 and I also tried it on Mac OS X but shellcheck installed using Homebrew doesn't seem to support zsh although its version is 0.3.7.
Anyway, it shows so many issues so I'm not sure if we can simply have CI for this.

@Kevin-Lee The command looks good. Version 0.3.3 should be good for now.
Try this one to get things started:
find ./ -not -path "./plugins/*" -name "*.zsh" -exec shellcheck -s zsh --exclude=SC2034 {} \;

This excludes plugins for now. SC2034 is unused variables, which can be ignored for now.

My apologies. I got a little merge happy after a few glasses of wine last night.
:-1:

happy dance; that was quick; funny to see all the duplicate PRs :)

@robbyrussell thanks for merging - however it highlights an issue. There needs to be people able to merge outside of your time zone. The popularity of this has meant my entire working day this was broken. Now, I'm able to patch/fix things myself - however lots won't.

+1 for @leepa suggestion

:+1: for @leepa . Suggestions:

move oh-my-zsh to an organization with multiple collaborators
travis tests (or other CI options)
coveralls to make the community push towards better coverage

bonus tip: don't drink and merge


added notebook with my code for classifier

Added my code for the image classifier.

I don't need your codes


Pdf is corrupted

Try to open pdf file on ubuntu but nothing happen. Hope see it working. Gambate altsoph-san!

@vstebunov Arigato for heads up!
I tried to fix it and just uploaded a new version. Could you please check if it works now?

Thanks, now it works!


Add a license

[x] Select a license
[x] Add the license to the repo

Added the license to the backend branch which should be merged with the master branch later today

@JasperDR great! Actually, if you add "fixes #1" to your commit, it would’ve close this automatically upon merging, easier to keep track of what is / what is not implemented that way ;).

ok, i'll remember it for the next time. Thanks.