chrome failed to start - Not implemented reached in virtual bool base::PowerMonitorDeviceSource::IsOnBatteryPower()

What versions are you running?
$ go list -m github.com/chromedp/chromedp
github.com/chromedp/chromedp v0.7.7
$ google-chrome --version
<!--replace this line with the output-->
$ go version
go version go1.16.7 windows/amd64

What did you do? Include clear steps.
The code had executing for about 3 days without error, then all of sudden it crashed. The logs says it cannot start chrome with error message "Not implemented reached in virtual bool base::PowerMonitorDeviceSource::IsOnBatteryPower()"
I search the issue with the key word "Not implemented reached in virtual bool base::PowerMonitorDeviceSource::IsOnBatteryPower()" in google and found many people has experienced same issue.  Looks like downgrade some component can fix this issue. May I ask some better way without downgrade please?
https://bugzilla.redhat.com/show_bug.cgi?id=2010170
---Dockerfile---

FROM chromedp/headless-shell:latest

RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y wget

WORKDIR /app

#RUN wget https://dl.google.com/go/go1.16.4.linux-amd64.tar.gz
#RUN tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz

RUN wget https://dl.google.com/go/go1.17.2.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.17.2.linux-amd64.tar.gz

ENV TZ=Australia/Sydney

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ENV PATH="/usr/local/go/bin:${PATH}"
#ENV DBCONN="admin:63598500@tcp(stockpredictdb3.caibhk1kkppi.ap-southeast-2.rds.amazonaws.com:3306)/inventorydb?charset=utf8mb4&parseTime=True&loc=Local"
ENV DBCONN="admin:63598500@tcp(database-4.caibhk1kkppi.ap-southeast-2.rds.amazonaws.com:3306)/inventorydb?charset=utf8mb4&parseTime=True&loc=Local"

ENV FRONTENDURL="http://www.stockpredict.com.au"

ENV AWS_ACCESS_KEY_ID=AKIAXIKO7Q5T3D2Z5FRF
ENV AWS_SECRET_ACCESS_KEY=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
ENV AWS_DEFAULT_REGION=ap-southeast-2

ENV BUCKETNAME="stockpredictnewsimages2"
# ENV S3URL="https://stockpredictnewsimages1.s3.ap-southeast-2.amazonaws.com/"

RUN rm go1.17.2.linux-amd64.tar.gz

COPY go.mod .
COPY go.sum .

RUN go mod download

COPY . .

RUN go build -o stockparse

EXPOSE 80

ENTRYPOINT ["/app/stockparse"]

What did you expect to see?
Start chrome as normal.
What did you see instead?
2022-02-17T10:10:00.100+11:00 | chrome failed to start:
-- | --
  | 2022-02-17T10:10:00.100+11:00 | [0217/101000.020544:WARNING:resource_bundle.cc(447)] locale_file_path.empty() for locale
  | 2022-02-17T10:10:00.100+11:00 | [0217/101000.055161:WARNING:resource_bundle.cc(447)] locale_file_path.empty() for locale
  | 2022-02-17T10:10:00.100+11:00 | [0217/101000.059280:WARNING:resource_bundle.cc(447)] locale_file_path.empty() for locale
  | 2022-02-17T10:10:00.100+11:00 | [0217/101000.061409:ERROR:power_monitor_device_source_stub.cc(11)] Not implemented reached in virtual bool base::PowerMonitorDeviceSource::IsOnBatteryPower()
  | 2022-02-17T10:10:00.100+11:00 | [0217/101000.061759:ERROR:platform_thread_posix.cc(150)] pthread_create: Resource temporarily unavailable (11)
  | 2022-02-17T10:10:00.100+11:00 | [0217/101000.061803:ERROR:thread.cc(214)] failed to create thread
  | 2022-02-17T10:10:00.100+11:00 | [0217/101000.061814:FATAL:memory_dump_manager.cc(282)] Check failed: started.
  | 2022-02-17T10:10:00.100+11:00 | #0 0x55966e644169 (/headless-shell/headless-shell+0x698e168)
  | 2022-02-17T10:10:00.100+11:00 | #1 0x55966e57cd43 (/headless-shell/headless-shell+0x68c6d42)
  | 2022-02-17T10:10:00.100+11:00 | #2 0x55966e592870 (/headless-shell/headless-shell+0x68dc86f)
  | 2022-02-17T10:10:00.100+11:00 | #3 0x55966e5932ee (/headless-shell/headless-shell+0x68dd2ed)
  | 2022-02-17T10:10:00.100+11:00 | #4 0x55966e6be032 (/headless-shell/headless-shell+0x6a08031)
  | 2022-02-17T10:10:00.100+11:00 | #5 0x55966e6bdf71 (/headless-shell/headless-shell+0x6a07f70)
  | 2022-02-17T10:10:00.100+11:00 | #6 0x55966cc1b2e1 (/headless-shell/headless-shell+0x4f652e0)
  | 2022-02-17T10:10:00.100+11:00 | #7 0x55966ceffd96 (/headless-shell/headless-shell+0x5249d95)
  | 2022-02-17T10:10:00.100+11:00 | #8 0x55966ceff8ea (/headless-shell/headless-shell+0x52498e9)
  | 2022-02-17T10:10:00.100+11:00 | #9 0x55966cefcc56 (/headless-shell/headless-shell+0x5246c55)
  | 2022-02-17T10:10:00.100+11:00 | #10 0x55966cefd657 (/headless-shell/headless-shell+0x5247656)
  | 2022-02-17T10:10:00.100+11:00 | #11 0x55966e57461d (/headless-shell/headless-shell+0x68be61c)
  | 2022-02-17T10:10:00.100+11:00 | #12 0x55966e57447e (/headless-shell/headless-shell+0x68be47d)
  | 2022-02-17T10:10:00.100+11:00 | #13 0x55966e5741c5 (/headless-shell/headless-shell+0x68be1c4)
  | 2022-02-17T10:10:00.100+11:00 | #14 0x7f371fb5ed0a __libc_start_main
  | 2022-02-17T10:10:00.100+11:00 | #15 0x55966b0dffea _start
  | 2022-02-17T10:10:00.100+11:00 | Received signal 6
  | 2022-02-17T10:10:00.100+11:00 | #0 0x55966e644169 (/headless-shell/headless-shell+0x698e168)
  | 2022-02-17T10:10:00.100+11:00 | #1 0x55966e57cd43 (/headless-shell/headless-shell+0x68c6d42)
  | 2022-02-17T10:10:00.100+11:00 | #2 0x55966e643bf1 (/headless-shell/headless-shell+0x698dbf0)
  | 2022-02-17T10:10:00.100+11:00 | #3 0x7f372006c140 (/lib/x86_64-linux-gnu/libpthread-2.31.so+0x1413f)
  | 2022-02-17T10:10:00.100+11:00 | #4 0x7f371fb73ce1 gsignal
  | 2022-02-17T10:10:00.100+11:00Copy#5 0x7f371fb5d537 abort | #5 0x7f371fb5d537 abort

  | 2022-02-17T10:10:00.100+11:00 | [0217/101000.061409:ERROR:power_monitor_device_source_stub.cc(11)] Not implemented reached in virtual bool base::PowerMonitorDeviceSource::IsOnBatteryPower()

I don't think this has anything to do with the crash. I have seen this message in my app and my app still works well.
| 2022-02-17T10:10:00.100+11:00 | [0217/101000.061759:ERROR:platform_thread_posix.cc(150)] pthread_create: Resource temporarily unavailable (11)

I guess this is the cause. Maybe you don't do anything to limit the number of browser instances / tabs, and your system is running out of resource.

Thanks @ZekeLu
You mentioned that Maybe you don't do anything to limit the number of browser instances / tabs . May I ask why the number of the browser instances / tabs matter? (The chromedp.Flag is set to true) And How to limit the browser instances / tabs?
Here is part of the code I am using. There are some other place visiting other websites, but using the same way.
	var allocCtx1 context.Context
	var allocCtx2 context.Context
	var allocCtx3 context.Context

	var cancel1 context.CancelFunc
	var cancel2 context.CancelFunc
	var cancel3 context.CancelFunc

	opts := append(chromedp.DefaultExecAllocatorOptions[:],
		// chromedp.Flag("headless", false),
		chromedp.DisableGPU,
		chromedp.UserAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"),
	)
	allocCtx1, cancel1 = chromedp.NewExecAllocator(context.Background(), opts...)

	defer cancel1()

	// create chrome instance
	allocCtx2, cancel2 = chromedp.NewContext(
		allocCtx1,
		//chromedp.WithDebugf(log.Printf),
	)
	defer cancel2()

	// create a timeout
	allocCtx3, cancel3 = context.WithTimeout(allocCtx2, 120*time.Second)
	defer cancel3()

	var resStr string

	errload := chromedp.Run(allocCtx3,
		chromedp.Navigate(`https://www.marketindex.com.au/`),
		chromedp.WaitVisible(`#quoteapi-default-announcement`),
		chromedp.Sleep(20*time.Second),
		chromedp.Text(`.home-chart-overview`, &resStr, chromedp.NodeVisible, chromedp.ByQueryAll),
	)
       ...
       chromedp.Cancel(allocCtx3)

The cause of the error is chrome failed to start.
The application is running in AWS ECS. For the first a few days, it is running ok. But all of sudden, it crashed. From the image, the memory usage is round 17% before being taken down. Then suddenly drop down to 0.

The AWS technical support said it is because the container is detected as Unhealth. I have asked them why the container is detected as Unhealthy. Whether the  chrome failed to start  happened before the instance was taken down. Or it is because of this  chrome failed to start that makes the instance is treated as Unhealthy, then being taken down.
I will provide more detail information for trouble shooting. Thanks.

@davidzhongsydney I just noticed your Docker file contains confidential information (maybe). Please delete your issue first (it does not make sense to just modify the content because it can be found in the change history). I will give you some advices to improve your app later.

Thanks @ZekeLu for reminding me.
I have received feedback from AWS tech support and created a new ticket https://github.com/chromedp/chromedp/issues/1023
This ticket will be deleted. Thanks.


OS Icon-prompt

Added an icon that gives a little hint about the current operating system. It may sound stupid, but nowadays it is quite easy to work on different OSes in parallel (e.g. with a VM or via SSH).

Hey @dritter - I love this idea! Great work.
I've checked out the code and tested it , and have a few questions before calling it final:

What font do you have that provides the Linux icon? I'm using Powerline Deja Vu, and I don't have that Unicode character. How common is it?
Right now, the OS detection is done once (I think?), but we then go through the conditional string parsing to set the appropriate icon with every single prompt draw. Since the OS will never change out from under us, why not just set the icon once rather than parsing strings for each prompt draw? Thoughts?

@bhilburn Good questions. :)

I am using Droid Sans Mono Awesome. The Icons should be quite common, as (except for the apple-icon) they are in the public unicode space:
Penguin-Icon
Sun-Icon
Beastie-Icon
Apple-Icon, which is in private space, but should work on every OSX.
Interestingly, as I retested it, I had some Issues with echo $'\u1F427'.. Instead echoing the character directly worked as expected: echo 🐧.

Yep, only once. Indeed, it may be better to figure out the right icon when the OS is detected. I just wanted to keep that together. But now I moved it..

