Instantiation of decrypted stream is crashing for some zip file (AES 256)

Hi there.
I am experimenting some crash when trying to unarchive a specific AES256 encrypted zip. The following invocation will crash:
decryptedStream = [[ZZAESDecryptInputStream alloc] initWithStream:dataStream 																	 password:password 																	   header:_localFileHeader->fileData() 																	 strength:_localFileHeader->extraField<ZZWinZipAESExtraField>()->encryptionStrength                                                                         error:error]; }
This is because in some cases the _localFileHeader doesn't contain any data and as a result the encryptionStrength can't be extracted. I have found out that the file was corrupted but i believe we should return an error in this case.
I have now added this additional sanity check before the creation of the localFileHeader:
nextCentralFileHeader->relativeOffsetOfLocalHeader == 0 && *beginContent == '\0
for the following section:
NSMutableArray<ZZArchiveEntry*>* entries = [NSMutableArray array];
	for (NSUInteger index = 0; index < endOfCentralDirectoryRecord->totalNumberOfEntriesInTheCentralDirectory; ++index)
	{
		// sanity check:
		if (
			// correct signature
			nextCentralFileHeader->sign != ZZCentralFileHeader::sign
			// single disk zip
			|| nextCentralFileHeader->diskNumberStart != 0
			// local file occurs before first central file header, and has enough minimal space for at least local file
			|| nextCentralFileHeader->relativeOffsetOfLocalHeader + sizeof(ZZLocalFileHeader)
				> endOfCentralDirectoryRecord->offsetOfStartOfCentralDirectoryWithRespectToTheStartingDiskNumber
			// next central file header in sequence is within the central directory
			|| (const uint8_t*)nextCentralFileHeader->nextCentralFileHeader() > endOfCentralDirectory
            || nextCentralFileHeader->relativeOffsetOfLocalHeader == 0 && *beginContent == '\0')
			return ZZRaiseErrorNo(error, ZZCentralFileHeaderReadErrorCode, @{ZZEntryIndexKey : @(index)});

		ZZLocalFileHeader* nextLocalFileHeader = (ZZLocalFileHeader*)(beginContent
																	  + nextCentralFileHeader->relativeOffsetOfLocalHeader);

		[entries addObject:[[ZZOldArchiveEntry alloc] initWithCentralFileHeader:nextCentralFileHeader
																localFileHeader:nextLocalFileHeader]];

		nextCentralFileHeader = nextCentralFileHeader->nextCentralFileHeader();
	}

What do you think?  If this sounds correct to you i will make a pull request.
Thanks in advance for your input on that matter.

Thanks for figuring out and working on this issue!
Your instinct is correct in that we'll need to return an error where the file is corrupt wherever possible.
However, the listed sanity check is not the place to do it. The check nextCentralFileHeader->relativeOffsetOfLocalHeader == 0 is actually valid for the first entry, although I see you have *beginContent == '\0' to fence it. But to avoid paging in the beginning of the file, we should not touch the local file at all with *beginContent == '\0'. Also this only checks for zero bytes where the local file is expected, not other sorts of local header corruption.
The best spot to add a check is ZZOldArchiveEntry.mm:258 i.e. checkEncryptionAndCompression:. This bottlenecks all calls to output and is called when the user is already committed to accessing the local file, so there's no worry about paging it in.
If you can add a simple check for the local file header signature there (and possibly rename the method to something more sensible) in a single-commit pull request, I'll merge it in.
Alternatively, you could merge checkEncryptionAndCompression: and check: (a public method) and have the output methods call check: instead. That would provide a much more solid sanity check on the output code path and shouldn't impact performance much.

Hi thanks for your feedbacks: i will work on the fix today. In the mean time is there any reason why the method - (BOOL)check:(out NSError**)error is decoupled to this one: - (BOOL)checkEncryptionAndCompression:(out NSError**)error ?

Historically, check: was for separately checking consistency between the local and central file header, since most of the ZZOldArchiveEntry properties and data extraction would use the central file header fields in preference to the local file header fields. However data extraction necessarily accesses the local file header as well anyway, so there should be little performance impact with the additional checks.
Merging the check: and checkEncryptionAndCompression: would force a proper consistency check for data extraction and simplify the interface, which are good things. In a future commit, we could make check: private (breaking the API, so I'd want to roll that into 9.x) since I don't see much point in a publicly callable check:.

I agree with you the  check: method should be internal so the user don't have to remember to call this method before invoking a data extraction.
I have an other question. I can see that there is a check for the encrypted CRC. What CRC is for and does it make sense to have a test on CRC for AES encryption? (Any input on how to test would be much appreciated).

You can check out what the CRC is for AES encryption here: http://www.winzip.com/aes_info.htm#CRC

Ok thanks does your project support a scheme to run tests: it doesn't seem to be the case.

OK thanks is it possible to run directly your test within your project? it doesn't seem to be the case.

The testing scheme is OS X only.
If you want to add a test for AES256 corruption, use an existing valid test zip file and apply your corruption to a copy (presumably it's zeroing out some bytes?), rather than including a corrupted zip file in the package. This can eventually be the basis for a fuzz test by selectively zeroing out different parts of the zip file.

I have merged the check and checkEncryptionAndCompression into one within my fork repo. I was able to run your tests on OSX but i had to edit you project a bit : the test were not linked to the OSX scheme.
I couldn't reproduce a corrupted zip file by editing one of your zip file though so i ended up adding the zip file that was crashing on my project. I was also able to add a unit test for that file.
You can check my commit on my fork repo: if that's sound good to you i will make a pull request.

Thanks for the work! It looks good to me with only a few minor nits. Do make the pull request and we can discuss the issues and amend/add any commits needed then. I will ask you to rebase your commits to fix these minor nits so you may prefer to put your commits in a different github branch before making the pull request.

Great i will take care of the pull request then and rebase my commits as you ask.

Done #143

I have few additional comments on my commits:

compression mode for local file header with AES encryption mode seems to be wrongly computed. As a result i have to comment out this sanity check:
_localFileHeader->compressionMethod != self.compressionMethod
i am not owning the content of the corrupted .zip. As a result we should corrupt one of your AES zip file instead. I couldn't figure out how to reproduce the issue by taking your zip file as source though.
i am still missing sanity check on CRC for AES encryption

Hi Glen - do you need some additional actions from my side to validate my pull request?


NoUnsetOnPropertyFixer - fix for function call with class constant inside

looking good, please fix the CS minor, Travis failure is not related (existing test is to slow)

Does this fix #3843 too? (Would be awesome 😉)

Unfortunately no, I see a good test case there so will try to solve it as well.

I guess we should mention here that this is being superseeded by #4022? 😉


Update VariantListingUpdater.php

Check that array key exists
1. Why is this change necessary?
Get a warning while running bin/console dal:refresh:index
2. What does this change do, exactly?
Check that array key exists
3. Describe each step to reproduce the issue or behaviour.
run bin/console dal:refresh:index

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

hi @j-jonas could you sign the CLA please? :)

hi @j-jonas could you sign the CLA please? :)

done

Thanks for your contribution @j-jonas. It's merged!


Connecting to SSRS Servers through HTTPS is not functioning properly

This was reported to me via email on my website from the contact page. Figured I should add a ticket for it.

I've checked in a fix that I think will work for this but could really use someone with a SSL'd server to test it out for me! :D

I tried this today with my ReportServer and able to view the pages through HTTPS.

@dineshmike, thanks for taking the time to test this out for me!


etcdctl doesn't honor dns discovery flag

Documentation says --discovery-srv flag can be used instead of --peers but it doesn't seem to work.
./etcdctl --peers="https://node01.etcd.dev.com:2379,https://node02.etcd.dev.com:2379,https://node03.etcd.dev.com:2379" --cert-file=/var/home/rm/node01.etcd.dev.com.cert.pem --key-file=/var/home/rm/node01.etcd.dev.com.pem --ca-file=/var/home/rm/ca.cert.pem --username=root cluster-health
cluster is unhealthy
./etcdctl --discovery-srv="etcd.dev.com" --cert-file=/var/home/rm/node01.etcd.dev.com.cert.pem --key-file=/var/home/rm/node01.etcd.dev.com.pem --ca-file=/var/home/rm/ca.cert.pem --username=root cluster-health
Incorrect Usage.

@raoofmd Are you trying with current master? Or the released version of etcdctl?

released version

@raoofmd The released version does not support that. Doc is for the master. Can you try with current master please?

@raoofmd This is the doc for the released version of etcdctl: https://github.com/coreos/etcd/tree/release-2.1/etcdctl


Fixups for CONTRIBUTING.MD...

...primarily fixing TOC
Looks like we merged something without rebasing
Signed-off-by: Ben Alkov<EMAIL_ADDRESS>

Woops, I think it was me. I just used GH's interface (which is always a bad idea :/).
Sorry and thanks for the fix =)

No worries!

I just used GH's interface (which is always a bad idea :/)

Felt 😆


Support LPIPS when using LAB colorspace.

Addresses #12.
I also double-checked that the input for LPIPS are images in the range [-1, 1], everything looks correct in that regard.

Can you call the function to_rgb (or similar) and make it a noop when the format is already RGB?

Also can you check if it affects the prepare_dataset function or the wandb logging (may need to use a jax.device_get there).

Can you call the function to_rgb (or similar) and make it a noop when the format is already RGB?

I didn't want to call it to_rgb because then it looks semantically similar to logits_to_image, but images are returned in [0, 1] and this one works in [-1, 1]. But maybe it's clearer that way.

Can you call the function to_rgb (or similar) and make it a noop when the format is already RGB?

I didn't want to call it to_rgb because then it looks semantically similar to logits_to_image, but images are returned in [0, 1] and this one works in [-1, 1]. But maybe it's clearer that way.

Maybe to_lpips? Pretty close to what you had then.

Also can you check if it affects the prepare_dataset notebook and the wandb logging (may need to use a jax.device_get there).

Sure, good point. But this was branched from main not stylegan. I'll check if there are any changes needed and if so maybe it makes sense to submit as a PR to stylegan.

