fix for AR not being defined.

This is the change as outlined in https://github.com/tensorflow/tensorflow/issues/14186

Nagging Assignee @ekelsen: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @ekelsen: It has been 45 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @ekelsen: It has been 60 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @ekelsen: It has been 75 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @ekelsen: It has been 90 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @ekelsen: It has been 105 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.


net6.0-android: Java.Interop conflict

Summary
Referencing Silk.NET.Windowing 2.10.0.
Compiling result in following error:
1>CSC : error CS1705: Assembly 'Silk.NET.Windowing.Sdl' with identity 'Silk.NET.Windowing.Sdl, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' uses 'Java.Interop, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=84e04ff9cfb79065' which has a higher version than referenced assembly 'Java.Interop' with identity 'Java.Interop, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'

Steps to reproduce

Platform: Android
Framework Version: net6.0-android
API: OpenGL

Add following references:
    <PackageReference Include="Silk.NET.OpenGL" Version="2.10.0" />
    <PackageReference Include="Silk.NET.Windowing" Version="2.10.0" />

Comments
If I use 2.9.0, it works fine.
I suspect 2.10.0 was compiled with RC3 which had a bug: https://github.com/xamarin/xamarin-android/issues/6438
Probably, recompiling 2.11.0 with VS2022 RTM might fix the issue.

Yeah, @roeyskoe caught this earlier. It's a shame!
We've merged in our PR to build against RTM now so as an interim solution you could use the experimental feed:
<Project>
    <PropertyGroup>
        <RestoreSources>https://pkgs.dev.azure.com/UltzOS/061abec9-b10b-4a9b-9c06-aa635c5e74a2/_packaging/7ae6c815-0dc0-4193-bf95-042c360df875/nuget/v3/index.json;$(RestoreSources)</RestoreSources>
    </PropertyGroup>
    <ItemGroup>
        <PackageReference Include="Silk.NET.Windowing" Version="2.10.0-build1519.0" />
    </ItemGroup>
</Project>

I'll leave this open until we've shipped a version fixing this, not sure yet whether this will have its own out-of-cycle release.


Documentation: technical capabilities of this stack

From Adam Silver in Slack

What is the best and most recent diagram/overview docs describing TAP technical functionality?

I agree that this is needed. Will add docs soon!

Started this. https://docs.transferagentprotocol.xyz/
Docs repo: https://github.com/transfer-agent-protocol/docs


Bulk Edit not working in V11

Hi there, I love you module. Sadly the bulk edit function stopped working in V11, at least for me. Will you be updating the module?
Here is a console error when trying to bulk edit a playlist:
module.js:295  Uncaught (in promise) TypeError: undefined. Cannot read properties of undefined (reading 'getEmbeddedCollection') [Detected 1 package: playlist-enhancer]     at bulkEditTracks (module.js:295:32)     at Dialog.callback (module.js:281:7)     at Dialog.submit (foundry.js:64797:46)     at Dialog._onClickButton (foundry.js:64725:10)     at HTMLButtonElement.dispatch (jquery.min.js:2:43184)     at y.handle (jquery.min.js:2:41168)
Thank you!

Confirmed the same behaviour


docs-bug(cdk/layout): LayoutModule is not needed

Documentation Feedback
In the docs it's mentioned that we need to import LayoutModule in order to use BreakpointObserver and MediaMatcher.
In the meantime from the source code it looks like the module is not needed for any purposes.

Affected documentation page
https://material.angular.io/cdk/layout/api

I think that this is a leftover from before providedIn: 'root' existed.

Perhaps it's worth using "providedIn: LayoutModule" so the services could be included in lazy loaded modules only instead of the app module?

These services were always intended to be global so that the cached state can be reused as much as possible.

I get that. However if you use providedIn: Module the service isn't re-created. The instance will be shared and it won't appear in the initial bundle if was used in lazy loaded modules only

The same is true for providedIn: 'root' which the services are using.

Not quite. If I use it in lazy loaded module only it will increase my initial bundle size.

However, webpack is capable of making a chunk shared across other lazy loaded chunks.


lilex: init at 2.520

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[x] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I'm quite confused by the check failure, it says to define lilex in pkgs/by-name/li/lilex/package.nix instead.
But isn't it supposed to be in pkgs/data/fonts/ as the other ones?

We're in a transition phase where all new packages (using pkgs.callPackage) have to go to pkgs/by-name, but most existing ones are still not moved there (but will be eventually) :)

We're in a transition phase where all new packages (using pkgs.callPackage) have to go to pkgs/by-name, but most existing ones are still not moved there (but will be eventually) :)

Thanks for telling me, I was so confused haha


ShopifyQL

Is this package support Shopify Query Language: https://prnt.sc/mtw6p0 ?
If yes, then is there any documentation?
Thanks.

Yes, see here.
In the case of this package access it would be something like
$shop->api()->graph(string $query, array $variables = []);

Thank you @ohmybrew for the help.

Hi @ohmybrew
Using GraphQL I tried to create product.

Without metafields the product successfully created.
Now, I tried to create product with metafields then it throw me this error: https://prnt.sc/mwa46a

This is my inpu string:
{title:"Test Product - 1",descriptionHtml:"Test Description",metafields:{namespace:"mataNamespace",key:"mataKey",value:"mataValue",valueType:"STRING"}}
This is my controller:
<?php
namespace App\Http\Controllers\Bundle;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class BundleProductController extends Controller
{
    public function index(Request $request){
    	$shop = \ShopifyApp::shop();
    	if(@$request->_token != "") {

    		$input['title'] = "Test Product - 1";
    		$input['descriptionHtml'] = "Test Description";

    		$metafields['namespace'] = 'mataNamespace';
    		$metafields['key'] = 'mataKey';
    		//$metafields['description'] = 'mata_desc';
    		$metafields['value'] = 'mataValue';
    		$metafields['valueType'] = 'STRING';
    		$input['metafields'] = $metafields;
    		echo $query_input = $this->jsonString($input);

    		$query = <<<EOT
			mutation {
			  productCreate(input: $query_input) {
			    product {
			      id
			      handle
			    }
			    userErrors {
			      field
			      message
			    }
			  }
			}
EOT;
			$shop = $shop->api()->graph($query,[]);
			dd($shop);
    	}
    	return view('pages.bundle.create');
    }

    public function jsonString($input){
    	return preg_replace('/"([^"]+)"\s*:\s*/', '$1:',  json_encode($input));
    }
}

Can you tell me where I'm wrong.
Thank you.

I dont think you need to json_encode it... since this is done by Guzzle.
I believe it needs to be STRING without any quotes around it.

I tried without quote and it's thrown me an error.
Can you please show me the example of a product with metafields?

Sorry I have not played with adding metafields through graph.


GCODE console

A great thing for testing : a console to send GCODE

I've been thinking about this one. It would be ideal if we could leave the gcode console open while you use mariner (so you can see what is going on and use this as a debugging tool).
The problem is, the way I implemented communication with the serial port assumes that there's only one process talking to the printer at a time.
I think I need to invest a little bit of time on adding a single thread that does all the communication with the printer through the serial port. Then whenever an HTTP request comes in through flask, it would just talk to that thread instead of talking to the serial port directly.
This will be a bit involved so I'm not sure when I'll have time for it, so for now I've been just sshing into my pi and using minicom:
$ minicom -D /dev/serial0 -b 115200

I do think that the improvements would be worth it though, since they would also solve some of the problems around concurrent requests I see sometimes (if you refresh mariner a few times you'll see that the request for printer status will fail, for example). So it's best to have a single thread be responsible for talking to the printer.


HDDS-11852. Reduce duplication in some GenericCli subclasses

What changes were proposed in this pull request?

Extract common code from OzoneAdmin, OzoneDebug, and OzoneRepair to ancestor class, to reduce duplication.
Remove OzoneAdmin and OzoneDebug constructor only used by tests.
Remove SubcommandWithParent usage.

https://issues.apache.org/jira/browse/HDDS-11852
How was this patch tested?
CI:
https://github.com/adoroszlai/ozone/actions/runs/12251624971

Thanks @nandakumar131 for the review.  The methods were not synchronized in their previous location, and I don't think they need to be, either.


tutorial please

there are so many things that are a bit vague to a novice programmer like me. when you say i should copy the '*.env.example' file, where should i copy it to?
also what should the facebook auth token look like? mine is a 266 character string of digits, and lower and upper case letters. is this correct?

I'm happy to answer programming questions that you run into.

when you say i should copy the '*.env.example' file, where should i copy it to?

You could copy the .env.example file from the root of this repo, or just create a new .env file. The .env file should be located within the tinder director (after step 1).
It wouldn't be a bad idea for me to run tree on a working directory to just explain what each folder/file does within this directory.

also what should the facebook auth token look like? mine is a 266 character string of digits, and lower and upper case letters. is this correct?

My old facebook token that doesn't work anymore is 210 Roman characters (uppercase, lowercase, and numbers 0-9). I don't have a facebook accont right now. For now I have been using tinder's sms auth which gives you the x auth token.


Odd message from plots

Suddenly got this after connecting to remote

This is because it's reconnecting to an existing live session, and the dummy package used to store plotting related stuff gets duplicated. Since we decided to drop reconnection for RTM, this is trivially fixed by disabling the reconnect feature.
I was planning to do it as part of my session-save-on-exit work, but if we don't want to wait, it's trivially done by making this variable always false:
https://github.com/Microsoft/RTVS/blob/38ebb467cc4944ca29eab36ddf8c135c20889593/src/Host/Client/Impl/Host/BrokerClient.cs#L92

Close it ?

Closing for now since it's no longer applicable. But we'll need to revive this item when we fully implement true reconnection.


fix(sdk): Runtime error when injecting local KMS store from mobile

Fixed an issue with the local KMS implementation that was causing a runtime error when using any store implementation that was injected in from mobile code. Also did some refactoring to bring the local KMS more in line with the other APIs.
Signed-off-by: Derek Trider<EMAIL_ADDRESS>

Codecov Report
Base: 90.82% // Head: 90.43% // Decreases project coverage by -0.39% :warning:

Coverage data is based on head (eb1b74d) compared to base (6ca6bb8).
Patch coverage: 68.42% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #218      +/-   ##
==========================================
- Coverage   90.82%   90.43%   -0.39%
==========================================
  Files          46       47       +1
  Lines        1733     1757      +24
==========================================
+ Hits         1574     1589      +15
- Misses        110      116       +6
- Partials       49       52       +3

Impacted Files
Coverage Δ

pkg/localkms/localkms.go
76.00% <33.33%> (-6.61%)
:arrow_down:

cmd/wallet-sdk-gomobile/localkms/localkms.go
68.75% <57.14%> (-10.20%)
:arrow_down:

cmd/wallet-sdk-gomobile/localkms/memstore.go
76.92% <76.92%> (ø)

pkg/localkms/provider.go
82.35% <87.50%> (+6.16%)
:arrow_up:

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[SPARK-33101][ML][3.0] Make LibSVM format propagate Hadoop config from DS options to underlying HDFS file system

What changes were proposed in this pull request?
Propagate LibSVM options to Hadoop configs in the LibSVM datasource.
Why are the changes needed?
There is a bug that when running:
spark.read.format("libsvm").options(conf).load(path)

The underlying file system will not receive the conf options.
Does this PR introduce any user-facing change?
Yes. After the changes, for example, users should read files from Azure Data Lake successfully:
def hadoopConf1() = Map[String, String](
  s"fs.adl.oauth2.access.token.provider.type" -> "ClientCredential",
  s"fs.adl.oauth2.client.id" -> dbutils.secrets.get(scope = "...", key = "..."),
  s"fs.adl.oauth2.credential" -> dbutils.secrets.get(scope = "...", key = "..."),
  s"fs.adl.oauth2.refresh.url" -> s"https://login.microsoftonline.com/.../oauth2/token")
val df = spark.read.format("libsvm").options(hadoopConf1).load("adl://....azuredatalakestore.net/foldersp1/...")

and not get the following exception because the settings above are not propagated to the filesystem:
java.lang.IllegalArgumentException: No value for fs.adl.oauth2.access.token.provider found in conf file.
	at ....adl.AdlFileSystem.getNonEmptyVal(AdlFileSystem.java:820)
	at ....adl.AdlFileSystem.getCustomAccessTokenProvider(AdlFileSystem.java:220)
	at ....adl.AdlFileSystem.getAccessTokenProvider(AdlFileSystem.java:257)
	at ....adl.AdlFileSystem.initialize(AdlFileSystem.java:164)
	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2669)