@bhilburn I found it! It seems there is a big difference whether you print unicode with an uppercase \U, or a lowercase \u. I always thought that doesn't matter, but it does. In my last commit, I changed all appearances from lowercase to uppercase..

Hm, yeah, those characters don't exist in my system font. They don't even render on the referenced websites you gave, actually.
Also, echo $'\u1F427' $'\U1F427' shows gibberish for both: ὂ7 🐧
I think these glyphs are only in the Awesome version of Powerline fonts.
Here's my suggestion: Let's treat these like we do for all of the other symbols. If someone has the 'awesome' fonts turned on, then great, let's use these glyphs. For non-awesome fonts, let's provide a fall-back symbol / character / string so that this segment can still be used.
Thoughts?

Excellent idea! I've just done it so!
The difference between \u and \U still bothers me, but I think the uppercase one seems more stable. Could you double check that?

Hey! I made some changes and pushed them to to a branch dritter-os-icon.
The code was still evaluating a case statement to set an OS icon with every call to the prompt segment function for os_icon. I moved that statement out, combined it with the OS detection case statement, and stuck it at the top of the file. My goal is to evaluate as little as possible with each prompt draw to keep things fast =)
Two other minor changes:

You had OS detection for 'Dragonfly' and 'OpenBSD', but no icon for those OSes, so I removed them.
I changed the foreground color to something a bit brighter - on my screen, the previous color blended into the BG a bit too much.

Pull my branch, give it a shot, and let me know what your thoughts are!

@bhilburn looks awesome!

For Completeness, I added them again. They are a part of the BSD family so the BSD icon should be fine..

Nice. looks good. :)

Okay, so I was just doing some final testing on this branch before a merge, and I found an issue. In certain scenarios that I haven't quite figured out yet, I get a garbage UTF character in my VCS segment. But it doesn't always show up... example:

It has to be a result of the change from \u to \U. Any thoughts, @dritter?

Okay, update on my above post. Even when not using this branch, I'm now seeing garbage characters.
I just upgraded from Fedora20 to Fedora22, and I suspect something is hosed. Working on sorting it out, now.

