Remove sanitizing outbound request URI

Currently, in client connector, outbound request's URI is sanitize with "/" if the request path does not start with a "/".  This actually not needed and causes unwanted trouble.
We only need to normalize inbound request's URI.

This has been fixed in the snapshot.


Fixed chainlink docs broken link

Replace broken link https://docs.chain.link/docs/testnet-oracles by https://docs.chain.link/docs/decentralized-oracles-ethereum-mainnet/#testnets

Tagging @StephenFluin just to make sure the new pipeline here for external PRs is working as intended

Thanks for this PR!

Anytime!


Use Array instead of List in Tuple type

Current org.python.types.Tuple uses a List<Object> as its internal implementation; takes a List as its argument constructor and stores a reference to it.
This is sub-optimal, because a Python tuple is immutable. An Array would avoid dragging in all the resize mechanisms.
But further, it is incorrect, because a Python tuple should not change when the value used to construct it changes.

My reading of the code is that this will fail, before and after #343:
lst = [1,2,3]
tpl = tuple(lst)
lst.append(4)
assertEqual(tpl, (1,2,3))

Haven't tested it yet, could be wrong...

It seems to fail because the tuple() builtin (and seemingly most of the other datatype builtins) is not implemented yet, but that does seem like a possible issue!
Adding some failing test cases would be very helpful for the future implementer.


Embedded pages are uncompress

Hi,
I'm migrating our pdf generation tool from HummusJS to pdf-lib.
I have to merge two pdf pages into a new pdf. To achieve that I embed the pages into a new pdf document.
The size of the generated file is significantly increased compared to the original one.
When I compress the generated pdf, the file size is closer than what I expect.
I did a test case to show the issue:
import {readFileSync, writeFileSync} from 'fs'
import {PDFDocument} from 'pdf-lib'

(async () => {

    const pdfDoc = await PDFDocument.create();

    const pdfSource = await PDFDocument.load(readFileSync('./Lorem ipsum dolor sit amet.pdf'));
    const embeddedPage = await pdfDoc.embedPage(pdfSource.getPage(0));

    const page = pdfDoc.addPage();
    page.drawPage(embeddedPage);

    writeFileSync('embedded.pdf', await pdfDoc.save());

})();

The source file is a simple pdf of 200 KB made with Word : Lorem ipsum dolor sit amet.pdf
The file generated by this script is 1.5 MB. It's 7.5x larger : embedded.pdf
I think that the LZW stream from the source file is uncompressed before being embedded into the new PDF file.
Am I correct?
EDIT: I inspected both PDF and I found a FlateDecode stream in the source pdf which is decoded in the destination pdf.

Regards,
Julien

I found a workaround. After generating the PDF I use Ghostscript to "compress" it. gs -o embedded.gs.pdf -sDEVICE=pdfwrite -dBATCH -dNOPAUSE embedded.pdf is enough to "restore" DeflateStreams and reduce the size of the generated PDF.
After that operation I get a PDF of 212 KB: embedded.gs.pdf

Hi,
I would like to request a compression of the pdf by pdf-lib as well. I'm having te same problem and since I'm working in a pure Javascript environment, I can't use a tool like Ghostscript to compress the pdf.
The 2 source pdf's are 600kB and the resulting pdf is 5MB.
Regards,
Sven

Hi, I would like to request a compression of the pdf by pdf-lib as well. Deadline approve PR ?

I also face a problem related to uncompressed embedded pages. In my scenario i want to apply a page background (letter paper) to every page of a content PDF. The only way i found to achieve this is to embed both the page background and all content pages to a new PDF and then draw them in the correct order on newly created pages.
So far, so good. But because the embedded pages are not compressed the final PDF has a size of approx 750 KB instead of 85 KB. Those values are for a 5 page PDF. If i do the same with 50 pages i end up with over 8 MB.
With the proposed change in the PR i end up with approx 125 KB for the 5 page PDF which is fine.
@Hopding Any chance this PR get's accepted and released? Is there anything i can do to get this done?


Peers tab hide horizontal scroll bars

How does/should the user toggle/hide the detail widget when the table data fills the view?

Maybe assigning a key command to hide/toggle the detail view would work? <ESC> key?
But I believe it is optimal to allow for a mouse click event as well as a key command event.


Week 18 Review Ticket

[x] Link to website
[x] OOP Hacks
[x] CPT #2
[x] Frontend design

Login link does not work at top, but screens seem to be under Frontend below.   This is pretty minimal at this point and does not represent a site idea.
Table is on signup as well, you need to get another idea.  How do you even know if you need a signup yet.  This is secondary idea.   The hacks on classOf, etc look good.
I only see two reviews.  There is good summary, but lacking in work.

Entire Group's Grading
Yuri

CB Grading: 1
Group Project: 1
Model OOP Hacks: 1

Aniket

CB Grading: 1
Group Project: 1
Model OOP Hacks: 1

Soham

CB Grading: 1
Group Project: 1
Model OOP Hacks: 1

Tanay

CB Grading: 1
Group Project: 1
Model OOP Hacks: 1


Allow longet strings in stat_header and mode_header tables

If users have long values for units or vx_mask - the loader rejects records.

By changing CHARACTER SET of tables  to latin1 we can reduce the size of tables.

Increase the length of fields to 100?? in the table but use index only on first few characters.
In majority of cases fields values don't exceed some length. Use this value as a field length in the index


[Bug]: WASM Bindings don't work with ESM project structure

Issue description
WASM bindings do not work with ESM
Version
v0.1.3
Expected behaviour
bindings work
Actual behaviour
since in package.json just files are exported in an ESM project you can't consume from directories like node and web
Can the issue reliably be reproduced?
Yes
Steps to reproduce the issue

create esm project
try to import from /node or /web

Errors
ModuleNotFound
Duplicate declaration

[X] I have searched the issues tracker this issue and there is none

can be fixed pretty simply with adding explicit exports in package.json
 "exports": {
        "./node": {
            "require": "./node/lib/index.js",
            "import": {
                "types": "./node/lib/index.d.js",
                "default": "./node/lib/index.js"
            },
            "default": "./node/lib/index.js"
        }
    }


Includes Nodejs

This project includes basic NodeJS sample. Undergoing the other few features like Cards and Auth will do soon.

Have updated all I guess. Please review it @erickoledadevrel . Thanks

Thanks!


Support install via CocoaPods

Thank you for creating a great tool 👍
Is it possible to install via CocoaPods like SwiftLint?
By version control via CocoaPods, it makes it easier for multiple people to develop, oss development and more.

I think nothing speaks against providing an additional way of installing BartyCrouch. I won't have time to do this soon though, as I'm currently concentrating on this project and the PRs https://github.com/Moya/Moya/pull/1147 and https://github.com/Carthage/Carthage/pull/1990 in my free time.
I'd gladly have allok on a good PR though, would you want to do this yourself?

Ok 👍
I would like to create a Makefile that can create a frameworks summarized by zip like Swiftlint.
And will submit PR.

Feel free to do whatever is needed to get this feature going. As long as it doesn't affect the already existing features and providing this via Homebrew, I'm completely fine with it.

I've merged #61 and made a new release (3.8.1) with your instructions. Please report if it doesn't work for you. Thanks you for this feature! 🎉

@Dschee Thank you for releasing new version. 👍 I tried it with the own application, it works perfectly.
https://github.com/Clipy/Clipy/blob/81362693e08cec219448f191a33f96d0473866fa/Podfile#L22
I can not check the library on cocoapods.org, but are you planning to push this version?
Thanks 😄

Oh yearh, sure, forgot the last step after getting excited too early. 😄
Just uploaded it, should be available now! 🎉


Fix: loading state

falls of the page

should be fixed on @sasjakoning 's branch "s5-wcag_check"
check to make sure its fixed! if so, u can close the issue :3


Entity behavior on Space key on Android Chrome with GBoard keyboard

Bug
Current behavior?
On Android Chrome with Gboard, once an entity is added, when adding space next to the entity, the following happens.

If space after an immutable entity - Entity gets removed.
If space after a mutable entity - Mutation continues on to the newly types text.

The above behavior is not the same on iOS Safari or on Desktop browsers.
Steps to reproduce and if possible a minimal demo of the problem.
You can see the behavior in the demo link here.
The code can be found here.
Take your cursor next to each entity and add a space key to see the above mentioned behaviors.
The expected behavior?
The expected behavior should be as it works on other browsers. Open the sample link on desktop and see how it behaves for each case.

Immutable entity must not be removed on space immediately after the entity.
Mutation should not continue in the case of mutable entity.

Which versions of Draft.js, and which browser / OS are affected by this issue?
Draft js version - "0.11.7"
Android version: 11
Android Chrome version: 87

@flarnie Is it a known issue?

@flarnie Is it a known issue?


failed to resolve mkVideoPlayer dependency

I am receiving a error failed to resolve : (dependency).
What to do ?

add this in your build.gradle
repositories { 			... 			maven { url 'https://jitpack.io' } 		}


Improve screen resolution

Current resolution is too low. Perhaps a higher one would be better.

What does that supposed to mean? Shouldn't Godot be capable of rendering at any resolution your device can handle. Be more specific please.


Working with Rules: Unexpected large font in SourceCode documentation

In the SourceCode section of "Working with Rules", there's a section in which the different range/skip/count options are documented for some of the newer SourceCode methods. That section is rendered with a larger font than the surrounding content.
I opened the issue up here because I assumed this might be a CSS problem. If it's a problem with the source content (i.e., the markdown), let me know and I can move this to eslint/eslint.

@platinumazure

as we can see  blockquote is providing the font size 21.25px;

@platinumazure
It is in styles/main.css
should i update it and raise a PR?

@AlokTakshak Nice find! Feel free to raise a PR, but be careful-- I think we only really need the code samples to use a smaller font size. Block quotes for actual prose should probably still be larger size. So I would recommend creating a more specific selector to override for code samples, if at all possible. Thanks for taking a look!

@platinumazure
blockquote p, ul {     font-size: 17px; }
I think this should be fine for now or we need to give  for all elements inside blockquote
blockquote *  {     font-size: 17px; }

https://github.com/eslint/eslint/blob/9590587cef74c936ef9b7ce2d22a71e2fd0fbbc4/docs/developer-guide/working-with-rules.md#L415-L429
After taking a look at this, my opinion is that this is an issue with the Markdown source and not the CSS. That section is written as a blockquote with the > prefixes, but it seems that was being used for indentation rather than quote-like semantics. If we don't need them to be a blockquote, removing the > prefix from those lines would fix this. What do you all think?

@btmills Yeah that will also work, do you want me to remove the > prefix?

@AlokTakshak Let's try that first and see how everything looks. If we need to do any further changes, we could do them either in the same PR or in a separate PR. Thanks!
@btmills Please speak up if you feel differently.