How was this patch tested?
Added UT to LibSVMRelationSuite.
Authored-by: Max Gekk<EMAIL_ADDRESS>Signed-off-by: Dongjoon Hyun<EMAIL_ADDRESS>(cherry picked from commit 1234c66fa6b6d2c45edb40237788fa3bfdf96cf3)
Signed-off-by: Max Gekk<EMAIL_ADDRESS>

@HyukjinKwon @dongjoon-hyun This PR does not have conflicts with branch-2.4.

Test build #129583 has started for PR 29986 at commit 5bde04f.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34188/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34188/

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/34188/
Test FAILed.

Test build #129583 has finished for PR 29986 at commit 5bde04f.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/129583/
Test PASSed.

Merged to branch-3.0 and branch-2.4.


Add note about fsckobjects

I ran into this while running osh script/bootstrap (it's also reproducible without oils).

Description

n/a
Checklist:

n/a

Thanks, but I'm going to close this as this isn't really appropriate for Linguist's docs as it's not specifically a Linguist issue.

Thanks, but I'm going to close this as this isn't really appropriate for Linguist's docs as it's not specifically a Linguist issue.

Ok, fair enough! 🙂


Episode air-time Time Zone adjustments for the US

It's come to my attention that I may be converting some episode air-times "incorrectly" when it comes to broadcasting times in the US. I say incorrectly in quotes because to me it's actually correct, but when I compare to the Trakt website it's wrong. I'm from Australia, so I think it's because there might be some extra logic I'm missing and not understanding when it comes to air-times in the US.
As an example on the Trakt website,
If I have my Trakt Time Zone set to (GMT +10:00) Brisbane (my local time zone) in the Trakt settings and I open an episode such as Game of Thrones S01E01 the date it airs is set to 11:00 AM.
If I then change my Time Zone to (GMT -5:00) Eastern Time (US & Canada) and reload the page, it adjusts to display 9:00 PM as expected.
Now, here's the bit I don't get, if I change my Time Zone to (GMT -8:00) Pacific Time (US & Canada) and reload the page, it also displays 9:00 PM. With my logic, it displays as 6:00 PM due to the 3 hours difference in the Time Zone.
I tried a few of the other Time Zones around the US offsets, and they have similar behaviour.
My question then is, whats the best way to handle this logic? Is there some standard that I need to conform to when it comes to US air-times, or any others I should know about? Because for any other dates such as the dates for comments, they're adjusting as expected (and on the website, are using my system time zone, rather than the Time Zone set to the Trakt settings which seems odd).
Perhaps this information, if any, could be included in the Dates section of the API Documentation?
Any help would be appreciated!

Using GoT as the example, HBO air the show at 9PM on their East feed and then 9PM on their West feed. (East feed actually usually re-airs the episode again 3 hours later when it's first airing on the West feed).
So, 9PM is actually correct for both GMT-5 and GMT-8 in this scenario.
Depending on the show they can be aired simultaneously on the west coast (I believe Saturday Night Live does this still), or tape-delayed to air in the same time-slot locally.

Cool, thanks for the info, and yeah that makes sense why they only list the first airing etc. I suppose my goal is to match as closely as I can to what Trakt has, because that's what Trakt users expect, especially when trying to send notifications about the episode airing. There just happens to be a bit of inconsistency so I can't really pin down what that logic is.
Trying to work it out myself isn't going very well, as I tried setting my time zone to GMT-5 and GMT-8 and checking some random episodes in the calendar. It appears that shows that aren't in the US are adjusted directly based on the time zone set. For example, Ambulance Australia S02E01 shows up as 12:30am for GMT-8 and as 3:30am for GMT-5 probably because its an Australian network, however as in the original Game of Thrones example with HBO being a US network, its displaying GMT-5 time (9:00pm) for both.
Continuing with the GoT episode, trying say GMT-10 (Hawaii) still shows 9:00pm, and then GMT-11 (Midway island) jumps to 2:00pm. GMT-3 (Greenland) also shows 9:00pm, and GMT-2 (Mid-Atlantic) shows 11:00pm. So its as if time zones between -3 and -10 all use -5 time zone offsets, except as you mentioned, -6 (Central) and -7 (Mountain) have that slightly "wonky" adjustment. All time zones outside that use the offsets directly etc.
So I guess I can make it so that for shows who's airing information or country of origin is from the US/Canada and related time zones, I do something special like the above, but I just wanted to get confirmation that that's how it works and some details of which time zones have special rules, rather than implement something and then have users come back and say its not working as they expect (which is the reason I was investigating to begin with haha).

with HBO being a US network, its displaying GMT-5 time (9:00pm) for both.

Technically HBO isn't a network in the traditional sense. Since it's a cable/premium network, the local providers can pick which feed they want to offer to subscribers from the East or West (or both). Sorta beside the point of the discussion, but I've seen really odd things because of it.
I checked the upcoming listings for a few pre-recorded HBO shows in the different time zones. Seems that Mountain pulls from the West feed so, for example, Last Week Tonight airs at 00:00 Mountain, 23:00 Pacific. Alaskan airs at 22:00, and Hawaii airs at 21:00 which follows that they both use the West feed as well.
That said, switching Trakt to GMT-10 shows that show airs at 22:00 and GMT-9 at 23:00, which is an hour off of the correct airing. So, not quite sure how the offset logic is working on the back-end there.

some details of which time zones have special rules

You'll have a fun for US with that one, depending on how granular you want to be. Hawaii and Arizona do not observe DST. Last year California and Florida voted to observe DST year-round, pending congressional approval. Then you have states which span two time zones (at least for that and the latter three, you're only worried about the zone and not the specific state). We're a mess. haha Though, at least we haven't gotten into the GMT-X.5 territory yet.
Coming back around, for premium networks, most major US (not sure about CA) providers offer both East and West feeds as part of the package for the channel. So, you could somewhat fudge it and push 2 notifications for both East and West feeds airings, since it is airing if they tuned whichever feed.
From my LWT example, matching what Trakt has for airing (at least in Alaska and Hawaii) would actually generate the "this isn't working right" issue.

Oops wasn’t meant to close... Haha wow, almost tempted to not bother unless I had something concrete to go on. Maybe I’ll leave it as is for now. Thanks for your help so far!
Sent with GitHawk

Hey @rectifyer, would it be possible to get a quick overview of how you guys deal with these offsets on the Trakt website? Thanks in advance!
Sent with GitHawk

The above assumptions are correct. There are special cases for US based shows and US based time zones. As mentioned, if a show airs at 9pm on the east coast US, it also airs at 9pm on the west coast US. Those are obviously different times when looking at a constant time zone such as UTC.
On the Trakt website specifically, we use the user's selected time zone (https://trakt.tv/settings). If that is blank, or the user is not signed in, we use a library called moment to get their time zone from their web browser. We then use moment (for all users) to adjust and print out the datetime in their time zone and with their selected formatting.

Aright thanks, I’ll see what I can do in regards to the special US cases, doing my best to compare with the website and go from there. Thanks again @Daeymien for your input also!
Sent with GitHawk


[v1.3.0] Incorrect ID validation for Belgium.

Related to #75, I see some problems with the current implementation:

It does not allow 00 as day or 00 as month while the docs specify that it is allowed for people whose day/month of birth was unknown at the time of registration.
Digits 7-9 represent a sequence number that ranges from 001 to 998 (both inclusive) so values 000 and 999 are invalid. The current implementation does not seem to check this.

See https://github.com/reducktion/socrates-java/pull/36/files for an implementation in the Java fork that does take these things into account.
I'm up for fixing it if you want, please confirm.

Hi, please refer to #76
It seems like there is a problem with the "ID" we're using itself 😅

This specific issue is unrelated, the Belgian National Number (ID) is used on both the social security card and the official identity card.
The ID you're using is the correct one for Belgium. The validation logic as is just does not take into account the 2 things I rased in the issue.

@YvesBos apologies... it was a long day and I was stuck in Luxembourg mode.
By all means, if you can put a PR up, please do!
Target the 1.2 branch please

@YvesBos I have fixed the branch name because it was erroneously targetting a tag.
Please change the merge target to release-1.3.0

Fixed by #91


Error when no default application is assigned to a file

OSError: [WinError 1155] No application is associated with the specified file for this operation: '\\uklon02p-as06\F\114-Projects\OP195659 Wood USA - Chevron - Egypt Drilling Riser Analysis\05 Drift-Off\Sensitivities\July 2021\10Yr + 95pcNE OWC - LB Soil 100pc Existing Capacities - Sens3 - July23-Rev 02\Drift-Off - OWC - UB Soil\16.5ppg - 10Yr - LB\VesselDrift.txt'
Need to handle for this.

Resolved in V0.25.1


Move from travis to github actions

Since Travis ci stopped unlimited builds, we need to migrate the project to Github Actions. Readme needs to be updated too to reflect this change.

Updated the same. Project is now on github actions!


Parsl Worker Shutdown Task Failure

Describe the bug
If a Parsl worker is killed for any reason we report this back as a task failure when it should likely be restarted. This is especially harsh on interpretable queues.
        raise ManagerLost(manager, self._ready_manager_queue[manager]['hostname'])
    parsl.executors.high_throughput.interchange.ManagerLost: Task failure due to loss of Manager b'55fe9b2bb4f4' on host ca024

To Reproduce
Kill a Parsl worker while it is in the middle of evaluating a task a task.
Expected behavior
We do want to know when a task repeatedly brings down a manager; however, we typically protect against this by running everything in separate processes making it hard to bring down a worker. At this point I consider the failure label a greater issue than a task that repeatedly brings down a worker.
We could consider an option where we mark a resource as low queue which expects the workers to be continuously killed and the tasks always restarted.
@yadudoc @benclifford Should this be a Parsl issue or something we handle on our end?

One more poke: @yadudoc @benclifford

@dgasmith Could you clarify whether you are worried about retrying/restarting tasks or workers ?
If you want tasks to restart you can set the retries option (https://parsl.readthedocs.io/en/stable/userguide/exceptions.html#retries) that retries a task N times before raising an error.
It may not be smart to enable worker auto-restarts because we currently cannot identify why a worker failed (task killed the worker, OOM, failed to reach network. In many of these cases the safer option is  for the worker to fail, triggering a job fail, which then comes back to Parsl, rather than risk burning cluster allocation.


Fix the Enhanced Compilation Failure Issue

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

https://github.com/kmesh-net/kmesh/blob/92ec79142f6c7d56eaafce9fa303108c822fe9df/pkg/bpf/bpf_kmesh.go#L83
https://github.com/kmesh-net/kmesh/blob/92ec79142f6c7d56eaafce9fa303108c822fe9df/pkg/bpf/bpf_kmesh.go#L86
Maybe above two place need to change  Bpfmesh to reference type to fix enhanced complilation failure.

In theory this is better to return pointer type in case there is some copy and we mutate the original object later . @lec-bit @bfforever Did you test the features with this patch, i canot see where we copy it

My development machine is enhanced kernel, go build  would build with bpf_kmesh.go file, not bpf_kmesh_l4.go file, so would report a inconsistent type error at compile time.


Update README.md

Added

Improving your code with modern idioms - under tutorials
Removed thenewboston.com links - They are no longer operational

It'd be useful to change the New Boston links by the YouTube playlist URL counterpart

let me do that and update this pull request.

Updated Links
Removed 404 links
Replaced some 404 links with mirrors
Tried fixing most of the errors here- https://travis-ci.org/quobit/awesome-python-in-education/builds/543584678

Removed duplicates
Removed 2 Oriely links since it's no longer free
2 Python3 Cheatsheet with same content - removed 1 with 404(https://perso.limsi.fr/) kept the other one.
Reference for changes - https://travis-ci.org/quobit/awesome-python-in-education/builds/543606436
Brought down link errors from 129 links to 5.
I don't understand whats happening with the remaining 5 links. The link with 404 for pygame works.
And other links keep changing.

Thanks a lot. I'll review all later.

Hey ?

Yes, I've been busy lately. Will check all changes this week (I've seen some false positives by awesome_bot/Travis). Lot of thanks for your work!

Hi @PandaWhoCodes !
I've reviewed your changes. First of all, again many many thanks for your work. I'd only suggest what follows:
awesome_bot return some false linkrot, e.g.:

line 54 (1st link works. 2nd one changes to http://runestoneinteractive.org/pages/library.html)
line 112 (it works)
line 176 (redirects to safari but it works)
line 205 (maybe fails due to more latency being a PDF)
lines 435-438 (they work)

OTOH, I'd also like to suggest:

(old) line 332: JupyterLab Documentation, just remove "-tutorial"
line 329: don't understand why the change to gke.mybinder.org
line 398: don't force to subscribe (delete "?sub_confirmation=1" at the end)


Bon Fire: Drop It- Javascript Intermediate Algorithm Scripting

In the "BonFire: drop it", the fifth test case given is not correct. I hope there will ba some updates on it soon.

Duplicate of #4278 #4325 .
The Bonfire and test cases are correct. If you read the description correctly, the function should stop once the predicate returns true. So the last 2 in [1,2,3,9,2] would actually be preserved.

@faizaanceg is correct. Thanks and happy coding!

yup! I understand and got the answer! Thanks much.


Feature/health checks

Description
This PR includes the following proposed change(s):

Adds health checks to arc-dispute-api, citizen-api, staff api, workflow service

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Does the change impact or break the Docker build?

[ ] Yes
[ ] No

If Yes: Has Docker been updated accordingly?

[ ] Yes
[ ] No

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] New and existing unit tests pass locally with my changes

During testing, the health check endpoint were returning 404. It worked locally when running in docker compose. More investigation is required.

Will reevaluate this in the future.


Introducing Concurrency

no issue

add ember-concurrency dep
convert post settings menu slug generation functions to concurrency tasks
move tasks from post-settings-menu to editor-base-controller

TODO:

[x] convert user slug generation to concurrency task
[x] Add gh-task-button which extends spin-button but handles tasks
[x] simplify task handling in editor-base-controller
[x] 'dem tests

@kevinansfield this is good to review, however I was running into some issues with testing ember-concurrency tasks in a template. Not sure exactly what I was doing wrong.

Progress note: there's a test bug where a form is somehow getting submitted on the team page which is causing the page to reload (causing the tests to restart)

@kevinansfield ready for review ⚡


Make 'stretch' aligned children fill cross-axis in containers of undefined size in the cross-axis

Summary: Fetched and rebased
https://github.com/facebook/css-layout/pull/145 and updated it to do 2
things:

Make 'stretch' aligned children grow to fill their containers in the
cross-axis if the cross-axis size is undefined. The added test might be
the best explanation of this.
Make sure this doesn’t decrease the frequency of the
“simpleStackCross” optimization in a relatively complex sample
environment.

Test Plan: Added a test: Container with 3 row directioned children and
no explicit height set. One child is of height 0, one of 0 height with
stretch alignment, and one of 150 height. Expected the 0 height child
remains of height 0, stretch grows to 150, and 150 stays the same.

Looks good, just needs the suggested cleanups. Please communicate about these changes here in #145 as this is based on his work.

The reason all the tests change in LayoutCachingTest.java is because they all have roots which are all default styled (flexDirection: column, alignItems: stretch). The width of the root changes, so the width of the leaves must change.

Looks good but you should also land the generated code for each language in the repo.

Never mind, the commit code does have the generated code. One C# test is failing though.

Landed in #145


How to generate one HTML document from some css files in Gulp?

Here's my styleguide task.
var postcss = require('gulp-postcss');
var styleguide = require('postcss-style-guide');
var postcssimport = require('postcss-import');
gulp.task('styleguide', function () {
  gulp.src(path.css_src + '**/*.css')
    .pipe(postcss([
        precss(),
        postcssimport(),
        styleguide({
              project: 'styleguide',
              dest: './styleguide/index.html'
        })
    ]))
});

styleguide task seems to be working, tho nothing is printed in the generated HTML file.
[11:03:03] Starting 'styleguide'...
[11:03:03] Finished 'styleguide' after 5.85 ms
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!

Any thoughts on what I might be doing wrong?

@hisako135 postcss-style-guide expects only one input to output one html file in PostCSS build flow, so it depends on postcss-import or postcss-partial-import to squash some files. If you are using PreCSS (includes postcss-partial-import, so you need not use postcss-import), you can set one CSS file that includes all @imports.
e.g.
app.css:
@import "module-1.css";
@import "module-2.css";
@import "module-3.css";

gulpfile.js:
// other tasks

gulp.task('styleguide', function () {
  gulp.src(path.css_src + 'app.css')
    .pipe(postcss([
        precss(),
        styleguide({
              project: 'styleguide',
              dest: './styleguide/index.html'
        })
    ]))
});

Thank you for your report :)

Thank you so much for an in-depth explanation!
Feel free to close this issue.
Thanks. keep up the good work :)


SharePoint Migration Tool Public Preview Version <IP_ADDRESS>

When prompted to sign into the current sharepoint site i am continually prompted to re-enter your user ID or password.  I am entering correct credentials. This is for a Sharepoint 2010 site.  Any ideas?

@danlebaron thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.

@officedocsbot close


Fix sumneko_lua docs

CONFIG.md is autogenerated, I had thought I merged the fix in #523, but I overlooked that they did the same thing as you and editing CONFIG.md directly. I just retriggered docgen and it's fixed on master.

CONFIG.md is autogenerated, I had thought I merged the fix in #523, but I overlooked that they did the same thing as you and editing CONFIG.md directly. I just retriggered docgen and it's fixed on master.

Thanks! I hadn't realized that it was auto generated

Thanks! I hadn't realized that it was auto generated


Manage importing fragments from different modules into a single query

Is your feature request related to a problem? Please describe.
We have a query (in module 3) that has fragments from different modules and want to be able to combine into one query.
query {
  User {
    section {
      ...SharedUserFragment #(from module 1)
      ...PaidUserFragment #(from module 2)
    }
  }
}

Describe the solution you'd like
I hope to be able to import the fragments from different modules into a single query. This is related to  https://github.com/apollographql/apollo-android/issues/593 and https://github.com/apollographql/apollo-android/issues/1008

Do we know if there have been any attempts at this? I am potentially going to look into this and was curious if there is any additional info on how it can be done.

@Jawnnypoo thanks for looking into this!
There is a great discussion in the iOS repo. I'm not sure how much of that would apply to Android. Especially, I'm not sure Android needs a separate ApolloConfig.json since a lot of that logic could be added directly in the Gradle plugin.
Ideally, I think this could even be a "no configuration" thing, just adding another module as a dependency with implementation(project(":commonModule")) could pull the appropriate fragments and custom types, adapters, configuration, etc... automagically. But I definitely didn't look very close there so there might be a lot of caveats !

The branch I'm using to investigate this: https://github.com/apollographql/apollo-android/pull/2514
It's working modulo a lot of edge cases but the general direction should be there, let me know what you think.

2.4.0 is now released with experimental multi-modules support. Please try it out and let open new issues if needed before we remove the @ApolloExperimental annotation down there, most likely by the end of this year.


SCC: Add support for rendezvous hashing for distribution across instances

https://github.com/SocketCluster/scc-broker-client/issues/5

Done.


MasterKey from file

If multiple instances of CWS exists, or if the instances are frequently updated - it may be cumbersome to have an administrator run the MasterKey request to unlock the instance(s). A different solution is to use a key file to load the MasterKey from initially.
Goal is to extend the properties with a MasterKey file property, and allow that this is used if set to a valid file. The file in question may be containing any data deemed necessary. CWS will use the PBKDF2 algorithm internally to convert it into a Symmetric Key.
Additionally, it should also be ensured that the MasterKey is always using the same algorithm, regardless of the internally settings.

Idea; the MasterKey could be read from a common source via a URL. This requires that CWS must support HTTPS requests to other systems and also support Client certificates to improve security.


in podman-docker, drop the -u option

The -u option to set the user is not supported in podman.
As this option is mainly used with docker to workaround the non-rootless behaviour of docker, it would be nice to drop this option as irrelevant instead of failing. (Maybe issue a warning).
It would fix issues like: https://github.com/pre-commit/pre-commit/issues/1243

We can't drop -u - the specific workaround you mention may be broken, but it's a very important flag (setting user in the container has many uses) and other than the case you mention (which seems more of a difference in how we handle Rootless versus how Docker does) we provide complete support for the flag.

Right podman run -u testuser ...  Works fine.  If you find this does not work then reopen the issue.
Rootless & Rootful podman supports running with multiple users, both by default run with root of the user namespace they are launched in.  If you want to run with a different user within the container then you use -u to select the user.
When running in rootless mode, the root of the container is more powerful then then non-root of the container, so it is still advisable to run as Non-Root in a rootless container.

I am probably missing some configuration, then. I will invertigate further. When using -u I get this error:
podman run -u 105971 antora/antora -v
Error: cannot setuid: Invalid argument: OCI runtime error
``

That UID is likely too high, if you're running rootless. By default, new users are assigned a 65536-length block of UIDs and GIDs that we use for rootless containers (the mappings are contained in /etc/subuid and /etc/subgid). Unless you've explicitly adjusted that number up, rootless containers will be able to use UIDs and GIDs up to and including 65536 (65536 from subuid/subgid plus one, the user that originally launched the container).

We should add a check for this on rootless containers.  Seems like an easy check on the CLI.  Then you could say something like.  You user can only launch contianers with UIDs < XYZ.

I don't think we can do it at create time (we need to make & mount the container to translate the UID) but we can definitely do it when we go to start the container, which should be enough for podman run


Bump mix.lock and .tool-versions + fix warnings

Pull Request Test Coverage Report for Build 1d646d37e749ce2da8e7b923dc8a0d02e24ca747-PR-83

0 of 0   changed or added relevant lines in 0 files are covered.
383 unchanged lines in 26 files lost coverage.
Overall coverage decreased (-50.3%) to 49.671%

Files with Coverage Reduction
New Missed Lines
%

lib/spear/acl.ex
1
90.0%

lib/spear/connection/configuration.ex
1
96.97%

lib/spear/filter/checkpoint.ex
1
0%

lib/spear/persistent_subscription/settings.ex
1
96.67%

lib/spear/position.ex
1
0%

lib/spear/scavenge.ex
1
0%

lib/spear/supported_rpc.ex
1
0%

lib/spear/uuid.ex
1
96.15%

lib/spear/filter.ex
3
90.91%

lib/spear/cluster_member.ex
4
0%

Totals

Change from base Build 5eda4dc6048507cef05907f3abe8033c2752ba27:
-50.3%

Covered Lines:
378

Relevant Lines:
761

💛  - Coveralls

I was not aware of the required elixir compatibility, I'll submit a new PR for the dependencies bump if you want, for now I'll close this PR 👍


Service Blueprint version 2

Describe the issue
This is important because we intend to use the Service Blueprint as a conversation starter/Comms tool to collaborate with OCIO and other BC Gov teams.
Cloud Pathfinder, OCIO and Ministries need to understand, and be able to address user expectations and requirements for managed cloud services. Ministries need to understand their share of responsibilities for compliant use of cloud services. Our stakeholders will benefit from knowing what to ask from us.
Which Sprint Priority is this issue related to?
1
Additional Context

centres on the customer journey
the customer is the Early Adopter
front stage focuses on touch points between the customer and our service
backstage is what is needed behind the scenes to make the above possible

Definition of done

Blueprint diagram updated with front end activities and adapted to Bjorn's journey
Map and transit lines redrawn such that it accurately reflects the BC Gov and CP landscape (input needed from PO)
Reviewed by PO prior to demo

Created v2 trying to be CSP agnostic - https://miro.com/app/board/o9J_kmmxJv0=/
Also removing all references to early adopters.  We will learn & shape v2 based on the lessons learned from the EA work

The V2 I created in Miro is now out of date & will create a new V2 in Mural in the next sprint

Updating the blueprint based on the comments & feedback from the team during the walk thru

Completed 2020-12-23, reviewed with PO 2021-01-05

Completed 2020-12-23, reviewed with PO 2021-01-05


The decoded image appears slightly darker on a light background and slightly lighter on a dark background

Which component impacted?
Decode
Is it regression? Good in old configuration?
No, this issue exist a long time
What happened?

git clone git@github.com:21pages/gpucodec.git
Open vs/MFXTest/MFXTest.sln with visual studio. If your VS version is not VS2019, change it to your VS version through Project -> Properties -> Platform Toolset.
Run vs project, you will get a error SDL2.dll not found, copy externals/SDL/lib/x64/SDL2.dll to vs/AMFTest/x64/Debug and rerun.

What's the usage scenario when you are seeing the problem?
Transcode for media delivery
What impacted?
The encoded image appears slightly darker on a light background and slightly lighter on a dark background.

Debug Information
library: https://github.com/Intel-Media-SDK/MediaSDK, version 22.5.4
hardware: Intel(R) HD Graphics 530
driver: <IP_ADDRESS>0
Do you want to contribute a patch to fix the issue?
Yes, I'm glad to submit a patch to fix it.
It's possible that I made a mistake in how I used it, but I don't know where I went wrong.
If I need to switch to onevpl, I can switch to onevpl.

Fix this by set auto processing mode to false and set color range to 16~235
    video_context_->VideoProcessorSetStreamAutoProcessingMode(
        video_processor_.Get(), 0, FALSE);
    video_context_->VideoProcessorSetStreamFrameFormat(
        video_processor_.Get(), 0, D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE);


Optimized inference of Cohere model on HPU

What does this PR do?
Optimized inference of Cohere model on HPU.
Before submitting

[x] Did you make sure to update the documentation with your changes?
[x] Did you write any new necessary tests?

Can you provide the perf diff and accuracy value before/after this patch?

Can you provide the perf diff and accuracy value before/after this patch?

Below is the perf before the optimization:

and after  the optimization:

The command is:
python run_generation.py --model_name_or_path CohereForAI/c4ai-command-r-v01 --batch_size 1 --use_hpu_graphs  --bf16  --do_sample --use_kv_cache --token ...

@XinyuYe-Intel  can you rebase?

@XinyuYe-Intel can you rebase?

rebased.

@XinyuYe-Intel could you please resolve the conflicts on this PR, looks good otherwise

Resolved conflicts.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


wrong ? image version in bundle crd

I was using 0.10.0 previously, downloaded the 0.14.2 bundle_crd.zip and... git saw no changes in my folder.
Looking at manager.yaml, I have this:
image: victoriametrics/operator:v0.10.0

Did I miss something, am I crazy ?xD
Is it "normal" ?

nervemind, I am not sure what I did the first two times but now I have the correct version...


AddBlockToCreativeInvWithoutNewModel

hello, how can i add a block in to the creative inventory without create a new Model please ?

because if i don't put a model its doesn.t work

ok its = null


Replace jquery-ui with a different (lightweight) drag and drop solution

We include jquery ui to implement channel sorting. There are couple of problems with it:

It's heavy
It does not work on mobile (no touch support)

Some possible alternatives:

html5 drag and drop
dragula
Stick to jquery ui but use Touch Punch for mobile support

Do we need this in 2.3.0? I feel like, as the only PR we have has a lot of issues with it, it's probably best to leave it till 2.4

I agree. Even though I highly appreciate the effort, the open PR is not in a mergeable state as it would essentially be a regression. With a bit of work and testing, it's definitely reachable shortly, but most likely not for 2.3.0.
Removing for now, as we are closing the features for 2.3.0.

I was experimenting with the libraries @MaxLeiter noted, and except for the jquery option, they all allow
dropping outside of the parent container. This is due to the limitations of the html5 drag & drop that they use. That said I don't think we need to limit this, as long as it doesn't do anything as a result (which is the default for most of these libraries).

I'd like to take on this for hacktoberfest, since I've been experimenting with some solutions and already have something whipped up. Planning on opening a PR for discussion soon.


When to publish your code?

Are you planning to share the code implementation?

Thank you for your interest in our work. We will upload the code after the paper is formally published in ICCV.

I'm also waiting for the code. Is there any news!?

I am working on it now


Fix reassign on Postgres 9.4

Codecov Report

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

@@          Coverage Diff          @@
##           master   #177   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          11     11
  Lines        1278   1278
=====================================
  Hits         1278   1278

Impacted Files
Coverage Δ

ldap2pg/role.py
100% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Directory traversal vulnerability

Hello - when investigating some implementations with this buildpack with different security features I noticed that there is a directory traversal vulnerability.
I have an example app with an OAuth redirect. when using httpie to perform a GET request you can access the etc/passwd file
http GET https://oauth-shiny.herokuapp.com/AdminLTE-2.0.6/../../../../../../../../etc/passwd
Not sure the best way to fix this?

A fix... for those who stumble upon thi

A solution that appears to work is to host the application behind nginx using the heroku nginx buildpack on top of this buildpack, and having the run.R file write the nginx active and listen to the domain socket.
It does require rewriting the fakechroot process, and admittedly I am a novice on this but it appears to work / give multiple features of nginx available to users.

Add the heroku nginx buildpack to your existing application to index value 1

heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nginx --index 1

Modify run.R to listen to the domain socket

library(shiny)

  # run on heroku
  file.create("/tmp/app-initialized")
  port <- '/tmp/nginx.socket'
  attr(port, 'mask') <- strtoi("117", 8)

  shiny::runApp(
    appDir = getwd(),
    port = port
  )

Add a Procfile to run shiny behind nginx
note here excluding some paths from fakechroot so it can work with nginx. Has not shown any issues with existing packages yet

web: env FAKECHROOT_EXCLUDE_PATH=/tmp:/bin bin/start-nginx fakechroot fakeroot chroot /app/.root /usr/bin/R -f /app/run.R --gui-none --no-save

include the nginx config file nginx.conf.erb in the dir/config directory, modified slightly for websocket

daemon off;
#Heroku dynos have at least 4 cores.
worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>;

events {
  use epoll;
  accept_mutex on;
  worker_connections 1024;
}

http {
  gzip on;
  gzip_comp_level 2;
  gzip_min_length 512;

  server_tokens off;

  log_format l2met 'measure#nginx.service=$request_time request_id=$http_x_request_id';
  access_log logs/nginx/access.log l2met;
  error_log logs/nginx/error.log;

  include mime.types;
  default_type application/octet-stream;
  sendfile on;

  #Must read the body in 5 seconds.
  client_body_timeout 5;

  upstream app_server {
    server unix:/tmp/nginx.socket fail_timeout=0;
  }

  server {
    listen <%= ENV["PORT"] %>;
    server_name _;
    keepalive_timeout 5;

    location / {
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $http_host;
      proxy_redirect off;
      proxy_pass http://app_server;
    }

    location /websocket/ {
        proxy_pass http://app_server;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }
  }
}

push

git push heroku
You should see the following console log output in heroku logs --tail
buildpack=nginx at=logs-initialized
buildpack=nginx at=app-initialization
buildpack=nginx at=start-app cmd=fakechroot fakeroot chroot /app/.root /usr/bin/R -f /app/run.R --gui-none --no-save
buildpack=nginx at=app-initialized
buildpack=nginx at=nginx-start
buildpack=nginx at=nginx-start

Hi @blakiseskream
I don't think this vulnerability is due to the buildpack per se, but rather could be in one of the installed packages, such as shiny or httpuv.
From the path in the traversal example mention, I see AdminLTE, which suggests to me that you are using shinydashboard, which could also be at fault.
Without more detailed information on your setup, I cannot say for certain whether R or one of the installed packages are at fault.

hey @virtualstaticvoid
Yes my setup where i discovered the vulnerability was using shinydashboard, but if you use the shiny capabilities of the vanilla buildpack it will still expose the issue.
I believe you are right - it has something to do with how httpuv is running on heroku... It just doesn't do anything to the inbound requests to clean them up?
Example,
I have deployed your heroku button example to a heroku app here here
using httpie if I perform this request,
$ http GET https://nameless-beyond-14267.herokuapp.com/shiny.min.js/../../../../../../../../etc/passwd
I get pack the etc/passwd file of the heroku file system
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 1285
Content-Type: text/plain
Date: Fri, 01 Jun 2018 01:17:01 GMT
Server: Cowboy
Via: 1.1 vegur
X-Ua-Compatible: IE=edge,chrome=1

root:x:0:0:root:/app:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-timesync:x:100:102:systemd Time Synchronization,,,:/run/systemd:/bin/false
systemd-network:x:101:103:systemd Network Management,,,:/run/systemd/netif:/bin/false
systemd-resolve:x:102:104:systemd Resolver,,,:/run/systemd/resolve:/bin/false
systemd-bus-proxy:x:103:105:systemd Bus Proxy,,,:/run/systemd:/bin/false
_apt:x:104:65534::/nonexistent:/bin/false
messagebus:x:105:107::/var/run/dbus:/bin/false

Adding the run of httpuv behind nginx seems to work well on my end though. Furthermore, you can start to use more of the nginx capabilities


Integration is losing connection with airco/api

Hello,
Once a week the integration is not responding on the automation to start the airco.
I think that the connection between the integration and the h0n api is list.
Normally I would reload the integration in the UI, but in this case I need to restart HA.

Got the same problem

Should be fix

Unfortenutaly, the issue is not solved.
Is it possible to add an option to reload the integration? Than I can schedule a nightly reload. I do this with more integrations with similar problems.
Thanks!!

@MarkKlerkx , what is the error in the logs?

Hello, i just activated the debugging
As soon as the problem appears, I will have a look.
I assume that everything is recorded in the HA Core log. Is that right?
Grtz,
Mark
Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg

From: gvigroux @.>
Sent: Sunday, April 16, 2023 8:07:57 PM
To: gvigroux/hon @.>
Cc: Mark Klerkx @.>; Mention @.>
Subject: Re: [gvigroux/hon] Integration is losing connection with airco/api (Issue #29)
@MarkKlerkxhttps://github.com/MarkKlerkx , what is the error in the logs?
—
Reply to this email directly, view it on GitHubhttps://github.com/gvigroux/hon/issues/29#issuecomment-1510447189, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGXWLVP4RYKTEKQ4PYHMINLXBQYP3ANCNFSM6AAAAAAR44UHE4.
You are receiving this because you were mentioned.Message ID: @.***>

Perfect :)


[battery] Linux support added in battery

Description
In this PR, I have implemented the battery plugin for Linux. The information is taken from Dbus.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

Hey @ditman kindly have a look at this one.

/cc @stuartmorgan is probably better suited to review Linux plugins than I am!

Hey @stuartmorgan kindly have a look at these changes.

@yash1200 I think there's a better way for this contribution to be landed. I'm talking to people in the flutter community where they're working in a very similar effort (/cc @slightfoot + @jpnurmi). If you all agree, we can close this PR and get Yash onboarded in the community effort!

@ditman Is there any way to contact you all and discuss regarding this as this has been on hold for a while now.

@ditman Is there a reason we wouldn't want a Linux implementation of this plugin in the repository with all the other platforms?
@robert-ancell Can you provide a pointer to the package that wraps the battery API?

wrap

@robert-ancell Can you provide a pointer to the package that wraps the battery API?

Do you mean https://pub.dev/packages/upower ?

@robert-ancell Can you provide a pointer to the package that wraps the battery API?

Do you mean https://pub.dev/packages/upower ?

Yes, thanks! We'll need to wait for offline license discussions to resolve though (for either this or dbus).

I'm going to close this one, as work for the Linux Battery plugin is underway elsewhere. I've already talked to @yash1200 about this!
Thanks for the contribution @yash1200, keep them coming!


[Feature] Convert the Issue templates with newer format.

The current issues template is in the .md file we need to convert them to the .yml file which provides newer features while raising issues.

Hey @kaiwalyakoparkar, I would like to try this issue!

@VDA-001 Sure go ahead. I will assign this to you. If you need any help let me know :smiley:

Hey @kaiwalyakoparkar, I am getting the following error while trying to commit....not sure what husky is
⧗   input: Converting .md files to .yaml
✖   subject may not be empty [subject-empty]
✖   type may not be empty [type-empty]
✖   found 2 problems, 0 warnings
ⓘ   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
husky - commit-msg hook exited with code 1 (error)

@VDA-001 add commit message as fix: :gear: Converted issue template from md to yml format  This is Conventional commits. You can also read section in Readme file regarding this. If you add this commit message it will pass the tests

Ohh ok got it, thank you.


proxy with DNAT

I try to use the proxy listening on <IP_ADDRESS> with DNAT configured with iptables, but connexion from client failed.
I build the network with 3 VMs in the same private network <IP_ADDRESS>/24 : client (.133)---proxy (.128) ----server (.134)
server command : sudo ncat --sctp -l <IP_ADDRESS> 38412
proxy command : proxy -4 -i 2048 -o 1024 -L <IP_ADDRESS>:38412 -X <IP_ADDRESS> -S <IP_ADDRESS>:38412
proxy iptables conf :   sudo iptables -t nat -I PREROUTING -p sctp -d <IP_ADDRESS>  -j DNAT --to-destination <IP_ADDRESS>:38412
sudo iptables -t nat -I POSTROUTING -p sctp -s <IP_ADDRESS> -j SNAT --to-source <IP_ADDRESS>
client command :  sudo ncat --sctp <IP_ADDRESS> 38412  --> Ncat: Connection refused.
Here is the pcap on proxy :

Any idea about this issue for checksum unverified  ?

One suggestion..
Make sure you do not have the kernel SCTP from linux in place. Often times
if you do the linux OS version will respond with a ABORT since it knows
nothing about the user space implementation
R

On Nov 8, 2022, at 5:04 AM, greenlora @.***> wrote:
I try to use the proxy listening on <IP_ADDRESS> with DNAT configured with iptables, but connexion from client failed.
I build the network with 3 VMs in the same private network <IP_ADDRESS>/24 : client (.133)---proxy (.128) ----server (.134)
server command : sudo ncat --sctp -l <IP_ADDRESS> 38412
proxy command : proxy -4 -i 2048 -o 1024 -L <IP_ADDRESS>:38412 -X <IP_ADDRESS> -S <IP_ADDRESS>:38412
proxy iptables conf : sudo iptables -t nat -I PREROUTING -p sctp -d <IP_ADDRESS> -j DNAT --to-destination <IP_ADDRESS>:38412
sudo iptables -t nat -I POSTROUTING -p sctp -s <IP_ADDRESS> -j SNAT --to-source <IP_ADDRESS>
client command : sudo ncat --sctp <IP_ADDRESS> 38412 --> Ncat: Connection refused.
Here is the pcap on proxy :
https://www.google.com/url?q=https://user-images.githubusercontent.com/32301610/200534712-8252aa8e-aa14-48c8-a187-d7782d335187.jpg&source=gmail-imap&ust=1668506669000000&usg=AOvVaw0Ax1GqUm4dofpAa_-xaQUP
Any idea about this issue for checksum unverified ?
—
Reply to this email directly, view it on GitHub https://www.google.com/url?q=https://github.com/sctplab/sctp_proxy/issues/2&source=gmail-imap&ust=1668506669000000&usg=AOvVaw3BnT8q9xBnPcFlYCk2AH6E, or unsubscribe https://www.google.com/url?q=https://github.com/notifications/unsubscribe-auth/AAQZ4GS3UOKLPRAKSSPLDP3WHIQSXANCNFSM6AAAAAAR2EC3AU&source=gmail-imap&ust=1668506669000000&usg=AOvVaw1ccUI-AdjePcy_Qe7T5J-8.
You are receiving this because you are subscribed to this thread.

Randall Stewart
@.***


Complete thermocouple setup

With current micro

got SPI init and raw reads done, need to do conversion and validation.

Adding datasheet to here for convenience:
https://www.analog.com/media/en/technical-documentation/data-sheets/max31855.pdf

Closed with latest FC_dev merge


Error on Model containing ICollection instead of List

I have run ef scaffold on my database and all of my navigation properties are of type ICollection
Hot chocolate throws an exception unless I turn it into a List, should it not recognize ICollection ?

This bug is now fixed and will be included in 0.6.0-preview-8.


bugdown: Support hanging_lists preprocessor for indented lists.

Previously, hanging_lists preprocessor didn't consider anything
indented at 4 or above spaces to be a list. This meant that when
we had a list like:

1
2
3. 3
2a
1a

We would insert a newline between 3. 3 and 2. 2a. This resulted
in the block processor breaeking down 1 list into 2 blocks, which
messed up the nesting and indentation for the second block.
Discussion at:
https://chat.zulip.org/#narrow/stream/9-issues/topic/List.20rendering.20(ul.2Fol)
Testing Plan:
Manual + automated tests
GIFs or Screenshots:

This makes sense to me, and has a tested interaction with the code block concern one might have.


box2d.org website is down

As of September 7th, ~16:50 UTC, box2d.org is unreachable, I'm in Europe.
$ ping google.com
PING google.com (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from fra16s52-in-f14.1e100.net (<IP_ADDRESS>): icmp_seq=1 ttl=114 time=26.3 ms
64 bytes from fra16s52-in-f14.1e100.net (<IP_ADDRESS>): icmp_seq=2 ttl=114 time=28.8 ms
64 bytes from fra16s52-in-f14.1e100.net (<IP_ADDRESS>): icmp_seq=3 ttl=114 time=26.4 ms
^C
--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 26.316/27.186/28.844/1.172 ms

$ ping box2d.org
ping: box2d.org: Temporary failure in name resolution

You pinged box2d.com which is not box2d.org
box2d.org DNS appears to be broken

I transferred the domain host recently. I fixed up the DNS and the site should be back online.
Thanks for the report!


Feature to detect when a token is deleted

Feature to detect when a token is deleted. A block can be called with token index and tokenField object when user removes any token from Token Field. This is based on the request made in this issue

This feature is completed. Demo app and readme section is updated with details.
Please use,

pod 'ACBTokenField', '~> 2.2'

or

github "akhilcb/ACBTokenField" ~> 2.2


Only set GOMAXPROCS defaults for old go versions

If we're on versions of go < 1.5 then copy in concurrency.sh, otherwise
let GO / the user determine what GOMAXPROCS should be.
This is the path of least surprise.
/cc @lstoll @fabiokung

This makes me super happy, ❤

:+1: :clap:


Firebase API Not Working

I can only get device notifications via the Google Firebase console, and not through the server http API.
APP: cordova (6.4.0) default app, not changed, with plugin cordova-plugin-firebase (0.1.21) added.
Steps to reproduce

Download APP to device (android phone)
Start APP (seems like this is required to register this app with the phone)
Close APP
Send message from server through FCM http API
{ notification:
{ title: 'Notification Test',
body: 'Notification Test Body Text' },
to: '/topics/all',
priority: 'high' }
Device does not receive/show a notification was received.

Is there a bug in the server script?
No. If I replace cordova-plugin-firebase with cordova-plugin-fcm, then the device (and APP) receive notifications through the API just fine.
Why not just use cordova-plugin-fcm then?
cordova-plugin-fcm is not well maintained, and I would like to use the Analytics in cordova-plugin-firebase

cordova-plugin-fcm gets messages from FCM server HTTP API
cordova-plugin-firebase does NOT get messages from FCM server HTTP API
cordova-plugin-firebase does gets messages from Firebase Console Messaging system.
FCM API server script has not changed in 6 months.

Agreed, cordova-plugin-firebase is not well maintained at all.  Its why i left it for this one.  However, my messages arrive just fine if my app is closed or in background, but nothing happens if app is opened in foreground.  Trying to resolve that one now.

@rolinger isn't that the way it's supposed to work? If the APP is closed, the device gets the notification, but if the APP is open then the APP gets the notice. It's then up to you to support the incoming notice within the APP.
I remember reading somewhere that if there is no "data" object in the sent notice, and the APP is open, the APP does not get the notice because there is no data to give to it. I could simply be wrong on this though..... or maybe it's just on some specific devices....

correct.  Its supposed to work that way...but its not.  If app is closed or in background everything works fine.  But if app is open in the foreground and a message arrives it never triggers the onNotificationOpen - thus any 'data' that is passed via the message can't be processed.  Unless I am doing something wrong...but I don't think so, because a simple console.log(notification) in the onNotificationOpen function isn't even firing.  Then I close the app...send the same message again, it the notice appears, click the notice...all the data/console.log message is processed.

And from the server side I am sending the notification as such:
  $fcmMsg = array(
    'body' => $msgBody,
    'title' => $msgTitle,
    'sound' => "default",
    'color' => "#203E78",
    'icon' => "notification_icon.png"
  );

  // 'to' => $singleID ;
  // 'registration_ids' => $registrationIDs ;  expects an array of ids
  // 'priority' => 'high' ; // options are normal and high, if not set, defaults to high.
  $fcmFields = array(
    'to' => $singleID,
    'priority' => 'high',
    'notification' => $fcmMsg
  );
  if ($dataObj) {
    $fcmFields['data'] = $dataObj ;
  }
  $ch = curl_init();
  curl_setopt( $ch,CURLOPT_URL, 'https://fcm.googleapis.com/fcm/send' );
  curl_setopt( $ch,CURLOPT_POST, true );
  curl_setopt( $ch,CURLOPT_HTTPHEADER, $headers );
  curl_setopt( $ch,CURLOPT_RETURNTRANSFER, true );
  curl_setopt( $ch,CURLOPT_SSL_VERIFYPEER, false );
  curl_setopt( $ch,CURLOPT_POSTFIELDS, json_encode( $fcmFields ) );
  $result = curl_exec($ch );
  curl_close( $ch );
  return json_decode($result) ;

@rolinger
For me onNotificationOpen fires when app is in foreground while sending messages via notification composer or via cloud functions through admin sdk and gives me a
Object {tap: false, body: "testText"}.
Make sure to call onNotificationOpen after onTokenRefresh is successfully set up.

you are saying it works through the firebase console? if that is the case then your server code is the problem. can you post the server code?

@robertarnesson thank you.
The code is a NODEJS script, shown below with a few edits for privacy. Please note that I do not think that this is the problem. If I switch to a different push notification plugin, cordova-plugin-fcm, then both my server script and the console can send notifications. If I simply switch back to cordova-plugin-firebase then only the console can send.
One difference that I noticed between cordova-plugin-firebase and cordova-plugin-fcm is how the Google libraries are used. The cordova-plugin-fcm has the Google libraries built into their plugin, so If you use another plugin that uses those same libraries (like a Google Maps plugin) you will get a error like "library function already exists". This cordova-plugin-firebase plugin seems to rely on Google libraries that are installed on the machine that is building the app.
    #!/usr/bin/env nodejs
    var unirest = require('unirest');

   var key = "MyValidKeyString"; // insert yours here

    var done = function(e,d){ setTimeout(function(){ if (e) { console.error(e); process.exit(1); } else { console.log(JSON.stringify(d,null,2)); process.exit(0); } },500); };

    console.log("fcm");
    fcmTest(done);
    console.log("fcm.... queued");

    function fcmTest(done){
    console.log("fcmTest");
    var data = {
      "notification":{
        "title":"Notification Test",
        "body":"Notification Test Body Text"
      },
      "data":{ "param1":"value1", "param2":"value2" },
      "to":"/topics/all"
    };

    unirest.post("https://fcm.googleapis.com/fcm/send").headers({'Content-Type': 'application/json','Authorization':'key='+key}).send(data).end(function(r){
      console.log(data);
      if (r.status != 200) return done(" HTTP status:" + r.status);
      var rtn = r.body;
      return done(null,rtn);
    });

    };

@robertarnesson
Thank you. Good catch. In my zeal to remove comments from my script in my last post, I accidentally deleted priority:high. It actually reads:
    "data":{ "param1":"value1", "param2":"value2" },
    "to":"/topics/all",
    "priority":"high"

If this plugin does not automatically subscribe to any topics, then the console should not work either since I would not be subscribed to anything, right? Or, does the console somehow operate differently with regards to topics?
I have tried sending it to a valid token. I have tried sending it to a restricted_package_name. I have tried with data and without data. Nothing yet has this working for me....

@JohnScottMcNerney what response from the server do you get? if you send to individual tokens you cannot use "to" as far as I know, you should use registration_ids: [list_of_tokens]

@robertarnesson
The response is a simple
  {
    "message_id":<PHONE_NUMBER>404735000
  }

I tried individual tokens just to try to check things out. I do not plan to ever do this in the released APP.
Next week I will try different things with the "topic" and try doing a subscription from the device.
Thank you for all the help so far !  :)

Had an issue with my Facebook plugin, and I had to do a
android update sdk --no-ui --filter extra-android-m2repository,extra-google-m2repository

Now, my problem with this module is gone. I have no idea why. I have not touched my code.

Made sure to subscribe with
window.FirebasePlugin.subscribe("all");

and use Topic:all on Firebase console, and "to:'/topics/all'" in API and it works.

@JohnScottMcNerney - can you elaborate on the window.FirebasePlugin.subscribe("all") within the app and how your server api  is sending to "all" ?  I think this might me my issue that I can't receive notifications while the app is open and in foreground.

@rolinger  In the APP, when I'm setting up the FirebasePlugin I do:
window.FirebasePlugin.onNotificationOpen(openCallback,setupFailureCallback);
window.FirebasePlugin.subscribe("all");

I don't do any server saving of tokens, or try to notify just one device, so I don't set up window.FirebasePlugin.onTokenRefresh.
On the server, my data is (see the '/topics/all'):
{ notification: { title: 'Welcome to My APP.', body: 'Yeah! NFL starts soon' },
  data: { param1: 'value1', param2: 'value2' },
  to: '/topics/all',
  priority: 'high' }

I also test on Firebase Console, changing the Target to "Topic" and writing "all" in for the topic.
After may installs, uninstalls, open/close, etc. I finally had to reboot my phone to get the messages working again. You may want to try on a different device completely.


Add a minimal multi-platform testrunner with push webhook script jobs

Add a minimal multi-platform test runner which integrates to Github webhook "push" events. For each authorized push, run a set of script test cases using a client/server approach. The goal is to include current makefile tests as script jobs, and run them on multiple platforms (in particular OS X and Windows) automatically for each commit.
This is very early work but still functional and will be enabled for the main repo incrementally. Expect to see funny Github status lines :)

Huh, when I click on "Details" on the new tests I get a browser warning saying the certificate is invalid.

It's a self signed certificate - it's "invalid" on purpose.

I figured that was the case, just wanted to point it out since you have to jump through hoops to get Firefox to load the log page (adding an exception, etc.).  Chrome makes it a bit easier since you can just click through.

The first things I want to add coverage-wise is OS X and Windows builds - at first simply compilation tests using various compilers and options.

Yeah, I'll probably make the links plain HTTP later, there's really no point in using HTTPS for that.

Another coverage thing which I'd like to add is compiling a few largeish applications using Duktape to see changes don't break compilation (which is the version compatibility promise given).
@fatcerberus How complicated would it be to compile Minisphere+Duktape as a test job? It doesn't need to be a headless Windows machine, I can just run the test client in Cygwin or command prompt and leave it running.

minisphere isn't terribly difficult to compile.  It depends on Allegro, libmng and zlib.  For Windows, the latter two are included as static libraries in the repo, and the former is pulled using NuGet, so it's easy to automate.  For your part you'd just have to copy duktape.c, duktape.h and duk_config.h into src/shared.
On Ubuntu you can get all the dependencies from the package manager, so that's easy to automate too.

A minor improvement over a "compile works" test case is to run some sort of "hello world" script which verifies that the binary doesn't e.g. crash on startup. Is there a way to e.g. run a "mini game" which would start up and pretty much immediately exit? :)

Yeah, as of version 2.0 you can pass the engine a .js script on the command line and it will run it.  And you're in control of the event loop, so unless you deliberately code a FlipScreen/DoEvents loop, the script will run and exit.

The command line you want by the way is spherun foo.js.  If you want logging (shouldn't be necessary just to test Duktape) use --verbose <1-4>.

Ok, I'll see about adding that as a compilation test later on. Most likely I'll use a pinned minisphere version and avoid downloading packages for the test (depending on how that works e.g. a caching proxy works for wget). But this is much later, once the basics are in place and working better :)

By the way I just wanted to ask if Duktape 1.5.0 is in sight?  I'm releasing minisphere 3.0 on the 28th.  If it won't be available by then that's okay--I'll just use Duktape master. :)