@bhilburn You could check my character_protection-Branch (see #56 ) even that this branch needs an update, there might be a fix for your problem..

@bhilburn I think the biggest suspect is the uppercase \U. Could you change that back to \u and see if the error persists? sed -i "s/\\\U/\\\u/g" powerlevel9k.zsh-theme

This work has been merged into next for testing.
https://github.com/bhilburn/powerlevel9k/tree/next


Uninstall / Delete Unifi

Greetings,
just a quick question - how can I remove Unifi and all its data from my pfSense? I was not able to do that with "pgk delete". Somebody got any idea?
Thanks a lot in advance!
Greetings
Wampeee

Hi! I am also looking to uninstall! Any clues?

I would just remove the files that were created by the script:
rm /usr/local/etc/rc.d/unifi.sh
rm -r /usr/localUniFi


Spark Application Heuristic, resource usage computation, fitness computation fixes

Changes in this PR:
Adding a new Heuristic Spark Application Heuristic
This heuristic is an informational heuristic. and contains following metrics.

Total Input Data Size
Total Input Records,
Total Output Data Size
Total Shuffle Read and Write Bytes
Total Shuffle Read and Write Records,
Total Memory Bytes Spilled
Total Disk Bytes Spilled

Making changes to use total input data size available for fitness computation of Spark jobs
Using total input data size from above heuristic in fitness computation of Spark jobs.
Change in computation for resource usage and resource wastage
Currently we use total_duration from executor metrics and executor memory to compute resource usage. Total duration is actually based on total core. If for an executor, number of core is 2 and it runs for 10 min, then total duration would be 20 min. This actually inflates the resource usage. In this PR we are dividing the total duration with total cores. Also done changes to use overhead memory in resource usage and resource allocated computation. And rounding the executor memory and overhead in multiple of RM_SCHEDULER_MINIMUM_ALLOCATION_MB. This will make sure that we have right resource usage.
Testing Done:

Analyzed many Spark applications for the heuristics and compared numbers with API numbers.
For using input data size for fitness computation tried following test cases:

Test Case
Passed

current parameter having fitness greater than existing best parameter
True

current parameter having fitness less than existing best parameter
True

current parameter zero input size and resource usage less than existing best parameter
True

current parameter zero input size and resource usage more than existing best parameter
True

existing best parameter zero input size and resource usage more than current parameter
True

existing best parameter zero input size and resource usage less than current parameter
True

Analyzed resource usage for many Spark application having executors more than one
Analyzed resource usage for many Spark application having one executor

LGTM ,  Nit comments can be handled in next PR


Remove create_realm.py.

No change in behavior, besides removing the management command.

Automated message from Dropbox CLA bot
@rishig, it looks like you've already signed the Dropbox CLA. Thanks!

Merged, thanks @rishig!


Improve the node configuration warning display

Refer to properties explicitly when possible
When multiple warnings are returned, always separate them by one
blank line to make them easier to distinguish
Improve grammar and formatting

Thanks!


Project manager and splash screen are not redrawed when window is resized

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Linux Arch 64bit, DE: i3, Godot 3  c93a3c1bd90c3416048e41328e7d787419828722, NVIDIA Corporation GF117M via primusrun
Issue description:
When I resize Godot window when Project manager is open the interface is not redrawing. It works properly when project is open (but redraw is slow)
Steps to reproduce:

open Godot 3 project manager
resize window

Workaround
Usually I switch window to full screen. It seems to force Godot to redraw interface.
Link to minimal example project:
https://www.youtube.com/watch?v=5WLZEzB98Bo&feature=youtu.be

First of all thank you for your report and sorry for the delay.
We released Godot 3.0 in January 2018 after 18 months of work, fixing many old issues either directly, or by obsoleting/replacing the features they were referring to.
We still have hundreds of issues whose relevance/reproducibility needs to be checked against the current stable version, and that's where you can help us.
Could you check if the issue that you described initially is still relevant/reproducible in Godot 3.0 or any newer version, and comment about it here?
For bug reports, please also make sure that the issue contains detailed steps to reproduce the bug and, if possible, a zipped project that can be used to reproduce it right away. This greatly speeds up debugging and bugfixing tasks for our contributors.
Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed.
Thanks in advance.
Note: This message is being copy-pasted to many "stale" issues (90+ days without activity). It might happen that it is not meaningful for this specific issue or appears oblivious of the issue's context, if so please comment to notify the Bugsquad about it.

This still affects me, both on Arch and Void linux. Godot version: 3.0.2

Thanks for confirming that.

Hard to tell. I test it again with 3.1 alpha on Ubuntu 18.04 (Gnome) with Nvidia and on Void with intel graphics (i3) and let you know.

Can anyone still reproduce this bug in Godot 3.2.1 or any later release (e.g. 3.2.2-beta4)?

This looks like this issue may not apply anymore. @TeddyDD, care to confirm it works for you now ?

As stated in my previous post I can't reproduce it anymore. Tested again now on
Linux Mint 20 with AMD ATI Radeon HD 8890M.

Thanks, closing then.


Improving Carousel images

I would like to change the Carousel.png , Carousel2.png and Carousel3.png
Please assign this issue with the corresponding labels.

Hello @nksmanya! Your issue #43 has been closed. Thank you for your contribution!🚀


Add info about mergeHs to README.

Reference Issue
No issue
What does this implement/fix? Explain your changes.
Adds a note to the PAINS README about explicit Hs.
Any other comments?
When I came to use the PAINS SMARTS recently, I got bad results because I hadn't realised that the SMARTS have explicit H atoms that need extra treatment.  This is so other people have less excuse for making the same error.

I'm guessing this isn't a genuine failure as all I've changed is a README.


Polarization support for movies

Both load_hdf5 and get_image both work only with IntensityMap / Stokes I instead of StokesIntensityMap. It would be great if VIDAMovie can work with polarization as well. Currently the only way is to split the movie in polarized .fits and then load them.

So StokesIntensityMap is a internal hack for Zygote and is not considered part of the public API. That being said we can totally add polarization loading for hdf5 into VIDA.
I think standard fits loading just calls into ComradeBase so polarization is already handled.
Also we may want to separate this functionality into something like @aplavin VLBIData.jl since I don't think VIDA should own this stuff.

Oh nevermind I forgot that I added polarization support to the hdf5 image loading a few months ago so this should just work.

Oh that is great! But I think I am not using it correctly I think because load_image(fname; polarization=true) gives me a header error as it is looking for "dsource" even though the movie was created with ehtim.
julia> load_image("SGRA_LO_ehtim.hdf5"; polarization=true)
ERROR: KeyError: key "dsource" not found
Stacktrace:
  [1] getindex(dset::HDF5.Dataset, name::String)
    @ HDF5 ~/.julia/packages/HDF5/Z859u/src/attributes.jl:403
  [2] (::VIDA.var"#8#9"{Bool})(fid::HDF5.File)
    @ VIDA ~/.julia/packages/VIDA/qIbLv/src/io.jl:45
  [3] (::HDF5.var"#17#18"{HDF5.HDF5Context, @Kwargs{}, VIDA.var"#8#9"{Bool}, HDF5.File})()
    @ HDF5 ~/.julia/packages/HDF5/Z859u/src/file.jl:101
  [4] task_local_storage(body::HDF5.var"#17#18"{HDF5.HDF5Context, @Kwargs{}, VIDA.var"#8#9"{Bool}, HDF5.File}, key::Symbol, val::HDF5.HDF5Context)
    @ Base ./task.jl:297
  [5] #h5open#16
    @ ~/.julia/packages/HDF5/Z859u/src/file.jl:96 [inlined]
  [6] h5open
    @ ~/.julia/packages/HDF5/Z859u/src/file.jl:94 [inlined]
  [7] #load_im_h5#7
    @ ~/.julia/packages/VIDA/qIbLv/src/io.jl:43 [inlined]
  [8] load_im_h5
    @ ~/.julia/packages/VIDA/qIbLv/src/io.jl:42 [inlined]
  [9] load_image(fname::String; polarization::Bool)
    @ VIDA ~/.julia/packages/VIDA/qIbLv/src/io.jl:25
 [10] top-level scope
    @ REPL[11]:1

Ok that's because this is a movie. To get this to work, I would need the actual movie you are reading in.

Here is the link to the actual movie (It is large so I cannot directly attach here): Link

Fixed by #85


Incorrect prop type in Toolbar Menu

Describe the bug / expected behavior
Incorrect items prop type in Toolbar Menu Groups Object
What are the steps to reproduce?

Go to...
Scroll down to Toolbar Menu Groups Object
The items prop has incorrect type and no link to the reference

Screenshots / Screen recording

Code snippet / Link to minimum reproduction example

CODE HERE

Your environment information

Suggested fix
Update the type to ToolbarMenuCompItem and add a link to https://github.com/etn-ccis/blui-react-component-library/blob/2fb920025a3bbe424c1892b502de7ebbffad702d/components/src/core/ToolbarMenu/ToolbarMenu.tsx#L34

Anything else to add?

So why is "tool bar menu object" still listed in this screenshot? Why do we go with a vague name like ToolbarMenuCompItem?

Leave ToolbarMenuCompItem as it is and new ToolbarMenuItem like
export type ToolbarMenuItem = ToolbarMenuCompItem
We should use the type ToolbarMenuItem in our code.

Issue is fixed in this PR

Issue is fixed with this PR


[Bug] [4.1] TestCase URL generation

Something's wrong with how URLs are generated in tests, causing errors if you try to call actions or route names instead of URLs. That is, $this->call('get', '/my-route') will work but $this->action('get', 'MyCtrl@myAct') won't.
The error seems to be that the URL generated is something like http://:/my-route which causes errors in the Symfony BrowserKit CookieJar class.
ErrorException: array_replace(): Argument #2 is not an array
/home/andreas/web/l4-test/vendor/symfony/browser-kit/Symfony/Component/BrowserKit/CookieJar.php:194
/home/andreas/web/l4-test/vendor/symfony/browser-kit/Symfony/Component/BrowserKit/Client.php:313
/home/andreas/web/l4-test/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestCase.php:72
/home/andreas/web/l4-test/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestCase.php:115
/home/andreas/web/l4-test/app/tests/ExampleTest.php:12

The line causing the error:
$parts = array_replace(array('path' => '/'), parse_url($uri));

Because the URLs are malformed, parse_url returns false.
$url = $this->app['url']->action('HomeController@showWelcome');
var_dump($url, parse_url($url));

Not sure if this can be blamed on Symfony or Laravel or PHP, but it is a problem. I've been able to solve it by overwriting the action() method and stripping 'http://:' from the URL before doing call().
Reproduction
Install a new Laravel 4.1 project. Update routes.php to have a route that points to HomeController@showWelcome.
Route::get('/', 'HomeController@showWelcome');

Update your ExampleTest.php to call said action.
$this->action('get', 'HomeController@showWelcome');

Run phpunit.

Still getting this in L4.2


Code refactoring generate script

Change Notes:

Moved to jinja2 templating for generating Configuration files
Refactored generate.py sourcecode
Fixed some bugs
Changed some wrong UUIDs, which didn’t match the name

Testing:

tested the old generate.py against the new version and used diff to ensure that the results are the same.

the python looks good! Let's fix the conflicts!


is there an equvalent for i3-msg exit?

I don't know how to exit sway, is there an equvalent for i3-msg exit?
I tried swaymsg exit but get "Error: Permission denied for exit via IPC"

Yes, exit works but is denied by default to swaymsg. The default binding for this command is $mod+Shift+e.

Read /etc/sway/security.d/00-defaults. Write a commands block similar to the one in this file to /etc/sway/security.d/01-exit-cmd and change the exit permissions to binding ipc. This will allow it to be used from either a binding or from IPC, which is what swaymsg uses. If you do this, however, any program with IPC access or the ability to run swaymsg will be able to exit your sway session without your consent.

any program with IPC access or the ability to run swaymsg will be able to exit your sway session without your consent

Can't any such program run kill or send a SIGKILL anyway, in most common cases?

It depends on how you configure your system. You could run software as other users that has limited IPC access, or can't run sway-msg.

Note that the default in i3 on some distros is (after a confirm dialog) to run exec i3-msg exit, but the equivalent on sway (exec swaymsg exit) will not work. You must use exit directy (without the confirm).


Make FEATURE STATE localizable

Add i18n string for FEATURE STATE, for ease of localization.

/lgtm
/approve
I might look at cleaning this up further. For example, we could allow localizations to add an aside for “alpha”, “beta” etc.


Guides - Progressive Web Apps

A consistent piece of feedback I hear from teams building PWAs is that Webpack configs are a major pain point. In particular, knowing what Webpack-specific performance best practices (and plugins) to follow are or what to use for patterns like PRPL.
Is there value in us having a dedicated page to this topic in the docs, even if some of it involves linking out to existing docs? 🙃
I might loosely break these up into a few different buckets:

"Ship the minimal code to make a page useful"

Code-splitting (basic, vendor, aggressive, avoiding module duplication)
Using webpack-bundle-analyzer to find and fix low hanging fruit in bundles
Staying on top of your perf over time with the Webpack 2.x perf budgets feature

"Prioritize resources you know are important"

Preload bundles to improve perf with link rel=preload. How to do this manually or with a webpack plugin
HTTP/2 Server Push to fill up server think time. We have the aggressive splitting plugin, but nothing Webpack specific I can think of that helps with Push manifest generation. Maybe just directly use https://github.com/GoogleChrome/http2-push-manifest?

"Be network resilient!" with Service Workers

Offline static asset caching (sw-precache-webpack-plugin, offline-plugin)

"Don't double up your parse costs with CSS-in-JavaScript"

Use the ExtractTextPlugin to extract CSS into separate files. Avoids 2x memory costs, parse costs and invalidating cachability of JS each time your CSS changes. Some projects (e.g styled components) don't tackle this problem well just yet.

"Effectively use the browser cache"

Long-term caching (Working around runtime/chunk lookups being moved into the vendor bundle & losing long-term caching on each build/deploy)

Related
We're working on some related scaffolding + PWA pieces over on webpack-cli
References
Some PWA teams have been documenting their Webpack configs in public, like this one. We've also got quite a few Webpack configs in use for the HN apps over here: https://github.com/tastejs/hacker-news-pwas
Wrote about some of this stuff in the PWAs with React series.
Twitter Lite's isn't too different but they're on WP1. They're using DedupePlugin(), OccurrenceOrderPlugin, BundleAnalyzer, CircularDependencyPlugin, StatsPlugin.

I'd like very much to discuss somewhere how we want to layer the documentation for the CLI@skipjack. CC-ing @bebraw for input.
Agenda:

Where to put documentation
What should be included in respective locations ( for instance, PWA in webpack.js and regular documentation in the github repo)
What sections to include in the documentation apart from this
How to promote best practises for an scaffold

I think there would be a lot of value in that. I'm less familiar with the information architecture for webpack.js.org, but I see general "here are Webpack patterns, plugins and best practices for building a PWA" being a (maybe) top-level guide on https://webpack.js.org/guides/? Under "Progressive Web Apps".
And then the Webpack CLI docs at https://webpack.js.org/api/cli/ (eventually?) being updated to reference webpack-cli as a default as well and the interaction + scaffolding + migration features it exposes more clearly. Right now it seems to just have a callout pointing to the repository. I think it would be interesting to figure out whether any official add-ons/scaffolds also get documented on there.
I'll defer to @bebraw and @skipjack for more nuanced advice.

Ok so as for this issue and the PWA content I think that definitely fits in the guides section (as you suggested @addyosmani). If you'd be interested in submitting a PR to start this guide off, that would be awesome.
@ev1stensberg re the cli the current /content set up is still a bit chaotic but I have a rough plan (laid out here as to a more organized setup). I'm currently working on a PR (#1153) to synchronize the content and routing structure which is kind of a "step one" to getting that plan in action.
As you probably already know, we are pulling content dynamically for loaders and plugins. It sounds like this is what you were thinking about doing with the webpack-cli repo as well so we don't have to document things in two places? In this case I'd say we should either create CLI group of pages within the API section or have it live in under Documentation in it's own section.
Let's talk more offline (maybe the documentation-team slack group?) so this issue can stay dedicated to the PWA discussion.

@johnnyreilly so actually it probably makes more sense to just here...
So as a quick walkthrough for the existing guides they basically all follow this structure:

Use a simpler guide as a base so you don't have to re-document a bunch of setup.
Include full diff blocks in each section so it's crystal clear what is changing.
Finish up with a simple conclusion that re-iterates what's been done and why.
Include any next steps either in the conclusion or under the related YAML frontmatter.

Other things to keep in mind:

Keep the guide targeted, i.e. keep the config and examples related to the topic at hand. Don't digress into unnecessary additional configuration if it isn't directly related to what's being discussed.
Don't duplicate docs. Link to other sections of the documentation instead. Remember that these are guides, not an API/config reference.

That pretty much sums up what we've tried to do with them. There's a few pages at the end of list that still need to be moved or rethought so you should ignore those as you poke around. In terms of your existing content here, the main things I'd say are that we should:

Continue using NPM instead of Yarn.
Use vanilla JS vs. TypeScript.
Exclude the additional HTMLWebpackPlugin minify config unless it's directly related to making the app a PWA.

To that last point, I think stemming from Output Management might make the most sense for your guide as it walks people through the HTMLWebpackPlugin. However, if you feel there's another that would make more sense as a base, that's fine as well.

Thanks for this @skipjack - I'll try and take a look at this soon. Pointers appreciated - I may well have questions along the way!

I'm working on this right now @skipjack - (WIP here).  I'll send a PR hopefully within the next week or so.  Feel free to mark this as in progress and assign me.
BTW Do you have an idea when you might publish the Medium post I wrote? https://medium.com/@johnny_reilly/148f43e142f9

I'm working on this right now @skipjack - (WIP here). I'll send a PR hopefully within the next week or so. I'm following your advice and using Output Management as my starting point.

Fantastic, thanks again for your help on this.

Feel free to mark this issue as in progress and assign me.

Just sent you a collaborator invite, once you accept I'd be happy to assign you.

BTW Do you have an idea when you might publish the Medium post I wrote?

Not sure, I don't really manage the Medium content but I'll ping @TheLarkInn and ask him to take a look.

Cool - thanks!

@johnnyreilly Would you be interested in creating a ´webpack-addons pwa? See https://github.com/webpack/webpack-cli/issues/101

@ev1stensberg I'm afraid I'm not sure I know what you mean. I've read the linked issue but that hasn't clued me up sufficiently. Could you elaborate please?

@johnnyreilly Sure! To make it short: what we'd like, is a scaffold for a PWA that would help people get started fast with PWA's and with best practises,
I can help you to get to know the scaffolding system if you're up for the task 👍

@ev1stensberg I'd be interested in learning more about what's involved. I can't say right now that I'll definitely have time for this but I'd certainly consider it if you have the time to take me through the scaffolding system.

@johnnyreilly Definitely! Would it be okay if we schedule this after christmas?

Fine with me!


Fix merged decoder usage with fp16

Fixes https://github.com/huggingface/optimum/issues/1005

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Drop BarcodeLib dependency

Drops the BarcodeLib dependency.
Fixes #145
Fixes #154
Fixes #170
Additionally:

Code39 and I2of5 now support variable WideToNarrow ratio.
EAN13 interpretation lines now respect chosen font face.
EAN13 are no longer drawn with a white background.

This PR will likely remain in draft status until the next release of ZXing.NET, as I am waiting on the resolution of a few issues:
https://github.com/micjahn/ZXing.Net/pull/503
https://github.com/micjahn/ZXing.Net/pull/504

@primo-ppcg
Should this PR remain "work in progress"?

@primo-ppcg Should this PR remain "work in progress"?

Unfortunately, Code128 barcodes containing a space will cause an error with the current version of ZXing.Net (https://github.com/micjahn/ZXing.Net/pull/504). This is due to a bug in the parent project that's also been corrected (https://github.com/zxing/zxing/pull/1658). This PR unfortunately cannot be merged until the next version of ZXing.Net is released.

any progress? all the external issues mentioned are fixed.

It's becoming a long wait for the next release of ZXing.NET. I'm going to get some of the open PRs merged and rework this for all barcodes except Code 128.

@primo-ppcg
Thank you, will you also include the SixLabors.ImageSharp fixes, like https://github.com/BinaryKits/BinaryKits.Zpl/pull/223 ?

@primo-ppcg Thank you, will you also include the SixLabors.ImageSharp fixes, like #223 ?

For sure, as per the github advisory.


Add InMemory package installation step

Setup

Windows 10
Visual Studio 2019
ASP.NET Core 3 Project

Problem
On Add a database context step, user is installing package EntityFramework.SqlServer. But, user will find this error message on the next tutorial step later:

DbContextOptionsBuilder does not contain a definition for 'UseInMemoryDatabase'

Solution
User need also to install this package:
 Microsoft.EntityFrameworkCore.InMemory

We need to add this into tutorial step. This might be confused newcomer in .NET.

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

ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
Version Independent ID: 95f2549e-29f9-e31a-b4d0-432b971643ff
Content: Tutorial: Create a web API with ASP.NET Core
Content Source: aspnetcore/tutorials/first-web-api.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Sorry to miss this InMemory installation step, I did not see it first. Might be need to be bold on InMemory package


Replace 'kerberos' pip dependency with 'gssapi'

I'm currently working on an open source IT infrastructure project and
was trying to deploy a particular WSGI application with kerberos
support. I came across your project and would ideally like to use it in
the infrastructure. However, I'd just like to make some minor
improvements to it that should ideally benefit everyone.
Here are my proposals:

Change project documentation to reflect that this is a SPNEGO (GSSAPI)
middleware layer that supports Kerberos as the authentication backend
Change the dependency on the relatively unmaintained and narrow python-kerberos[1] to
the more general and well maintained gssapi[2].

I have the bandwidth to work on these changes now. I'd like to know if
these are reasonable proposals so that I can spend some time to submit a
PR to the project. Is that ok?
Thanks for the great project!

Sounds ok in theory, but I'm not familiar with the kerberos vs gssapi python library difference. @mkomitee @nrhall - do you know more about this?

These seem like fine changes to me - I agree that the python GSSAPI module is the right way to go, looks like the author has now made the pykerberos repo read-only, and strictly this is indeed SPNEGO and not native kerberos...

Happy to review as and when you have something, thanks!

Sounds good to me too then!

Any feedback on #35?


[AutoPR] storagecache/resource-manager

Created to accumulate context: storagecache/resource-manager

(message created by the CI based on PR content)


Support "stciky keys"

Sticky Keys is a feature in macOS that allows users with limited dexterity to use keyboard shortcuts in sequence instead of holding them down at the same time.

This works by implementing a delay after a key press in which the next key press is added in sequence to the delayed key.
For example, to copy highlighted text you normally press a multi-key sequence Ctrl-C.
This feature would allow the same operation by pressing and releasing Ctrl then pressing C within the delay period.
The delay period should be programmable and assignable. That is, applicable only to selected keys rather than to all keys vs none.
While this is considered an accessibility feature, my intended use case is to bring a hidden note taking app to the foreground by rapidly pressing a key twice (or more times) in succession.

Thanks @gihrig!
This seems like a cool use case, and something that can be introduced as an optional feature.
Something like:
use_hotkeys(
    "ctrl+v",
    Callback::new(move |_| {
        set_count.update(|count| {
            *count += 1;
        });
    }),
   option::Sticky(
       30, // some time threshold
   )
);

So we'll listen for ctrl and v within the 30ms cooldown period.
Full transparency: I'm quite limited with time right now since I have to focus on work. If you want to give this a go, that would be super awesome

@friendlymatthew Similar situation with work ATM. When I get to the point where this is a blocking feature, I'll have time to devote. Not sure just when that will be though.
In the mean time it's been recorded for a future todo.

In the mean time it's been recorded for a future todo.

Awesome. I'll tentatively assign this to you. No sweat and definitely no pressure.
Best of luck with work!
PS. Feel free to suggest more ideas, really appreciate your insight 🤠

Hey @gihrig any update to this? Just checking in 😄. All good if you're too busy!

@friendlymatthew Unfortunately the backlog continues to grow... ☹
At this point the future of the app requiring this feature is in question, so I can't provide a time estimate as to when, or if, I'll get to this. Not entirely forgotten though.

@gihrig No worries. Best of luck with your work!

@gihrig -- Just wanted to let you know that I haven't forgotten this issue. After some investigation, it turns out this is a pretty important feature we're lacking. :)
Thanks for raising this issue


Issue with Allocated parts counter

Please verify that this bug has NOT been raised before.

[X] I checked and didn't find a similar issue

Describe the bug*
Hello. Recently i've updated my inventree packaged install from 0.11 to 0.12.3 and when i was done with the update, i went to check if everything was present and found an interesting thing: in the build order tab, when i open\create new build order, the spinner after allocated parts keeps spinning indefinitely instead of showing how many of the parts total isnt allocated.
It was working on 0.11 alright, but not on the newer version.
Same behaviour was present when i exported database and imported it on the fresh vm, same is as with updating current installation. Screenshot is below, for reference.

Steps to Reproduce

Either update from older version or export database and import into the new one.
Open "build order" tab, navigate to "build order details"
In the details submenu, the loading spinner that indicates the amount of allocated parts keeps spinning as if loading of parts amount is in the loop.

Expected behaviour
After brief loading (amount of allocatable parts arent that big) the counter should display the actual amount (from 0 to 20)
Deployment Method

[ ] Docker
[ ] Bare metal

Version Information
Version Information:
InvenTree-Version: 0.12.3
Django Version: 3.2.19
Commit Hash: 1f3a49b1
Commit Date: None
Commit Branch: stable
Database: sqlite3
Debug-Mode: False
Deployed using Docker: False
Platform: Linux-5.4.0-156-generic-x86_64-with-glibc2.31
Installer: PKG
Target: ubuntu:20.04
Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.0.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}]
Please verify if you can reproduce this bug on the demo site.