@AlokTakshak Let's try that first and see how everything looks. If we need to do any further changes, we could do them either in the same PR or in a separate PR. Thanks!
@btmills Please speak up if you feel differently.

so we are going with initial (i.e adding css property) for now?

@AlokTakshak Sorry for being unclear. I meant we should change the Markdown source first since it's semantically incorrect. Let's fix that first, then we can decide if some CSS change might be needed later. Thanks!

@AlokTakshak Sorry for being unclear. I meant we should change the Markdown source first since it's semantically incorrect. Let's fix that first, then we can decide if some CSS change might be needed later. Thanks!

ok, i will make changes in same PR

@platinumazure   I have removed the '>' prefix, you can check the PR


CI Fixes: SDE fix

This pull request recombines the x86 tests and passes the -future flag to Intel SDE, which should provide support for current and future architecture extensions.
According to the previous SDE error message, it was defaulting to the host's CPUID because no flag had been set. If the host machine did not support a particular architecture, the test would fail.
Here is the list of flags from running ./sde64 --help that could be used instead for a particular processor microarchitecture:
     -quark              Set chip-check and CPUID for Intel(R) Quark CPU
     -p4                 Set chip-check and CPUID for Intel(R) Pentium4 CPU
     -p4p                Set chip-check and CPUID for Intel(R) Pentium4 Prescott CPU
     -mrm                Set chip-check and CPUID for Intel(R) Merom CPU
     -pnr                Set chip-check and CPUID for Intel(R) Penryn CPU
     -nhm                Set chip-check and CPUID for Intel(R) Nehalem CPU
     -wsm                Set chip-check and CPUID for Intel(R) Westmere CPU
     -snb                Set chip-check and CPUID for Intel(R) Sandy Bridge CPU
     -ivb                Set chip-check and CPUID for Intel(R) Ivy Bridge CPU
     -hsw                Set chip-check and CPUID for Intel(R) Haswell CPU
     -bdw                Set chip-check and CPUID for Intel(R) Broadwell CPU
     -slt                Set chip-check and CPUID for Intel(R) Saltwell CPU
     -slm                Set chip-check and CPUID for Intel(R) Silvermont CPU
     -glm                Set chip-check and CPUID for Intel(R) Goldmont CPU
     -glp                Set chip-check and CPUID for Intel(R) Goldmont Plus CPU
     -tnt                Set chip-check and CPUID for Intel(R) Tremont CPU
     -snr                Set chip-check and CPUID for Intel(R) Snow Ridge CPU
     -skl                Set chip-check and CPUID for Intel(R) Skylake CPU
     -cnl                Set chip-check and CPUID for Intel(R) Cannon Lake CPU
     -icl                Set chip-check and CPUID for Intel(R) Ice Lake CPU
     -skx                Set chip-check and CPUID for Intel(R) Skylake server CPU
     -clx                Set chip-check and CPUID for Intel(R) Cascade Lake CPU
     -cpx                Set chip-check and CPUID for Intel(R) Cooper Lake CPU
     -icx                Set chip-check and CPUID for Intel(R) Ice Lake server CPU
     -knl                Set chip-check and CPUID for Intel(R) Knights landing CPU
     -knm                Set chip-check and CPUID for Intel(R) Knights mill CPU
     -tgl                Set chip-check and CPUID for Intel(R) Tiger Lake CPU
     -adl                Set chip-check and CPUID for Intel(R) Alder Lake CPU
     -spr                Set chip-check and CPUID for Intel(R) Sapphire Rapids CPU
     -gnr                Set chip-check and CPUID for Intel(R) Granite Rapids CPU
     -srf                Set chip-check and CPUID for Intel(R) Sierra Forest CPU
     -grr                Set chip-check and CPUID for Intel(R) Grand Ridge CPU
     -future             Set chip-check and CPUID for Intel(R) Future chip CPU

Thank you!


Where is HttpRequester?

Hi,
I'm looking at the example code here: https://github.com/AngleSharp/AngleSharp/issues/718
I'm trying to look for elements on a dynamic page (with js) which contains a table of data, that the basic OpenAsync doesn't open.
But I don't see HttpRequester which is used in issue 718, VS can't find the package to add, I've searched github, there is nothing. I've got the following packages already...
AngleSharp
AngleSharp.Css
AngleSharp.Io
AngleSharpJs
Where is it?

Do you mean the HttpClientRequester? The original HttpRequester was renamed to DefaultHttpRequester. You don't need to add it explicitly though - its added internally anyway for you.
Our recommendation is to use AngleSharp.Io with the HttpClientRequester. It uses HttpClient underneath, which has a better architecture / implementation than the classic HttpWebRequest.
Hope that helps!

The page I'm trying to read is : https://www2.asx.com.au/markets/trade-our-cash-market/directory
I'm just trying to get the table data out, we've gotten it out with some very simple python code. But I just can't work out how to use AngleSharp.
Here's what I've got...
        private async void Button_ScrapeMC_Click(object sender, RoutedEventArgs e)
        {
            // source page
            string address = "https://www2.asx.com.au/markets/trade-our-cash-market/directory";

            // construct context and use default configuration
            IConfiguration config = Configuration.Default
                .WithDefaultLoader()
                .WithJs();
            IBrowsingContext context = BrowsingContext.New(config);

            // open document
            var document = await context.OpenAsync(address); // 1077 elements

            // dump document info
            Debug.WriteLine("Address = " + document.Origin.ToString());
            Debug.WriteLine("Element Count = " + document.All.Length);

            // define selector
            string s;
            s = "th";

            // get list of elements in document that match the selector (or selector group)
            IHtmlCollection<IElement> elements = document.QuerySelectorAll(s);

            // get the text
            IEnumerable<string> elementsText = elements.Select(m => m.TextContent);

            // debug dump
            Debug.WriteLine("MatchedElements = " + elements.Length.ToString());
            foreach (string text in elementsText)
                Debug.WriteLine(text);

            Debug.WriteLine("DONE");
        }

Output:
Address = https://www2.asx.com.au
Element Count = 1077
MatchedElements = 0
DONE
I must be missing something, because I just don't see the table data at all.
Any help is appreciated. I've been trying to solve this for a couple of days now with just no luck.

The page itself has no table. The table comes via JS.
AngleSharp.Js (its a different project / repository) is experimental and presumably does not work on the given page.

Ah, OK.
I hear about headless browsers; could I look at Microsoft's Chromium Webdriver or Selenium to completely evaluate the page or do you have any other recommendation for a way to do this (.net standard)?

And is it because that page is non-standard?

This has nothing to do with the page. As stated the thing you want is dynamically generated using JS (with a BE request). AngleSharp.Js is limited what it can do. Partially due to the Jint (the JS interpreter), partially, because it is not 100% connected to the DOM / AngleSharp does not expose all APIs required by more sophisticated web apps (e.g., some will try to use APIs exposed by the rendering engine, which is not given in AngleSharp.Core).

Also, is there a way to use another tool to get the full source and then pass that to AngleSharp for querying?

That would not be very helpful as this other tool would need at least the same capabilities + full JS support; sounds like just using this tool then is what you want.

I hear about headless browsers [...]  any other recommendation for a way to do this

There are two direct ways:

Why scrap the page anyway if all you want is in that table? This data you get much cheaper via a request to https://asx.api.markitdigital.com/asx-research/1.0/companies/directory?page=0&itemsPerPage=25&order=ascending&orderBy=companyName&includeFilterOptions=false&recentListingsOnly=false
Use the browser of your system (could be Chrome running in a Docker image) and automate it using the WebDriver protocol (WDP). Selenium is an option, too, but I'd always go for something more lightweight such as the WDP.

Ahm, that's amazing (1). I'm very new to this stuff so there's a lot I'm not even aware of. I'm sorry to ask more, but how did you construct that request link in option 1?
What should I read up on so that I can understand what you just did?

how did you construct that request link in option 1?

All I did was going to the website, open my browser debugging tools (in Chrome / Windows via CTRL+SHIFT+I, otherwise just right click and inspect element) and go to the network tab. Then I'll see all the requests that are made. If there is JS involved, high-chance its just pulling some data and displaying that.
The only reason for using browser automation for such scenarios is that the request requires a complicated interaction flow, which is based on information sent with the HTML. An example for that are login pages of e.g. Microsoft or Google. They have quite some security in place and just making a POST request will not get you the cookie you'd like. Here, the page needs to be evaluated and the form needs to be submitted properly.

What should I read up on so that I can understand what you just did?

Hm, not sure if there is one resource to learn about that. Maybe these two links are helpful:

https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools
https://developers.google.com/web/tools/chrome-devtools/network

Hope that helps!

Yes, thank you.


docker: update Hubble CLI to v0.7.1

This release fixes a bug which prevents certain environment variables from being used for configuration.
See the release notes for details.

test-me-please


Pass query param to opt-out of forwarding users back to ourselves.

What's this PR do?
Since DoSomething/phoenix#6510, users created via the Services user endpoint are now automatically forwarded to Northstar unless the ?forward=false query parameter is passed. This adds that query parameter to Northstar's Phoenix API call, so we don't make an extra "trip" back.
How should this be reviewed?
👀
Checklist

[ ] Documentation added for changed endpoints.
[ ] Tests added for new features/bug fixes.

For review: @angaither @weerd

👍


Plugin no longer works

The registry.npmjs.org api seems to have changed. The list-all and instal or other commands are now working.
Also the plugin does not follow new plugin format.
I have created one here with latest template repo. https://github.com/technikhil314/asdf-pnpm

The plugin still works for me on pnpm v5, v6, and v7.

@joshlartz

@technikhil314
> asdf plugin-list --urls | grep pnpm
pnpm                         https://github.com/jonathanmorley/asdf-pnpm.git
> asdf install pnpm $(asdf latest pnpm)
Downloading pnpm v7.1.8
> asdf local pnpm 7.1.8
> pnpm --version
7.1.8


Type Number is string

Hello i try this demo and i get

this warning, did you know why this is happens ? why it couldnt be a number ?
but my real question is i cant see a shadow-dom you have any plans to add this and changing the build process to apply the styles ?
thx in advance

@DrMabuse23 That warning is expected.
Vue performs a type check on the incoming props. In the demo component, prop type is defined as Number @ https://github.com/sreenaths/vue3-webcomponent-wrapper-demo/blob/main/src/components/Counter.vue#L12
For simplicity of the demo, we are passing the prop directly as HTML attribute @ https://github.com/sreenaths/vue3-webcomponent-wrapper-demo/blob/main/public/index.html#L11
On passing as HTML attributes, value is converted to string before passing into the component. Hence the above warning.
To avoid the warning, you can pass the prop as number using javascript. Same can be used for object or any other data type.
document.getElementsByTagName("demo-counter")[0].value = 3;