There are a couple of open pulls which have an API or compatibility impact which I'd like to resolve (e.g. the new API call for property list initializers). Improving automatic test coverage is also something I'd like to improve on before the release - this pull and a followup cleanup pull should go a long way in getting a better baseline in place.
All in all, two weeks might be a bit tight, but master should be in pretty good shape by 28th anyway.

@svaarala minisphere 3.0 has been released, so you can use that as a baseline for testing once you get around to that. :)


32 us as a user i want to find any type of channels

Description
Please provide a detailed description of what was done in this PR.
Precise the issue that you are resolving.
Changes include

[X] New feature (non-breaking change that adds functionality)
[ ] Bugfix (non-breaking change that solves an issue)

Breaking changes
Please complete this section if any breaking changes have been made, otherwise delete it.
Checklist

[X] I have assigned this PR to myself
[X] I have added at least 1 reviewer
[X] I have added the needed labels
[X] I have linked this PR to an issue
[X] I have linked this PR to a milestone
[X] I have linked this PR to a project
[X] I have tested this code
[X] I have added / updated tests (end-to-end tests ...)
[ ] I have updated the README and other relevant documents (guides...)
[X] I have added sufficient documentation both in code, as well as in the READMEs

Additional comments
J'ai jamais autant coché de cases :)))