[ ] I can reproduce this bug on the demo site.

Relevant log output
No response

Have you checked https://docs.inventree.org/en/latest/faq/?h=work#feature-x-does-not-work-after-update

Yeah, i did hard refresh, multiple browsers as well - didn't work.

Have you also checked the browser console if there is any log or errors? Also the network tab?

@templeofhead I think that this is a bug due to the way that the required data is loaded. This might not get addressed before our move to react (see https://github.com/inventree/InvenTree/issues/5212)

If its just some script bug and not the db problem, and it wouldnt impede anything on the long run (at least until you alleviate it in future versions) think i can be considered a minor inconvenience.


factor of 64 sectors

error Could not add folder: storage folder must be a factor of 64 sectors
really annoying.
folder add doesn't accept any size, except exact byte size sectorSize*64
and then folder resize accept any size...

I just pushed a fix for this in #1670. Once it's merged, the size will be rounded down to the nearest multiple of 64 sectors.


wip build tags

Coverage remained the same at 100.0% when pulling 800cd917dd2080c93a951b5b8c9d5fd010af36ac on build-tags into cbed4b26b0bb75922678d7892fde12dccc05a8b3 on master.


Support for later versions of h5py (3.7)

Are there any plans to add support for h5py 3.7 and hdf5 1.12.0 in the near future? At this point, it is very difficult to find and compile hdf 1.8.16 on MacOS Monterey, as it is obsolete.
Also, h5py 2.7 (the required version) does not work with later versions of python (3.9+) either.

Same question on Ubuntu22 with h5py==3.9.0 and hdfs==1.12.2


Drop to the header of the list.

Hi,
that's not an issue, just a thought.
I have folder/file like structure in my project. Folder can be expanded to show the list of files. Files can be dragged and resorted or moved to the other folder.
This works perfectly if both folders expanded and file dragged from one list of files to the other list of files.
My goal is to add a possibility to drag a file over the (collapsed) folder name to place it into that folder.
That's how any windows-like file manager works: we can drag one object over the other folder to place it inside.
So basically we have two lists of items, every list has some header. We can drop any file to any place inside any list, OR drag it to the header of any list to place into the it's list automatically.
Have somebody achieved this with sortablejs? I need an access to some inner mouseover anything sortable method to check the target against the header's class name to highlight it, and mouseup event as well. Also I need to trigger hiding an element in the current position if it's dragged over the header (and restore it back when it leaves).

Have you had any luck? Looking for the same.

What did you guys use as a solution to this? @Kasheftin  @MadeMyDay

@pynner @MadeMyDay @Kasheftin This can be done in the onMove function, by checking if the target is the header and opening that folder if it is not yet open.


Reduce ObjC bazel test flakiness

according to my experiments, the flakiness we've been seeing with //src/objective-c/tests:Interop* targets seems to be linked to the CFStream bug on MacOS (b/133182964), and setting GRPC_CFSTREAM_RUN_LOOP=1 does seem to reduce flakiness by a lot.
reverting some questionable changes from https://github.com/grpc/grpc/pull/30287

the local interop tests should be very reliable (especially for the local ones there's nothing really anything in the path besides a bug that could cause flakiness) so enabling retries is only papering over the real problem, especially when we're enabling retries not for specific carefully selected tests, but as a blanket solution.
enabling retries for tests by default seems dangerous, especially in the scenario where the tests don't print any info about how many retries have been made for a particular testcase (which this PR fixes by at least adding a log line).
for remote interop tests, timeout of 3seconds seems too optimistic if we really want to have highly reliable tests.

We can look into removing the need for GRPC_CFSTREAM_RUN_LOOP=1 in the future (perhaps upgrading to newer MacOS version will help), but for now, getting tests more reliable is the priority.

The data:
Based on an adhoc run with --runs_per_test=50 (50 runs per test targets),

I only got 1 failure for the InteropTestsLocalCleartext, which is much better than any previous attempts.
https://source.cloud.google.com/results/invocations/21114c8e-8ef9-44df-b58a-beb57d58a174/targets/%2F%2Fsrc%2Fobjective-c%2Ftests:InteropTestsLocalCleartext/tests
All the failures I got for InteropTestsRemote and MacTests are instances of InteropTestsRemote testKeepaliveWithV2API - but from the data it looks that this particular test case is actually flaky by itself, independently of other test cases - confirmed by even local runs of it (I'll try to address in a separate PR).
e.g. https://source.cloud.google.com/results/invocations/21114c8e-8ef9-44df-b58a-beb57d58a174/targets/%2F%2Fsrc%2Fobjective-c%2Ftests:InteropTestsRemote/log

Based on my latest experiments, this will likely be superseded by https://github.com/grpc/grpc/pull/30897 and https://github.com/grpc/grpc/pull/30896 (together with switching the ObjC bazel job to macos Monterey)

Based on my latest experiments, this will likely be superseded by #30897 and #30896 (together with switching the ObjC bazel job to macos Monterey)

Superseded by PRs mentioned above and by switching the objc bazel test job to run on MacOS Monterey.

We can reopen this PR if the GRPC_CFSTREAM_RUN_LOOP=1 proves necessary.


ServiceMapper should return a ZuulRoute

ServiceMapper should return a ZullRoute to allow full configuration of the routes created by it. At this time it hides everything else other than the path and location.

@saiyedzaidi Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@saiyedzaidi Thank you for signing the Contributor License Agreement!

@spencergibb Could you please review this PR ? This change is an update on the PR Add Zuul Proxy regex serviceId to route mapping.  I think the PatternServiceRouteMapper  is a good idea, but its interface should be more generic and allow setting all Route properties.

Codecov Report

Merging #1887 into master will increase coverage by 0.03%.
The diff coverage is 95%.

@@            Coverage Diff             @@
##           master    #1887      +/-   ##
==========================================
+ Coverage   75.44%   75.47%   +0.03%
==========================================
  Files         209      210       +1
  Lines        6342     6358      +16
  Branches      794      795       +1
==========================================
+ Hits         4785     4799      +14
- Misses       1218     1219       +1
- Partials      339      340       +1

Impacted Files
Coverage Δ

...l/filters/discovery/PatternServiceRouteMapper.java
95.65% <100%> (+2.79%)
:arrow_up:

...ul/filters/discovery/SimpleServiceRouteMapper.java
66.66% <100%> (-33.34%)
:arrow_down:

...filters/discovery/DiscoveryClientRouteLocator.java
79.22% <100%> (-0.27%)
:arrow_down:

...lix/zuul/filters/discovery/ServiceRouteMapper.java
85.71% <85.71%> (ø)

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 29fb58d...1042983. Read the comment docs.

I'm afraid I need you to explain the need for this in more detail.

PatternServiceMapper is an implementation of ServiceMapper. This interface allows for creating routes from the serviceId. The PatternServiceMapper specifically was made with the intention of detecting version number from the serviceId having a pattern of domainName-serviceName-vVersionNumber and map them to routes like /versionNumber/domainName/serviceName. This was is version in the master branch at the moment. It works well.
But its is limited by the fact that the ServiceMapper interface is designed just to take a String serviceId and return a String path. Hence using the interface in its current state we are stuck with the default configuration of ZullRoute, that is stripPrefix as true, retryable as false, customHeaders as false and blank.
The interface needs to be free from this specific purpose implementation and allow for a common way embedding the dynamic routes into the class DiscoveryClientRouteLocator.java that is using it now.
Also, the logic about how a serviceId gets converted into a Route should not be leaked outside the ServiceMapper implementation.
This standardisation of returning a complete ZuulRoute from ServiceMapper would eventually allow for declaring of ServiceMapper purely using Route like properties.
The older methods are retained to avoid breaking existing code. They are marked deprecated, hoping we can remove them sometime.
Please let me know if I should annotate the specific lines to show what's changed.

I'm still trying to wrap my head around this. Seems like a discussion might have been a good idea before a PR.
You want to be able to set default values for stripPrefix, retryable and sensitiveHeaders in DiscoveryClientRouteLocator (since that is the only place ServiceRouteMapper is used).
Seems like that could be accomplished with some simple configuration properties.

The PR proposes that the ZuulRoute creation from serviceId should not be embedded inside DiscoveryClientRouteLocator  but totaly customisable using ServiceRouteMapper .
The default values for stripPrefix, retryable and sensitiveHeaders from  DiscoveryClientRouteLocator  could be the default/fallback values.
Even applying the default values for the configuration could not have been achieved without code change as the DiscoveryClientRouteLocator  is creating ZululRoute using ZuulRoute(String path, String location) ignoring other property values.
Also, I think, the ServiceRouteMapper should own the ZuulRoute it is creating, fully. This will allow for full control over these properties from the custom implementations supplied by users.
If we do not think it adds value, I am ok closing this PR down.

If we decide to do this, we'll be targeting the Edgware release this summer, should be merged in the next week or two.

This module has entered maintenance mode. This means that the Spring Cloud team will no longer be adding new features to the module. We will fix blocker bugs and security issues, and we will also consider and review small pull requests from the community.


Crash when removing recent searches

When I remove several recent searches separately the app crashes and closes. Looks like if I wait a couple seconds inbetween removing items it works though.

I think I've fixed this for build 605, but am not completely sure because I couldn't reproduce the problem.

Thanks, it only seems to happen when I remove items quickly after one another. Almost as if it can't handle the removal of more than one item at a time

I believe this is fixed.  Can you try the latest build and let me know if it still occurs?

It's still crashing for me (iPhone 6, iOS 8.4.1, app v607). It's difficult to isolate the issue, it doesn't happen all the time, but very often. Here's a quick video: http://cl.ly/1g0D3N3x3i40/crash.mp4

I'm unable to reproduce this in the latest build (616), so I'm marking this complete

I'm still experiencing crashes when deleting recent searches. It occurs after several consecutive searches are deleted, but sometimes if I skip further down and delete a search term, it only takes a second or third deletion to crash it.
Diagnostic data is being shared automatically - not sure where it all ends up.
Version 6.0.2 (709), iOS 9.2, bug type: "109"

@Calefornia does this happen if you go to Recent searches > tap on the + icon. The app crashes every time I tap the +, when I was going through some testing to see if it was the deletion process, it looks like it has to do with tapping the +. Give it a try and let me know.
Thanks
Josiah Clumont

@SwiftlyDeft, you are correct. Wow, I never realized that was the actual problem. Swiping to delete works just fine as long as I don't touch the + icon.
Wondering why this same crash doesn't happen on the other recent searches list, accessed from the far left search icon. (The one used to essentially paste recent searches into the search bar).

@Calefornia no issues. I was playing around with it after i saw your issue come in on Slack. It was connected up to the debugger so made it a lot easier to figure out that it had to do with the + button. It's been updated. So after the next update of the app + will work on recent searches.
It works on the search tab as there was a delegation issue with the recent/history view controller and how it handled the method, it was trying to do something it was not meant to. Thanks again for bringing this up.

@SwiftlyDeft, thanks! glad it's fixed

Experiencing the same bug again, when the + is tapped. Thought it was fixed, but I can't remember.

Hi @Calefornia, I'm unable to reproduce this bug.  What version of iOS and the app are you experiencing this on?

Sorry, I should've included those. I'm on iOS 9.3.2, and the app is 6.0.2
(709). As far as I know, both are the latest updates.
On Sunday, May 29, 2016, Bill<EMAIL_ADDRESS>wrote:

Hi @Calefornia https://github.com/Calefornia, I'm unable to reproduce
this bug. What version of iOS and the app are you experiencing this on?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/duckduckgo/ios/issues/85#issuecomment-222362201, or mute
the thread
https://github.com/notifications/unsubscribe/AHExn3GQdHXRr7HoMb5wki-wqw9MKnoRks5qGZxUgaJpZM4F6KRu
.

@Calefornia I was just able to reproduce it now -- we'll put some eyes on it internally too, and if there's anything you can do to help, we'll definitely let you know!

@Calefornia @edgesince84 the build that includes @SwiftlyDeft's fix for this issue hasn't been published to the App Store yet. We're close to pushing the update, then it should be fixed. I'm closing this, after the v6.0.3 update feel free to re-open if the bug still occurs.


ci.jenkins.io down for plugin advisory

ci.jenkins.io is down for plugin advisory
Time is as reported by uptime robot.  Only checks once every 5 minutes, so may be wrong by as much as 5 minutes.

@MarkEWaite duplicate of https://github.com/jenkins-infra/status/pull/241


Question: BananaEdit / MultipleInstance on HoloLens

Hello,
Is it possible to get the BananaEdit application running on the Hololens 2? We want to create a UWP app with multiple instances and activate each instance when a specific key is given. But on the Hololens a new instance is created each time.
Have you started working on this approach or can you give me a tip on how I can do it myself? I would also send a pull request if I could find a solution for it.
Thanks for any advice.
Christian

Hello,
Is it possible to get the BananaEdit application running on the Hololens 2? We want to create a UWP app with multiple instances and activate each instance when a specific key is given. But on the Hololens a new instance is created each time.
Have you started working on this approach or can you give me a tip on how I can do it myself? I would also send a pull request if I could find a solution for it.
Thanks for any advice.
Christian

@TiMeJuMp you should consider to repost it on Project Reunion, that's where UWP devs are posting App Model Issues


Xcode 14.3 Analyzer Warnings Related To Assumed Nullability

When running Xcode analyzer on our project (and directly on the libPhoneNumber-iOS project), seeing some warnings about passing nil to methods that are expecting it, or returning nil from methods that don't support returning nil.
Working under an assumption that the current code is doing what is desired, I believe the majority of the "issues" are just due to assumed Nullability with methods.
I'm working on a PR that adds nullability specifiers primarily in NBPhoneNumberUtil, but also a few other places that gave warnings.
Everything seems to be benign, so not sure there is actually a problem - but, my OCD appreciates when code analysis doesn't produce any warnings at all. 😄

Created Pull Request: https://github.com/iziz/libPhoneNumber-iOS/pull/392

Analyzer returns no issues with any targets (base, Geocoding, or ShortNumber)
All tests targets pass successfully

Everything was tested/developed with Xcode 14.3


Multi-selection for schema builder

It would be speeding things up quite a lot to have some sort of multi-selection available, either via ticking certain parameters and then grouping them at once into a new group.
Or by being able to select multiple entries and then shifting them together :-)

Moved to website repo.
If I remember correctly, multi-selection was tricky during building. Could maybe get around this by using keyboard shortcuts to multi-select (eg. shift + ↑). Add a selected class if so then make the dragging code look for this. Needs some thought either way.

Maybe group selection is still going to be a bit insufficient. Might be better to have a dedicated interface (modal?) showing just parameter names which can then be bulk-added to groups.
Maybe show ungrouped top-level params only? Would simplify the new interface a lot..

yes, without adding another js library, the smoothest solution would probbly be a "Add to this group" button on the group header (or the toolbar if a group is selected), with a dropdown/modal with a list of ungrouped params (extra points for filtering the list by search).

Yes, nice idea 👍


Improve setup instructions in README.md

Hi!
I just found this integration and it looks great. While setting up, I thought the Setup description might be improved.
Talking about readme already, what do you think about rearranging the document by placing the Migration section below Setup?

Talking about readme already, what do you think about rearranging the document by placing the Migration section below Setup?

That makes sense to me actually. The migration instructions are probably less relevant now than they were when I added them.


Introduce Glossary Author Search for Terms and Category

I am using this issue to :

add content switcher for term category and glossary
when chosen a find will be issued from the text in the box.
the results will be shown in card form, but can be switched to a table view
the paging widget will be present
edit and delete will work on the categories and terms


Bridge, crossposting tools for Publish0x

I realize that bearblog is meant to be simple, which is great! I have become a constant user of bearblog.dev. It's just right for me. No muss, no fuss, no random unnecessary features!
Which brings me to my idea. I'd like to get publishing on Publish0x just for fun. It would be cool if I could post on bearblog, click a button and have that same content posted on Publish0x.
Of course I'm thinking in term of me doing this. I might be the only user, ever.
I'm interested in ideas anyone might have for how this might be done painlessly. For example, if there's talk of/is an API, I could help flesh that out and use it for this little project.
And if all this comes to nought, that's fine too. I always have copy and paste.

Hi @stnbu,
thank you for getting in touch 🤝 😄 .
➡ It sounds like your request should be posted over at https://github.com/HermanMartinus/bearblog/issues, which is the source code of bearblog.dev.
This repo here is only 😇 a port of the templating to Hugo which people may use for self-hosting a bearblog.dev-like blog.
I'll hence close this issue here.
I hope that is okay with you. Otherwise please let me know. We can always reopen 😁.
Cheers,
Jan

Gotcha. Whoopsie. Thank you!


Adds README.md - Fix for Issue #11

Thought this was an awesome site, but missed a README.md - So I added one with information from the about page.

And here is the link to the issue #11

You're welcome. Don't forget to actually add a license ;-)


You've not added any folder in the workspace

@Asa0711 could you please add more information about this issue? There isn't enough for us to investigate a potential problem.
Ideally, we'd want to have a description of the steps you took, what you expected to happen, and what happened instead.

Closing as there is no action here


Don't hard fix the crop rect to maxCropResultX/Y size

My app need allows user to pick and crop image at any size so that they can select the whole image if needed, then the result will be cropped and resize to my preset maxCropResultWidth x maxCropResultHeight.
Currently, if set maxCropResultWidth x maxCropResultHeight the crop rect will be limit to that size that's is why I cannot select the whole image size.
Expect: can select any size, the image result will be crop and scaled to less than or equal to the maxCropResultWidth x maxCropResultHeight size.
If there are already any available options, please  help.

I found the options and set outputRequestWidth outputRequestHeight to 2048 and outputRequestSizeOptions = CropImageView.RequestSizeOptions.RESIZE_INSIDE but don't know why it still not work. The result image size is bigger than 2048. Please see the attached screenshots.

found the reason why. I copy the sample code, the binding.cropImageView.croppedImageAsync in the fragment sample does not pass the options so it uses the default ones. Sorry for bothering :).
Close this.