fix(Freehand Tool): UX improvements to closing contours.

Previously new points wouldn't be added to the FreehandMouseTool if the mouse was close to the origin node. Now you may draw as close as you like (respecting spacing configuration). Mousing up within the completeHandleRadius will still complete the contour.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Interoperability with Honeycomb beelines?

I'm interested in this being interoperable with Honeycomb (Beeline) integrations for other languages, and wanted to check if this was of interest:
Historically Honeycomb used an X-Honeycomb-Trace header, encoding trace ID, span ID, and some attached context. Recent updates have made it possible to also read traces using the W3C Trace Context headers. The outgoing headers still default to using the Honeycomb header, but there are plans to make this configurable.
In line with the above, the new default generated trace ID is a 128-bit identifier, and the span ID is a 64-bit identifier. These are encoded in a hexadecimal representation on the wire (so can be represented by text). This change is so that trace/span IDs can be compatible with both tracing systems.
eg: https://github.com/honeycombio/beeline-go/pull/113 and https://github.com/honeycombio/beeline-go/pull/110
Possible improvements:

Change trace and span IDs to String type, and generate IDs compatible with W3C
Support X-Honeycomb-Trace header format
Support W3C trace header format (actually I'm hoping to use this format, as it makes it much easier to interoperate with other services that don't directly support Honeycomb)
Some Beeline implementations also now support AWS X-Ray headers inbound, but I don't really care about it 😄
It would be nice to be able to configure which serialization is used for inbound or outbound requests, but not clear if that should be in this library, or in http4s integration.

Hi Gary, sorry for the delay. This all seems reasonable to me. Back when I wrote this part there was no specification for any of this so I just made it up.


Feature: Blacklist

Describe your feature request or suggestion in detail
Any plan too stop items like tools from going into bank?
Describe a possible solution to your feature or suggestion in detail
No response
Additional context
No response

Done in https://github.com/silviu20092/mod-improved-bank/commit/5bc00db75adff8b1df13ebeafe9b1be09ced6f7d

Very nice. Thanks so much!


Interactive Sum

I have forked the project and implemented the SUM method (for the interactive) because there is a TODO on the linq.hpp (https://github.com/Reactive-Extensions/RxCpp/blob/master/Ix/CPP/src/cpplinq/linq.hpp#L474)
One can see my implementation at:
https://github.com/xunilrj/RxCpp/blob/feature/sum/Ix/CPP/src/cpplinq/linq.hpp#L474
If this implementation is of interest, I can improve it (any suggestions?) and make a PR.

looks good to me!
Please do submit as a PR. Just make sure to restore all the tests so that the new tests for sum are added to the original tests instead of replacing them.
Thanks!


Red boxes around unicode characters

When I write code the includes unicode characters in IJulia, those characters are wrapped in red boxes when I export to PDF or "print preview".
I asked the IPython group, since I had seen a similar issue there (when using Python 3 which also allows unicode characters). https://github.com/ipython/ipython/issues/5536#issuecomment-98808432
They said the problem is in the parsing done by pygments.

@malmaud, didn't you look at this at one point?

If memory serves, I did encounter this problem but didn't fix it. It is indeed a problem with the Julia pygments lexer and should just be a matter of changing a regex. I'll submit a PR to pygments.

Thanks!

It looks like Pygments might already have an open issue for this, but it doesn't look like anyone is working on it currently.
https://bitbucket.org/birkenfeld/pygments-main/issue/1074/square-boxes-around-unicode-characters-in
I took a quick look at the Python3 lexer, which does support Unicode characters. It looks like the fix might be as simple as adding "flags = re.UNICODE" to tell the python regex parser to allow unicode characters.
I haven't tested the change yet though.

I created a PR on bitbucket that solves this:  https://bitbucket.org/birkenfeld/pygments-main/pull-request/471/support-unicode-identifiers-in-julia/diff

Yay!
Unicode code points go up to 0x10ffff; is it possible to allow characters beyond 0xffff in the name regex?

Yes it is.
On Mon, May 25, 2015 at 2:33 PM, Jiahao Chen<EMAIL_ADDRESS>wrote:

Yay!
Unicode code points go up to 0x10ffff; is it possible to allow characters
beyond 0xffff in the name regex?
—
Reply to this email directly or view it on GitHub
https://github.com/JuliaLang/IJulia.jl/issues/308#issuecomment-105285826
.

I tried out the new pygments lexer. It seems like it is no longer putting red boxes around unicode characters in an IJulia notebook, but now it is putting boxes around '#' characters

Forward progress :)

Should work now.

Thanks! Works great for me now.

Thank you! The fix works great.

Unfortunately, my PR on pygments doesn't seem to be getting attention despite my efforts. Maybe we should consider locally patching pygments?

Just ask the Julia ML, tweeter spheer to DDoS of +1.

Should I start livetweeting this PR like I did JuliaCon? Please advise :smile:

Thanks @Carreu!

I get no red boxes but notice how :\theta is not highlighted the same ways as :W. Should I open a new issue here, or on pygments?
IJulia                        1.1.7

Can you open an issue on pygments and link to it here?
On Thu, Oct 15, 2015 at 5:15 AM damiendr<EMAIL_ADDRESS>wrote:

I get no red boxes but notice how :\theta is not highlighted the same
ways as :W. Should I open a new issue here, or on pygments?
IJulia 1.1.7
[image: capture d ecran 2015-10-15 a 12 12 37]
https://cloud.githubusercontent.com/assets/1659790/10510912/1db056dc-7336-11e5-8673-04ec7f86ea81.png
—
Reply to this email directly or view it on GitHub
https://github.com/JuliaLang/IJulia.jl/issues/308#issuecomment-148342797
.

Done: https://bitbucket.org/birkenfeld/pygments-main/issues/1159/parsing-of-symbols-with-unicode-characters


sample_data_control

This change is

https://github.com/Ipuch/bioptim/blob/fe0d8c04621d8fc06f608b58132b602156931e7b/bioptim/dynamics/integrator.py#L8-L25
Allow u_sym to be a empty list as well ?


Fix for incomplete path to slate.svg font

Fixed path pointing to root of slate folder instead of fonts within it for slate.svg.

Hope you don't mind, since you're deprecating shins, I created slanted. The ideal is that it is just a simple wrapper around Slant. This commit fixes an issue I found when inlining web resources.

Thanks for the PR. The fix LGTM.

Hope you don't mind, since you're deprecating shins, I created slanted. The ideal is that it is just a simple wrapper around Slant. This commit fixes an issue I found when inlining web resources.

Of course I don't mind, but... I'm not sure I totally see the reason. Why do you feel Slant needs a wrapper? It isn't a library, it has it's own CLI and uses the eleventy framework. Slanted doesn't seem to export the serve mode of Slant, which is the primary development mode. There are only 78 lines of JS code to implement Slant, but 269 lines of TypeScript in Slanted.
When people (with good intentions) created wrappers around Widdershins and Shins, they soon became outdated, and did not expose all options of the underlying projects. Which, I admit, I found frustrating.
I would love to have any additional features you're working on implemented as eleventy plugins (if they don't already exist), and perhaps move the small amount of JS code in Slant to TypeScript if you feel this is necessary/desirable. That is, would you like to work on Slant / the Slate v3 technology preview itself?
PS: Slant might be changing its name. There is already a slant npm module (I should have checked first). Then Slant (under whatever name) would itself be published to npm.

You're very fair. Why a wrapper? The company I work for recently started using widdershins and shins in a pipeline to generate documentation from OpenAPI definitions in our repositories. This project appeared to require forking in order to generate documentation. I wanted to be able to use it programmatically to generate docs as a build step within our pre-existing repositories, without forking.
I certainly understand the frustration of downstream wrappers not exposing all the features. I would be more than happy to contribute here, especially if the goal of Slant (and whatever name it takes) as a CLI is to generate docs with or without forking. Tomorrow or Thursday, I could cut a branch and add to this repository some of the functionality I wrote for slanted (clearly not the part that downloads and caches the Slant repo 😃).

Thanks for the additional background. In an ideal world Slant should be usable without forking or using the original repo as a template. Looking forward to future PRs!
Merging this one, thanks again.


added first set of unit tests

@joneit @Dwaynekj check it out, nothing super involved but a basic harness.
Will be back for some selection model tests.

Shape tests are a good start?


plugin.state.bot.user IRCUser.class_ isn't being updated

They're always set to anyone.
-- IRCUser
        string nickname    "zorael"(6)
        string alias_      ""(0)
        string ident       "~NaN"(4)
        string address     "2001:41d0:2:80b4::"(18)
        string account     "zorael"(6)
        string badge       ""(0)
        string colour      ""(0)
         Class class_       anyone
          long lastWhois<PHONE_NUMBER>
           int refcount     0

It was being updated; it was merely not taking Class.admin into account (not looking up state.bot.admins).
Fixed in 797198856a3ba3b73535bae24ba214d57050192e.


feature: handle client error and repair

Signed-off-by: lowzj<EMAIL_ADDRESS>Ⅰ. Describe what this PR did
dfget reports downloading errors to supernode, supernode checks and repairs local data automatically, currently repair these client errors:

FILE_NOT_EXIST
FILE_MD5_NOT_MATCH

Ⅱ. Does this pull request fix one issue?
fixes #545
fixes #311
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #582 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #582   +/-   ##
=======================================
  Coverage   47.34%   47.34%
=======================================
  Files          97       97
  Lines        5544     5544
=======================================
  Hits         2625     2625
  Misses       2702     2702
  Partials      217      217

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 611d954...938eeec. Read the comment docs.

LGTM.


Map updated after being added to the mappack becomes Pending

The request that gets map information from the mappack is currently not returning the map status. Until this is resolved, I'll be manually approving the updated maps (if still unbeaten), because checking the status of each map separately is too expensive.

Can be solved with the new method from v2 API, which will launch soon
https://api2.mania.exchange/Method/Index/53

Actually can't be solved since the new api doesn't provide a way to list pending maps (and no way to manage maps anymore 😢)


Update Dashing to use FontAwesome 4.3.0

This pull request is the update to FontAwesome 4.3.0.
I have replaced the font files and fontawesome css file (with a minor update for the paths to the fonts).
I have updated the few places that the old icon- fontawesome class names were used with the new fa- format (and the changed icon names as appropriate).
Please let me know if I've missed anything, but this should mean the base install of Dashing works fine - 3rd party widgets may need updating to use the new FontAwesome class names.

Hope this gets merged :+1:

This would have breaking changes -- but the migration path is likely a simple Find All & Replace.

Pardon my ignorance here (probably a simple Q) but... has this been merged into the master yet? and if not.. whats the easiest way to implement it?
I'm looking to re-install my dashing VM, and I remember there was "a lot of find and replace" to get this rolling! Is this still the case today, or has something more streamlined been introduced, since this happened in February?
Thanks.