I addressed a couple of @borisdayma's comments, but it turns out we can't use tfio.experimental.color.lab_to_rgb in jitted code because there's an implicit conversion to numpy here.
I checked the color conversion functions in dm_pix (https://github.com/deepmind/dm_pix/blob/master/dm_pix/_src/color_conversion.py), but they don't have LAB support yet.
We can port TensorFlow's implementation to JAX, but maybe we have more important things to do first. What do you think @borisdayma, @patil-suraj ?


After installing Spark Notebook the cells do not run or show any output

Hi,
I have installed spark notebook by following the instruction here: https://github.com/spark-notebook/spark-notebook/blob/master/docs/quick_start.md
The installations went well, but unfortunately the cells don't seem to show any results, I guess they are not running. Do I need to do some additional changes in the metadata or anyone knows how to make it work?

Check browser development console for logs/errors.
If you use windows there might be some extra issues, and its best to use docker in that case.

Hi, yes I am using windows at the moment. Maybe I should go for docker.

Can you download the Ubuntu application from the windows store? (If you aren’t already using). Also it’s really quite easy to build from source. Go get yourself a copy of (SBT), quick google of “install SBT on Ubuntu” and then just copy and paste into the console. Grab the full source code from this GitHub, then run it by doing running “sbt” (once you have unzipped and “cd” into the directory from the console) and once it loads type “run”. If you are going to be using Spark or Scala it is a good idea to learn a bit about SBT.


Master fix readme truiz

Coverage remained the same at 97.82% when pulling ab2be5a1c1a52f494c3731b64efb802fd666b7ba on vauxoo-dev:master-fix_readme-truiz into a07c40434705aae986ca8315e586825eafe7eb30 on Vauxoo:master.


openssl: upgrade to 1.0.1m

This is a critical security update, see
https://www.openssl.org/news/secadv_20150319.txt
It will fail patching for kfreebsd, I don't know how to test it and the patch
is not trivial

I don't think the travis failure is related to the change

It's already in staging branch

Already in 2fe351c7e31f47400d752a59ab7b1e2e89acf392.

I think that's four times today, at least :-)


Don't use ProgressDialogs

@samtstern I started compiling some of my projects for O and I noticed that ProgressDialog is deprecated. Ouch. It makes sense because having a whole dialog just for loading is a bit jarring and I can see how the UX would be improved by having loading spinners integrated directly into the views. However, this is going to be a very painful transition for us since we use the ProgressDialog for everything async. 😕  Could you get some designers to take a look at our loading spinners and figure out where we should put them? I was thinking directly into the button the user presses, but I have no clue. 😄

Yeah I've noticed that too ... ProgressDialog has one nice property in that it blocks further interaction while the async action happens.  But I agree, it's a big hammer for a small nail.
We can put some more thought into this after 2.0

@samtstern Yeah, we'll have to setEnabled(false) all the views and things will probably get messy really fast, but it has to get done at some point, preferably before the final release of O to AOSP. Do you think that's a reasonable target?

I think it'd be good practice to get rid of the ProgressDialogs as well. The dialog that fires immediately after calling AuthUI.getInstance().createSignInIntentBuilder().build() was the primary factor in deciding not to use Auth-UI for me personally. Because this intent must be fired with startActivityForResult, the firing activity cannot call finish() on itself immediately as it must wait for a result. This alone causes enough of a "hitch" in the interaction and adding a dialog which appears for a split second then disappears does not make that interaction any more seamless.

This has been fixed and released in 4.0.0


False positive on hasTouch in OS X 10.11.2 with Firefox

With firefox 50.1.0, this code in TOT constants.js false positives:
export const HAS_TOUCH = !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch);

That is because ontouchstart is in window, from the browser console, no other scripts loaded:

'ontouchstart' in window
true

I see this code is taken from Modernizr (https://github.com/Modernizr/Modernizr/blob/0b3cd01/feature-detects/touchevents.js#L40) which is also wrong and there is lots of web debate about it.
Seems the best practice is to not depend on touch detection at all...   Looking at the use of HAS_TOUCH in media element it would seem that would be the simple approach.

If you can propose a different solution I can check it

@stevemayhew Just FYI, I went ahead and tested this in FF 50.1.0 and I got false.

This is also a test from Browserstack using Mac OSX El Capitan with FF 50.0 (the only one available at that moment before upgrading to 51.0)

Closing this issue. If needs to be reopen, please let us know. Thanks.

Thanks, working on a way to not require touch detection at all, will share
on a branch after testing it more
On Wed, Jan 25, 2017 at 6:15 AM Rafael Miranda<EMAIL_ADDRESS>wrote:

Closing this issue. If needs to be reopen, please let us know. Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/johndyer/mediaelement/issues/2017#issuecomment-275118146,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAYS-Fe2eVSNYrkvz3Xi2d0CFFCbSIm_ks5rV1j1gaJpZM4Lrwuk
.

Great. I appreciate it


luci-mod-network: Adjust DHCP/DNS tab order

Adjust the order of tabs in the DNS/DHCP page.
Based on estimated importance of tabs

move common (old) tabs to be earlier
move the less frequently used (new) tabs later

Before:

New:

@jow-
I actually think that we might prefer to reorganise/group some tabs e.g the new DNS fields (MX, CNAME, SRV) to be subtabs. Possible?

Call me human but... Alphabetical order would be easiest and just plain practical. I never really know the exact name of what I'm looking for anyway, so I just go spatially and find what I'm looking for. So order isn't so important.
But do NOT bury tabs within tabs. More steps to reach destination. Ideally max 3 clicks to destination.

It's far too many tabs, also some really fringe use cases are overrepresented by having their own tab, like MX or SRV records. MX, SRV, CNAME and Hostnames (which is essentially A/AAAA) should be combined into one common DNS tab

Merged as an iterim solution, thanks!

Was also thinking of having several of the dns type tabs merged into a
single tab. An acceptable solution.


(4) blessed integration: "Pare down" README.rst, improve sphinx docs

Closes issue #78.
This is branched from PR #92 for various author changes to documentation.

Move and symlink README.rst -> docs/intro.rst.
split into docs/intro.rst, overview.rst, and history.rst
fix all blessed -> blessings references in docs, as well as blessed -> blessings badges and github links.
use :attr:, :meth:, etc. for all references in history.rst
polish up the 2.0 release changes documentation
add docs/sphinxext/github.py for ``:ghissues:`999``` and similar.
allow references to python3 api documentation (fe. ``:func:`tty.setraw```).
added 'docs' build target to tox, which is included as a default target when invoking 'tox'.  "warnings as errors" enabled, so that any issues with the documentation causes a build failure.
an embarrassing monkeypatch is applied in docs/conf.py to ensure that "nonlocal image URI found" does not cause a failure ("badges" in README.rst)
use the sphinx_rtd_theme so that locally generated documentation matches our target.

Please note that the TeamCity builds fail until acceptance of PR #91.

I haven't got much of a choice but to build PR's ontop of PR's for such cases, expect them.

I'm holding back pull requests because of the delay of its dependent PR's such as this. If you'd like to provide feedback anyway, I've just pushed a branch with a large auxillary chapter: https://github.com/erikrose/blessings/blob/blessed-integration-docs-further-reading-and-growing-pains/docs/pains.rst

ping

ping

Hey, @jquast, you don't have to ask my permission on things. Consider yourself an equal co-maintainer of the project. Just let me know when blessed-integration settles down, and I'll come along and make my contributions. Then we can cut the 1.9 (if backward-compatible) or 2.0 release!

Also, you are to be congratulated. :-) Thomas Ballinger is giving a session tomorrow about terminal libs, and blessings and blessed are to be prominently featured, along with the good news that they're merging.


[FR]: CSS Tweaks to match new Obsidian Theme

Contact Details
<EMAIL_ADDRESS>Present your request
Hi Rafael,
As always, amazing work with the latest update.
I was making a few tweaks on the plugin using the CSS snippets.
Wanted to share with you the final result in case this could be considered for a future update, or if anyone wants to tweak CSS like me.
For the new Obsidian theme it currently looks like this:

Here is the CSS snippet (please take into consideration I'm not a CSS expert so these might be 100% correct but it seems to work perfectly)

Here the changes

Menu button
Search box to match main search box design
Apply filter and create filter buttons background color removed
Changed the filter button's shape and color to match accent colors.
Hide the scroll bar when there's not enough length to show all filter buttons (scroll still works)
Align the check box in the list with the text
Page navigation with the same color as the selected accent color
Removed the border of the add row button and made it simpler

`/* highlight border problem under top column */
.database-plugin__table {
border-spacing: 2px;
}
/* Align checkbox to text */
.database-plugin__table input[type=checkbox] {
margin: 0px 6px -2px 0px;
}
/* Remove table border radius in input fields */
.data-input {
border-radius: 0px !important;
}
/* Menu button padding adjust */
.css-13tqcfd {
padding:4px !important;
}
/* Remove radius because there was a white background color */
.database-plugin__table textarea, input[type='text'], input[type='search'], input[type='email'], input[type='password'], input[type='number'] {
border-radius: 0px;
}
/* Give same space between apply filters button and input box to match space between menu button and search bar*/
.css-1rtnrqa {
margin:0px 7px 0px 0px !important;
}
/* Remove the background color to have same style as rest of the theme*/
.css-11crkov {
background-color: transparent !important;
}
/* Number of rows text color*/
.css-z7t6pi {
color: var(--nav-item-color);
}
/* Give more space between filter buttons*/
.css-1xfmoej {
margin-right: 7px !important;
}
/* Remove add row - padding and border color*/
.css-1nz4p9c {
padding: 0px !important;
border: 0px solid !important;
}
/* Add new row - smaller button same size as row number*/
.css-1nz4p9c .MuiButtonGroup-grouped {
min-width: 30px !important;
}
/* add new row - smaller font for the "+" */
.css-vubbuv {
font-size: 1.35rem !important;
}
/* add new row - remove radius */
.css-vx2idv {
border-radius: 0px !important;
}
/* remove shadow and background color for active and not active button */
.css-1nz4p9c button(.clickable-icon) {
background-color: transparent !important;
box-shadow: none !important;
}
.css-1nz4p9c button:not(.clickable-icon) {
background-color: transparent !important;
box-shadow: none !important;
}
/* filter button - active */
.css-a8ylvy {
border-radius: 4px !important;
box-shadow: 0px 0px 0px 0px !important;
background-color: var(--link-color) !important;
}
/* filter button - not active */
.css-1scb6rm {
border-radius: 4px !important;
box-shadow: var(--input-shadow) !important;
border-color: var(--link-color) !important;
color: var(--link-color) !important;
background-color: var(--interactive-normal) !important;
}
/* pagination redo */
.css-kz17yb {
border: var(--text-normal)!important;
color: var(--text-normal)!important;
background-color: var(--text-accent)!important;
}
/* filter button - remove shcroll but keep funcinality */
.css-ark3t6::-webkit-scrollbar {
display: none;
}
`
thank you,
For which platform do you request this request??
Cross

Hi @cesarpereira904 ,
nice css job! Could be related with https://github.com/RafaelGB/obsidian-db-folder/issues/486
The plugin needs to support dark mode with the new menu bar and your contribution could be the key. I will consider to use your design for sure

Perfect ! happy to help.
Forgot to mention it supports both white and dark themes.

there is an issue on conflict with the design https://github.com/RafaelGB/obsidian-db-folder/issues/492
The idea its to allow the user select the color for each filter

I think it goes against the purpose of having the same accent color across the template.
But if it can be easly implemented I think it would be great. (Still, most likely I would set it up to match the accent color 😅 )

Adapted Commit bc0eb083

I have not included all the changes in favor of mobile support, but keep your design

Looking great Rafael,
Sorry if I'm going into too much detail, I would still take out the radius of the list search box to match the default obsidian theme search box:

And match pagination border and arrows color to the be the same as the accent color.
Everything else look great!

I will generate a new version. We can iterate de design as long as is neccesary =)