target-redshift process prevents deleted files to be removed from disk

Hi, when using target-redshift (wise) with meltano, I noticed disk usage on k8s node is increasing all the time even though /tmp folder and other places including / (root) folder is not growing in size.
After checking with lsof tool, you can see deleted files are kept open(or something else) by target-redshift process so they are not actually removed from disk, so I ran out of 100gb disk space on k8s node even-though pod is using less than 10gb.
Sample from output of lsof, there are 100+ files like this
target-re  160             root   54u      REG               0,79 244794493  147626721 /tmp/public-mytable_1qhpq7op.csv.3 (deleted)
target-re  160             root   55u      REG               0,79 244865304  147626722 /tmp/public-mytable_k0fcdklp.csv.4 (deleted)
target-re  160             root   56u      REG               0,79 245068385  147626736 /tmp/public-mytable_scj5v0oc.csv.2 (deleted)
target-re  160             root   57u      REG               0,79 244919191  147626725 /tmp/public-mytable_l3ozw88o.csv.3 (deleted)
target-re  160             root   58u      REG               0,79 244815828  147626726 /tmp/public-mytable_v_uerrdh.csv.4 (deleted)

@halilduygulu that sounds like it might be specific to target-redshift. @pandemicsyn anything else we can ask for on our end to suss out whether it's a Meltano or plugin problem?