This hasn't been merged.
If you install the dashing gem from that fork, you should be up and rolling with the latest font-awesome.
If you had any custom widgets, they would need to be updated to use the new fa- prefixes. This is the main concern with merging this PR, is that 3rd party widgets would need to be updated.
However, we will eventually need to do this...

A year on and no merge! :-1:
This pull request is out of date itself now as FontAwesome is now at version 4.5.0!

Superseded by new PR #687 for FontAwesome 4.5.0


Only listen for mouse events on desktop

Fixes an issue whereby buttons would enter the hover state on mobile browsers after the touchend event was received, instead of going back to the default state. This was happening because the default behaviour of the browser is to simulate a series of mouseenter/down/up events immediately after the touchend event, in order to ensure that websites that don't explicitly listen for touch events will still work on mobile (see here for reference). Due to this, the following sequence of events is received:
touchstart
touchend
mouseenter
mousedown
mouseup

Because the mouseenter event is received after touchend, the button was entering the hover state. We can avoid this by only listening for mouse events when running on a desktop browser, and vice versa.
An alternative fix would be to call event.preventDefault() on the touchend event. However, as we have our touchend listener marked as passive, we're not currently able to do this. Setting passive to false is an option, but given that its intention is to improve performance (albeit largely related to scrolling performance, which perhaps doesn't apply to us so much), I figured this change would be better.
I confirm I have signed the Contributor License Agreement.

Ah, interesting – great point. So perhaps we need to go with the preventDefault() solution I mentioned in the description? Or alternatively, perhaps we could modify element-input.js to provide an additional set of standardised events (i.e. called just down, up etc), which could also handle de-duplication in this scenario.

Hmmm, I'm not against either, I think it'd be better to use common browser event names but if that's going to affect performance in a way that the user can actually feel it then maybe we should do custom events.. I'd try preventDefault first personally.

Updated to use preventDefault(). What's the best way of testing this – do we have a large/complex project we can test with?

I can't really think of a project with a lot of UI input. It should be fine mainly I think it's about whether mouse+touch enabled devices are still going to work OK. You could try something like Master Archer, I can add you if you give me your playcanvas username.


Update elastic 5.6.9

Updating for elasticsearch_5.6.9

Moved to https://github.com/mesosphere/dcos-commons/pull/2536.


add other example notebooks with different use cases

add 1-2 new notebooks with other types of use cases, which can be used in group work after the introduction. Include also R and octave/matlab notebooks

possible additional usecases are now demonstrated in the exercises notebook, among which the learners can pick from during the last exercise session. closing


Add TypeScript module support

Add TypeScript support
Please rebuild (npm run build) and dist (npm run dist) again.
Example use
import temml, { type Options } from 'temml';

const tex = "c = \\pm\\sqrt{a^2 + b^2}";
const temmlOptions: Options = {};
temml.renderToString(tex, temmlOptions);

more example: https://github.com/ntsd/svelte-tex/blob/main/src/lib/MathML.svelte
Node prefers to add more types.

@ronkok, I did update the wrap type and defined the export functions type (still have any type but should have no problem).
Also, the commit includes JSDoc on the dist folder.
I am using Temmel on this module https://github.com/ntsd/svelte-tex the type is working fine.

Looks good to me. Thank you, @ntsd  and @Trildar.


THE GITHIB COMMUNITY IS THE PROBLEM
NOTHING HERE WORKS BECAUSE OF YPU PEOPLE

Instead of going on a meaningless rant, how about providing some actual information to debug the issue.

Yeah , I had to let that out after being mislead about the google sheets TypeError.  This thread claims the TypeError is an error with the data type used by google sheets. This is not true the error is caused because the spreed sheet object is undefined and the values.get method is being called from a null instance. I do not like being mislead because every project I work on I can never get any help even with simple components, and this community yaps on and on about how awesome open source is and I have never used code from the open source community                                                                                ----> " for decades my open source has been VS Code's boiler plate !" <-----                                                                                The GitHub community won't even help you with simple templates far less for components .  No wonder there is a movement within the developer community that refuses to use third party software (i.e GitHub software).  Simple pieces of code snippets developers need and use all the time cannot be found on Github! Be careful not everything you read on Github is true.

There's not some vast conspiracy out there... Sometimes errors that node/js throw can be misleading or confusing. Take things one step at a time and confirm your assumptions about what is going on. If people gave you bad answers, it's probably because they just didn't understand your problem, not because they are trying to mislead you. Learning how to ask questions clearly and debug things with a community of strangers is a skill that takes many years of practice.
Anyway, I hope you keep learning and trying to grow as a devleoper, but if you continue to have this attitude towards the others that build the software you use (whether you realize it or not) you won't get very far.
I don't see any other issues opened by you stating your problem, but I'm sure if you open one with some info, myself or some others will be happy to try to help.

You are the first person on GitHub that has ever offer me help and so really am unsure that  will help ! I have opened a discussion on the community page under software development. I am building an app for my country that lists all shops and list all products from each shop in my country. In my app I had to do everything from scratch for myself I could not get help with even a button from the GitHub community.  I don't use open source you people make me hate open source I make my own source and I hope that Microsoft is going to buy all open source one day like they did with mySQL !   I just want a simple jsx footer or contact page and I cannot believe how useless GitHub and the open source community is with this !

Lol, I stumbled on this issue randomly. Really funny to read. Anyway, props for being so patient @theoephraim, and thanks for the hard work you put into this repo. 🥇

BUNCH OF FEMBOYS
On Wed, May 18, 2022 at 4:39 AM Jasper Verbeet @.***>
wrote:

Lol, I stumbled on this issue randomly. Really funny to read. Anyway,
props for being so patient @theoephraim https://github.com/theoephraim,
and thanks for the hard work you put into this repo. 🥇
—
Reply to this email directly, view it on GitHub
https://github.com/theoephraim/node-google-spreadsheet/issues/538#issuecomment-1129733279,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEBBTLWU4DKBKZVIKQEXUALVKSUCHANCNFSM5NTIFMIA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Automated cherry pick of #788

Cherry pick of #788 on release-0.6.
#788: Upgrade default Kubernetes version to 1.12.7

/lgtm


Shader System

Currently, only Phong shader is supported. Therefore, implement options to use other shaders like OpenPBR Surface Model.

Hot reload glsl shader: https://antongerdelan.net/opengl/shader_hot_reload.html


How can I use RedCarpet without CodeRay to implement markdown in my blogs?

So I have patiently tried for some time to work with CodeRay to implement markdown in my blogs. It worked for awhile, but then it would break my blog page with a 500 error.
The CodeRay.scan was identified as the culprit:
class CodeRayify < Redcarpet::Render::HTML
		def block_code(code, language)
			CodeRay.scan(code, language).div
		end
	end

but even after I refactored the code to look like this:
class CodeRayify < Redcarpet::Render::HTML
		def block_code(code, language)
			CodeRay.scan(code, language || :text).div
		end
	end