Ginormous PR :O

Un seul try
Rendre obligatoire name
Check si channel non existant avant de demander un role ou les utilisateurs


Multiple file exists errors in test_dataprep.py & test_dataimport.py

======================================================================
ERROR: This function tests the operation of the peak_assignment
Traceback (most recent call last):
File "C:\Users\user1\Anaconda3\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "C:\Users\user1\Desktop\raman-spectra-decomp-analysis\ramandecompy\tests\test_dataimport.py", line 16, in test_data_import
dataprep.new_hdf5('exp_test_3')
File "C:\Users\user1\Desktop\raman-spectra-decomp-analysis\ramandecompy\dataprep.py", line 36, in new_hdf5
hdf5 = h5py.File('{}.hdf5'.format(new_filename), 'w-')
File "C:\Users\user1\Anaconda3\lib\site-packages\h5py_hl\files.py", line 394, in init
swmr=swmr)
File "C:\Users\user1\Anaconda3\lib\site-packages\h5py_hl\files.py", line 174, in make_fid
fid = h5f.create(name, h5f.ACC_EXCL, fapl=fapl, fcpl=fcpl)
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py\h5f.pyx", line 105, in h5py.h5f.create
OSError: Unable to create file (unable to open file: name = 'exp_test_3.hdf5', errno = 17, error message = 'File exists', flags = 15, o_flags = 502)
======================================================================
ERROR: A function that tests the add_calibration function from dataprep. It first tests that no
Traceback (most recent call last):
File "C:\Users\user1\Anaconda3\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "C:\Users\user1\Desktop\raman-spectra-decomp-analysis\ramandecompy\tests\test_dataprep.py", line 28, in test_add_calibration
dataprep.new_hdf5('test')
File "C:\Users\user1\Desktop\raman-spectra-decomp-analysis\ramandecompy\dataprep.py", line 36, in new_hdf5
hdf5 = h5py.File('{}.hdf5'.format(new_filename), 'w-')
File "C:\Users\user1\Anaconda3\lib\site-packages\h5py_hl\files.py", line 394, in init
swmr=swmr)
File "C:\Users\user1\Anaconda3\lib\site-packages\h5py_hl\files.py", line 174, in make_fid
fid = h5f.create(name, h5f.ACC_EXCL, fapl=fapl, fcpl=fcpl)
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py\h5f.pyx", line 105, in h5py.h5f.create
OSError: Unable to create file (unable to open file: name = 'test.hdf5', errno = 17, error message = 'File exists', flags = 15, o_flags = 502)
======================================================================
ERROR: A function that tests the add_experiment function from dataprep. It first tests that no
Traceback (most recent call last):
File "C:\Users\user1\Anaconda3\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "C:\Users\user1\Desktop\raman-spectra-decomp-analysis\ramandecompy\tests\test_dataprep.py", line 73, in test_add_experiment
dataprep.new_hdf5('exp_test_1')
File "C:\Users\user1\Desktop\raman-spectra-decomp-analysis\ramandecompy\dataprep.py", line 36, in new_hdf5
hdf5 = h5py.File('{}.hdf5'.format(new_filename), 'w-')
File "C:\Users\user1\Anaconda3\lib\site-packages\h5py_hl\files.py", line 394, in init
swmr=swmr)
File "C:\Users\user1\Anaconda3\lib\site-packages\h5py_hl\files.py", line 174, in make_fid
fid = h5f.create(name, h5f.ACC_EXCL, fapl=fapl, fcpl=fcpl)
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py\h5f.pyx", line 105, in h5py.h5f.create
OSError: Unable to create file (unable to open file: name = 'exp_test_1.hdf5', errno = 17, error message = 'File exists', flags = 15, o_flags = 502)
======================================================================
ERROR: A function that tests the adjust_peaks function from dataprep. The function first looks to
Traceback (most recent call last):
File "C:\Users\user1\Anaconda3\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "C:\Users\user1\Desktop\raman-spectra-decomp-analysis\ramandecompy\tests\test_dataprep.py", line 111, in test_adjust_peaks
dataprep.new_hdf5('exp_test_2')
File "C:\Users\user1\Desktop\raman-spectra-decomp-analysis\ramandecompy\dataprep.py", line 36, in new_hdf5
hdf5 = h5py.File('{}.hdf5'.format(new_filename), 'w-')
File "C:\Users\user1\Anaconda3\lib\site-packages\h5py_hl\files.py", line 394, in init
swmr=swmr)
File "C:\Users\user1\Anaconda3\lib\site-packages\h5py_hl\files.py", line 174, in make_fid
fid = h5f.create(name, h5f.ACC_EXCL, fapl=fapl, fcpl=fcpl)
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py\h5f.pyx", line 105, in h5py.h5f.create
OSError: Unable to create file (unable to open file: name = 'exp_test_2.hdf5', errno = 17, error message = 'File exists', flags = 15, o_flags = 502)
Solution:
Make sure to hdf5.close() & os.remove() these files before or figure out why it doesnt work with Brandon's nosetests