@pandemicsyn anything else we can ask for on our end to suss out whether it's a Meltano or plugin problem?

I thinks that's pretty firmly a plugin issue. The file is already marked deleted but the inodes still present because the process is still active and has an open file-descriptor for the file.
Not really familiar with target-redshift but took a super quick glance (so fair warning this is more a guess), but at least at a glance, it looks like they never close (or save) the file-descriptor returned by mkstemp when creating the csv's:
https://github.com/transferwise/pipelinewise-target-redshift/blob/7e9e9e114452d2b33e02a0a911ee961c49f5ec5a/target_redshift/__init__.py#L407

target-redshift does call os.remove later but that would still keep the deleted file around until the process actually exited AND I think also means that you'd need the same amount of local disk space for temp storage as you're actually pushing to s3.

@halilduygulu I'm going to close this as it seems like it's a target-redshift issue.


Feathercoin icon redesign :  The icons in 0.13.x are higher resolution than 0.9.6.x.

Feathercoin icon redesign :  The icons in 0.13.x are higher resolution than 0.9.6.x.
0.13.x    Needs a review of FTC icons and higher resolution  versions produced of the 0.9.6.x icons, particularly - connection, spinner ....
0.13 connection icon is 92 x 92
The 0.9 icon is 72 x 72
Most of the 0.13 icons are bigger.
Probably for high DPI screens.

Thanks to @wrapperband for providing updated icons for use in Feathercoin.


Create Task 3.txt

Issue: #4

Hey @Goddbott
Thanks for opening this PR 🚀. Mentor will review your pull request soon and till then, keep contributing and stay calm.
Thanks for contributing in OpenCode'24 ✨✨!

Hey @Goddbott
Your PR has been merged 🥳🥳 and you have earned 10 points.
Thanks for contributing in OpenCode'24 ✨✨


Error when calculating Scheduled Job

I have about 6 fields that roll up from the Order object to the Account object. There are just above 525k order records.
When I try to run Calculate job to get an immediate record update I get the error:
First error: dlrs:Too many query rows: 50001
Also it appears my scheduled jobs I have either do not run (looks like they are only set to run once a month and I can't adjust that). How do I correct this as well? I'm pretty sure this is all related to a basic issue.
What is the best way to get the job to work? I have a few filters on the rollup fields but there are still quite a bit of records included event with filters applied.

You can reduce the number of records each chunk the scheduled job tries to process via a custom setting. Review this blog for more.


changed myproject folder to Linkscrape

Updated folder directions for correctness and accuracy

@SunilKumar-K u can just make changes in docs itself

Okay


iOS support

I've been currently using g3log for my client/server code. It has been working well, and I'm now in the process of wanting to integrate the client code into an iOS project. Are there plans for supporting this?

Hi @mobileben
It would be super cool to have it iOS. Unfortunately I have no experience of iOS development.  And not that much on OSX either for that matter (although on OSX you can do "brew install g3log" ;)
For the effort of supporting g3log on iOS I would have to rely on the community.

@KjellKod I'll be working on this tomorrow.

resolved with PR https://github.com/KjellKod/g3log/pull/198


Chore: Rewrite codes for TourPackage

@jromest this code structure is much better. Easy to maintain & control.
I still need your help in filtering tourCards base on their category.


Documentation Update: Added instructions for using the library in App Engine

Related to #169

Thanks, @hiranya911 and @dhermes!


Shor: unexpected behavior in latest versions

Information

Qiskit version: {'qiskit-terra': '0.17.0', 'qiskit-aer': '0.8.0', 'qiskit-ignis': '0.6.0', 'qiskit-ibmq-provider': '0.12.2', 'qiskit-aqua': '0.9.0', 'qiskit': '0.25.0'}
Python version: 3.8.8
Operating system: (quantum experience)

What is the current behavior?
Shor executed on N=15, a=11, simulated on noiseless simulators, produces unexpected basis values with non-null probability.
Steps to reproduce the problem
Run the following code:
from qiskit import QuantumCircuit, execute, Aer, IBMQ
from qiskit.compiler import transpile, assemble
from qiskit.tools.jupyter import *
from qiskit.visualization import *
from ibm_quantum_widgets import *
import qiskit

sim = Aer.get_backend('qasm_simulator')
shor = qiskit.algorithms.Shor(sim)
import logging
logging.basicConfig()
logging.getLogger().setLevel(logging.INFO)
circ = shor.construct_circuit(15,11,True)
res = execute(circ, sim).result()
print(res.get_counts())

facors = shor.factor(15,11)

Additional remarks:

I am experiencing the same issues with qiskit.aqua.algorithms.Shor instead of qiskit.algorithms.Shor(syntax must be adapted accordingly)
Same issues with other values of a, such as 2.

What is the expected behavior?
I would expect only the following outputs from print(res.get_counts()): 10000000, 00000000.
Instead, I get 62 different values.
The same behavior can be observed in the detailed log of shor.factor(15,11)
Remarkably, I have evidence that a previous version of the code used to work:

Qiskit version: {'qiskit-terra': '0.10.0', 'qiskit-aer': '0.3.2', 'qiskit-ignis': '0.2.0', 'qiskit-ibmq-provider': '0.3.3', 'qiskit-aqua': '0.6.1', 'qiskit': '0.13.0'}
Python version: 3.7.10
Operating system: MacOs

import qiskit
from qiskit.aqua.algorithms.quantum_algorithm import QuantumAlgorithm
from qiskit.aqua.algorithms import Shor
from qiskit import Aer
from qiskit.tools.visualization import plot_histogram
backend = Aer.get_backend("qasm_simulator")

shor = Shor(15,11)
circuit = shor.construct_circuit(measurement=True)
execution = qiskit.execute(circuit,backend)
plot_histogram(execution.result().get_counts())

result = shor.run(backend)
print(result)

Suggested solutions
I suggest compraring the circuit obtained with qiskit 0.13.0 against the most recent versions, after full decomposition, and look for differences.

The issue seems to have appeared in Aqua 0.7.0.
I am currently working on fixing this. It's nearly done - I will create PR soon :grinning:


Challenge PR

Added service call using graphql-request
Added components and layout.
Fixed: "use client" bug that was in the challenge

Closing in favor of a feature branch


Formatting removes function call parameters

Hi!
I've been redirected here from the rls issues. See details below.
https://github.com/rust-lang/rls/issues/1479
Data:
VS Code Version 1.35.0 (user setup)
OS Windows_NT x64 10.0.17134
rustc 1.35.0 (3c235d560 2019-05-20)
rustfmt 1.2.0-stable (09940a70 2019-03-27)
Rust (rls) extension 0.6.1 - 2019-04-04
That's really odd. I noticed that after I saved the file (with format-on-save enabled in VSCode) Travis started to complain about the build.
So, I have a test in my repository, which looks like this before formatting:
    #[test]
    fn find_slot_that_contains() {
        let dispatcher = Dispatcher {
            cargo_balance: HashMap::new(),
        };
        let slots = vec![
            Slot::new(
                100.0,
                100.0,
                Some(Payload::new('X')),
                Some(Payload::new('B')),                SlotKind::CLASSIC

            ),
            Slot::new(100.0, 100.0, None, Some(Payload::new('B')), SlotKind::CLASSIC),
            Slot::new(
                100.0,
                100.0,
                Some(Payload::new('A')),
                Some(Payload::new('B')),
                SlotKind::CLASSIC
            ),
        ];

        assert_eq!(dispatcher.find_slot_that_contains(&slots, 'A'), Some(2));
        assert_eq!(dispatcher.find_slot_that_contains(&slots, 'X'), Some(0));
        assert_eq!(dispatcher.find_slot_that_contains(&slots, 'Y'), None);
    }

Please notice the number of parameters passed to the last call of Slot::new(). Should be five, including new('A') and new('B').
Here is the same code after I save (and format the file):
    #[test]
    fn find_slot_that_contains() {
        let dispatcher = Dispatcher {
            cargo_balance: HashMap::new(),
        };
        let slots = vec![
            Slot::new(
                100.0,
                100.0,
                Some(Payload::new('X')),
                Some(Payload::new('B')),
                SlotKind::CLASSIC,
            ),

            Slot::new(
                100.0,
                100.0,
                None,
                Some(Payload::new('B')),
                SlotKind::CLASSIC,
            ),
            Slot::new(
                100.0,
                100.0,
                Some(Payload::new('B')),
                SlotKind::CLASSIC,
            ),
        ];

        assert_eq!(dispatcher.find_slot_that_contains(&slots, 'A'), Some(2));
        assert_eq!(dispatcher.find_slot_that_contains(&slots, 'X'), Some(0));
        assert_eq!(dispatcher.find_slot_that_contains(&slots, 'Y'), None);
    }

Now there are only 4 parameters passed to the last call of Slot::new()...
BTW: rust fmt seems to have the same problem. The resulting code is also incorrect, but formatted in a slightly different way (all parameters in a single line, but still one missing).
    #[test]
    fn find_slot_that_contains() {
        let dispatcher = Dispatcher {
            cargo_balance: HashMap::new(),
        };
        let slots = vec![
            Slot::new(
                100.0,
                100.0,
                Some(Payload::new('X')),
                Some(Payload::new('B')),
                SlotKind::CLASSIC,
            ),
            Slot::new(
                100.0,
                100.0,
                None,
                Some(Payload::new('B')),
                SlotKind::CLASSIC,
            ),
            Slot::new(100.0, 100.0, Some(Payload::new('B')), SlotKind::CLASSIC),
        ];

        assert_eq!(dispatcher.find_slot_that_contains(&slots, 'A'), Some(2));
        assert_eq!(dispatcher.find_slot_that_contains(&slots, 'X'), Some(0));
        assert_eq!(dispatcher.find_slot_that_contains(&slots, 'Y'), None);
    }

Full repo is available here: https://github.com/mgr-inz-rafal/swarm
And this is the affected file: https://github.com/mgr-inz-rafal/swarm/blob/master/src/dispatcher.rs

I am not able to reproduce what you have with either the version 1.2.0 or the latest master. What if you try to format the project manually via cargo fmt, do you get the same problem ? If not, then the problem maybe would be with the format-on-save option of vscode.

I ran rustfmt against your repo and the diff looks fine:
@@ -812,19 +812,25 @@ mod tests {
                 100.0,
                 100.0,
                 Some(Payload::new('X')),
-                Some(Payload::new('B')),                SlotKind::CLASSIC
-
+                Some(Payload::new('B')),
+                SlotKind::CLASSIC,
+            ),
+            Slot::new(
+                100.0,
+                100.0,
+                None,
+                Some(Payload::new('B')),
+                SlotKind::CLASSIC,
             ),
-            Slot::new(100.0, 100.0, None, Some(Payload::new('B')), SlotKind::CLASSIC),
             Slot::new(
                 100.0,
                 100.0,
                 Some(Payload::new('A')),
                 Some(Payload::new('B')),
-                SlotKind::CLASSIC
+                SlotKind::CLASSIC,
             ),
         ];