I am still having the same problem even though I make sure that I do not have backticks at the beginning of the sentence and that I am implementing markdown correctly in my blogs.
I get errors like this:
2017-11-28T23:22:11.456525+00:00 app[web.1]: I, [2017-11-28T23:22:11.456458 #4]  INFO -- : [d03d5e9e-c3c3-4117-85db-d80bd30d9178] Completed 500 Internal Server Error in 38ms (ActiveRecord: 8.5ms)
2017-11-28T23:22:11.457321+00:00 app[web.1]: F, [2017-11-28T23:22:11.457251 #4] FATAL -- : [d03d5e9e-c3c3-4117-85db-d80bd30d9178]
2017-11-28T23:22:11.457384+00:00 app[web.1]: F, [2017-11-28T23:22:11.457321 #4] FATAL -- : [d03d5e9e-c3c3-4117-85db-d80bd30d9178] ActionView::Template::Error (Invalid id given: console.log("Hello!");```):
2017-11-28T23:22:11.457592+00:00 app[web.1]: F, [2017-11-28T23:22:11.457534 #4] FATAL -- : [d03d5e9e-c3c3-4117-85db-d80bd30d9178]     4:
2017-11-28T23:22:11.457593+00:00 app[web.1]: [d03d5e9e-c3c3-4117-85db-d80bd30d9178]     5:     <% render partial: 'blogs/admin_actions', locals: {blog: blog} %>
2017-11-28T23:22:11.457595+00:00 app[web.1]: [d03d5e9e-c3c3-4117-85db-d80bd30d9178]     6:
2017-11-28T23:22:11.457595+00:00 app[web.1]: [d03d5e9e-c3c3-4117-85db-d80bd30d9178]     7:
<% markdown blog.body %>

2017-11-28T23:22:11.457596+00:00 app[web.1]: [d03d5e9e-c3c3-4117-85db-d80bd30d9178]     8:
2017-11-28T23:22:11.457597+00:00 app[web.1]: [d03d5e9e-c3c3-4117-85db-d80bd30d9178]     9:

2017-11-28T23:22:11.457648+00:00 app[web.1]: F, [2017-11-28T23:22:11.457586 #4] FATAL -- : [d03d5e9e-c3c3-4117-85db-d80bd30d9178]
2017-11-28T23:22:11.457718+00:00 app[web.1]: F, [2017-11-28T23:22:11.457654 #4] FATAL -- : [d03d5e9e-c3c3-4117-85db-d80bd30d9178] app/helpers/blogs_helper.rb:8:in `block_code'
2017-11-28T23:22:11.457719+00:00 app[web.1]: [d03d5e9e-c3c3-4117-85db-d80bd30d9178] app/helpers/blogs_helper.rb:23:in `render'
2017-11-28T23:22:11.457720+00:00 app[web.1]: [d03d5e9e-c3c3-4117-85db-d80bd30d9178] app/helpers/blogs_helper.rb:23:in `markdown'
2017-11-28T23:22:11.457721+00:00 app[web.1]: [d03d5e9e-c3c3-4117-85db-d80bd30d9178] app/views/blogs/_blog.html.erb:7:in `_app_views_blogs__blog_html_erb__2572357733169721276_60667300'
2017-11-28T23:22:11.457721+00:00 app[web.1]: [d03d5e9e-c3c3-4117-85db-d80bd30d9178] app/views/blogs/index.html.erb:5:in `_app_views_blogs_index_html_erb__3522254122931434539_63043240'

This is how I am writing markdown on my Javascript blog:
Below are examples of four primitive data types that lay the foundation for all JavaScript programs. Primitive data types, as their name implies, are the simplest built-in forms of data. For example:
console.log('New York City');
console.log(40.7);
console.log(true);
console.log(null);

This is the correct way to do it, why do I get an error? According to heroku logs in the past, this is the problem:
CodeRay.scan(code, language).div
but even if I change it to this:
CodeRay.scan(code, language || :text).div
I still get the same problem. So I am wondering how can I just implement RedCarpet into this code below without CodeRay:
module BlogsHelper
	def gravatar_helper user
		image_tag "https://www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user.email)}", width: 60
	end

	class CodeRayify < Redcarpet::Render::HTML
		def block_code(code, language)
			CodeRay.scan(code, language || :text).div
		end
	end

	def markdown(text)
		coderayify = CodeRayify.new(filter_html: true, hard_wrap: true)

		options = {
			fenced_code_blocks: true,
			no_intra_emphasis: true,
			autolink: true,
			lax_html_blocks: true,
		}

		markdown_to_html = Redcarpet::Markdown.new(coderayify, options)
		markdown_to_html.render(text).html_safe
	end

	def blog_status_color blog
		'color: red;' if blog.draft?
	end
end

Hello @ldco2016,
I'm sorry but I can't reproduce this error on my machine. Are you able to reproduce this problem locally as well as on Heroku ? Which Ruby and Redcarpet version are you using ?

Hi there,
I'm closing this due to inactivity. If you can come up with an application that reproduces the problem or can isolate a reproduction script, please do comment and we can reopen this ! Thanks for reporting anyway !


[stress] Create a Docker image for the fault-injector

Azure Storage uses the fault injector during their tests. Having a Docker image that can be re-used removes cruft from Docker file that need to install it and is just good practice.
This should be uploaded to a common and stable container registry as we'll be referencing it in our stress test jobs.

Fixed in #7199


Completely remove the RT sections of this crate

Expose atomic emulation parts only.

Released as 0.4.


Support events as transparent as possible

Idea

Transform the event to make it suitable for serialization (remove/change some props, like the current DOM element which is not serializable)
Put this into the detail property of the Remote Event
On the remote side: lift up everything from the detail property to make it accessible at the root level


Rose requires module in profile

resolution_fixed   |    by<EMAIL_ADDRESS>

Issue migrated from trac:34 at 2024-01-31 17:26:03 +1100

ibc599 commented

Profile on raijin needs to include module load rose

<EMAIL_ADDRESS>commented

Cylc has a similar thing, you can specify a command to run at the start of the job script to set up your environment.
Should be something like
[runtime]
    [[root]]
        initial scripting = """
module use ~access/modules
module load cylc
"""

ibc599 changed _comment0 which not transferred by tractive

ibc599 commented

Add to user documentation on how to use rose/cylc

ibc599 commented

Rose has a configuration item that can be used instead of module load rose.
Eg.
[rose-home-at]
raijin.nci.org.au=/projects/access/apps/rose/2014-01-22
ngamai.bom.gov.au=/g/sc/ophome/access/apps/rose/2014-01-22
Is there one for cylc?

<EMAIL_ADDRESS>commented

Hrm, something must have changed then, or I've got the incorrect parameter. I know in the past there's been a parameter that executes before any cylc commands

ibc599 commented

Looks like Rose gets the work and run directory from the cylc configuration.

ibc599 commented

Rose calls "cylc get-global-config" before the initial scripting command. So unless "module load cylc" is in people's profile it wont know where cylc is installed.

<EMAIL_ADDRESS>commented

Oh you're saying that Rose is doing the cylc command, I was thinking of a plain cylc job
Why's Rose running that command?

ibc599 commented

Just notice the config item,
[rose-home-at]
raijin.nci.org.au=/projects/access/apps/rose/2014-01-22
is only good for the initial ssh call. Any further task that calls "rose task-run" inside the suite will fail, since rose is not in $PATH on the remote host.

ibc599 commented

Do people still need to add ~access/bin to their profile?

<EMAIL_ADDRESS>commented

I would assume it would be enough to do
[rose-home-at]
raijin.nci.org.au=/projects/access/bin

You would need to make sure that the real rose is in front of ~access/bin in PATH, the module should handle that though.
I expect the commands would look like:

rose@accessdev runs something like 'ssh raijin /projects/access/bin/rose COMMAND'
/projects/access/bin/rose loads the modules and runs ~access/apps/.../rose COMMAND
~access/apps/.../rose runs further rose commands, getting the correct rose environment from the wrapper module

<EMAIL_ADDRESS>commented

Hrmm...
Random idea - could we create a rose wrapper that loads the relevant modules then forwards the command to the real rose? I think NCI do that for some of the compilers.
E.g.
#!/bin/bash

# Rose wrapper script
# Loads the rose & cylc modules then forwards the command to the real Rose

module use ~access/modules
module load rose
module load cylc

rose $*

And put that in ~access/bin?

ibc599 commented

I've created the rose wrapper file in /projects/access/bin and added the configuration item on accessdev
[rose-home-at]
raijin*=/projects/access/

People can now remove "module load rose" and "module load cylc" from there profile.
However, people will still need to include the following lines in the suite.rc to ensure rose and cylc are accessible.
[runtime]
    [[root]]
        initial scripting = """
module use ~access/modules
module load cylc
"""

ibc599 changed status from new to closed

<EMAIL_ADDRESS>removed milestone (was accessdev v1.0)

ibc599 changed resolution from `` to fixed

<EMAIL_ADDRESS>commented

Milestone accessdev v1.0 deleted


fix: sonar maintain linting #1

Description

Addresses some sonar issues marked as "maintain"
Promisifies some non-async methods
Adds readonly properties to various classes that are not modifying them

@tomwisecodes could you check the tabindex change is okay? Sonar recommends only using -1 and 0. I'm not sure why this is appearing on both these PRs

:tada: This PR is included in version 1.17.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Update the Azure Functions publish to use Zip Deploy instead of FTP

Work being done to update the Java SDKs to support Zip Deploy instead of FTP -- in conjunction with this we need to update the publish job for Azure Functions to use Zip Deploy.  Provides perf benefits and deployment benefits all-up.
@davidebbo as FYI who I believe is coordinating with the Java SDK team according to Asir

Thank you for the feedback @jeffhollan. 👍
just want to close this issue since it's duplicated with #179. Let's track this in #179.
We will implement zipDeploy when the API is available in Azure management lib for Java. @lenala is now working on that.


Reconcile var_list across all wrappers and call parse_var_list fewer times

series by lead and series by init still use the old method of describing variables to be read in the conf files.
VAR_LIST = TMP/P850, HGT/P500
We should change this to use the FCST/OBS_VAR1_NAME, FCST/OBS_VAR1_LEVELS format so they are consistent with the other wrappers' config:
FCST_VAR1_NAME = TMP
FCST_VAR1_LEVELS = P850
FCST_VAR2_NAME = HGT
FCST_VAR2_LEVELS = P500
I am not sure if FCST or OBS is appropriate for these variables, but that is how the other wrappers are handled.
I also noticed that util.parse_var_list is being called once for each run time of each wrapper. This is not necessary. We can either have each wrapper that needs the var list to parse it when it is initialized, or we can parse it in master_metplus and pass in the list to each wrapper whether they need it or not.

Hi George,
If you want, you can make the changes in those wrappers since I’m off doing AF and GMTB tasking- if this needs to be done soon.  I have a few GitHub issues I’m trying to “wrap up” (no pun intended).
If this can wait, I can make these changes.
Thanks,
Minna
Sent from my iPad

On Nov 9, 2018, at 4:58 PM, georgemccabe<EMAIL_ADDRESS>wrote:
series by lead and series by init still use the old method of describing variables to be read in the conf files.
VAR_LIST = TMP/P850, HGT/P500
We should change this to use the FCST/OBS_VAR1_NAME, FCST/OBS_VAR1_LEVELS format so they are consistent with the other wrappers' config:
FCST_VAR1_NAME = TMP
FCST_VAR1_LEVELS = P850
FCST_VAR2_NAME = HGT
FCST_VAR2_LEVELS = P500
I am not sure if FCST or OBS is appropriate for these variables, but that is how the other wrappers are handled.
I also noticed that util.parse_var_list is being called once for each run time of each wrapper. This is not necessary. We can either have each wrapper that needs the var list to parse it when it is initialized, or we can parse it in master_metplus and pass in the list to each wrapper whether they need it or not.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi Minna,
This is not an urgent fix, so it can wait until you have time. The functionality works fine, it would just be nice to reconcile differences between wrappers so we are consistent. I'll assign the issue to you.

@bikegeek let me know when you complete this task. I want to move the call to parse_var_list so that it is not called for every wrapper for every run time. It will be easier to do this once all of the wrappers are using the var list in the same way. Again, no rush

Some functionality still uses VAR_LIST instead of [FCST/OBS]_VAR[N]_NAME/LEVEL.
feature_util.py
series_by_lead_wrapper.py
series_by_init_wrapper.py

I noticed there are INIT_INCLUDE and INIT_EXCLUDE config variables in these wrappers. Is this something we want to support for all? If so, we should modify met_util.py loop_over_times_and_call() method to to check if the current runtime corresponds to the exclude value and skip it. I am not sure how INIT_INCLUDE is intended to work.

All wrappers have migrated to using the [FCST/OBS]_VAR[N]_NAME/LEVEL] since METplus v2.0.
This is no longer an issue.

The wrappers I mentioned previously use VAR_LIST to describe variables in v2.1. Also, parse_var_list is still being called for every run time when it only needs to be called once. This work has not been completed.
feature_util.py:    var_list = util.getlist(cu.getstr('config', 'VAR_LIST'))
series_by_init_wrapper.py:        self.var_list = util.getlist(self.config.getstr('config', 'VAR_LIST'))
series_by_lead_wrapper.py:        self.var_list = util.getlist(self.config.getstr('config', 'VAR_LIST'))

CommandBuilder now calls create_c_dict in the init function, so as long as a wrapper is calling the super init function, it will have access to self.c_dict which will contain an item called 'VAR_LIST' that contains a list of field information. This list is generated from met_util's parse_var_list function. Individual wrappers will no longer have to call this method to get this information -- fcst and obs (and sometimes ens) name, level thresh, and extra options.
Note: the files listed above still use the VAR_LIST config variable instead of parsing [FST/OBS]VAR[NAME/LEVEL].

@bikegeek , are you able to get this done for the 3.0 release? It would be great to deprecate VAR_LIST before then.

George will work on the met_util.py parse_var_list() to support VARn_LEVEL, VARn_NAME and then I can incorporate any necessary changes to the feature_util.py:

modify retrieve_and_regrid() to invoke parse_var_list() instead of feature_util.py's retrieve_var_info
make necessary changes to the feature_relative use case conf files

Modifications made to series_by_init_wrapper.py, series_by _lead_wrapper.py, feature_util.py, met_util.py (removal of unnecessary/no longer used function), feature_relative.conf, series_by_init_12-14_to_12-16.conf, series_by_lead_all_fhrs.conf, and series_by_lead_by_fhr_grouping.conf.
Changes committed to feature branch, then merged to the 'develop' branch.

Made changes to met_util.py parse_var_list to require FCST and OBS vars be set, or BOTH can be used instead. Merged into develop.

ToDo:  In the series_by_init_wrapper.py and series_by_lead_wrapper.py, create another function that cleans out just the files in the users TMP directory, rather than deleting and re-creating a new TMP directory.

instead of doing the above, see GitHub Issue #341

updated met_util.py check_for_deprecated_config() to check for VAR_LIST, EXTRACT_VAR_LIST, and SERIES_ANALYSIS_VAR_LIST

@bikegeek 's comment reminded me that we should test the validate_config.py script to make sure it handles VAR_LIST correctly. Other config variables that include VAR_LIST in the name still exist, like PB2NC_OBS_BUFR_VAR_LIST. The script should only try to replace VAR_LIST if it is found at the beginning of a line or if it is surrounded by {}s meaning it is referenced in another config variable.
I also noticed there are FCST_[VAR/LEVEL]LIST OBS[VAR/LEVEL]_LIST in StatAnalysis and MakePlots wrappers. I am not familiar with those but they may be able to be replaced with [FCST/OBS]VAR[NAME/LEVEL]

I just looked at the deprecated variable list. If the variable cannot be simply renamed, you have to add 'copy': False to the dictionary for that item. Otherwise METplus will try to replace the value. I made the changes to fix this.

Closing this ticket because I believe it is complete. Please reopen if there are other outstanding tasks related to this iseue.


DOC: Example to replicate variance swap by options

https://github.com/pfnet-research/pfhedge/pull/435

resolved by #435


GitHub Pull Request widgets and a custom query.

I am using the GitHubPullRequests Home widget and can see the ability to override the query parameter to modify the Github Query.
I am trying to set the query based on the metadata.name field - for example:
is:open is:pr archived:false team-review-requested:${entity.metadata.name}
The idea being that I could use the widget on a group entity page and list all of the PRs assigned to that team.
However I am struggling to get a dynamic query string into the EntitySwitch statement:
<Grid item xs={12}>
  <HomePageRequestedReviewsCard title="Pending Review Requests" query=<?>/>
</Grid>

Any ideas if this is possible or does the EntitySwitch logic mean this is not possible?

I'll need to check this, it is certainly possible that in the current implementation it won't work in a group page, but I like the idea to add it there!

My thought was that on a User Page it could be added to show the Pending PRs for that individual - if the metadata.annotation.name for the User (or a different field) within the entity could be used to lookup in GitHub.
The same for the Group Page - find all reviews pending on a specific team within Github - when you could match to the metadata.name or maybe use github.com/team-slug
Then the homepage can use the current default query string.
I have been exploring - but struggling to get the entity object.

Continuing my exploration - and I am confused (first time with Backstage plugins) - It appears that on a HomePage I dont have access to the entity object (via useEntity or useAsyncEntity).
The same component on a Component Page works fine - trying to work out how I can detect if I am on one page or the other.
If not I will create 2 new widgets that are embeddable cards that can be used on Entity pages.

Oh, yea, the homepage has no access to the entities. I believe it is not under the entity context or something.
I think it is cleaner if we create separate components for this!


[Feature] 'composite' support

Is your feature request related to a problem? Please describe.
It would be nice if the library supported the composite option, like the web animation API does.
Describe the solution you'd like
That composite 'add' and 'accumulate' (or at least 'add') was supported besides 'replace'.
Sometimes I have two animations play at the same time and they change the same property (x, y, opacity, etc). My current solution is having nodes stacked so both animations don't interfere too much with one another, but if the library were to support other composite modes then I'd not need several nodes for a same object.

Looks like the only holdout left is iOS Safari according to https://caniuse.com/web-animation. It says Safari v15 supports composite modes, which was released in July of 2024.


composer: smoke tests

Write smoke tests for composer that replicates how composer would interact with sequencer-relayer and the rollup transaction pools in an e2e pipeline
Subtasks

[x] Mock a Provider that replicates behavior of a Provider that fetched data from a rollup transaction pool
[x] Mock Sequencer-Relayer client such that the composer can react to responses given by it
[ ] Replicate possible scenarios that might occur on an e2e pipeline

#192 includes these


[DOCFIX] Update the File-System-API page of Chinese documentation

Update the File-System-API page of Chinese documentation with the English version.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8963/
Test PASSed.

Thanks for the doc update!

LGTM


Move docker images into separate repos - and register with DockerHub

https://github.com/data-science-on-aws/spark-deequ


Enable CD

https://github.com/jenkins-infra/repository-permissions-updater/pull/2935 has been submitted to enable continuous delivery.

jenkins-infra/repository-permissions-updater#2935 has been submitted to enable continuous delivery.

Merged and I've confirmed that the necessary items are visible in the settings of this repository.  I'd like to merge #35 before this is merged

Ready to ship?


Calling TextController.clear() raises exception

Steps to Reproduce
Call _textController.clear(); in an event handler.
void _handleSubmitted(String text) {
 _textController.clear();
}

This used to work, see the example in the CodeLab: https://codelabs.developers.google.com/codelabs/flutter/index.html#4
Logs
E/flutter (10914): [ERROR:../../lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (10914): PlatformException(error, setSpan (-1 ... -1) starts before 0, null)
E/flutter (10914): #0      JSONMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:145)
E/flutter (10914): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:154)
E/flutter (10914): <asynchronous suspension>
E/flutter (10914): #2      OptionalMethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:228)
E/flutter (10914): <asynchronous suspension>
E/flutter (10914): #3      TextInputConnection.setEditingState (package:flutter/src/services/text_input.dart:248)
E/flutter (10914): #4      EditableTextState._updateRemoteEditingValueIfNeeded (package:flutter/src/widgets/editable_text.dart:342)
E/flutter (10914): #5      EditableTextState._didChangeTextEditingValue (package:flutter/src/widgets/editable_text.dart:516)
E/flutter (10914): #6      ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:129)
E/flutter (10914): #7      ValueNotifier.value= (package:flutter/src/foundation/change_notifier.dart:184)
E/flutter (10914): #8      TextEditingController.clear (package:flutter/src/widgets/editable_text.dart:95)
E/flutter (10914): #9      ChatScreenState._handleSubmitted (file:///Users/philipp/IdeaProjects/chatty/lib/main.dart:164)
E/flutter (10914): <asynchronous suspension>
E/flutter (10914): #10     ChatScreenState._buildTextComposer.<anonymous closure> (file:///Users/philipp/IdeaProjects/chatty/lib/main.dart:154)
E/flutter (10914): #11     _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:229)
E/flutter (10914): #12     GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:67)
E/flutter (10914): #13     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:149)
E/flutter (10914): #14     TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:92)
E/flutter (10914): #15     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:268)
E/flutter (10914): #16     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73)
E/flutter (10914): #17     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101)
E/flutter (10914): #18     BindingBase&SchedulerBinding&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:127)
E/flutter (10914): #19     BindingBase&SchedulerBinding&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:105)
E/flutter (10914): #20     BindingBase&SchedulerBinding&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:86)
E/flutter (10914): #21     BindingBase&SchedulerBinding&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:45)
E/flutter (10914): #22     BindingBase&SchedulerBinding&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:38)
E/flutter (10914): #23     _dispatchPointerDataPacket (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:55)

Flutter Doctor
Running flutter doctor...
[✓] Flutter (on Mac OS X 10.12.5 16F73, locale en-US, channel alpha)
• Flutter at /Users/philipp/code/flutter
• Framework revision 3b6d84b083 (5 days ago), 2017-06-16 12:58:23 -0700
• Engine revision 784e975672
• Tools Dart version 1.24.0-dev.6.7
[✓] Android toolchain - develop for Android devices (Android SDK 25.0.3)
• Android SDK at /Users/philipp/Library/Android/sdk
• Platform android-25, build-tools 25.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.3.3, Build version 8E3004b
• ios-deploy 1.9.1
• CocoaPods version 1.3.0.beta.1
[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Gradle version 3.2
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.1.4)
• Flutter plugin version 14.0
• Dart plugin version 171.4694.29
[✓] Connected devices
• Moto G 5 Plus • ZY2242PN6T • android-arm • Android 7.0 (API 24)

This should have been fixed by https://github.com/flutter/engine/commit/e5b79ba63b92aa0c4299836f4433ec0de23b7cb3
(If you're on the alpha branch, try switching to master)

This is rolled out to alpha now

@jason-simmons That fixes it


Horizontal\Vertical animation implementation

Overview
Ive finished the VerticalAnimation and HorizontalAnimation implementation with some small refactorings
Changes

Horizontal\Vertical animation implementation
Base page to reduce code duplication (example project)
Load data command on base class to reduce code duplication (example project)
Some early return pattern refactorings
Page4 and Page5 creation
Removed Resource.Designer.cs from the git source

Preview

IOS

Android

We will release a new NuGet version including these changes


Placeholder: Send event on fatal application exception

This would be used to monitor when an application goes down and to be able to capture and identify critical issues without having to look at the logs of the application.

Migrated to https://github.com/snowplow/enrich/issues/95


Installation Doc Ubuntu packages

In /kivy/blob/master/doc/sources/installation/installation.rst  The Ubuntu section says to install libgl1-mesa-dev-lts-quantal, and  libgles2-mesa-dev-lts-quantal.   Both of which are not available in 15.04. I think it should have  libgl1-mesa-dev, and  libgles2-mesa-dev instead.

Just tested on my Vivid, can confirm.

@dec0dedab0de @dessant
this can be closed!

@mondayrain thanks :+1:


Wiill it be upgraded for .Net 8

Thanks for your great product , but will it be upgraded for .Net 8?

Is it not compatible with your .NET 8 Project?

I'm using BlazorCameraStreamer in a Web assembly project and I just upgraded it from .Net 7 to 8.  Now I'm getting the following error on Line 70 in CameraStreamer.js:
TypeError: Cannot read properties of null (reading 'play')

I'll continue to investigate but the only changes I made was to upgrade the .Net Framework and associated Nuget packages.

I can confirm this work in my .NET 8 Blazor Web App project. The only difference is that I had to add line "@using BlazorCameraStreamer;" in my .razor file
I tried to find solution to my problem so long.. and then wild baltermia appears and saves the day!

I can confirm this work in my .NET 8 Blazor Web App project. The only difference is that I had to add line "@using BlazorCameraStreamer;" in my .razor file
I tried to find solution to my problem so long.. and then wild baltermia appears and saves the day!

Hi @cvboucher did this solution change anything for you?

Hi @baltermia, yes I was able to get it working.  A Ctrl+F5 in the browser seemed to fix things.  Thanks.

The library seems to still work for .NET 8. I'm closing this issue since @sohnavcom provided no additional information and other users have offered possible solutions.


trickle demo: use bundle in gathering

The description "Gather unbundled RTCP candidates" is slightly misleading since googUseRtpMUX only affects bundle, not rtcp-mux. Also changes the default semantics so one has to turn this off.

Unbundled RTCP (i.e. the current state) will be the default for a PeerConnection, so I think that's the right thing to default to here as well.


Error when import and create images on Ubuntu because qemu-img

/!\ To report a security issue please follow this procedure:
[https://github.com/OpenNebula/one/wiki/Vulnerability-Management-Process]
Description
When we create images or import images from marketplace we get this kind of errors
Tue Feb 15 10:09:08 2022 : Error copying image in the datastore: 'qemu-img info' stderr: #<IO:0x0000556e0b7228c8> 'qemu-img info' output appears to be invalid.'               ' Cannot determine file type. Removing /var/lib/one/vcenter/one_9f82ad22-7beb-404e-9595-bf73e9c672bc/44/0.vmdk...

To Reproduce
Create or import images from Marketplace with Ubuntu
Expected behavior
Images should be imported and created with out errors
Details

Affected Component: [vCenter Driver]
Hypervisor: [vCenter]
Version: [master, 6.2]

Additional context
Add any other context about the problem here.

Progress Status

[x] Branch created
[x] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[x] Code committed to upstream release/hotfix branches
[x] Documentation committed to upstream release/hotfix branches

code: 0ad7fd7fab491e7d6b2728e259e8161b0f08fac4


量化训练

WARNING:root:cannot import name 'layers' from 'parl' (G:\anaconda\envs\paddle_slim\lib\site-packages\parl_init_.py)
G:\anaconda\envs\paddle_slim\lib\site-packages_distutils_hack_init_.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
2023-04-06 15:23:01,526-WARNING: post-quant-hpo is not support in system other than linux
Welcome to use FastDeploy Auto Compression Toolkit!
Finish Compression, total time used is :  0.0 seconds.

post-quant-hpo is not support in system other than linux

根据提示，目前只在Linux下支持post-quant-hpo量化训练哈


Notification missing after red risk check from foreground

Avoid duplicates

[ ] Bug is not mentioned in the FAQ
[ ] Bug is specific for iOS only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
[ ] Bug is not already reported in another issue

Technical details

Device name: iPhone 8
iOS version: 14.4.1
App version: 2.11.1 (0)

Describe the bug

Yesterday I opened cwa after returning home. It performed the risk check as usual - and the result was red!
However, I didn't see any notification with any warning.
Steps to reproduce the issue

open cwa
see the risk check with red result
get no notification

Expected behaviour
A notification on a changed risk result, regardless if the risk check was performed from the background thread or performed while cwa was open.

Possible Fix

Additional context

Internal Tracking ID: EXPOSUREAPP-9970

It will not block the notification.
We had exposure check at
"Timestamp" : "2021-10-11 09:15:38 +0200",
"Timestamp" : "2021-10-11 05:12:52 +0200",
"Timestamp" : "2021-10-10 21:38:01 +0200",
"Timestamp" : "2021-10-10 10:42:08 +0200",
"Timestamp" : "2021-10-10 10:31:57 +0200",
"Timestamp" : "2021-10-10 05:19:44 +0200",
And you say first check with "Übereinstimmende Schlüssel" >0 was at 21:38:01
When was you manual check/manual open of the app?

When was you manual check/manual open of the app?

I think it was about 2021-10-10 21:38 when I opened the app. The check was the first thing it did.
Sorry for the misleading answer and the resulting confusion

@thomasaugsten So I will get the notification only if the app performs the first red check from background?
Maybe there is a misunderstanding / wrong expectation on my side?
Will I get a notification in the following scenarios:
(A) red check is performed while the app is closed ( = from the background)
(B) last time I was using the Journal tab before I closed the app; now I start the app and it performs the red check, triggered from startup, but I see only the Journal tab, and I have no clue that I should check also the Home tab.
(C) I keep the app open at the Journal tab for several hours, and it performs the red check triggered by the timer

@ndegendogo
First when I read this issue I asked myself when you would want a push notification to be send, if the app's in foreground anyways.
But I think you bring up a valid point here:
If the app is opened on the contact journal tab (or on any other tab, besides from the start screen) and the app performs a risk check which finds an encounter with increased risk, the user has absolutely no clue that this happened.
AFAIK there is not push notification send if the app's open.
So, this is definitely a flaw and should be fixed.
There are two solutions I could imagine for this:

Show a push notification to the user
Show a red badge on the "Start Screen" tab if the exposure check finds an encounter with increased risk

@thomasaugsten Any opinion on this? Do you see the problem here too (user potentially unaware of infection risk as app does not inform about increased risk encounter when opened on another tab than start screen)?

This was an actual problem for this user: https://twitter.com/neuesausdemnest/status/1462503966328201221?s=21

Ok the user is missing a notification when they manually opens the app and not in the Home Screen of the app. The app will switch to red but if you stay in Zertifikate Screen you will not see this.

@thomasaugsten
Yes exactly. Will you bring this up so that this get's improved?

Ok the user is missing a notification when they manually opens the app and not in the Home Screen of the app.

In the very early days this could not happen, because there was only the home screen, and the first thing a user saw was always their current risk status
then the app was extended with many more functions, and the user interface restructured into several tabs (meanwhile 5 tabs). Still this was no issue, because the app opened always on the home tab.
but then the UI was improved, so now the app remembers the state of the app, especially the tab, and even the scrolling position. Since then it is very likely that you can miss the red status if you don't check actively.

I would appreciate very much a notification in any case as soon as the risk check turns red. Regardless if it was triggered from background, from opening the app regularly or by a "fast route", by a timer while the app was open, or even explicitely by the user pressing a button.

We created a story for this and will add this as soon as possible
https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-10683

#3956 is the fix for this.

@ndegendogo
Would you like close this issue? The feature was implemented in the latest release.

Closing as feature request is implemented.
Many thanks to the developers for picking this up and for the implementation. I am very sure that the users of cwa will appreciate this very much and that it meets their expectations.
I did't test it - luckily I am green currently, and hope this will stay green for the next time 🍀🍀

@ndegendogo Thanks for the proposal and your feedback!

Just tested it ...... works exactly as expected!
Thanks again!

@ndegendogo Thanks for your feedback! Forwarded to internal ticket.


Updated Code Make sure to make a backup of the old one If you're merging

👍 It's a bold starting point for ease of use and easier adding items etc

No we are gonna make a new repo for it

ah


Ribbon - RestTemplate Error

related to  #350 probably
I get this error:
Caused by: java.io.IOException: com.sun.jersey.api.client.ClientHandlerException: org.apache.http.client.ClientProtocolException
        at org.springframework.cloud.netflix.ribbon.RibbonClientHttpRequestFactory$RibbonHttpRequest.executeInternal(RibbonClientHttpRequestFactory.java:125) ~[spring-cloud-netflix-core-1.0.3.BUILD-SNAPSHOT.jar:1.0.3.BUILD-SNAPSHOT]
        at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53) ~[spring-web-4.1.2.RELEASE.jar:4.1.2.RELEASE]
        at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:568) ~[spring-web-4.1.2.RELEASE.jar:4.1.2.RELEASE]
        ... 122 common frames omitted
Caused by: com.sun.jersey.api.client.ClientHandlerException: org.apache.http.client.ClientProtocolException
        at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:184) ~[jersey-apache-client4-1.11.jar:1.11]
        at com.sun.jersey.api.client.Client.handle(Client.java:648) ~[jersey-client-1.11.jar:1.11]
        at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670) ~[jersey-client-1.11.jar:1.11]
        at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) ~[jersey-client-1.11.jar:1.11]
        at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:563) ~[jersey-client-1.11.jar:1.11]
        at com.netflix.niws.client.http.RestClient.execute(RestClient.java:621) ~[ribbon-httpclient-2.0.0.jar:2.0.0]
        at com.netflix.niws.client.http.RestClient.execute(RestClient.java:527) ~[ribbon-httpclient-2.0.0.jar:2.0.0]
        at org.springframework.cloud.netflix.ribbon.RibbonClientHttpRequestFactory$RibbonHttpRequest.executeInternal(RibbonClientHttpRequestFactory.java:122) ~[spring-cloud-netflix-core-1.0.3.BUILD-SNAPSHOT.jar:1.0.3.BUILD-SNAPSHOT]
        ... 124 common frames omitted
Caused by: org.apache.http.client.ClientProtocolException: null
        at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:867) ~[httpclient-4.3.6.jar:4.3.6]
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:115) ~[httpclient-4.3.6.jar:4.3.6]
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57) ~[httpclient-4.3.6.jar:4.3.6]
        at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:170) ~[jersey-apache-client4-1.11.jar:1.11]
        ... 131 common frames omitted