So I found that this is more a limitation with hdf5 file types and thus the way the code is executed.
link explaining: https://github.com/h5py/h5py/issues/1090

Because that requires the hdf5-library to be built with parallel extensions. You can open an HDF5-file for read-only in multiple processes, but you cannot open it for read/write in more than one process unless the library has been built with parallel enabled.
The reason for this is because HDF5-files write to the file the moment you close them, not the moment you tell them to write. Therefore, in serial, corruption would be very likely.
The best way to deal with this is by simply opening the HDF5-file for read-only in both Python scripts. That should work perfectly fine.

Also in the same link (https://github.com/h5py/h5py/issues/1090) it was mentioned that SWMR file types could be useful in future...

You may also be interested in SWMR (if you only need to write from one process, but read from many).

http://docs.h5py.org/en/stable/swmr.html

https://github.com/h5py/h5py/issues/940
The above link goes into this in even more details

this bug has now been crushed


refactor(buttom): fix button file

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Import self internal package with full URL does not allow use of glide

in README

Vendoring
If you are using a vendoring tool with support for semantic versioning e.g. glide, you can import this package via its GitHub URL:

package: github.com/go-redis/redis
version: ^5.0.0

But in source code, for example: https://github.com/go-redis/redis/blob/v5/cluster.go#L9-L11
go does not allow github.com/go-redis/redis to use gopkg.in/go-redis/redis.v5/internal package

Yeah, we either should remove that sentence from the README or stop using gopkg.in. @dim ?

My preference is not to use gopkg but that would probably break too many
people's code. Let's just remove the note from the README ...

I still find gopkg.in useful and unobtrusive, but also a bit abandoned lately... And issues like https://github.com/niemeyer/gopkg/issues/47 don't look good...
Ideally there should be ability to make gopkg.in use tag gopkg-5.1.2 and glide tag glide-5.1.2. Then we could have best of the both worlds...

I've created master branch without gopkg.in and will tag v6.0.0 soon.


Increase amount of write bytes to SPI devices over 65535

When trying to send large amounts of data to SPI device, users will see:
2024-09-15 17:24:14,183 WARN [PiGpioNativeImpl:263] () PIGPIO ERROR: PI_BAD_SPI_COUNT; bad SPI count
This is the largest buffer size this library will allow:
#define PI_MAX_SPI_DEVICE_COUNT (1<<16)
https://github.com/joan2937/pigpio/blob/c33738a320a3e28824af7807edafda440952c05d/pigpio.h#L726

   if (count > PI_MAX_SPI_DEVICE_COUNT)
      SOFT_ERROR(PI_BAD_SPI_COUNT, "bad count (%d)", count);
https://github.com/joan2937/pigpio/blob/c33738a320a3e28824af7807edafda440952c05d/pigpio.c#L4854C1-L4855C61

Break up large data into smaller chunks that can be sent to the SPI device.

See discussion #377: in https://github.com/Pi4J/pi4j-v2/discussions/377

Fix applied through merge #384


upgrade semantic search

ktrain currently only supports semantic searches in the context of topic models and LDA.  This enhancement will add support for semantic searches using transformer embeddings.

Hello @amaiya  , I would like to work on this.  Will you please elaborate more and give a brief where to start working

This is being closed for now, as functionality is now being planned as part of separate project.


Optimization pack doesn't work

It doesn't work, the seperate scripts work though

@kaziqta use the streamer instead.

I did, but still, the proxy works only for google fonts, the WordPress plugin is installed, but I think the cookie check doesn't work, the other script with the simple cookie bypass works ok, I managed to combine it with the Google Fonts, will post my code

I am unable to get the optimzation pack to work on my magento 2 install. It seems running from the cloduflare dashboard and going to "quick edit" and running a preview it works, but when going to my site in a browser all the third party scripts still load from their original URL as do the google fonts. I have tried with the edge_cache turned on and off with no difference.

I am unable to get the optimzation pack to work on my magento 2 install. It seems running from the cloduflare dashboard and going to "quick edit" and running a preview it works, but when going to my site in a browser all the third party scripts still load from their original URL as do the google fonts. I have tried with the edge_cache turned on and off with no difference.


Fail algorithm build need to remove the Stop button

HKube micro-service
if an algorithm fails to build the "Stop" button should be removed or disable (can be replaced with  rebuild button)

Fixed on #95

tested on 1.2.50


Redirect to google.com after signing in

On IP6s, after I called GoogleSignin.signIn() and enter email + password, the modal redirected to http://google.com instead of my app.
Tested on :
_ IP6s, IOS 10.0.2
"dependencies": {
"react": "15.3.2",
"react-native": "^0.36.1",
"react-native-google-signin": "^0.8.1",
"react-native-fbsdk": "^0.4.0",
},

The problem is react-native-google-signin conflicts with facebook sdk in AppDelegate.m. To fix this, edit AppDelegate.m as follows:
- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
            options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {

  if ([url.scheme hasPrefix:@"fb"]) {
    return [[FBSDKApplicationDelegate sharedInstance] application:application
                                                          openURL:url
                                                sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
                                                       annotation:options[UIApplicationOpenURLOptionsAnnotationKey]
            ];

  }else{
    return [[GIDSignIn sharedInstance] handleURL:url
                               sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
                                      annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];

      }
}

@nlt2390 Totally work. Thanks!

@tranduykhanh Does this still work for you? The code pasted here doesn't seem to be compatible with current instructions (GIDSignIn instead of RNGoogleSignin):
  return [[FBSDKApplicationDelegate sharedInstance] application:application
                                                        openURL:url
                                              sourceApplication:sourceApplication
                                                     annotation:annotation
         ]
         || [RNGoogleSignin application:application
                                openURL:url
                      sourceApplication:sourceApplication
                             annotation:annotation
            ];

I have FB implemented and Google Sign-in works but if I cancel the sign-in on iOS app seems to crash/get stuck (I don't see any errors).

Just in case that someone try to integrate google sign-in with app which has integrated with 'wechat sign-in', with the code provided from @nlt2390, you need to change it to:
if ([url.scheme hasPrefix:@"wx_"])
Since wechat uses wx_{number} as schema string.

facing this issue since morning

+1 ...but nlt2390 save my day

// AppDelegate.m
- (BOOL)application:(UIApplication *)application openURL:(nonnull NSURL *)url options:(nonnull NSDictionary<NSString *,id> *)options {
  return [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url options:options] || [RNGoogleSignin application:application openURL:url options:options];
}


Add dev packaging

I put it in its own directory to make merging between develop/master
less nightmarish.
Only four lines actually changed. If you look at the second commit, you can see that diff much more easily than looking at the entire PR diff.

The problem is that to get git describe to work correctly, I have to merge back to develop from master after tagging, or git describe can't see the tag. So, any commits we stick on the master branch would then come back to the develop branch, and have to be reverted there. Vicious cycle. I decided a second directory was easier. If it gets to be a pain we can revisit it.


Refactor Datavec reducers to make them aggregatable

At the moment, they're Mapreduce-like reducers without map-side combiners. Meaning that to simplify the processing of specifying different operations on different columns, they rely on a large initial groupByKey followed by single-machine processing of whatever the aggregate is. That initial groupByKey moves around all the data whereas the reducer, by virtue of its being an aggregation, should be able to summarize (shrink) much of it. The solution is to make every reduce operation on every column part of an aggregateByKey, where intermediate reductions can occur locally.
Deliverables
Datavec PR w/ tests, possible dl4j-benchmarks runs (hi @kepricon!)
Expected outcomes
much faster TransformProcess execution in DataVec, multiple reductions per column in DataVec #238, insights on how to later achieve #14

Working branch : https://github.com/deeplearning4j/DataVec/compare/master...huitseeker:Transforms


Discussion: Adopting float[] over ReadOnlyMemory<float> for Vector Data Storage

I've been exploring the pgvector-dotnet library and noticed that Vector uses ReadOnlyMemory<float> to store its data. I'm curious about the rationale behind this choice, especially considering the implications for performance and usability.
Drawbacks of Storing Data in ReadOnlyMemory<float>
One significant concern with ReadOnlyMemory<float> is its suitability for calculations. It appears that for nearly every operation that involves manipulation or computation, we're forced to convert the ReadOnlyMemory<float> into an array using ToArray(), which inherently causes a new array allocation. This behavior seems suboptimal from a performance standpoint, especially in scenarios where high efficiency and low latency are crucial.
Observations from the Repository Internals
Delving into the code, it's evident that instances of the Vector type are created with either float[] or string. In cases where a string is used, it is promptly converted into a float[] before being stored as ReadOnlyMemory<float>. This practice further raises questions about the necessity of ReadOnlyMemory<float> when the data ultimately originates from or is converted to float[].
https://github.com/pgvector/pgvector-dotnet/blob/ada5859d4da1b60cad48a7c42396afa4a167870f/src/Pgvector/Vector.cs#L7-L16
Proposal for Discussion
Considering the aforementioned points, I propose a discussion on the potential advantages of directly using float[] for storing vector data. This change could simplify the codebase, reduce unnecessary allocations, and potentially enhance the library's performance. I'm interested in hearing the community's thoughts on this matter and understanding the original considerations that led to the choice of ReadOnlyMemory<float>.

For those looking to access Vector data as an array without copying, here's a workaround using an extension method that leverages MemoryMarshal.TryGetArray to retrieve the underlying float[] directly from a Vector instance. This approach avoids the performance cost of memory allocation associated with ToArray().
using System.Runtime.InteropServices;
using Vector = Pgvector.Vector;

public static class VectorExtensions {
    public static float[] AsArray(this Vector vector)
    {
        if (MemoryMarshal.TryGetArray(vector.Memory, out var seg)) {
            return seg.Array!;
        }
        throw new Exception("Failed to get Array");
    }
}

Test Code
To ensure this method works as expected, here's a test demonstrating it retrieves the original array reference without copying:
[Fact]
public void Test()
{
    var arr = new float[] { 1, 2, 3, 4 };
    var vector = new Vector(arr);

    var arr2 = vector.AsArray();

    Assert.Equal(arr.Length, arr2.Length);
    Assert.Equal(arr, arr2);
    Assert.True(arr.SequenceEqual(arr2));
    Assert.True(object.ReferenceEquals(arr, arr2));
}

One significant concern with ReadOnlyMemory is its suitability for calculations. It appears that for nearly every operation that involves manipulation or computation, we're forced to convert the ReadOnlyMemory into an array using ToArray(), which inherently causes a new array allocation.

Which operations are you referring to exactly? Many/most operations involving float-related calculations already accept ReadOnlySpan<float> (and therefore already accept a ROM<float> directly); for instance, that's the case with the TensorPrimitives operations being introduced into .NET itself.
In fact, the main thinking behind accepting ROM` is precisely to avoid unneeded copying of memory. For example, ROM can be used as a slice over a larger chunk of memory, where e.g. multiple segments are laid out sequentially; if an API accepts an array rather than a ROM, you must copy that segment out to an array. Also, ROM allows passing in unmanaged memory (possibly returned by a call into a native library), or stack-allocated memory (for cases where the data is relatively small and bounded, and it's desirable to avoid heap allocation because of the added GC pressure).
In short, ROM provides more flexibility for the types of inputs it allows (slices, unmanaged or stack memory), thereby reducing the need for copying. I'd be very interested in concrete examples of where this causes additional allocations.

In cases where a string is used, it is promptly converted into a float[] before being stored as ReadOnlyMemory.

That's normal and perfectly fine - in this very particular case (conversion from string), we indeed use an array to actual float data after converting it. That is then cast into a ROM (costless operation - there's no copying going on).
/cc @stephentoub