OutOfBitsError for scoreboard example (NodeJS) "damage_total" field, using faceit demo

Hi. I tried your scoreboard example https://github.com/LaihoE/demoparser/tree/main/examples/scoreboard
First I copy/pasted the code and everything was working fine but when I changed field "score" to "damage_total", it gives me OutOfBitsError. Same goes for utility_damage_total field. I tried 2 different demos - One was working and the other one wasn't.. As far as I tested, many other fields are working fine.
Here's matchroom for the failed one: https://www.faceit.com/en/cs2/room/1-a5779c42-44e7-4b7d-b960-237c1da4c55e
Code:
var {parseEvent, parseTicks} = require('@laihoe/demoparser2');

const pathToDemo = "demo.dem"

let gameEndTick = Math.max(...parseEvent(pathToDemo,"round_end").map(x => x.tick))

let fields = ["kills_total", "deaths_total", "mvps", "headshot_kills_total", "ace_rounds_total", "damage_total"]
let scoreboard = parseTicks(pathToDemo, fields, [gameEndTick])

console.dir(scoreboard);

Result:
Error: OutOfBitsError     at /home/user/www/demo/app.js:20:22     ....

https://github.com/LaihoE/demoparser/commit/6577b3ac80e535d2900f28fbadd55e334fabf6a6
Should have fixed this. Will be part of next release.


Record locking (Shared, Exclusive)

I, as a user, want to lock selected record(s) to be able to debug my code.
User flow.

User opens Query grid window
User selects one or more records
User click on button Lock (Shared) or Lock (Exclusive)
Records are locked for predefined amount of time. (We cannot lock indefinitely as it's a web app, and we could lose connection).
User can see popup with information about lock status and countdown till the end of lock

Additional info to the ticket:
4. The locking should be done for 5 minutes.
Design mocks:

Locked records: An icon on the locked records should be displayed next to them. On hover, a popup should be displayed with additional info: type of lock and remaining lock time.

To lock a record: On record hover an icon appears on the left, next to a checkbox, should be 50% transparent. On hover, a popup apears to the right to select a lock. 2 buttons present to select a lock. The lock icon and colors are indicated.

This ticket can be split to 2 parts:

Display of locked records
Locking mechanism


Completion of staging a file removes keyboard focus from the message box (again)

VSCode Version: 1.47.2 (17299e413d5590b14ab0340ea477cdd86ff13daf)
OS Version: Linux x64 5.3.0-62-generic

Steps to Reproduce:

Open a folder with a git repo
Make a change to a file
Click the stage button next to the item in the source control sidebar
While the file is being staged, click in the message box
Start typing a commit message
When the file is successfully staged, message box lose the focus and letter are not typed.

Does this issue occur when all extensions are disabled?: Yes
This bug comes back after upgrade to 1.47.X

/duplicate of #102498


jss-extend not working with dynamic style computed with props

Codesandbox: https://codesandbox.io/s/zr8ml5qxkm
If you have a class A with height=fn(props) and you have a class B extending A with height=fn(props) then inside class A the height=fn(props) func is not computed anymore but is turned into a string.
Weird to explain, just give a look to the height in divExtending into CodeSandbox :)
The jss-extend docs just state Nested extend inside of the function is not supported. Will override other properties defined in the same rule. but not that you can't use anymore functions anymore into extended class.
Not sure if it's a known behaviour or a bug!

OK never mind, the behaviour is consistent: there's just this weird conversion of function to string which lead me wront.


Feature request: tracking of users opened repos

Requires 'sql.nvim'
Users can browse all repos open in their neovim
Picker for doing actions on these repos, new pr, new issue, checkout different branch ....

I like the idea, something similar to nvim-telescope-projects. However, I dont want to introduce additional dependencies at this point. Maybe we can implement it as an extension?

Yah sure, I'll keep this issue open, maybe next week I'd work on it. But it should be simple to implement,

machinism to insert the git repos
table schema with meta data information
picker that query the sql table and sort based on keys.
function that call octo functions against selection

This may be a good idea for an extension or complementary plugin, but Im closing this for now since Im not planning on implementing it in the near future.


question: need to move the source code of git-init here?

The code for git-init has been removed in this pull request: https://github.com/tektoncd/pipeline/pull/6417
In TEP-0074, it's mentioned that we need to move the code to this code repository?
Code for the "git-init" image will be moved into the tektoncd-catalog/git-clone repo.
However, this code repository is still very clean at the moment. 😁

/cc @QuanZhang-William

Hi @l-qing and @liangyuanpeng. Yeah, you are right. The git-init image will be moved to this repo, but we haven't started the migration yet.
Repos under this org is still in "Work in Process" state and is not ready to be used. I will update the org README file to reflect this.
/cc @ywluogg

/assign ywluogg

done


Fix crash when copying an alias page

Fixes https://github.com/wagtail/wagtail/issues/6758
This sets alias_of to null on all copied pages. So if someone copies an alias page, the new page will not be an alias.

Thanks!

Tagging for the next 2.11 (and 2.12) patch release, as this sounds like one that ought to be backported (unless I hear otherwise).

Yep, I didn't realise there was going to be another 2.11 release, but I've already put it on the 2.12 branch!


Question regarding legacy API

From my understanding reading the code, it seems that face_detection/tracking use the "modern" MediaPipe image datatypes whereas object_detection/tracking use the "legacy" MediaPipe image datatypes.

For example, to_image_calculator.cc reads:
// A calculator for converting from legacy MediaPipe datatypes into a
// unified image container.
//
// Inputs:
//   One of the following two tags:
//   IMAGE_CPU:  An ImageFrame containing input image.
//   IMAGE_GPU:  A GpuBuffer containing input image.
//
// Output:
//   IMAGE:  An Image containing output image.

My questions are:

should I assume that legacy mediapipe is going to eventually be dropped and replaced by the single unified image container datatype?
is there a timeline for updating object_detection/tracking?
Are there performance differences between these two versions?
I need to use the face_detection_back models in my project, but I noticed that these aren't built anywhere in bazel files, and they use the legacy version of MediaPipe. Can I just swap out the tflite_back model in the modern graph for front images?

Many thanks

Hi @samlaf ,
Are you still looking for the resolution on this issue.

No, no longer working with mediapipe.
On Fri, 23 Sep 2022 at 13.32 Sureshda @.***> wrote:

Hi @samlaf https://github.com/samlaf ,
Are you still looking for the resolution on this issue.
—
Reply to this email directly, view it on GitHub
https://github.com/google/mediapipe/issues/1981#issuecomment-1255815779,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHI4PE4YEB4IUW3UBNIVLDV7U6HRANCNFSM44D2ULCA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @samlaf ,
Could you please close this issue.


Add support for reading and writing unsigned images (VTK, Nifti).

Ok, let the discussion begin :-)

Please merge https://github.com/unibas-gravis/scalismo/pull/3 BEFORE this one.

@marcelluethi @Ghazi-Bouabene
From my point of view, this is almost ready for merging. Please review the implementation -- particularly the deprecated methods. We need to find a way to remove them without breaking functionality.

So... any more comments? Just a note of caution: this will introduce some breaking changes when merged.


Suppress warning on prerelease version of System.Diagnostics.DiagnosticSource

I've created an issue to remove suppression after the release version available https://github.com/microsoft/Omex/issues/251


Web - Chat - "You appear to be offline" message isn't showing if you navigate to different chats.

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Issue found when executing PR https://github.com/Expensify/App/pull/12877
Action Performed:

Go to staging.new.expensify.com
Turn off the internet connection
Navigate to different chats

Expected Result:
"You appear to be offline" message is showing if you navigate to different chats.
Actual Result:
"You appear to be offline" message isn't showing if you navigate to different chats.
Workaround:
Unknow
Platform:

Where is this issue occurring?

Web

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

https://user-images.githubusercontent.com/93399543/203424841-b657db50-10ae-4239-b4d7-f53326326f8f.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

Gonna assign myself to this one since I came back from ooo and I'm looking for WAQ issues to work on.

This is the expected behavior as we hide the compose box and display the loading skeleton for chats that have no messages loaded. Closing.

Are you looking for something like this?
https://user-images.githubusercontent.com/51829206/203607769-fe4501d7-984d-44e8-aaa6-3cfa156cc733.mov

I'm not sure that we need to fix anything here as we are intentionally hiding the "You are offline" indicator


The plug-in does not match the Idea version（Android Studio 4.1）

Plugin Error: Plugin "PermissionsDispatcher plugin" is incompatible (supported only in IntelliJ IDEA).

Same. Didn't work in Flamingo or Giraffe versions of AS.