Caused by: org.apache.http.ProtocolException: Content-Length header already present
        at org.apache.http.protocol.RequestContent.process(RequestContent.java:95) ~[httpcore-4.3.3.jar:4.3.3]
        at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:131) ~[httpcore-4.3.3.jar:4.3.3]
        at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:165) ~[httpcore-4.3.3.jar:4.3.3]
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:485) ~[httpclient-4.3.6.jar:4.3.6]
        at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) ~[httpclient-4.3.6.jar:4.3.6]
        ... 134 common frames omitted

I saw that RestTemplate sets the Contet-Length header:
				if (httpHeaders.getContentLength() == -1) {
					httpHeaders.setContentLength(0L);
				}

HttpCore 4.3.3 (through dependencies) is used and here is the code:
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.httpcomponents/httpcore/4.3.3/org/apache/http/protocol/RequestContent.java#RequestContent
                 if (request.containsHeader(HTTP.TRANSFER_ENCODING)) {

                     throw new ProtocolException("Transfer-encoding header already present");

                 }

More details:

Request is a POST with null body
RestTemplate detects that it has no body and adds the ContentLongthe header:

			if (!requestEntity.hasBody()) {
				HttpHeaders httpHeaders = httpRequest.getHeaders();
				HttpHeaders requestHeaders = requestEntity.getHeaders();
				if (!requestHeaders.isEmpty()) {
					httpHeaders.putAll(requestHeaders);
				}
				if (httpHeaders.getContentLength() == -1) {
					httpHeaders.setContentLength(0L);
				}
			}