-
+
         assert_eq!(dispatcher.find_slot_that_contains(&slots, 'A'), Some(2));
         assert_eq!(dispatcher.find_slot_that_contains(&slots, 'X'), Some(0));
         assert_eq!(dispatcher.find_slot_that_contains(&slots, 'Y'), None);

OK, that's right. cargo fmt formats the file correctly, but formatting via editor (which - I presume - uses rustfmt via RLS plugin) damages the file.
I'll reopen https://github.com/rust-lang/rls/issues/1479 and put more information there.
Thanks!

@mgr-inz-rafal can you find out how rustfmt is called from vscode ? Maybe the bug appears in a different entry point to rustfmt

Couldn't find any meaningful info about this topic. I hope that colleagues from RLS will be able to shed some light on the issue.


Navigating folder structure becomes impossible when folder contains just 1 item

Description
https://github.com/files-community/Files/assets/33880579/ef3988b3-0cfd-4696-8347-e8cb5982ee12
I am using keyboard for navigating through folder structure. It is arrow up and down, also with alt to navigate back or one level higher.
When I reach folder with just one item (OneFolder in this case) pressing the arrows do nothing and the item is not highlighted, thus I cannot open it with Enter key.
Windows explorer has similar behavior, but when I press the arrow down or up it "highlights" the single item.
Steps To Reproduce

Create such folder structure that ends with single folder (OneFolder in this case)

├───Subfolder1
│   └───OneFolder
└───Subfolder2

Navigate by keyboard to OneFolder
Then you cannot open the OneFolder with just keyboard, which is the whole issue

Requirements

Single item should be able to open with just keyboard

Files Version
<IP_ADDRESS>
Windows Version
10.0.22621.2428
Log File
debug.log

Thanks for the feedback, Merging with #13774. You can check there or click subscribe in the right sidebar for updates.


SegmentDirectoryLoader interface and local impl

Introducing a SegmentDirectoryLoader which will create the SegmentDirectory, with default implementation being SegmentLocalFSDirectory.
As part of this PR, the SegmentDirectory had to move to pinot-segment-spi, and with that came SegmentMetadataImpl, PinotDataBuffer, ColumnIndexDirectory, V1Constants, SegmentDirectoryPaths.
Only these are the files with the new changes. Rest all are simply package name changes or imports
ImmutableSegmentLoader.java
SegmentV1V2ToV3FormatConverter.java
IndexLoadingConfig.java
LocalSegmentDirectoryLoader.java
SegmentLocalFSDirectory.java
SegmentDirectory.java
HelixInstanceDataManagerConfig.java
SegmentLoader.java
SegmentDirectoryLoaderRegistry.java
SegmentDirectoryLoader.java
SegmentPreProcessor.java
SegmentMetadataImpl.java

BaseDefaultColumnHandlerTest
SegmentLocalFSDirectoryTest
LoaderTest

Codecov Report

Merging #6949 (b344832) into master (7b44624) will decrease coverage by 8.08%.
The diff coverage is 81.08%.

@@             Coverage Diff              @@
##             master    #6949      +/-   ##
============================================
- Coverage     73.41%   65.32%   -8.09%
  Complexity       12       12
============================================
  Files          1432     1434       +2
  Lines         70946    71051     +105
  Branches      10280    10293      +13
============================================
- Hits          52082    46417    -5665
- Misses        15399    21274    +5875
+ Partials       3465     3360     -105

Flag
Coverage Δ
Complexity Δ

integration
?
?

unittests
65.32% <81.08%> (-0.06%)
12.00 <0.00> (ø)

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

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


Issue with getting method response as expected from varlink api

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
Description
Not able to get each parameter value from the method response.
Steps to reproduce the issue:

$ podman varlink tcp::12345 --timeout 0

Copy following go code (as gopodman) which use varlink connection to connect with api.

package main

import (
	"fmt"

	"github.com/varlink/go/varlink"
)

func main() {
	type versionOutput struct {
		Built     int    `json:"built"`
		GitCommit string `json:"git_commit"`
		GoVersion string `json:"go_version"`
		OsArch    string `json:"os_arch"`
		Version   string `json:"version"`
	}

	var outResponse versionOutput

	type pingOutput struct {
		Message string `json:"message"`
	}

	var pingResponse pingOutput

	conn, err := varlink.NewConnection("tcp:<IP_ADDRESS>:8443")
	if err != nil {
		fmt.Printf("Varlink connection error: %v", err)
	}

	err = conn.Call("io.projectatomic.podman.GetVersion", nil, &outResponse)
	if err != nil {
		fmt.Printf("Not able to Call: %v", err)
	}

	fmt.Printf("Response : %#v\n", outResponse)

	err = conn.Call("io.projectatomic.podman.Ping", nil, &pingResponse)
	if err != nil {
		fmt.Printf("Not able to Call: %v", err)
	}

	fmt.Printf("Response : %#v", pingResponse)
}

$ go run gopodman.go
Response : main.versionOutput{Built:0, GitCommit:"", GoVersion:"", OsArch:"", Version:""}
Response : main.pingOutput{Message:""}

Describe the results you received:
Got an empty response from the podman varlink api.
Describe the results you expected:
Should be able to get a proper response like in case of ping it should be Response : main.pingOutput{Message:"OK"}
Output of podman version:
$ podman version
Version:       0.6.1
Go Version:    go1.10.2
OS/Arch:       linux/amd64

Output of podman info:
host:
  MemFree:<PHONE_NUMBER>
  MemTotal:<PHONE_NUMBER>6
  SwapFree:<PHONE_NUMBER>
  SwapTotal:<PHONE_NUMBER>
  arch: amd64
  cpus: 8
  hostname: foo
  kernel: 4.16.11-300.fc28.x86_64
  os: linux
  uptime: 168h 23m 12.2s (Approximately 7.00 days)
insecure registries:
  registries: []
registries:
  registries:
  - docker.io
  - registry.fedoraproject.org
  - quay.io
  - registry.access.redhat.com
store:
  ContainerStore:
    number: 0
  GraphDriverName: overlay
  GraphOptions:
  - overlay.override_kernel_check=true
  GraphRoot: /var/lib/containers/storage
  GraphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
  ImageStore:
    number: 1
  RunRoot: /var/run/containers/storage

In order to make it work you need to use the interfaces defined in podman. An example use can be found here: https://github.com/projectatomic/libpod/blob/master/cmd/podman/varlink.go#L7
For other examples, you can git grep ioprojectatomicpodman. A quick-fix for your example would be to use the generic interface{} type instead of the structs, for instance:
var reply interface{}
err = conn.Call("io.projectatomic.podman.Ping", nil, &p)
if err != nil { ... }
fmt.Printf("Reply: %#v\n", p)

if by chance @vrothberg 's example is not in a tutorial, we ought to get it there.

I assumed people who wanted to interact with podman via go would vendor in libpod ... I had not envisioned a go varlink tutorial.  @vrothberg is right on how to use it though and the varlink stuff is behaving.  Marking as closed.  Re-open if you would like to discuss.

@baude having a couple of go examples using it would not be a bad idea.


Cassandra as statistic backend: Why? And are other databases welcome?