cmd/compile: invalid DWARF location list for local var - erroneously extends to function epilogue

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

1.20.3

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/andrei/.cache/go-build"
GOENV="/home/andrei/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/andrei/work/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/andrei/work"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/andrei/sdk/go1.19.9"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/andrei/sdk/go1.19.9/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19.9"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3969983697=/tmp/go-build -gno-record-gcc-switches"

What did you do?
The DWARF location list for some local variables (vars declared on the first line within a function?) appears to be incorrect: it extends to include code placed in the object file at the end of the function that has to do with growing the stack (i.e. calling runtime.morestack_noctxt). Even though it's placed at the end of the function, this code executes when the function start if it executes at all (i.e. when the stack actually has to grow). By including the program counters corresponding to this code in the variable's location list, the compiler is declaring that the variable is live at those locations. In fact, the variable is not live; when the respective code executes, the variable has yet to be initialized. The respective location list instructions are thus invalid - where they do be followed to read the variable, we'd read random heap memory.
Let's study an example.
Consider the variable localVar in following program:
https://go.dev/play/p/P4_7_JfCbzo
package main

var global int

//go:noinline
func foo() {
	// localVar's loclist erroneously extends to the end of foo's code -
	// including the epilogue.
	var localVar int
	localVar = global
	localVar++

	// Force the stack to grow when foo() starts executing. This isn't necessary
	// for reproducing the issue, but it is useful if trying to actually
	// demonstrate that the bug is "exploitable" by trapping on the stack
	// expansion and attempting to read the variable.
	var xx [][5000]byte
	var x1 [5000]byte
	xx = append(xx, x1)

	global = localVar
}

func main() {
	global = 42
	foo()
}

This is the debug information produced for localVar, with my arrow markings:
$ llvm-dwarfdump-16 --debug-info --color  --name=main.foo --show-children main

0x000640ab: DW_TAG_subprogram
              DW_AT_name        ("main.foo")
              DW_AT_low_pc      (0x0000000000457240)
---->         DW_AT_high_pc     (0x00000000004572d1)
              DW_AT_frame_base  (DW_OP_call_frame_cfa)
              DW_AT_decl_file   ("/home/andrei/work/src/github.com/andreimatei/play/go-debuginfo-examples/loclist-covering-epilogue/main.go")
              DW_AT_decl_line   (6)
              DW_AT_external    (0x01)

0x000640cd:   DW_TAG_variable
                DW_AT_name      ("localVar")
                DW_AT_decl_line (9)
                DW_AT_type      (0x000000000004cf9c "int")
                DW_AT_location  (0x0007356d:
                   [0x0000000000457264, 0x0000000000457299): DW_OP_reg1 RDX
---->              [0x0000000000457299, 0x00000000004572d1): DW_OP_fbreg -5024)