HttpClient complains

Hi guys,
does anyone else have the same issue?

@aivans how are you using RestTemplate?  Something like restTemplate.postForEntity("http://simple/emptypost", null, String.class)?  Even curl requires empty data.  If I change my call to restTemplate.postForEntity("http://simple/emptypost", "", String.class), the test passes.  In other words, post an empty body, not null.

The only thing we could really do, is in RibbonClientHttpRequestFactory$RibbonHttpRequest.executeInternal test if the body is null and remove the content length header which seems hackish to me.

@spencergibb  let me try with empty body

Closed for lack of feedback. Please, reopen if there is something new to add.

Using an empty body solved my problem! Thanks!

Thank you for letting us know.

So. I just ran into this updating to 1.0.3. It seems to be a fairly poor workaround to require empty content since the RestOperations interface specifically states that 'null' is allowed on calls like postForObject.
I don't really know about the responsibility domains at work here. So I don't know if you can fault Spring Web for doing this or not. The code, at least, seem to have a clear mission to buffer the output and make sure the request can be sent un-chunked.

I also ran into this today and can confirm what @kristofferpeterhansel added in his edit: the empty string does not work any better than null.

I have also encountered this problem this week as well. An empty String body will work as long as the RestTemplate has no ClientHttpRequestInterceptors. If there is an interceptor, the RequestExecution from the InterceptingClientHttpRequest in spring-web will only copy the body (byte[]) if the length is > 0.
We solved (hacked) this by adding a body with a String of "null" (it would have to be just a single byte).