Hey,
this is not directly an issue.
As we know Chronos has Cassandra support as statistic backend.
I was wondering why Cassandra was chosen.
Is there a special reason for it? Or was there a discussion or something similar?
Don`t get me wrong. Cassandra is a good database. I only want to know the background.
This leads me to another question:
Are other databases like MySQL or PostgreSQL welcome as well as statistic backend?
As far as i can see all operations Chronos do with Cassandra are able to do with those databases as well.
Maybe if we adjust the source code a little bit databases like Redis are also possible (of course we need to adjust query / storage / key generation).
But the main question is: Are they welcome (maybe as contribution)?
Or is there not so much chance to get such features in?
Or (maybe) a better idea: A HTTP statistic callback (similar to the HTTP failure callback).
If a job would start writing statistics a HTTP callback will be fired (against a URL).
What is behind this URL is the area of the company / developer. But this would create a mass at flexibility.
Do you see such feature as useful? Or a waste of time?
And is there some background why Cassandra?
I like to get some feedback. Thank you :)

If the callback was just a webhook, this could be somewhat generic.

My colleague @bidesh created PR for this feature. Checkout https://github.com/mesos/chronos/pull/593
Maybe you (@SEJeff and @orlandohohmeier) can have a look at it and provide a little bit of feedback?
My initial question is more or less solved with the PR.


Captcha push notifications

Not sure if this is the right place, or I should post it into requests, so sorry in advance for any inconvenience.
Would it be hard to implement captcha push notifications through Telegram or similar, to your phone with a link to solve it, just like when sending them to 2captcha?
Edit: with 2captcha, whenever an account gets a captcha, it is sent to 2captcha, solved, and the account resumes its activity.
Without 2captcha, I manually solve them through PokeSensor, but that account gets swapped and flagged as benching. Once all accounts have been swapped out and there is no more the scanner stops. How can I avoid that flagging? or how to make the scanner use again those accounts?

Notifications would be possible; but that's not a high development priority for me because I almost never get CAPTCHAs.
You can solve CAPTCHAs manually with solve_captchas.py, which will automatically and instantly put them back into the account rotation. If you solve them through other means then you could put them back onto the extra_queue (like solve_captcha does, or set CAPTCHA to False for each account in accounts.pickle between executions of scan.py.

@Noctem didn't realize how to use solve_captchas.py until now. Thank you for the help!

Curious to how you don't get CAPTCHA?  External hash?

I get a couple a day lately. And I would love to have a notification got captchas

@baskettcase wait what? I'm getting 7 captchas an hour with 4 acc in a 4000 square meters area. Please, mind sharing how you do it?

@manolomanila hmm.. the only thing that I can think of is to level them up a bit? Otherwise that's about all I've done and out of 70 or so, I get maybe one to two captchas a day.

Thank you @baskettcase ! @stunnaspinz pointed that out too, allowing pokestop spins to level them up. After a few hours it seems to start working (from 7 captchas/hour with 4 accounts to 4 c/h using 16 accounts!). I might try hashing through Bossland as @AvatarQAZ said if I can't bring it lower. Thank you guys!

I just assumed that you were using the hashing server.. you'll reduce a lot if you do that. Im surprised you can do anything without it heh

@baskettcase @manolomanila how did you setup the worker grid?

I'll give the hashing server a try then. Honestly, I had no idea about the API and all, kinda new to all this. Thanks!
@vlacorte depending on the area I'm scanning, in the config file, (2,2), (2,3), (4,4), etc, Nothing fancy... ;P

@manolomanila that's what I'm using as well but seen other people with (10, 12) grids and got curious! Thanks for replying

I am running a 9x10.  For a 50 sq km area.  It is actually a bit overkill.  I see a lot of pooling.  Thinking of expanding the area into our conjoined town (with less spawn density though).
Hashing server fixes all.  And you would be surprised how efficient Monocle is with its RPM.

Hashing server fixed it. 0 captchas in 8 hours compared to the 50+ that I might have gotten before, thanks all!
@AvatarQAZ if you have free bazooka bullets, who is gonna judge you for killing that fly with it? (apart from PETA)


chore: add Djade formatter

Add Django template formatter Djade, and its pre-commit.

Codecov Report
Attention: Patch coverage is 62.50000% with 15 lines in your changes missing coverage. Please review.

Project coverage is 62.81%. Comparing base (0781914) to head (47c4a15).

Files with missing lines
Patch %
Lines

...ter/incidents/templates/pages/incident_detail.html
41.66%
7 Missing :warning:

.../templates/layouts/partials/incident_timeline.html
0.00%
5 Missing :warning:

...firefighter/incidents/templates/layouts/index.html
66.66%
1 Missing :warning:

...r/incidents/templates/layouts/partials/header.html
92.30%
1 Missing :warning:

...refighter/incidents/templates/pages/dashboard.html
50.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #105      +/-   ##
==========================================
- Coverage   62.88%   62.81%   -0.08%
==========================================
  Files         215      215
  Lines        9576     9573       -3
  Branches     1286     1286
==========================================
- Hits         6022     6013       -9
- Misses       3346     3351       +5
- Partials      208      209       +1

Flag
Coverage Δ

unittests
62.81% <62.50%> (-0.08%)
:arrow_down:

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

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


feat: Adding Support for a New Cloud Provider NIFCLOUD

NIFCLOUD is a famous cloud in Japan!
https://registry.terraform.io/providers/nifcloud/nifcloud/latest
Added these Terraform Adapters and rules.

 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 @fuku2014 - thanks for the PR! please give us some time to go discuss and go through it. We will get back to you.

In the meantime, could you fix the failing checks? Looks like the linter is complaining about an issue.


Update delete command implementation to simplify the parser

Updated the delete command parser to implement the change in the filtered list within the parser. Removing the need for creating a new field and constructor for the delete command, simplifying it.

Codecov Report

Merging #79 (dd8cdce) into master (967bd74) will decrease coverage by 0.18%.
The diff coverage is 75.00%.

@@             Coverage Diff              @@
##             master      #79      +/-   ##
============================================
- Coverage     65.78%   65.59%   -0.19%
+ Complexity      492      489       -3
============================================
  Files            89       89
  Lines          1704     1686      -18
  Branches        192      189       -3
============================================
- Hits           1121     1106      -15
+ Misses          531      529       -2
+ Partials         52       51       -1

Impacted Files
Coverage Δ

...eedu/address/logic/parser/DeleteCommandParser.java
71.42% <20.00%> (-28.58%)
:arrow_down:

...va/seedu/address/logic/commands/DeleteCommand.java
100.00% <100.00%> (+17.50%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[AIRFLOW-125] Add file to GCS operator

Adds an operator to upload a file to Google Cloud Storage. Used as follows:
from airflow.contrib.operators.file_to_gcs import FileToGoogleCloudStorageOperator
# snip: DAG setup
gcs = FileToGoogleCloudStorageOperator(
        bucket='a-bucket-i-have-access-to-on-gcs',
        dag=dag,
        task_id='upload_stuff',
        google_cloud_storage_conn_id='an-airflow-bigquery-connection',
        src='path/to/some_file.csv',
        dst='project/some_file.csv')

Nit: can you please rename your commit message to include AIRFLOW-125 at the beginning? Apache/Github integration likes this.

This looks great. Couple of nits and requests.


Setup Expertiza on machines

This is to make sure everyone has running expertiza setup and running for smooth development

[ ] Eshwar
[ ] Gokul
[ ] Krishna Saurabh


trayer: 1.1.7 -> 1.1.8

Motivation for this change
New trayer version
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build trayer

Success on aarch64-linux (full log)
Attempted: trayer
Partial log (click to expand)
install -m 755 trayer /nix/store/9dlxkhghhv96p3lcjn81syx2iy3yd84p-trayer-1.1.8/bin
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/9dlxkhghhv96p3lcjn81syx2iy3yd84p-trayer-1.1.8
shrinking /nix/store/9dlxkhghhv96p3lcjn81syx2iy3yd84p-trayer-1.1.8/bin/trayer
strip is /nix/store/3zq400fri5dv7d30lpxlqm2v9y1iis6j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/9dlxkhghhv96p3lcjn81syx2iy3yd84p-trayer-1.1.8/bin
patching script interpreter paths in /nix/store/9dlxkhghhv96p3lcjn81syx2iy3yd84p-trayer-1.1.8
checking for references to /build in /nix/store/9dlxkhghhv96p3lcjn81syx2iy3yd84p-trayer-1.1.8...
/nix/store/9dlxkhghhv96p3lcjn81syx2iy3yd84p-trayer-1.1.8

Success on x86_64-linux (full log)
Attempted: trayer
Partial log (click to expand)
install -m 755 trayer /nix/store/cl0bcjn1c631hf4fdwp931n5hyljrszz-trayer-1.1.8/bin
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/cl0bcjn1c631hf4fdwp931n5hyljrszz-trayer-1.1.8
shrinking /nix/store/cl0bcjn1c631hf4fdwp931n5hyljrszz-trayer-1.1.8/bin/trayer
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/cl0bcjn1c631hf4fdwp931n5hyljrszz-trayer-1.1.8/bin
patching script interpreter paths in /nix/store/cl0bcjn1c631hf4fdwp931n5hyljrszz-trayer-1.1.8
checking for references to /build in /nix/store/cl0bcjn1c631hf4fdwp931n5hyljrszz-trayer-1.1.8...
/nix/store/cl0bcjn1c631hf4fdwp931n5hyljrszz-trayer-1.1.8


Upgrade to latest client version

This change upgrades the bundle to use v0.7.4

Closing in favor of #10. Thanks for trying.


return not found for query attribute, but the attribute is there

Describe the bug
An attribute that is listed in the single entity query is not returned in the attr query.
To Reproduce
Steps to reproduce the behaviour:

Send this payload https://api.s.orchestracities.com/timeseries/v2/entities/urn:ngsi-ld:AirQualityObserved:lugano-2689/attrs/airQualityIndex/value?lastN=10
See error:

{
    "description": "No records were found for such query.",
    "error": "Not Found"
}

Environment (please complete the following information):

CrateDB: 3.3.3

closed by #210.


DEFAULT_VERSIONS not honoured?

Synth 2.02 on FreeBSD 11.1:
$ pkg info synth | head -3
synth-2.02
Name           : synth
Version        : 2.02

I have a couple of DEFAULT_VERSIONs in /etc/make.conf, among them one for Perl:
$ grep perl /etc/make.conf
DEFAULT_VERSIONS+=              perl5=5.26

For some reason, synth wants to build Perl 5.24 (which would have been the default had I not overridden it), but also wants to keep Perl 5.26 as well
$ grep perl5 /var/synth/synth_status_results.txt
lang/perl5.24 (new 5.24.3)
lang/perl5.26 (new 5.26.1)

I cannot spot anything anywhere that would warrant building Perl 5.24:
$ pkg info --dependencies -a | grep -i perl.*24
$ find /usr/local/lib -name 'libperl*.so*'
/usr/local/lib/perl5/5.26/mach/CORE/libperl.so
/usr/local/lib/perl5/5.26/mach/CORE/libperl.so.5.26.1
/usr/local/lib/perl5/5.26/mach/CORE/libperl.so.5.26
$

I did actually let it do whatever it wanted (although that was with 2.01), synth status looked about the same as this, and I ended up with both 5.24 and 5.26 (5.24 having been symlinked to /usr/local/bin/perl, so picked up as the default version).
Where might 5.24 be sneaking back in?
Hm, on closer inspection, something wonky is happening with the emulators/linux-c[67] ports as well (and these two are the only DEFAULT_VERSIONs I have) - with DEFAULT_VERSIONS+=linux=c7 and no linux-c7 packages currently installed, Synth would give me a bunch of -c6 ones as well:
$ grep -c linux-c6 /var/synth/synth_status_results.txt
29

Again, no linux-c6-* packages currently installed, nor any traces of linux-c6-* dependencies as per pkg.

please read the synth man page for the locate of the profile make.conf.
/etc/make.conf is NOT used.  Whatever is in that file is ignored.

I stand educated, this is indeed what's been happening.


Godot 4.2 BlendSpace2D/AnimationTree: Add Animation options are not showing up when using create points

Tested versions
Godot 4.2
System information
windows 10 Godot 4.2.1 stable Steam version
Issue description
When attempting to create points on the blendspace2D grid nothing shows up when I left click and hover over Add Animations, just a thin grey line. This has to be a bug.

Steps to reproduce
Just trying to add animation using create point
Minimal reproduction project (MRP)
2d game practice.zip

I just tried it and it works fine? Make sure you assign the Anim Player property to your AnimationPlayer node in the Inspector ...  Sorry for the trouble, thank you for
taking the time to look at it.
On Tue, Dec 26, 2023 at 2:40 PM kris @.***> wrote:

I just tried it and it works fine? Make sure you assign the Anim Player
property to your AnimationPlayer node in the Inspector ... It wasn't
assigned when I loaded up your project
—
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/86510#issuecomment-1869588088,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BE5LHBWZH6H2PMGJ3X6YAN3YLLOUHAVCNFSM6AAAAABBCUU3SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZGU4DQMBYHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Closing this as resolved according to the comment above.


Upgrade to Scala.js 1.13.1 and Laminar 15.0.0

@kitlangton Could we merge this? I'm planning to deploy a new version of a project which depends on this :)