Notice that the variable has a loclist extending to the end of the function's code - 0x00000000004572d1. The info says that the variable can be read from the stack.
By disassembling, we can see that this is incorrect. The last instructions before 0x4572d1 are about the stack growth. When that code executes, the variable is not alive, and attempting to read it according to the generated loclist would result in reading essentially random heap memory (outside of the current function's stack frame).

Disassembly
$  llvm-objdump-16 --disassemble --line-numbers --source --disassemble-symbols=main.foo  main

0000000000457240 <main.foo>:
; main.foo():
; /home/andrei/work/src/github.com/andreimatei/play/go-debuginfo-examples/loclist-covering-epilogue/main.go:6
; func foo() {
  457240: 49 89 e4                     	movq	%rsp, %r12
  457243: 49 81 ec 58 13 00 00         	subq	$0x1358, %r12           # imm = 0x1358
  45724a: 72 7b                        	jb	0x4572c7 <main.foo+0x87>
  45724c: 4d 3b 66 10                  	cmpq	0x10(%r14), %r12
  457250: 76 75                        	jbe	0x4572c7 <main.foo+0x87>
  457252: 55                           	pushq	%rbp
  457253: 48 89 e5                     	movq	%rsp, %rbp
  457256: 48 81 ec d0 13 00 00         	subq	$0x13d0, %rsp           # imm = 0x13D0
; /home/andrei/work/src/github.com/andreimatei/play/go-debuginfo-examples/loclist-covering-epilogue/main.go:10
; 	localVar = global
  45725d: 48 8b 15 fc 03 0a 00         	movq	0xa03fc(%rip), %rdx     # 0x4f7660 <main.global>
; /home/andrei/work/src/github.com/andreimatei/play/go-debuginfo-examples/loclist-covering-epilogue/main.go:18
; 	var x1 [5000]byte
  457264: 44 0f 11 7c 24 48            	movups	%xmm15, 0x48(%rsp)
; /home/andrei/work/src/github.com/andreimatei/play/go-debuginfo-examples/loclist-covering-epilogue/main.go:11
; 	localVar++
  45726a: 48 ff c2                     	incq	%rdx
  45726d: 48 89 54 24 40               	movq	%rdx, 0x40(%rsp)
; /home/andrei/work/src/github.com/andreimatei/play/go-debuginfo-examples/loclist-covering-epilogue/main.go:18
; 	var x1 [5000]byte
  457272: 48 8d 7c 24 50               	leaq	0x50(%rsp), %rdi
  457277: b9 70 02 00 00               	movl	$0x270, %ecx            # imm = 0x270
  45727c: 31 c0                        	xorl	%eax, %eax
  45727e: f3 48 ab                     	rep		stosq	%rax, %es:(%rdi)
; /home/andrei/work/src/github.com/andreimatei/play/go-debuginfo-examples/loclist-covering-epilogue/main.go:19
; 	xx = append(xx, x1)
  457281: 31 c0                        	xorl	%eax, %eax
  457283: bb 01 00 00 00               	movl	$0x1, %ebx
  457288: 31 c9                        	xorl	%ecx, %ecx
  45728a: 48 89 df                     	movq	%rbx, %rdi
  45728d: 48 8d 35 2c 5c 00 00         	leaq	0x5c2c(%rip), %rsi      # 0x45cec0 <type:*+0x4ec0>
  457294: e8 07 a5 fe ff               	callq	0x4417a0 <runtime.growslice>
  457299: 48 8b 54 24 48               	movq	0x48(%rsp), %rdx
  45729e: 48 89 10                     	movq	%rdx, (%rax)
  4572a1: 48 8d 78 08                  	leaq	0x8(%rax), %rdi
  4572a5: 48 8d 74 24 50               	leaq	0x50(%rsp), %rsi
  4572aa: b9 70 02 00 00               	movl	$0x270, %ecx            # imm = 0x270
  4572af: f3 48 a5                     	rep		movsq	(%rsi), %es:(%rdi)
; /home/andrei/work/src/github.com/andreimatei/play/go-debuginfo-examples/loclist-covering-epilogue/main.go:21
; 	global = localVar
  4572b2: 48 8b 54 24 40               	movq	0x40(%rsp), %rdx
  4572b7: 48 89 15 a2 03 0a 00         	movq	%rdx, 0xa03a2(%rip)     # 0x4f7660 <main.global>
; /home/andrei/work/src/github.com/andreimatei/play/go-debuginfo-examples/loclist-covering-epilogue/main.go:22
; }
  4572be: 48 81 c4 d0 13 00 00         	addq	$0x13d0, %rsp           # imm = 0x13D0
  4572c5: 5d                           	popq	%rbp
  4572c6: c3                           	retq
; /home/andrei/work/src/github.com/andreimatei/play/go-debuginfo-examples/loclist-covering-epilogue/main.go:6
; func foo() {
  4572c7: e8 d4 ce ff ff               	callq	0x4541a0 <runtime.morestack_noctxt.abi0>
  4572cc: e9 6f ff ff ff               	jmp	0x457240 <main.foo>
  4572d1: cc                           	int3

Notice the retq at pc 4572c6. I believe the loclist for localVar should end around there.
Also notice how the function prelude jumps to 0x4572c7 is the stack needs growth.
I have noticed (but I'm not sure) that the loclist extends to the end of the epilogue when the variable is declared at the very beginning of the function and lives until the end of the function. I think function arguments might be susceptible to the same problem.
As a random tidbit of trivia, Delve takes a variable's DW_AT_decl_line into consideration, in addition to its location list, when deciding whether a particular variable can be read at a given pc, for better or worse. This way, Delve avoids using the erroneous instructions in the pc range where they are invalid (because the respective epilogue code is marked as corresponding to the line on which the function is declared, which is below the variable's decl_line). Function arguments are treated differently by Delve; I think those might be susceptible to invalid reads (but I'm not sure).
What did you expect to see?
I expected the location list for localVar to not extend past the instruction returning from the function.
What did you see instead?
The location list for localVar extends too much.

If my involvement would be useful, I'd be happy to work on addressing this bug myself - if someone knows the solution and is willing to  guide me.
cc @dr2chase @thanm @heschi  as people active on go's debug symbol generation
cc @aarzilli for the Delve connection

Kind of a novice in this area, but the compiler makes the location lists, and the wrapper for stack overflow is not added until the compiler (or at least the SSA part, which builds the location lists) is done. Maybe the compiler is using some sort of "all-the-way-to-the-end" marker?
The wrapping is done by cmd/internal/obj/x86/obj6.go:stacksplit, which is called in cmd/compile/internal/pgen.go:Compile. The Flush call calls stacksplit, which is after genssa is done.
That's about the limit of my understanding in this area.

Thank you for the hints; they helped.

Maybe the compiler is using some sort of "all-the-way-to-the-end" marker?

Yeah, something like this was going on. I believe I have a patch that makes the "the end" marker be interpreted correctly. I will work on sending it over.


Cannot load resources when using account with access to multiple tenants

I use my azure account to log in to my main tenant. I use the same account to log on to another tenant, where my account is invited as guest account and made member.
Resources are never displaying:

When I connect to my main tenant, Logic Apps and Integration Accounts load by selected subscription as expected. But refreshing the Resources generates this toast:

It seems like others have a similar issue depending on the issues logged here: https://github.com/microsoft/vscode-azureresourcegroups/issues
I post here, because I think this is a a more general issue and not necessarily only related to Resource Groups.
Version: 0.8.4
OS: win32
OS Release: 10.0.22621
Product: Visual Studio Code
Product Version: 1.87.1
Language: en

Hi, have you tried using the "Azure: Sign in to Directory..." command? This new command allows you to sign into additional tenants. This may fix your issue.

Just tried that - unfortunately that does not solve my issue.
First time I tried, I was able to select the proper tenant (pasted the tenant guid in the search bar when it was still iterating over the tenants), but only subscriptions from the other tenant was listed in the resource view.
Signed out and restarted vscode and tried again. Now the tenant I want to log on to is not listed in the Azure: Sign in to Directore ... command

Signed out and restarted vscode and tried again. Now the tenant I want to log on to is not listed in the Azure: Sign in to Directore ... command

if a tenant isn't listed there, it means it's signed in.
Did you sign out like so?

I did sign out there, and I clened out my azure.resource filter completely - several times.
Logic apps and integration accounts have no problems finding a subscription:

But clicking the reefresh button on resources generates an error:

We're aware of that error but currently have no fixes except to reload VS Code and try again.

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


how to add new modules

:hand: We are a small team with limited resources. Your question is much more
likely to be answered if it is
a good question

Description
I want to use yarn to add some new modules，but report a bug，how to add new modules?

From your command, it seems that you are trying to add antd, which is a UI library.
If I hazard to take a guess, you actually want to add antd to either @ohif/viewer or @ohif/ui.  You need to first find out which workspace you meant to add this dependency.  My suggestion is to change directory to the package and try your command there.
For example
cd platform/viewer
yarn add antd

OHIF/Viewers uses yarn workspaces.  The dependencies you add should be added to the individual workspace.  yarn will then add it to the root node_modules.  You should not be adding dependencies to the root.
If you really want to add dependency to the root, then yes, you'll have to provide the -w flag.
yarn add -w antd  (warning... this is probably not what you meant)

To easily resolve this issue, add the package to the package.json of your extension.


how can i add one more permalink

i have added two permalink like below:
http://qinkun1234.github.io/b/mydoc_laravel5_1_manual/
but when i add the third permalink:
https://github.com/qinkun1234/b/commit/724500643d47e71275d8a06c85acc792542bc694
http://qinkun1234.github.io/b/mydoc_jwt/
it catch 404 File not found.
can u help me find where is the problem?

I'm not sure what you're really asking. Can you try downloading the latest version of the theme and let me know if this problem still persists?


Cannot run inferece_demo.ipynb (UnboundLocalError: local variable 'padded_img' referenced before assignment)

Describe the bug/Reproduction
After I build the docker image, I try to run the inferece_demo.ipynb, but it doesn't work. I get the follwing error: UnboundLocalError: local variable 'padded_img' referenced before assignment
Did you make any modifications on the code or config? Did you understand what you have modified?
Yes, I modified the config_file variable from '../configs/faster_rcnn_r50_fpn_1x_coco.py' to '../configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py' and the checkpoint_file to include the correct path.
Environment
sys.platform: linux
Python: 3.7.7 (default, Mar 23 2020, 22:36:06) [GCC 7.3.0]
CUDA available: True
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 10.1, V10.1.243
GPU 0: Tesla K80
GCC: gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
PyTorch: 1.5.0
PyTorch compiling details: PyTorch built with:
  - GCC 7.3
  - C++ Version: 201402
  - Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v0.21.1 (Git Hash 7d2fd500bc78936d1d648ca713b901012f470dbc)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - NNPACK is enabled
  - CPU capability usage: AVX2
  - CUDA Runtime 10.1
  - NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37
  - CuDNN 7.6.3
  - Magma 2.5.2
  - Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_INTERNAL_THREADPOOL_IMPL -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_STATIC_DISPATCH=OFF,

TorchVision: 0.6.0a0+82fd1c8
OpenCV: 4.2.0
MMCV: 0.5.5
MMDetection: 2.0.0+9f8c002
MMDetection Compiler: GCC 7.4
MMDetection CUDA Compiler: 10.1

Error traceback
---------------------------------------------------------------------------
UnboundLocalError                         Traceback (most recent call last)
<ipython-input-4-4d78d4937daf> in <module>
      1 # test a single image
      2 img = 'demo.jpg'
----> 3 result = inference_detector(model, img)

/mmdetection/mmdet/apis/inference.py in inference_detector(model, img)
     82     # prepare data
     83     data = dict(img=img)
---> 84     data = test_pipeline(data)
     85     data = collate([data], samples_per_gpu=1)
     86     if next(model.parameters()).is_cuda:

/mmdetection/mmdet/datasets/pipelines/compose.py in __call__(self, data)
     23     def __call__(self, data):
     24         for t in self.transforms:
---> 25             data = t(data)
     26             if data is None:
     27                 return None

/mmdetection/mmdet/datasets/pipelines/test_aug.py in __call__(self, results)
     23                 _results['scale'] = scale
     24                 _results['flip'] = flip
---> 25                 data = self.transforms(_results)
     26                 aug_data.append(data)
     27         # list of dict to dict of list

/mmdetection/mmdet/datasets/pipelines/compose.py in __call__(self, data)
     23     def __call__(self, data):
     24         for t in self.transforms:
---> 25             data = t(data)
     26             if data is None:
     27                 return None

/mmdetection/mmdet/datasets/pipelines/transforms.py in __call__(self, results)
    303
    304     def __call__(self, results):
--> 305         self._pad_img(results)
    306         self._pad_masks(results)
    307         self._pad_seg(results)

/mmdetection/mmdet/datasets/pipelines/transforms.py in _pad_img(self, results)
    288                     results[key], self.size_divisor, pad_val=self.pad_val)
    289             results[key] = padded_img
--> 290         results['pad_shape'] = padded_img.shape
    291         results['pad_fixed_size'] = self.size
    292         results['pad_size_divisor'] = self.size_divisor

UnboundLocalError: local variable 'padded_img' referenced before assignment

i meet the error too

Same error too.

Same error too.

You may update to the latest version and this error should have been fixed.

@hellock  It works! Thank you very much.

@hellock
Sorry I'm New for mmdetection
I dont know how to update and what should i commend?
please~

Hello, my model and MMDetection code base is at the latest version (model 2.0.0). I am still getting this error. Can someone suggest what am I supposed to do? Thanks!!

@kbiyani33,
This is just a guess, but, if you are on a docker image, build it again. If you're not, go through the installation procedure

@bpmsilva Thanks for you response. I was on a docker image and rebuilding MMDetection from scratch had worked me. Thanks.

@hellock hello,I met the same error in mmdet2.0, I don't know if this error has been fixed recently .And i'm trying to update my mmdet version.But i have no idea that if l have to train my model again or the model is compatible in the these mmdet versions.

Hi @NygmaLin
You don't need to train your model again if your model is trained under 2.0.
If you are using 1.x model, there will be a little performance drop due to the coordinate system change.


[T.F 2.0 API Docs] Modifying documentation of set_optimizer in config.py

PR for issue #42450
Making the modification to the existing functions:

set_optimizer_experimental_options

@googlebot I fixed it.

@Harsh188, I see you have signed the CLA.
But the bot doesn't just check the user submitting the PR, it checks the email address in the commits.

@Harsh188 Can you please make sure to use same GitHub username and email-id associated with it

@gbaned @MarkDaoust I'm using the same GitHub username and email associated with my GitHub account. Looks like this issue came up because I reinstalled my macOS and my last name was listed as Mohan instead of MohanKumar hopefully this change fixes my issues with other PRs.

Looks like after reinstalling macOS on my computer I had my last name listed as Mohan instead of MohanKumar :P

Hi @jaingaurav, can you help me sort this out?
It looks like all of the default optimizers are being pushed onto the optimizer vector in meta_optimizers.cc. This leads me to believe that all of the default optimizers are active.
This seems a bit confusing because when I run
>>> tf.config.get_optimizer_experimental_options()

the output I get is {'disable_model_pruning': False, 'disable_meta_optimizer': False}.
It doesn't list out all of the optimizers that are initialized to True. This is what initially lead me to believe that they were all set to False.
This can be observed in context.py where _optimizer_experimental_options is initially set to an empty dictionary. This results in the state of the default optimizers not being added to the dictionary when get_optimizer_experimental_options is called.

@Harsh188: You are right, this is a problem. The API basically allows setting a value, but doesn't tell you the default that are already set. This is very confusing and largely a problem with the interplay between the python configuration interface and the C++ state. What we need is an API to the C++ layer that tells what optimizers are set once the context is initialized.

I'm gonna open up another PR to fix that issue and then get back to this since I'm still unsure about what default optimizers are turned on.


bgpv1,ci: Add Test_AdvertisedPathAttributes into BGP component tests

Adds a new BGP component test which tests the AdvertisedPathAttributes options of the CiliumBGPPeeringPolicy CRD. As iBGP peering is needed to test Local Preference, it modifies the test framework to allow it.

/test

/test


print support

currently the table is not printable,
things to change:

remove header
show all the rows not just the currently visible ones

won't fix


On and off for groups doesn't seem to work.

brightness seems ok, and devices on and off work.

Fixed with commit 95734abb0ae180dfff57270fc32e5e6a08f1764a


Registry 9 Schema creation is allowed with schema name as null

I am using the same call here in AvroSchemaRegistryClientTest.java
/** Return true if the schema creation failed as expected */
private void testCreate(SchemaRegistryClient client) {
boolean failedAsExpected = false;
SchemaMetadata schemaMetadata = new SchemaMetadata.Builder(name).type(type).schemaGroup(group).
description("description").build();
try {
client.registerSchemaMetadata(schemaMetadata);
} catch (BadRequestException ex) {
Response resp = ex.getResponse();
Assert.assertEquals(test + " - http response unexpected", expectedHttpResponse.getStatusCode(), resp.getStatus());
CatalogResponse catalogResponse = SchemaRegistryClient.readCatalogResponse(resp.readEntity(String.class));
Assert.assertEquals(test + " - catalog response unexpected",
expectedCatalogResponse.getCode(), catalogResponse.getResponseCode());
failedAsExpected = true;
}
Assert.assertTrue(test + " - did not fail as expected", failedAsExpected);
}
From: Harsha <notifications<EMAIL_ADDRESS>Reply-To: hortonworks/registry <reply<EMAIL_ADDRESS>Date: Tuesday, December 27, 2016 at 1:03 PM
To: hortonworks/registry <registry<EMAIL_ADDRESS>Cc: Suresh Srinivas <suresh<EMAIL_ADDRESS>Author <author<EMAIL_ADDRESS>Subject: Re: [hortonworks/registry] Registry 9 Schema creation is allowed with schema name as null (#21)
@harshach commented on this pull request.

In schema-registry/client/src/main/java/com/hortonworks/registries/schemaregistry/client/SchemaRegistryClient.javahttps://github.com/hortonworks/registry/pull/21#pullrequestreview-14501322:

@@ -327,7 +327,7 @@ private SchemaIdVersion doAddSchemaVersion(String schemaName, SchemaVersion sche
return new SchemaIdVersion(schemaMetadataInfo.getId(), readEntity(msg, Integer.class));
}

private CatalogResponse readCatalogResponse(String msg) {

public static CatalogResponse readCatalogResponse(String msg) {

readCatalogResponse is for parsing rest api calls. Users of schemaRegistryClient doesn't really need to understand the api calls it makes do we need to make this public.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/hortonworks/registry/pull/21#pullrequestreview-14501322, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABWh2bGHrj2XoV4lRO5DWd_FZxn8hFuGks5rMX0sgaJpZM4LWbI-.


[yaml] Move js2py package to yaml deps

js2py is an optional feature for Beam YAML only, so moving to yaml tag to avoid forcing dependency for python users

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

R: @damccorm

R: @robertwb


Buffer() without a new keyword is going to be hard-deprecated soon

Refs: https://github.com/nodejs/node/pull/8169, https://github.com/nodejs/node/pull/7152.
Two options here:

Use the new Buffer API — Buffer.alloc()/Buffer.from()/Buffer.allocUnsafe() (requires a shim for v0.10/v0.12 and older v4.x versions prior to v4.5.0).
Use new Buffer() for the time being — just add the new keyword everywhere. You should manually check that everything is safe in this case, see the links below for more explanation. That might be hard-deprecated at some later point.

More background:

https://github.com/ChALkeR/notes/blob/master/Lets-fix-Buffer-API.md
https://github.com/ChALkeR/notes/blob/master/Buffer-knows-everything.md
https://github.com/nodejs/node/pull/7152#issuecomment-240880317

Quick grep (you should better re-check):
duplexify-3.4.5.tgz/test.js:279:      t.same(chunk, Buffer('hello world'))
duplexify-3.4.5.tgz/test.js:290:    dup.write(Buffer('hello world'))

The grep above only includes the lines that call Buffer() without the new keyword, if you choose to move to the new API — you should probably also replace new Buffer(…) calls.

Note: the deprecation was landed and will start printing warnings in Node.js 7.0.

node 7 is bad. This is a bad upstream change.

This can be closed because the deprecation was reverted in a later 7.x release.

I think this can be closed now since new Buffer only gets called if Buffer.from does not exist.


Update ActiveRecordTestTrait.php

Q
A

Is bugfix?
It seems to... I'm not sure.

New feature?
❌

Breaks BC?
❌

Tests pass?
?

Fixed issues

https://github.com/yiisoft/yii2/blob/master/framework/db/Query.php#L291
The Query::scalar() param should be database connection, not fields name

All tests passed. But why it works before?

Interesting... I cannot find the reason why it worked, obviously some tests are missing. But it definitely needed correction.

Yes, definitely. I suggest not merging this PR for now, until we find out why.

There are 2 classes using the yiiunit\framework\ar\ActiveRecordTestTrait,
https://github.com/yiisoft/yii2/blob/da447fd1bb9778b8b76994f3e3e14f9748c67625/tests/framework/db/pgsql/ActiveRecordTest.php#L19
one for pgsql, which uses the ActiveRecordTestTrait for a comment as it seems, nothign else.
another, which uses the trait as trait, and then provides its own functon to test scalar.
https://github.com/yiisoft/yii2/blob/ed1c087784e313fdb10ae873146af84a0bd4da29/tests/framework/db/ActiveRecordTest.php#L134
So the function from ActiveRecordTestTrait testFindScalar is never used.

You are right, this method is overwritten. It should be merged to ActiveRecordTest one if possible or removed.


UNS Blog Article

Description

Unified Namespace Article

[x] Update Images

I am out of the office until Tuesday. If it is ready to go, I would suggest publishing it on Monday.


Switch to go modules

Codecov Report

Merging #27 into master will decrease coverage by 4.42%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
- Coverage   65.71%   61.29%   -4.43%
==========================================
  Files           2        2
  Lines          70       62       -8
==========================================
- Hits           46       38       -8
  Misses         12       12
  Partials       12       12

Impacted Files
Coverage Δ

shim/shim.go
75.00% <0.00%> (-5.00%)
:arrow_down:

bundle/bundle.go
59.25% <0.00%> (-4.08%)
:arrow_down:

Continue to review full report at Codecov.

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


fatfs: Add Kconfig option FS_FATFS_VOLUMES

Expose the VOLUMES option to be able to adjust the number of used
logical drives through Kconfig.
This patch depends on zephyrproject-rtos/fatfs#6.
Signed-off-by: Markus Fuchs<EMAIL_ADDRESS>

I have no opinion about this change except to note my discovery in #31130 that the way FatFs works in Zephyr makes it essentially impossible to support devicetree-defined FatFs partitions.  That is in part due to the use of volume strings to magically identify storage devices, and to everything coming from Kconfig.
I would love to see a significant rework of the FatFs infrastructure to eliminate these complexities, but it's not in scope for this PR, from which I abstain.

I have no opinion about this change except to note my discovery in #31130 that the way FatFs works in Zephyr makes it essentially impossible to support devicetree-defined FatFs partitions.  That is in part due to the use of volume strings to magically identify storage devices, and to everything coming from Kconfig.
I would love to see a significant rework of the FatFs infrastructure to eliminate these complexities, but it's not in scope for this PR, from which I abstain.


Document public API on main website

Add the API reference here: https://cli.emberjs.com/release/api-documentation/
There's probably some infrastructure work to make this happen automatically, but I think we can start by manually documenting the methods available to an addon in index.js? I don't think the methods change very often. Here's the list (taken from https://ember-cli.com/api/classes/Addon.html):

config
blueprintsPath
includedCommands
importTransforms
serverMiddleware
testemMiddleware
postBuild
preBuild
outputReady
buildError
included
shouldIncludeChildAddon
setupPreprocessorRegistry
preprocessTree
postprocessTree
lintTree
contentFor
treeFor

These docs also need to do a better job of explaining when to use which hook


Allow post creators to swap ownership

I have no idea if they want this to edit the UI of (display of who authored) the first post. This is probably not very useful right now but might be in the future.
See here.

Possibly relates to #74.

Probably obsolete with PostAuthors existing.


timeline viz: hovering on the task text should highlight the timeline

If I hover over the project, highlight all its boxes
If I hover over a task, highlight all its segments (which may each be only a subset of the box)
If I hover over a note, highlight only its segments

I'm only going to do point 1 for now. I'll open a new ticket for 2 and/or 3 if I find I need it.


Call to EntityManager::clear in loop not detected

I'm currently in the process of upgrading phpstan an phpstan-doctrine to the current version (phpstan 1.11.6, phpstan-doctrine 1.4.4) and I'm encountering a new error.
We have a test like the following:
public function testCleanup(EntityManager $entityManager): void
{
    if ([] !== $entityManager->getRepository(Favourite::class)->findAll()) {
        self::markTestSkipped('Invalid setup');
    }

    foreach ([1,2,3] as $dummy) {
        // setup ...
        $entityManager->clear();
    }

    self::assertCount(4, $entityManager->getRepository(Favourite::class)->findAll());

    // ...
}

This test reports Call to static method PHPUnit\Framework\Assert::assertCount() with 4 and array{} will always evaluate to false..
When adding a $entityManager->clear(); outside the loop, no error is reported.

As a workaround do this:

public function testCleanup(EntityManager $entityManager): void
{
    $initial = $entityManager->getRepository(Favourite::class)->findAll();
    if ([] !== $initial) {
        self::markTestSkipped('Invalid setup');
    }

    foreach ([1,2,3] as $dummy) {
        // setup ...
        $entityManager->clear();
    }

    $favourites = $entityManager->getRepository(Favourite::class)->findAll();

    self::assertCount(4, $favourites);

    // ...
}


⚠ Apple has degraded performance

In a89de5a, Apple (https://apple.com) experienced degraded performance:

HTTP code: 200
Response time: 1836 ms

Resolved: Apple performance has improved in 1d87896.


Don't lock JSCS version

The package.json should specify >= version for JSCS so that as new versions come out, people can try to use them without requiring this package to be bumped.

See https://github.com/jscs-dev/node-jscs/blob/master/OVERVIEW.md#user-content-versioning--semver

I don't see how the semver rules for JSCS should effect grunt-jscs. Grunt-JSCS could just specify JSCS as a peer dependency and let the user manage the version.

I don't see how the semver rules for JSCS should effect grunt-jscs

plugin follows the same semver strategy.

Grunt-JSCS could just specify JSCS as a peer dependency and let the user manage the version.

I think that would be a simplifcation for the plugin writer but not for the user


Actively maintained?

hey! Was wondering if this repo is still actively maintained or if @bgrins is looking for maintainers. I'm using spectrum in a few projects and would be willing to triage+bring this repo up to date :)

I am curious too

Hi @miketoth, I'm not actively maintaining this at the moment but would gladly accept some help with triaging etc! I don't have the bandwidth to review a rewrite or major refactors but bugfixes, etc should be easy to get landed.

Ok, good to hear. I'll close this issue, help out where I can, and merge any of the larger refactors I need into my fork. If you do have the chance to review something larger, https://github.com/bgrins/spectrum/pull/299 would be my vote. lmk if there is anything else I can help out with

Thanks @miketoth. Landing #299 seems reasonable - would you be able to give that a quick look / review?

Also, what kind of larger refactors do you have / were you thinking of in your fork? I'd be open to incremental improvements here (like limiting/removing jQuery dependency, bringing tooling stack up to date, etc) - I'm mostly averse to a rewrite.

(like limiting/removing jQuery dependency, bringing tooling stack up to date, etc)
Is exactly what I'd like to do. I've had some success bringing my fork's dependencies update to date. I'll give #299 a review -- would love to get it in :)


Updating BC notify workflow

Summary
The bcnotify.yaml workflow exists to notify people of a breaking-change labeled item.  Unfortunately GitHub's api fires on 'any labeled' event.
Adding the label condition check in the workflow itself so that this workflow only executes if the labeled event is the one with the breaking-change label itself.

@timheuer How do people subscribe to this?


Can't submit PR to fix translation

The Japanese translation says (April and May) instead of (April and October) regarding the major update timing.
I tried to submit a PR but it errors out and I can't get any useful info from the error message. Something about the repo seems to be misconfigured.
https://github.com/MicrosoftDocs/power-platform-pr.ja-JP/pull/2
Can you either fix the repo or just have the Japanese localization team fix the error?

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

ID: 13124815-8bd7-6c5d-c123-4b3c049bbf90
Version Independent ID: 92e1fc93-fd81-9d05-f71d-7dd189ca19a0
Content: Policies and Communications for service incidents - Power Platform
Content Source: power-platform/admin/policies-communications.md
Service: power-platform
GitHub Login: @astockli
Microsoft Alias: astockli

@dcbrown16
Thanks for the notice. Taking to internal mail.


use gitea client to fetch and template issues/tasks etc in md

Progress on openapi client generation for generating gitea api client & methods used to fetch tasks/issues:

191b1f9c1befad301b495eac2c516a51c404832a
a075ce52589780fe01eb58b2f753f77620919f2c
ba689b4f886ba8a5b78335b6cab516c77c75a74d

uses new config management.

Example that exports issues, users and repos into md files in a structured way

2ce96f9bacc5e25ae4582cb9f18f5b9cc0649b2d
5638318a3ec97c8f6884b78df2fef90632a45a28

See examples/clients/gitea/md_issues/README.md


Do we need the overloaded C++ functions?

I'm not sure we gain anything by having the overloaded versions of things like HMM_Multiply or HMM_Add. They are not really less verbose than the full names, we provide operator overloads for all the important ones, and they are a lot of work to maintain.
Obviously we can keep them if they are useful to people, but I figured I'd ask the question. I personally have stopped using overloaded functions completely in my own code and haven't minded. (Thanks, Go.)

I could imagine some C++ like this feature of just being able to call HMM_Multiply with whatever data types and not have to call the explicit functions for that data type. Either way I’m not torn on keeping them or not

Personally I prefer mul kind of function in C++.
The reason is if we concatenate a few matrices like so:
D = A * B * C
D = C * B * A

It isn't extremely clear what the order of intended operations is just by looking at the * operator. But, if there is a mul function people can use either ordering however they like, explicitly.
D = mul(mul(A, B), C);
D = mul(mul(B, C), A);

I overload this mul function for matrix to matrix, matrix to vector, quaternion to vector, axis-angle to vector, and so-on, transform to transform, transform to vector, and so on.

I no longer use the overloaded functions either. I have also been tripped up in the past by reading two versions of each operation in the documentation (usually via search), trying one, and learning it was just an overload of something else.

@Nairou That's an interesting case I hadn't thought of. And to @RandyGaul's point, if you want to use the mul style of math, the function names are probably so verbose that you would have to #define mul HMM_Multiply anyway, just to make them tolerable.
My biggest issue with the overloaded versions is that they don't really give you anything beyond the operator overloads (besides a more visible order of operations, I guess). If someone wants to take the @RandyGaul approach, I would rather just let them create mul in their own project with all the overloads they want. That way they can extend it to other things outside of Handmade Math.

HMM 2.0 preserves the C++ overloads.


[MINOR UPDATE] remove avro test dependency

avro 1.11.4 does not publish this jar any more
simplifies #2953

@cgivre @jnturton this will hopefully unblock #2953


Instantiate checkpoint manager client in stmgr

The stmgrs in Stateful Processing Heron topologies interact with locally running checkpoint managers to get/save the instance state. This change makes executor pass checkpoint manager port/id to stmgr which allows it to establish a connection.

👍

👍


IPAM Overhaul: Refactor utilization/allocation calculation logic

[ ] Based on #2915, make calculations work
[ ] Separate UI context for prefix vs IP address calculations
[ ] Address #2648

Need to do #2531 so solving this with that story (and IPAddress) while moving the existing code.

Adding a second utilization column slows down the list view even more (over 5 seconds to load 46 prefixes on my dev machine). I'm going to combine the columns for now.


Add Flow Scheduler

Summary
Implement a simplified version of Flow Scheduler presented in Quincy: fair scheduling for distributed computing clusters.
TL;lDR; The major files to review

schedulers/flow_scheduler.py
tests/test_flow_scheduler.py

Changes:

Copy https://github.com/ICGog/Flowlessly into /schedulers. I was thinking of using git submodules. But since I make some custom patches to the origin repo, git submodule becomes very annoying to deal with. Note I separate the changes that is just copying Flowlessly to this repo in port-flowlessly to keep this PR clean.

What I changed:

Fix gtest external dependency git branch. I was pulling from master, which no longer exists. Now I have it pull from main.
Add https://pybind11.readthedocs.io/en/stable/installing.html as a submodule
Add python binding in schedulers/Flowlessly/src/python/Flowlessly.cpp using pybind11

Implement Flow scheduler in schedulers/flow_scheduler.py
Add unit test for some Flow scheduler specific helper function in tests/test_flow_scheduler.py
Add configs/simple_workload_flow.conf
Set up devcontainer so that people (including myself) using Apple Silicon Mac can run this repo in Github codespace. [cplex](https://pypi.org/project/cplex/) isn't available on arm 64 architecture.

Test Plan
Pass all unit test
@ruizehung ➜ /workspaces/erdos-scheduling-simulator (flow-scheduler) $ pytest tests
================================================================== test session starts ==================================================================
platform linux -- Python 3.10.12, pytest-7.4.2, pluggy-1.3.0
rootdir: /workspaces/erdos-scheduling-simulator
plugins: cov-4.1.0
collected 206 items / 1 skipped

tests/test_clockwork_scheduler.py ...........                                                                                [  5%]
tests/test_flow_scheduler.py ..                                                                                [  6%]
tests/test_ilp_scheduler.py ...................................                                                                                [ 23%]
tests/test_jobs.py ........................                                                                                [ 34%]
tests/test_loader.py ......                                                                                [ 37%]
tests/test_profile.py .                                                                                [ 38%]
tests/test_resources.py ............................                                                                                [ 51%]
tests/test_schedulers.py .......                                                                                [ 55%]
tests/test_simulator.py ............                                                                                [ 61%]
tests/test_tasks.py ...........................................                                                                                [ 82%]
tests/test_time.py ........                                                                                [ 85%]
tests/test_workers.py ..................                                                                                [ 94%]
tests/test_z3_scheduler.py .s....s..s.                                                                                [100%]

============================================================ 203 passed, 4 skipped in 5.13s =============================================================
@ruizehung ➜ /workspaces/erdos-scheduling-simulator (flow-scheduler) $

Can run flow scheduler against simple_workload
@ruizehung ➜ /workspaces/erdos-scheduling-simulator (flow-scheduler) $ python3 main.py --flagfile=configs/simple_workload_flow.conf
@ruizehung ➜ /workspaces/erdos-scheduling-simulator (flow-scheduler) $

simple_workload_flow.log: https://gist.github.com/ruizehung/af43e79cbfff7e39f19d416db002761e
simple_workload_flow.csv: https://gist.github.com/ruizehung/725c529232734d88a78f373a9541942c
And also I'm able to plot based on the output csv. E.g.

There are still some issues with plotting though since we hardcode what markers, colors mapping in analyze.py. I think we can fix it when we need it.
@ruizehung ➜ /workspaces/erdos-scheduling-simulator (flow-scheduler) $ python3 analyze.py \
  --csv_files=simple_workload_flow.csv \
  --csv_labels=FlowScheduler \
  --inter_task_time \
  --task_placement \
  --task_placement_delay \
  --task_slack \
  --plot
scheduler_labels=['FlowScheduler']
2023-10-24,16:55:50.459 plotting DEBUG: Simulation end time for simple_workload_flow.csv: 2405
2023-10-24,16:55:50.459 plotting DEBUG: ================== Num placed tasks ==================
2023-10-24,16:55:50.461 plotting DEBUG:
+----------+-----------+----------+-----------+-----------+----------------------+--------------------+---------------------+---------------------+---------------------+---------------------+---------------------+---------------------+-----------------------+
|   Length |   Average |   Median |   Minimum |   Maximum |   Standard Deviation |   Percentile (1st) |   Percentile (10th) |   Percentile (25th) |   Percentile (50th) |   Percentile (75th) |   Percentile (90th) |   Percentile (99th) |   Percentile (99.9th) |
+==========+===========+==========+===========+===========+======================+====================+=====================+=====================+=====================+=====================+=====================+=====================+=======================+
|       16 |       0.5 |      0.5 |         0 |         1 |                  0.5 |                  0 |                   0 |                   0 |                 0.5 |                   1 |                   1 |                   1 |                     1 |
+----------+-----------+----------+-----------+-----------+----------------------+--------------------+---------------------+---------------------+---------------------+---------------------+---------------------+---------------------+-----------------------+
2023-10-24,16:55:50.461 plotting DEBUG: ================== Num unplaced tasks ==================
2023-10-24,16:55:50.462 plotting DEBUG:
+----------+-----------+----------+-----------+-----------+----------------------+--------------------+---------------------+---------------------+---------------------+---------------------+---------------------+---------------------+-----------------------+
|   Length |   Average |   Median |   Minimum |   Maximum |   Standard Deviation |   Percentile (1st) |   Percentile (10th) |   Percentile (25th) |   Percentile (50th) |   Percentile (75th) |   Percentile (90th) |   Percentile (99th) |   Percentile (99.9th) |
+==========+===========+==========+===========+===========+======================+====================+=====================+=====================+=====================+=====================+=====================+=====================+=======================+
|       16 |         0 |        0 |         0 |         0 |                    0 |                  0 |                   0 |                   0 |                   0 |                   0 |                   0 |                   0 |                     0 |
+----------+-----------+----------+-----------+-----------+----------------------+--------------------+---------------------+---------------------+---------------------+---------------------+---------------------+---------------------+-----------------------+
2023-10-24,16:55:50.892 plotting DEBUG: ================== Actual task completion slack [ms] ===============
2023-10-24,16:55:50.892 plotting DEBUG: Tasks that match the regex: .*
2023-10-24,16:55:50.894 plotting DEBUG:
+----------+-----------+----------+-----------+-----------+----------------------+--------------------+---------------------+---------------------+---------------------+---------------------+---------------------+---------------------+-----------------------+
|   Length |   Average |   Median |   Minimum |   Maximum |   Standard Deviation |   Percentile (1st) |   Percentile (10th) |   Percentile (25th) |   Percentile (50th) |   Percentile (75th) |   Percentile (90th) |   Percentile (99th) |   Percentile (99.9th) |
+==========+===========+==========+===========+===========+======================+====================+=====================+=====================+=====================+=====================+=====================+=====================+=======================+
|        4 |   -0.8015 |  -0.7515 |    -1.703 |         0 |             0.629604 |           -1.68197 |             -1.4927 |            -1.17725 |             -0.7515 |            -0.37575 |             -0.1503 |            -0.01503 |             -0.001503 |
+----------+-----------+----------+-----------+-----------+----------------------+--------------------+---------------------+---------------------+---------------------+---------------------+---------------------+---------------------+-----------------------+
2023-10-24,16:55:50.894 plotting DEBUG: ================== Intended task completion slack [ms] =============
2023-10-24,16:55:50.894 plotting DEBUG: Tasks that match the regex: .*
2023-10-24,16:55:50.895 plotting DEBUG:
+----------+-----------+----------+-----------+-----------+----------------------+--------------------+---------------------+---------------------+---------------------+---------------------+---------------------+---------------------+-----------------------+
|   Length |   Average |   Median |   Minimum |   Maximum |   Standard Deviation |   Percentile (1st) |   Percentile (10th) |   Percentile (25th) |   Percentile (50th) |   Percentile (75th) |   Percentile (90th) |   Percentile (99th) |   Percentile (99.9th) |
+==========+===========+==========+===========+===========+======================+====================+=====================+=====================+=====================+=====================+=====================+=====================+=======================+
|        4 |         0 |        0 |         0 |         0 |                    0 |                  0 |                   0 |                   0 |                   0 |                   0 |                   0 |                   0 |                     0 |
+----------+-----------+----------+-----------+-----------+----------------------+--------------------+---------------------+---------------------+---------------------+---------------------+---------------------+---------------------+-----------------------+
2023-10-24,16:55:51.607 plotting DEBUG: ================== Inter-Task Time [ms] ==================
2023-10-24,16:55:51.607 plotting DEBUG: Tasks that match the regex: .*
2023-10-24,16:55:51.607 plotting DEBUG: Statistics for Task_One:
2023-10-24,16:55:51.609 plotting DEBUG:
+----------+-----------+----------+-----------+-----------+----------------------+--------------------+---------------------+---------------------+---------------------+---------------------+---------------------+---------------------+-----------------------+
|   Length |   Average |   Median |   Minimum |   Maximum |   Standard Deviation |   Percentile (1st) |   Percentile (10th) |   Percentile (25th) |   Percentile (50th) |   Percentile (75th) |   Percentile (90th) |   Percentile (99th) |   Percentile (99.9th) |
+==========+===========+==========+===========+===========+======================+====================+=====================+=====================+=====================+=====================+=====================+=====================+=======================+
|        3 |         0 |        0 |         0 |         0 |                    0 |                  0 |                   0 |                   0 |                   0 |                   0 |                   0 |                   0 |                     0 |
+----------+-----------+----------+-----------+-----------+----------------------+--------------------+---------------------+---------------------+---------------------+---------------------+---------------------+---------------------+-----------------------+
2023-10-24,16:55:52.144 plotting DEBUG: ================ Task placement delay [ms] ================
Traceback (most recent call last):
  File "/workspaces/erdos-scheduling-simulator/analyze.py", line 1346, in <module>
    app.run(main)
  File "/home/vscode/.local/lib/python3.10/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/home/vscode/.local/lib/python3.10/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
  File "/workspaces/erdos-scheduling-simulator/analyze.py", line 1320, in main
    analyze_task_placement_delay(
  File "/workspaces/erdos-scheduling-simulator/analyze.py", line 702, in analyze_task_placement_delay
    plot_colors = [colors[label] for label in scheduler_labels]
  File "/workspaces/erdos-scheduling-simulator/analyze.py", line 702, in <listcomp>
    plot_colors = [colors[label] for label in scheduler_labels]
KeyError: 'FlowScheduler'
@ruizehung ➜ /workspaces/erdos-scheduling-simulator (flow-scheduler) $

Closing because too old.


removing init backend hack with polyfill

With Reference to the following Snippet:
import { initBackend } from 'absurd-sql/dist/indexeddb-main-thread';

function init() {
  let worker = new Worker(new URL('./index.worker.js', import.meta.url));
  // This is only required because Safari doesn't support nested
  // workers. This installs a handler that will proxy creating web
  // workers through the main thread
  initBackend(worker);
}

init();

WebKit has merged this PR, so soon we won't require the hack to initBackend.
Until that release is widely adopted, would this Polyfill help for safar?
https://github.com/johanholmerin/nested-worker
So, is it possible to remove this block and upgrade the code to directly create nested worker. This will greatly improve the DX.

@kdabir good idea! I will take a look soon


Possible race condition when using AuditSpinner

Bug description
With --progress-spinner being on, either spinner text or memory-stored logs appears on the terminal, but not both.
Examples:

spinner message, no logs:py310: commands[0]> python -m pip_audit -S .
- Collecting inputs
py310: exit 1 (0.51 seconds) /home/jkucera/development/upstream/vutils-validator> python -m pip_audit -S . pid=47412

no spinner message, logs:py310: commands[0]> python -m pip_audit -S .
ERROR:pip_audit._cli:pyproject file pyproject.toml does not contain `project` section
py310: exit 1 (0.51 seconds) /home/jkucera/development/upstream/vutils-validator> python -m pip_audit -S . pid=47276

As a workaround, --progress-spinner need to be set to off:
py310: commands[0]> python -m pip_audit --progress-spinner off -S .
ERROR:pip_audit._cli:pyproject file pyproject.toml does not contain `project` section
py310: exit 1 (0.50 seconds) /home/jkucera/development/upstream/vutils-validator> python -m pip_audit --progress-spinner off -S . pid=47455

Reproduction steps

Add python -m pip_audit -S . to your tox.ini file.
Remove [project] section from your pyproject.toml file.
Run tox multiple times and watch its behavior.

Expected behavior
Both spinner and logs should be displayed on the terminal.
Screenshots and logs
See examples above.
Platform information

OS name and version: Fedora Linux 37 (Workstation Edition)
pip-audit version (pip-audit -V): pip-audit 2.7.1
Python version (python -V or python3 -V): Python 3.10.12
pip version (pip -V or pip3 -V): pip 23.2.1
tox version: 3.28.0

Thanks for the report @i386x!
Hmm, this is odd -- we should always spit out the logs unconditionally after the spinner concludes. I haven't seen this behavior outside of being wrapped by a runner like tox, so I wonder if this is a case of lossy wrapping on the child process's stdout/stderr.
That's just a random guess though; I'll triage more later this week.

I'll keep experimenting here, but I've been unable to reproduce this outside of a wrapper (I'll try tox later today).

I've been unable to reproduce this. @i386x, are you able to create a reproducer that doesn't depend on tox?

I will try.


Chrome does not display pages properly

Describe the bug
On branch nixos-23.05 I've got a configuration (with a chrome on gnome) that work properly.

chrome is working here :heavy_check_mark: 0de86059128
chrome does not work here :negative_squared_cross_mark: e11142026e2

Steps To Reproduce
Steps to reproduce the behavior:

build nixos with chrome
open a web page
the page is not properly displayed

Expected behavior
Chrome should be able to render pages properly.
Screenshots
Chrome is working properly on 0de86059128

Chrome is not work*ing properly on e11142026e2

Additional context
I'm not sur it's a chrome issue, but it's the only issue I have recorded.
Could it be the graphic driver ?
Notify maintainers

Metadata
❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.4.0, NixOS, 23.05 (Stoat), 23.05.1501.0de86059128`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos-23.05, nixos-unstable"`
 - channels(alex): `"nixos-unstable, nixpkgs-unstable, nixuns"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

# lspci
00:00.0 Host bridge: Intel Corporation Comet Lake-U v1 4c Host Bridge/DRAM Controller (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation CometLake-U GT2 [UHD Graphics] (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0c)
00:1c.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #5 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #9 (rev f0)

rm -rf ~/.config/google-chrome/Default/GPUCache/
#242113

@surfaceflinger Thanks !


ASF-osx-x64.zip解压出错？

ASF-osx-x64 是不是Mac上用的？  为什么解压出错呢？

Please review the guidelines for contributing to this repository.

https://github.com/JustArchi/ArchiSteamFarm/blob/master/CONTRIBUTING.md

If my issue is not meeting contributing guidelines specified above, especially if it's a question or technical issue, please close my issue immediately - I won't complain.


[refactor] [http] api_calls file refactor, and api_manager removed

Simplified HTTP interactions
Removed all the boilerplate code from FlutterFlow
Same functionality, but that previous code was terrible, and impossible to work on top of it

@josancamon19 could you resolve the conflicts?

@josancamon19 could you resolve the conflicts?

Done @akshaynarisetti


后面会不会增加侧边栏弹层的组件?

左右滑动的方式

using the angular animation is easy to implement，need components?

use animation +1

@yb19890724
You can build your animation component follow this https://angular.cn/guide/animations.
Components in ng-zorro-antd will synchronize with the react antd on a regular basis, component which is not designed by antd will not be supported in ng-zorro-antd.
Thanks.

@giscafer thx

@vthinkxie

@vthinkxie thx