We have run into this issue as well. We had already had a modified version of the RibbonHttpRequestFactory and I was able to work around this issue by modifying RibbonRetryHttpRequestFactory.RibbonHttpRequest.addHeaders() method.
@spencergibb How do you feel about making this change? :
		private void addHeaders(HttpHeaders headers) {
			for (String name : headers.keySet()) {
				// apache http RequestContent pukes if there is a body and
				// the dynamic headers are already present
				if (isDynamic(name) && outputStream != null) {
					continue;
				}
				//Don't add content-length if the output stream is null. The RibbonClient does this for us.
				if (name.equals("Content-Length") && outputStream == null) {
					continue;
				}
				List<String> values = headers.get(name);
				for (String value : values) {
					builder.header(name, value);
				}
			}
		}


Revert "[Archetype builder] Mark same-type constraints on nested types as redundant"

This reverts commit 6a7d257bb770d19d08df33badabec01f28464722. The fix
was too aggressive, and ended up dropping requirements that are
required.
Fixes rdar://problem/29332919

@swift-ci please smoke test and merge

@swift-ci please smoke test and merge

@swift-ci please smoke test and merge

@swift-CI please smoke test Linux


Chrome/Safari Bug

Hey everybody,
in Firefox works this plugin and in safari and chrome not. I use wordpress and your jquery plugin.
Can everyone help me?

Hi,
Can you share more information about the issue (what exactly works and what doesn't etc.) and/or send me your link?


Recorded video with front camera playing inverted

Hi @BradLarson,
I have transformed video view to display. Now it's showing properly on the device as like as back camera.
But when I recorded it is playing inverted again because we have transformed view only not camera orientation.
Can you please help, how to invert recorded video with proper orientation.
Thanks in advance.

I would place the following in the init() function of the Camera before commitConfiguration() is called
if let connections = videoOutput.connections as? [AVCaptureConnection] {
    for connection in connections {
        if(connection.isVideoMirroringSupported) {
            connection.isVideoMirrored = (location == .frontFacing)
        }
    }
}

Thanks @joshbernfeld

Thanks @joshbernfeld


How to write .yaml / .sh files to configure and deploy containers similarly to docker recipes (run commands upon container initiation)

How to deploy containers in a similar way to docker recipes.
For example how to:

specify all the container details (shared/mounted devices, network, etc)
specify what commands to run upon initial start

From doing research there appears to be an option to configure the containers using a yaml file: https://askubuntu.com/questions/617865/is-there-a-way-to-configure-lxd-containers-with-cloud-config-at-provision-time
The yaml file was also mentioned in this tutorial under the "Image metadata" heading: https://stgraber.org/2016/03/30/lxd-2-0-image-management-512/
Unfortunately that tutorial did not cover how to deploy the lxc containers using yaml files (and how to format the files).
The above are related to deploying lxd containers as mentioned here: https://stackoverflow.com/questions/44456522/how-to-automate-application-deployment-when-using-lxd-containers

I've noticed the documentation shows the configuration format: https://github.com/lxc/lxd/blob/master/doc/preseed.md
How to specify which commands to run when the container is first created and initiated?

You're welcome to script around "lxc exec" and the various "lxc file" commands. There is however no way in LXD to have it run the equivalent of a DockerFile. Most people will use their own deployment tools for such things, be it Ansible, Puppet, ...
To roll your own thing from a clean host, you could:

Use "lxd init --preseed" to setup the LXD daemon itself
Use "lxc init" rather than "lxc launch" to create the container without starting it
Use "lxc config edit" to apply a full container configuration in one shot (it reads yaml from stdin)
Then start the container and use "lxc exec" to run whatever you want inside of it

The yaml that's valid for "lxc config edit" is the same you'd see when doing "lxc config show" against an existing container.


Add feature to map pairwise distances matrix to disk while computing the cluster matrix in ASSET

The cluster_matrix_entries step in ASSET uses DBSCAN on the generated mask matrix, to extract the clusters associated with the SSEs being identified. As a custom distance metric was used, the implementation in ASSET first precomputes all pairwise distances and passes them to the sklearn function that performs DBSCAN.
Depending on the number of significant points being clustered, the memory requirements for this distance matrix increase. An option to compute the distances in chunks is available when memory errors occurred, but this still requires the allocation of an NxN matrix with float32 precision in memory (where N is the number of significant points found in the mask matrix). As the data length increases, it is expected that the number of significant points will also increase, and the computation would be unfeasible as this matrix can quickly reach TiB sizes.
This PR adds an option to pass a location for a file on the disk, that will be used to map the pairwise distance matrix to a file. Therefore, no allocation in memory is needed, but the operations will be slower. This was implemented to be used only if already using chunking (working_memory parameter). As additional options, the user can produce verbose messages for debugging, and also has the option of keeping the file (which could be useful if the user wants to do some analyses on the distances, such as k-distance graphs).

Hello @kohlerca! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file elephant/asset/asset.py:

Line 350:9: E128 continuation line under-indented for visual indent
Line 392:78: W291 trailing whitespace
Line 393:74: W291 trailing whitespace
Line 469:1: W293 blank line contains whitespace
Line 475:1: W293 blank line contains whitespace
Line 500:9: E303 too many blank lines (2)
Line 515:9: E303 too many blank lines (2)
Line 2519:65: W291 trailing whitespace
Line 2524:80: E501 line too long (80 > 79 characters)
Line 2569:1: W293 blank line contains whitespace

Consider lines:
https://github.com/NeuralEnsemble/elephant/blob/646cbd444367f2b8918415536d7fe87948d745bb/elephant/asset/asset.py#L416-L432
Run the following example:
import numpy as np
import elephant.asset.asset as asset
stretchedmetric2d = asset._stretched_metric_2d

def my_func():
    nr_points = 10000

    x = np.arange(nr_points)
    D = stretchedmetric2d(x, x, stretch=1, ref_angle=45)

if __name__ == '__main__':
    my_func()

With memory_profiler:
Line #    Mem usage    Increment  Occurrences   Line Contents
=============================================================
   445    108.6 MiB      0.0 MiB           1       if working_memory is None:
   446                                                 # Compute the matrix D[i, j] of euclidean distances among points
   447                                                 # i and j
   448    872.7 MiB    764.1 MiB           1           D = pairwise_distances(points)
   449
   450                                                 # Compute the angular coefficients of the line between each pair of
   451                                                 # points
   452
   453                                                 # dX[i,j]: x difference between points i and j
   454                                                 # dY[i,j]: y difference between points i and j
   455   1635.7 MiB    763.0 MiB           1           dX = x_array.T - x_array
   456   2398.6 MiB    762.9 MiB           1           dY = y_array.T - y_array
   457
   458                                                 # Compute the matrix Theta of angles between each pair of points
   459   3161.7 MiB    763.1 MiB           1           theta = np.arctan2(dY, dX, dtype=np.float64)
   460
   461   3161.7 MiB      0.0 MiB           1           stretch_mat = calculate_stretch_mat(theta, D)
...
   548                                             # Return the stretched distance matrix
   549   3161.7 MiB      0.0 MiB           1       return stretch_mat

Change Lines 416-432 to:

    if working_memory is None:
        # Compute the angular coefficients of the line between each pair of
        # points

        # calculate difference between all pairs of abscissas and ordinates
        d_array = lambda array: array.T - array

        # Compute the matrix Theta of angles between each pair of points
        theta = lambda y_array, x_array: np.arctan2(d_array(y_array),
                                                    d_array(x_array),
                                                    dtype=np.float64)
        # Compute the matrix D[i, j] of euclidean distances among points
        # i and j
        D = pairwise_distances
        stretch_mat = calculate_stretch_mat(theta(y_array, x_array), D(points))

With memory_profiler:
   444    109.1 MiB      0.0 MiB           1       if working_memory is None:
   445                                                 # Compute the angular coefficients of the line between each pair of
   446                                                 # points
   447
   448                                                 # calculate difference between all pairs of abscissas and ordinates
   449   1635.1 MiB   1526.0 MiB           5           d_array = lambda array: array.T - array
   450
   451                                                 # Compute the matrix Theta of angles between each pair of points
   452    872.5 MiB   -762.7 MiB           4           theta = lambda y_array, x_array: np.arctan2(d_array(y_array),
   453   1635.1 MiB      0.0 MiB           1                                                       d_array(x_array),
   454   1635.1 MiB      0.0 MiB           1                                                       dtype=np.float64)
   455                                                 # Compute the matrix D[i, j] of euclidean distances among points
   456                                                 # i and j
   457    109.1 MiB      0.0 MiB           1           D = pairwise_distances
   458    873.5 MiB   -762.9 MiB           1           stretch_mat = calculate_stretch_mat(theta(y_array, x_array), D(points))
...
   546    873.5 MiB      0.0 MiB           1       return stretch_mat

What is your opinion on this?

Coverage increased (+0.0006%) to 87.315% when pulling 639449d179a2a21617c3baed5cc4b7ad0b5ea3c9 on INM-6:feature/asset_mmap_cluster into d9ce63bea8399b6eb83c400bbd028fa417db27df on NeuralEnsemble:master.


Update aws-java-sdk-core to 1.12.721

About this PR
📦 Updates com.amazonaws:aws-java-sdk-core from 1.12.459 to 1.12.721
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.amazonaws", artifactId = "aws-java-sdk-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.amazonaws", artifactId = "aws-java-sdk-core" }
}]

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

Superseded by #760.


Dockerfile: Temporarily use alpine 3.15

The reason we use edge is to match 'docker-agora-builder'.
However, upstream has broken the LDC package and we are currently
waiting on them to merge the fix.
Luckily, the last Alpine release was 2021-11-24,
and no LDC update has happened since.

Error relocating /usr/local/bin/agora: _ZSt28__throw_bad_array_new_lengthv: symbol not found

FFS