How to get mp3 audio download url from a video?

I can't find any resource to extract mp3 url from a youtube video for libvideo. What is the code to do this?
Using this method I can't get any mp3 file.
YouTube yt = YouTube.Default;
string link = "https://www.youtube.com/watch?v=QNJL6nfu__Q";
foreach (var item in yt.GetAllVideos(link))
 {
    if (item.AdaptiveKind == AdaptiveKind.Audio)
    {
         Console.WriteLine(item.AudioFormat);
    }
}

Your sample work for me. I get this

Michael  Jackson - They Don’t Care About Us (Brazil Version) (Official Video)

hey, i don't think you can exstract the mp3. you can however extract the audio only, and then convert it later on, this is how you extract the audio ->
var audio = await YouTube.Default.GetAllVideosAsync(string.Format("URL"));
 var audios = audio.Where(_ => _.AudioFormat == AudioFormat.Aac && _.AdaptiveKind == AdaptiveKind.Audio).ToList();
 var mpAudio = audios.FirstOrDefault(x => x.AudioBitrate > 0);
Then you would say
var bytes = await mpAudio.GetBytesAsync();
this is from an old project of mine it should work though

I haven't played around much with audio's but i think you can use the MediaToolkit from nuget
once importet you could do something like this.
Example: The file you download would be saved to the desktop with this
string finalName;
string path;
final = video.FullName;
string save = System.IO.Path.Combine(path, finalName); Convert();
finalName would be the fullname of your video, with the extension like akon.aac or akon.mp4
then use this
` private void Convert()
{
string save = System.IO.Path.Combine(path, final);
        var inputFile = new MediaFile { Filename = save };
        var outputFile = new MediaFile { Filename = save + ".mp3" };
        using (var engine = new Engine())
        {
            engine.Convert(inputFile, outputFile);
        }
        if (File.Exists(save))
        {
            File.Delete(save);
        }
    }`

not quite sure if this is they way to go, though, as i'm not sure if it's a legit mp3, it does work however, and i haven't had any problems with it yet.

Hi, Is working 100% for me. Let me know if you need the code, I'm using the code from #67 with the MediaToolkit to convert to mp3 as describe above by narqs. BTW Thanks for the conversion code.

Fixed. Update 3.0.0


chore: bump oa-verify and oa version

Context:

Ropsten is deprecated; some of the OA packages are updated to support goerli and sepolia. Hence the need to bump up the versions to get support for goerli, which we will use to replace ropsten.

What this PR does:

update package @govtechsg/oa-verify to 7.11.0
update package @govtechsg/open-attestation to 6.5.1
add skipLibCheck in tsconfig to skip type checking in node_module (see references)

References:
https://stackoverflow.com/questions/45267500/exclude-node-modules-from-problems
https://stackoverflow.com/questions/52311779/usage-of-the-typescript-compiler-argument-skiplibcheck

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Typo in table Extension versions

In the table "Extension versions", the last line reads:

January 2021
Syslog RFC compliance for LinuxFixed issue for Linux perf counters not flowing on restart
Not available yet
<IP_ADDRESS>Hotfix

That's probably wrong and should read: January 2022.
2022 vs. 2021

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

ID: 8201f331-0fa7-a801-9f4d-75d65cd77625
Version Independent ID: 86a66791-11bb-4f20-f77d-42fe58f5dcf4
Content: Manage the Azure Monitor agent - Azure Monitor
Content Source: articles/azure-monitor/agents/azure-monitor-agent-manage.md
Service: azure-monitor
Sub-service: agents
GitHub Login: @bwren
Microsoft Alias: bwren

@alexs77 Thanks for your comment. We will review the issue and get back to you shortly.

@alexs77  Thanks for the feedback! I have fixed the referenced change, and the change should reflect  once the content author approves it .We will now proceed to close this thread. If there are further questions regarding this matter, please revert and we will gladly continue the discussion.


uv cache prune doesn't remove packages from cache for deleted environments

Steps to reproduce:
mkdir $HOME/uv-test && cd $HOME/uv-test
export UV_CACHE_DIR=$HOME/uv-test/uv-cache
uv venv --python 3.9 ./python39env
VIRTUAL_ENV=./python39env uv pip install torch
du -hs ./uv-cache

uv venv --python 3.11 ./python311env
VIRTUAL_ENV=./python311env uv pip install torch
du -hs ./uv-cache

rm -rf ./python39env
uv cache prune
du -hs ./uv-cache

Expected result:
After pruning cache size will be the same as after the first installation.
Actual result:
uv cache prune doesn't delete anything, cache size stays the same as after the second installation.
uv version 0.5.10, fedora linux.

What do you expect to be removed after uv cache prune?

What do you expect to be removed after uv cache prune?

I have the same question. I though torch and its dependencies should be removed.

I would expect all packages installed for python 3.9 to be removed because they are no longer used in any of environments.


add @lacolaco/ngx-web-bundles to list of builders

Add @lacolaco/ngx-web-bundles from @lacolaco to the list of builders.

Thank you so much. But I think that webbundles builder is too experimental to list up. The original specification is not stable yet. I cannot recommend anyone to use the builder because that is just a hobby for early adopters.

Thanks for update, we will make this experimental in that case.


Handled unmarshalling when element exists but it is empty

XMLReader::isEmptyElement() does not consider elements like <city /> or <city></city> to be empty.
XmlMarshaller was failing when used in such scenarios because it was expecting text element (XMLReader::TEXT).
In these cases, however, the element is an end element or a whitespace.

Looks like it was fixed in f6ffd41e9f42b58cad0b017141abfda88ecdbb25.

I should have time to look at this tonight


Bug on Jamaica area code "658"

Hey @iamstevendao
I saw a bug on Jamaica when testing both country codes, "876" and "658", when introducing "658" the area code automatically assumes it's + 1 876, even though it's "658". In my project i had to change the prefix to only +1 instead of +1876, since it has 2 area codes, just like Dominican Republic, it has 3 area codes and so the prefix is +1, so i think Jamaica shouldn't be any different, right?

@UnknownIsaac it'll be fixed in v8.3.1


random port in workers

// start local server
server.listen(0/* start on random port */, 'localhost' /* accept conn from this host only */);

why need to start on random port??
stickyCluser(startFn,{
concurrency: parseInt(require('os').cpus().length ),
port: normalizePort(process.env.PORT || '8080'),
debug: true,
env: function(index) {
return {stickycluster_worker_index: index};
}
})
why not  listen on port  8080??

because it's a client, not the master, who should actually accept connections from the outside world

because it's a client, not the master, who should actually accept connections from the outside world

beginner only.  thanks for response


Enhancement: Cache-Control headers

We currently dont have any explicit mechanism to set cache control headers, and users need to manually set them. It would be good to add a datastructure object similar to starlite.datastructures.Cookie that allows setting cache control headers, e.g.
from starlite import get
from starlite.datastructures import CacheControlHeader

@get("/", cache_control=CacheControlHeader(max-age=604800))
def my_handler() -> dict:
   ...

This object must support the specification in full, which can be read here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

@Goldziher I think I can work on that

cool.

It would be nice to also expose Cache-Control headers of requests and handle them in the response caches.

yupl @seladb please see the discussion here: https://github.com/starlite-api/starlite/discussions/573

yupl @seladb please see the discussion here: #573

I responded here: https://github.com/starlite-api/starlite/discussions/573#discussioncomment-3884002, let's continue the discussion there

Implemented in #601


alternative error Deletion failed, path = '/home/xxx/.pub-cache/_temp'

I faced this following error for one of my N tests on the same code base with 0.2.14+1. Not easy to reproduce. Perhaps a concurrent issue with the Dart Editor ?
test_runner --skip-browser-tests

Checking Dart SDK binaries...
Dart SDK binaries OK.

Looking for Dart project in "./"...
Found project "rational".

Looking for test suites...
Found 3 test suites (2 Standalone VM, 1 Dartium).
Dartium tests will be skipped!

Running all tests...
Test suite failed: rational_test.dart
Detailed results of test suite rational_test.dart:
┌─────────────────────────────────────────────────
│
│ Deletion failed, path = '/home/xxx/.pub-cache/_temp' (OS Error: No such file or directory, errno = 2)
└─────────────────────────────────────────────────
Test suite passed: bigint_test.dart

Note that I don't succeed to reproduce it.

I've seen this a few times too... It's hard to reproduce and it seems tu be caused by pub run. We're going to switch from pub run to dart soon to run VM tests and this should get rid of this issue.

Hey @a14n I just switched to using dart instead of pub run for running VM tests. That should not impact the Travis CI integration you've built as long as the dart executable is in the PATH.
We've decided to do that because there are a lot of issues with pub run like the fact that it runs in checked mode and the fact that Platform.script.resolve(...) can't work.
A nice side effect is that hopefully this error should not happen anymore.
Only thing we are loosing is auto-execution of Transformers but they are rarely used on VM code.

Thanks for the infos and the quick support on all my today issues :)


   We have a simple, but effective shell script in OpenShift testing that randomly takes out infra pods.   Combined with Cerberus (https://github.com/openshift-scale/cerberus) we can detect non-transient issues caused by such a scenario.
Example (in shell scripting):
#!/bin/bash
NUM=$1
SLEEP=$2
while true; do
   echo "============"
   oc get pods --all-namespaces | grep openshift | grep Running| awk {'print $1" "$2'} | shuf -n $NUM | while read i; do oc delete pod -n $i --wait=false; done; sleep $SLEEP;
done

Fixed by https://github.com/openshift-scale/kraken/pull/16. Thanks to @paigerube14.


Apex Trigger has not been deployed error (potential Winter 24 issue)

Describe the bug
In a Winter 24 sandbox I am unable to save or run Full Calculate on any previously created Rollup Summaries.
To Reproduce
Run an a Full Calculate on an existing Rollup Summary in a Winter 24 sandbox. Or attempt to create a new Rollup Summary and set Active to true.
Expected behavior
Records should be saveable and runable.
Screenshots

I'm also seeing this after the update to Winter 24. None of our lookups will save through the manage wizard/button and frontend.

I'm able to reproduce in a sandbox on Winter '24.
I'll be able to test more tomorrow and will see if I can figure out what is going on. I'll report back.

Thanks @aheber. Not sure if you do hot fixes for this package, but this might be worthy of one. Winter 24 is not in prod yet but this issue is preventing the creation of new and running existing Rollups in sandboxes.

I am having the exact same issue in any org that has been updated to Winter 24.

I'll know more later. If this is an intentional change by the platform then we'll address it quickly. If Winter '24 is broken and will be fixed then we likely won't do anything because Salesforce will need to fix it.
Depending on the nature and intention of the change we might need to determine the right action, it might be a loss of functionality if we can't look for installed Apex anymore. At least a loss of the ability to validate that the trigger of expected name is installed.

I've been able to isolate this to what I think is happening. Looks like WHERE clauses using the Name field of ApexTrigger aren't finding the associated records, looking like the Trigger isn't installed now.
I've opened a support case with Salesforce to investigate. My guess is this is a bug in Winter '24 that needs to be fixed and not something DLRS will be able to fix in our code. I'm having the same problem outside of the package and namespace.
Running SELECT Id, Name FROM ApexTrigger WHERE Name = 'EXPECTED_NAME' returns zero results, even using my admin user. I expect this isn't intentional.
I'll keep this issue updated as I get news.

Thanks for the update, glad SF will fix this.
FWIW, our sandbox is on Winter '24 Patch 4.1  but still seeing the issue. Will continue to monitor.

Hmmm. I guess it isn't an official patch yet, maybe just testing the fix on my pod for now?
Please keep me updated so I can have some idea when it is officially rolling out.
Thanks!

https://issues.salesforce.com/issue/a028c00000uXYtiAAG

I can confirm that the workaround mentioned by @peterdesio also worked for us.

Hello @aheber, I am facing the same issue and raised a ticket with salesforce, can you please share with me the ticket number which you have raised to resolve this issue?

@abdul0503 the known issue generated by my ticket is https://issues.salesforce.com/issue/a028c00000uXYtiAAG, if you're experiencing issues you should be able to follow up on that.
My originating case was #45231051, they built and tested a patch in the org hosting my sandbox and confirmed they knew how to fix it with an expectation that over time they would roll that fix out to all Winter '24 sandboxes. I don't know if that has happened but fully expect that the production release will include this fix.
For those that were able to remove and recreate then things worked, this matches the testing that Salesforce did. Only Triggers that went through the upgrade process were un-findable but anything added later appeared to work correctly.

thank you @aheber


Incorporate upstream DST fix

It looks like there's a daylight saving time fix that's landed upstream. I ported the tests and they are failing (diff below). That said, I haven't looked closely enough at the fix to form an opinion re whether we should follow the same approach. More specifically, it would be nice if we could lean on jiff as much as possible to ensure DST correctness.
diff --git a/src/schedule.rs b/src/schedule.rs
index fe3f536..39dddeb 100644
--- a/src/schedule.rs
+++ b/src/schedule.rs
@@ -917,4 +917,53 @@ mod test {
         // But schedules yielding different events are not equal.
         assert_ne!(schedule_4, schedule_6);
     }
+
+    #[test]
+    fn test_dst_ambiguous_time_after() {
+        let schedule_tz = TimeZone::get("America/Chicago").unwrap();
+        let dt = DateTime::new(2022, 11, 5, 23, 30, 0, 0)
+            .unwrap()
+            .to_zoned(schedule_tz)
+            .unwrap();
+        let schedule = Schedule::from_str("0 0 * * * * *").unwrap();
+        let times = schedule
+            .after(&dt)
+            .map(|x| x.to_string())
+            .take(5)
+            .collect::<Vec<_>>();
+        let expected_times = [
+            "2022-11-06T00:00:00-05:00[America/Chicago]".to_string(),
+            "2022-11-06T01:00:00-05:00[America/Chicago]".to_string(),
+            "2022-11-06T01:00:00-06:00[America/Chicago]".to_string(), // 1 AM happens again
+            "2022-11-06T02:00:00-06:00[America/Chicago]".to_string(),
+            "2022-11-06T03:00:00-06:00[America/Chicago]".to_string(),
+        ];
+
+        assert_eq!(times.as_slice(), expected_times.as_slice());
+    }
+
+    #[test]
+    fn test_dst_ambiguous_time_before() {
+        let schedule_tz = TimeZone::get("America/Chicago").unwrap();
+        let dt = DateTime::new(2022, 11, 6, 3, 30, 0, 0)
+            .unwrap()
+            .to_zoned(schedule_tz)
+            .unwrap();
+        let schedule = Schedule::from_str("0 0 * * * * *").unwrap();
+        let times = schedule
+            .after(&dt)
+            .map(|x| x.to_string())
+            .rev()
+            .take(5)
+            .collect::<Vec<_>>();
+        let expected_times = [
+            "2022-11-06T03:00:00-06:00[America/Chicago]".to_string(),
+            "2022-11-06T02:00:00-06:00[America/Chicago]".to_string(),
+            "2022-11-06T01:00:00-06:00[America/Chicago]".to_string(),
+            "2022-11-06T01:00:00-05:00[America/Chicago]".to_string(), // 1 AM happens again
+            "2022-11-06T00:00:00-05:00[America/Chicago]".to_string(),
+        ];
+
+        assert_eq!(times.as_slice(), expected_times.as_slice());
+    }
 }

Yeah I think the issue is here:
https://github.com/jiff-cron/jiff-cron/blob/a03fd2aaa1d4c45aa66a9535924b3493ddaa1498/src/schedule.rs#L80
Basically, I think what this code would look like if you were to lean more on Jiff for this is to add intervals to a timestamp instead of materializing datetimes yourself from the interval. If you do it yourself, then there's really nothing to handle folds/gaps. I think the current code is also relying on automatic disambiguation, which means you might get repeated times too in the case of a gap. Imagine, for example, hour 0, 1, 2, 3, ..., but where hour 2 doesn't exist. Automatic disambiguation would choose the later time in the case of a gap, so hour 3 would get repeated.
If you wanted to keep the same structure of code here, then you could create your civil time and then use TimeZone::to_ambiguous_zoned to get data about the ambiguity. In the case of a gap, I guess you'd just skip it. In the case of a fold, you could yield an extra time.

I'm leaning strongly towards leveraging jiff's strengths and changing core crate mechanics.
We have decided to diverge from upstream cron. Here is where we reap the benefits which makes the added maintenance work worth the effort.


Make TextToolbar appear near the text control initially

The toolbar is displayed somewhere above the editable area by default:

Is it possible to display it near the text control it's invoked for?

This was the case before, but someone suggested that it is not convenient to edit when switching between multiple texts.
And you can drag the toolbar to where you want

Thank you for the answer. Is it possible to set/override the default position so that the toolbar appears within the editor itself?
The problem is that in our case there's no upper panel with the buttons (and the editor is in an IFrame) — so the toolbar is almost invisible to the users because it's cut off.

This should not be a very common problem。
The location information of the textbar is stored in localstorage, you can set it first. Like this
localStorage.setItem("TEXT_BAR_LOCATION_KEY", JSON.stringify({"left":360,"top":447}))

Thank you!


Add perma-links/references to hash-based content directories

This PR adds the $(GetAirpowerPath)\ref directory. This directory consists of directory junctions from the tag to the hash-based content directories. It allows users to add something like $(GetAirpowerPath)\ref\git\cmd to their $Path, so that it always points to the latest version of git installed by Airpower.

Is this a replacement of install concept which makes the persistent batch file?

Is this a replacement of the install concept which makes the persistent batch file?

Yes. It also will probably make things like the -ScriptBlock pull request obsolete.


raft: node.Status method might block after Stop()

I see that other methods have n.done checks to avoid deadlocks(i.e.
https://github.com/coreos/etcd/blob/master/raft/node.go#L472), but Status method will block until it gets an answer. I wonder if it makes sense to just return empty Status struct in the case of closed n.done channel. It will prevent deadlocks, and people can check if ID == raft.None to know if the status is valid.
WDYT?
Thanks!

@LK4D4 SGTM. Can you send a patch to fix this?

@xiang90 sure, will do right now. Thanks for feedback.


SVG icons inside paper-button does not work in Edge

Description
SVG iron-icons does not appear in Microsoft Edge when it is inside paper-button element.
Live Demo
https://elements.polymer-project.org/elements/paper-button?view=demo:demo/index.html&active=paper-button
Expected Results
SVG should appear in paper-buttons
Actual Results
No SVG icons visible.
Browsers Affected

Microsoft Edge

Take note that iron-icons outside paper-button element does not have these problem.

It works for me.  I attached a screenshot of the link you provided in my Edge browser.

Maybe its on our end... closing this issue.


iziToast as service

Hello,
I try to use your angular component ng2-iziToast, but the use of component is very difficult. Why do you not implement a angular service
this is my code
import { Injectable } from '@angular/core';

const iziToast = require('izitoast/dist/js/iziToast');
require('izitoast/dist/css/iziToast.min.css');

@Injectable()
export class ToasterService {

  private toasterConfig = {
    title: 'Title',
    titleColor: '',
    message: 'Message',
    messageColor: '',
    backgroundColor: '',
    color: '',
    icon: '',
    iconText: '',
    iconColor: '',
    image: '',
    imageWidth: 50,
    zindex: 99999,
    layout: 1,
    close: true,
    rtl: false,
    position: 'bottomRight',
    target: '',
    targetFirst: true,
    timeout: 5000,
    drag: true,
    pauseOnHover: true,
    resetOnHover: false,
    progressBar: true,
    progressBarColor: '',
    animateInside: true,
    buttons: {},
    transitionIn: 'fadeInUp',
    transitionOut: 'fadeOut',
    transitionInMobile: 'fadeInUp',
    transitionOutMobile: 'fadeOutDown'
  };

  public showToaster(config: any) {
    const iziToastConfig = Object.assign({}, this.toasterConfig, config);
    iziToast.show(iziToastConfig);
  }
}

then you call it
export class AppComponent implements OnInit {

  constructor(private toastSvc: ToasterService) { }

  ngOnInit() {
    this.toastSvc.showToaster({
      title: 'Bonjour',
      message: 'Bienvenue sur l\'extranet'
    });
  }
}

Is a component, to be implemented only using html. A service already needs to use the controller which needs to be avoided. What problem did you get?

My trouble was I had Two modules which used two izitoaster, one for the notification, the other for validation of  my request. I need to put the component iziToaster in the two modules. So how can I generate the message on component like notification or validation when my event fired if the ng-izitoaster ran already in html ?

Ok the next version will be a service

I need too.


Tooltips don't open on mobile devices

Is there maybe another way of delivering hints in a similar way?

Probably just not display them? There isn't really a way of having the user get info about the button before pressing it. The buttons should just be as expressive as possible themselves.

The help texts are actually sufficient and I see no other viable way to display something like tooltips right now


Cell fill color and Update catalog page number

Hello Developer：
I want to ask how to modify the fill color of the cell and Update catalog page numbert.
Thanks!
Liripo

Please ask support questions on StackOverflow using the "python-docx" tag. This issues
list is for suspected bugs and new feature requests.


Add module-based route discovery

Fixes #234
TODO:

[ ] Update docs
[ ] Update changelog

Codecov Report

Merging #235 into master will decrease coverage by 0.08%.
The diff coverage is 93.93%.

@@            Coverage Diff             @@
##           master     #235      +/-   ##
==========================================
- Coverage   96.56%   96.48%   -0.09%
==========================================
  Files          24       24
  Lines        1049     1082      +33
  Branches       96      103       +7
==========================================
+ Hits         1013     1044      +31
  Misses         32       32
- Partials        4        6       +2

Impacted Files
Coverage Δ

bocadillo/routing.py
98.93% <93.93%> (-1.07%)
:arrow_down:

Continue to review full report at Codecov.

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


Able to clean filesystem volume with job

Fixes #737.

Add -delete-contents flag to delete contents in directory (use /scripts/fsclean.sh script now)

Reuse in-process delete code

Rename DeviceAnnotation ("device") to VolumePathAnnotation ("volume-path")
Create job to clean filesystem volume too when useJobForCleaning is true

Discussion:

Should we allow user to specify minimum capacity of volumes to clean by jobs? For examples, provisioner only starts cleaner jobs for volumes larger than 1T. For small volumes, in-process will be much quicker.

/lgtm


[Test] Added REQUIRES line to two.

rdar://91132726
rdar://91133163

@swift-ci please smoke test and merge


Use correct Content-Type header for css stylesheets

I've found that extension css files originating from .vsix files created using the current version of the tfx command line tool are served using an incorrect Content-Type header (text/plain instead of text/css) which results in them not being applied by most modern browsers.  It's quite frustrating.
I made a change to the CONTENT_TYPE_MAP in vsix-manifest-builder.ts then re-built the tool, used it to generate and new .vsix for my extension and updated it and found that this *does allow .css files to be served with the correct Content-Type header allowing the stylesheet to be used.

Thanks!

@trevorsg you're quite welcome!   Any indication of when this might hit a future npm release?

@jamesandersen I will try to get to it this evening.

@jamesandersen Sorry for the delay. The new version is published to NPM, 0.3.23. Thanks.

Thanks @trevorsg !


UI scale section clarification

Not that big of an issue but, can you add a clarification to the UI scale section that you're talking about the in game UI and not the fishing bot UI.

I've clarified in the instructions in the UI scale section that it should be the in-game UI scale. Thanks for the suggestion.


Reduce number of calls to ZAMG servers

Version of zamg
0.2.1
Describe the bug
Unfortunately, I cannot provide a detailed description, but please check your logic for calls to ZAMG servers. We receive calls to both the metadata and data endpoints far more often than every 10 min. With an increasing number of users of this plugin, this is putting a heavy load on our servers.
Debug log
Not applicable.

Thank's for your information.
Currently home assistant is using a old version of this integration which has a wrong parsing of the timestamp (api is responding without seconds) and due that it is trying to restart the integration over and over.

I see. Thanks for your cooperation. It is probably also helpful to have more meaningful information about the plugin/user-agent. Please include an URL (e.g. this github repo) and the version number of this integration. (Other best practices regarding user agents: https://developers.whatismybrowser.com/learn/browser-detection/user-agents/user-agent-best-practices) This can help with analyzing such situations.

@Langdi do you work for ZAMG? In what role?
Is there a particular reason why the timestamp format was changed, especially without notifying users first or without a changelog of any kind, or did we miss something?
Is there a way of direct communication to avoid such problems in the future?

do you work for ZAMG? In what role?

Yes, I'm a developer working on the API project.

Is there a particular reason why the timestamp format was changed, especially without notifying users first or without a changelog of any kind, or did we miss something?

The reason this was changed is, that there is no data in second resolution. Therefore it was deemed not necessary and potentially confusing for users (this does not really apply when using the API directly, but rather when used via our frontend). You did not miss anything, this was not announced in advance.

Is there a way of direct communication to avoid such problems in the future?

As of now there is only<EMAIL_ADDRESS>We will think about how to have a meaningful 2-way communication (so we can also communicate changes in advance).

@Langdi  Thanks for your informations.
One possible way to communicate changes to the public is to put it at least here on the api docs.

I see. Thanks for your cooperation. It is probably also helpful to have more meaningful information about the plugin/user-agent. Please include an URL (e.g. this github repo) and the version number of this integration. (Other best practices regarding user agents: https://developers.whatismybrowser.com/learn/browser-detection/user-agents/user-agent-best-practices) This can help with analyzing such situations.

Yes that's right.
I will put it on the list of changes ;-)

Yes, I'm a developer working at the API project.

I see. Thanks for clarifying.

The reason this was changed is, that there is no data in second resolution. Therefore it was deemed not necessary and potentially confusing for users (this does not really apply when using the API directly, but rather when used via our frontend). You did not miss anything, this was not announced in advance.

I can understand the reasoning behind the change, but I don't quite understand why the API is versioned when breaking changes are introduced into existing versions anyway.

As of now there is only<EMAIL_ADDRESS>We will think about how to have a meaningful 2-way communication (so we can also communicate changes in advance).

Like @killer0071234 said, it would be good if at least the changelog was maintained so that one can be sure that the changes are permanent and were not introduced accidentally.

Sorry, for the late replies to this.

I can understand the reasoning behind the change, but I don't quite understand why the API is versioned when breaking changes are introduced into existing versions anyway.

I feel your frustration. We did not treat it as a breaking change, because we served ISO 8601 timestamps before and did not specify any further. Since it did break stuff, we should have treated this as a breaking change.
We also updated the changelog in this regard (quite some time ago).
Anyhow, this issue is resolved and can be closed. (I'll do so, using my private account, which opened this issue)


GetAllAsync not implemented for HttpRemote store

Is there a technical or security reason why GetAllAsync if not implemented in the HttpRemote store?  As we have many microservices, implementing the store as an API is ideal for us.  But we also need to be able to create the databases for the microservices as required.
We use the code below to Migrate the databases, but as GetAllAsync is not implemented, it doesn't work.  As the service has no way of knowing what tenants are defined, we cannot even call them individually to get the details.
var store = app.Services.GetRequiredService<IMultiTenantStore<TenantInfo>>();

    foreach (var tenant in await store.GetAllAsync())
    {
        await using var db = new AppDbContext(tenant);
        await db.Database.MigrateAsync();
    }

Also, I notice in the latest version of the code, the sample for the Http Remote store are missing, the looking at an older version of the code I found a previous version, this code still builds, even with .Net 7, is there anything I need to do to change the Http Remote Server?

Hi, sorry for the slow reply. No, there is no specific reason except that the store came before the get all method if I remember correctly and I didn't implement it. If you haven't already you shouldn't have any problem doing so.
I should add it to the library -- I want to rework that store completely though because I think it is overly complicated.


Adjust line-number mapping for FERC ingest prior to 2006

Several of the FERC1 DB tables use line number to indicate the meaning of the value reported on that line, especially f1_plant_in_srvce and f1_accumprvsn_depr.  However, over the years these line number occasionally change as new accounts are added or deleted.  For those two tables, the lines appear to be consistent from 2006-2015.  Prior to those years there was no line for regional transmission & distribution plant, which means for earlier years the line number => FERC account mappings will need to be different.  This mapping is currently defined by data frames in constants.py: ferc_accumulated_depreciation and ferc_electric_plant_accounts.  To accommodate mappings changing between years, a "year" column may be added to these frames, so that per-year mappings may be looked up.
Once that mapping is defined the pudl.ingest_plant_in_service_ferc1() and pudl.ingest_accumulated_depreciation() functions in pudl.py will need to be updated to use the new mappings.

Superceded by #465


Improvement enable docstring

Enable pydocstyle checks in flake8 and document the configuration.
These checks are run in by the flake8-docstrings package: https://pypi.org/project/flake8-docstrings/
The underlying checks are run by pydocstyle http://www.pydocstyle.org/en/stable/index.html

These changes should go into skeleton-generic and then be pulled in from there.


Update kernels to Kernel abstractions

Refractor the code to change all CUDA kernels into Kernel Abstraction kernels, rerun the tests and benchmarks .

@jakubMitura14 I can take this

Good!

@jakubMitura14 how do I test whether these benchmarks are working correctly ??

You can just use pycall and simple itk methods from python library


Automatic Image rectification

Automatic Image rectification
https://www.codeproject.com/Articles/104248/Detect-image-skew-angle-and-deskew-image

Check this link
https://stackoverflow.com/questions/8235288/perspective-correction-of-uiimage-from-points

Looks like current Photo App removed this feature, so I just close this ticket.


[CLI]: using ~/.netrc for storing auth breaks requests token auth

Describe the bug

Steps to reproduce:

Install wandb on localhost, do wandb login
Launch another web service, which uses HTTP Bearer authorization and runs on localhost on a different port.
Use python requests to work with the second web service.

Expected: second web service would work just like it did before wandb installation
Actual: second web service authorization is now broken.
Code snippet:
import requests
req = requests.Request('GET', 'http://localhost:1234',headers={'Authorization': 'Bearer SECRET'})
print(requests.Session().prepare_request(req).headers['Authorization'])

Observe that the header value will be http basic auth with base64 encoded wandb token.
wandb login stores the credentials in ~/.netrc. This file has been used for FTP and other network auth in the past, and some tools automatically pick it up. Popular python requests library is one of them. Unless you have auth kwarg explicitly specified, it'd try to use netrc:

https://docs.python-requests.org/en/latest/user/authentication/
https://github.com/psf/requests/blob/main/requests/utils.py#L199

Bearer token authorization (i.e. Authorization: Bearer <SECRET> HTTP header) is a popular auth method for web services. It's simple enough that requests library recommends using it via header request kwarg instead of auth:

https://github.com/psf/requests/issues/4437

In requests library, netrc takes precedence over the Authorization header:

https://github.com/psf/requests/blob/main/requests/sessions.py#L481

So, once you do wandb login, requests library will always do HTTP Basic auth using wandb's netrc credentials for any service running on localhost, overriding the Bearer credentials.
Additional Files
No response
Environment
WandB version: wandb==0.13.4
OS: macOS 12.x
Python version: 3.9.x
Versions of relevant libraries: requests==2.28.2
Additional Context
The requests library is a de facto standard http client library, and it's in a perpetual feature freeze. I don't see this as their issue, but rather wandb misusing .netrc for credential storage. Perhaps you could store them in ~/.config/wandb or other well-known location instead?

hello, I've observed a few more users hit this issue over the past year. so I just want to reiterate that I'd love to see this addressed.


Unable to Update Multiple Manifest Files

Right now when I specify a directory path the task crashes. I need to specify the full qualified path to the manifest file. Suppose the file is located in the following directory C:/source/module/module.dnn I need to specify that exact path for the task to work.
Expected Output
In the task parameter I should just be able to specify C:/source/ and the tool should recursively search through each directory and update all *.dnn files

Resolve by 84d8fed0dcddf69d9762dc9a0c12f6e27b18418a


splat doesnt extract .s files for new c files

A dumb bug introduced by me.. PR incoming.

Thanks for fixing it in #94


Refactor test_constant.py to use BoaTestConstructor

Summary or solution description
Refactored test_constant file to use boatestconstructor in place of TestRunner for unit testing.

Task linked: CU-86a1hunqz Refactor test_constant.py to use BoaTestConstructor


Error in submission: sha1 file '' write error: Broken pipe

Gitea version (or commit ref): 1.9.0-rc2
Git version: <IP_ADDRESS>
Operating system: CentOS Linux 7 (Core)
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist:

Description
SSH submitted the code with the following error (not using HTTPS links, but using<EMAIL_ADDRESS>fatal: protocol error: expected old/new/ref, got 'shallow 3b74753d7c38f7a9d3e98b2314b172724bdc8a7c'
Gitea: Internal error
Failed to execute git command: exit status 128
fatal: sha1 file '<stdout>' write error: Broken pipe
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly

The git client is also configured
[http]
postBuffer = 524288000

Screenshots

Please speak English.

@lunny Has been translated into English

Check gitea.log for errors

no errors

@mamying  Maybe because your git version is too low.

This maybe fixed on v1.10.1 could you try that?


Make shell snippets in README more easily copyable

Code blocks in the README file have copy buttons. These copy actions also copy the $ signs. The unattentive reader might click the copy button, paste into the terminal and get -bash: $: command not found. The code can be copied more easily if the $ signs are removed. Instead, indication that the code is bash/shell should be given by adding the correct language to the code block.
E.g. instead of
```
$ pip install something
```

this can be used:
```bash
pip install something
```

For code blocks which also show the output, I think you could split them into two blocks: One with the code, one with the output. Though I'm not sure if this would be a great solution.

Thanks for reporting.
I fixed that with 07eaa9f and ddd513b


Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.
Atom.Object.defineProperty.get (/opt/atom/resources/app/src/atom.js:54:11)
Object.enable (/home/larry/.atom/packages/atom-lint/lib/atom-lint.coffee:28:35)

I don't know about anyone else, but these deprecation issues have caused atom-lint to completely stop linting on my system (in particular, no errors are shown, even if I purposefully introduce some).

Hi Jackmaney,
Thanks for your reply.
I'm using Atom on Ubuntu 14.04 and following is my atom screen shot.
http://i.imgur.com/bEkBDni.png
-Larry

Hi Jackmaney,
Thanks for your reply.
I'm using Atom on Ubuntu 14.04 and following is my atom screen shot.
http://i.imgur.com/bEkBDni.png
-Larry

Larry,
Sorry, I'm not familiar with this codebase, and am neither a maintainer nor a developer for it. I'm just adding to your issue and stating that atom-lint doesn't work at all for me (no linting whatsoever).

Oh got it.

Honestly, I've moved on to linter, since atom-lint has completely stopped linting (even reinstalling Atom and installing atom-lint from scratch didn't help).


TLS / LetsEncrypt / ACME support for nodes

Would be extremely nice. Needs MagicDNS. https://tailscale.com/blog/tls-certs/ https://github.com/tailscale/tailscale/issues/1235

Hi ptman,
We are working on MagicDNS support - or our interpretation of it :)
In the meantime, you can use the DNS-01 challenge of ACME to get valid certificates in your internal Headscale machines.

It would be great if we could use our own CA server for the certs rather than LE, so our devices are not open to the wider web, like they appear to be according to the tailscale docs.

A full ACME server setup to use your own CA seems a bit much to me - You could use something like microca to manage your own CA / generate signed certs for your hosts.

Already manage them with step, presumed the ability to change the acme ca url from le would suffice.

I'm experimenting with adding tailscale cert support to headscale. So the way it works, is that it sends a set-dns request to the controller to set the TXT record needed for letsencrypt, which then sets this in the DNS.
I see 2 options to implement this:

use an API to set this on an external DNS server (e.g. cloudflare, ...)
include an authoritative dns server (e.g. https://github.com/miekg/dns)

It seems the 2nd option is easier to implement and more generic, what do you think?

I'm a big fan of https://github.com/joohoi/acme-dns for that specific purpose. From your suggestions I'd prefer the 2nd option.

I think there are setups where configuring your headscale server as an authoritative DNS server may not be feasible or easily possible for everyone (e.g. my server already has an authoritative DNS server running on port 53, but supports RFC 2136 / nsupdate). But the first option may introduce much work to support every service which most ACME clients are already trying to do.
Maybe it might be feasible to implement support for "DNS service plugins" another established ACME client already provides/supports (and publishes them using a compatible license). e.g. acme.sh has already support for many services (but maybe not license-compatible, GPL 3.0). So duplicated development work might be prevented.

@tobru acme-dns sounds like an viable solution for headscale. it would also fall into the 1st option though, because from headscale's PoV it's just an API.
Let's try to list pros/cons of both approaches:

external api

no DNS code in headscale

could end up supporting many different DNS APIs
1b: external api for acme-dns only

solves some of the issues of bundling the authoritative DNS server, by uncoupling it from headscale

additional complexity by having to run 2 processes

built-in authoritative DNS

only one code path

less moving parts, better out of the box experience

authoritative DNS might not be easy to expose (port 53, or even doing NAT to another port)

I have a working PoC with approach 2, but I think going with 1b seems reasonably, if people agree.

At least for me, 1b would be the preferred way to go.

OK. I'll work on a PR for this.

Just want to chime in with an alternative ACME library in case anyone is looking: https://github.com/caddyserver/certmagic

Anything more come of this?  I'd love to share out a localhost website via Headscale and have the SSL certs created.  Doing this with Tailscale now.

:rocket:
That'd be so useful.

Does this feature exist yet in headscale then? If not, the issue should ideally be re-opened, since clearly some people are interested in this, so that it is at least clear that this feature has not been added yet.

When it comes to DNS ACME libraries, there is also lego, which supports many dns providers.


Remove rotator

I removed the jQuery plugin for rotator as that can be done pretty easily with css3 animations and it won't require having an external plugin, nor using jQuery. If we can avoid jQuery we should.

@tashoecraft your pr contains history that shouldn't be there anymore (extra copies of files). can you rebase your branch on the current master instead of merging. that will fix the problem. please disregard below if you already know how to do so. if not, you can do the following:
you have the main repo remote mapped to upstream (it might be OpenBCI by default, if so just sub name)
git checkout master`
git pull upstream master` (to get local master sync properly)
git checkout removeRotator`
git rebase master

I did the rebase and pushed up. What caused the commit history issue? Not up to date master?

this was discussed in gitter from here to here and clarified. closing for #35


Make build timestamp changes work on Solaris

Recent reproducible build/SBOM change broke jdk8 Solaris due to date tool formating:
14:29:37  date: illegal option -- j
14:29:37  usage:	date [-u] mmddHHMM[[cc]yy][.SS]
14:29:37  	date [-u] [+format]
14:29:37  	date -a [-]sss[.fff]

Changed date formating to use simple bash cmds.
Tests on Solaris:
Current date:
-bash-3.2$ date -u +"%Y-%m-%d %H:%M:%S"
2023-04-13 15:37:02

Conversion:
-bash-3.2$ echo "2023-04-13 15:31:01" | cut -d":" -f1-2 | tr -d "\-: "
202304131531

Test Solaris non-release build to show timestamp: https://ci.adoptium.net/job/build-scripts/job/jobs/job/release/job/jobs/job/jdk8u/job/jdk8u-release-solaris-x64-temurin/6/console
user-release-suffix=202304131550

suspect Alpine is failing for separate reasons...

": -" maybe?

Oooh that's really interesting - I guess it's stepping the trailing space in the parameter ... Useful to be aware of that one is it's generic on busybox

It's more bizarre than that

Oooh that's really interesting - I guess it's stepping the trailing space in the parameter ... Useful to be aware of that one is it's generic on busybox

It's more subtle than that. Because of how tr works, something like tr a-d will delete all characters a, b, c, d, so it's the - character that's confusing it (unless it's at the end) not the trailing space specifically. Interesting ...

For random folks watching, this is why having automated GH Action tests, as Mando would say "This is the way". :-)

/merge

/approve

/approve


cloudprovider backoff is only configured on master

Is this intentional? I thought there had been throttling issues just from the nodes querying too often as well?

Verified that this is an error. On a recently deployed cluster with backoff configured, the master looks like this:
azureuser@k8s-master-42301518-0:~$ sudo cat /etc/kubernetes/azure.json | grep 'cloudProviderBackoff'
    "cloudProviderBackoff": true,
    "cloudProviderBackoffRetries": 6,
    "cloudProviderBackoffExponent": 1.5,
    "cloudProviderBackoffDuration": 6,
    "cloudProviderBackoffJitter": 1,

And its nodes look like this:
azureuser@k8s-pool1-42301518-0:~$ sudo cat /etc/kubernetes/azure.json | grep 'cloudProviderBackoff'
    "cloudProviderBackoff": ,
    "cloudProviderBackoffRetries": ,
    "cloudProviderBackoffExponent": ,
    "cloudProviderBackoffDuration": ,
    "cloudProviderBackoffJitter": ,

This was not intentional; the inference is that the population of azure.json values is distinct for the master and node VMs. @colemickens Does it make sense that master/nodes would have distinct configuration flows in this case?


Is there any plan to support multi-root workspaces?

Yup, planning to it soon.

hi there, any updates on this?

I've been busy, but I'll be looking at this soon. Sorry for the delay!

Update on this, I've started a refactor to support multi-root workspaces, a little more involved than I thought, but hoping to have it done soon. Thanks again for being patient!

New version has been published with support for multi-root workspaces, let me know if there are any issues!


Add Auto Rove from Kerbal Stuff

This pull request was automatically generated by Kerbal Stuff on behalf of Wotano, to add Auto Rove to CKAN.
Please direct questions about this pull request to Wotano.

Tests fine. A second valid Kerbalstuffbot submission. Will wonders never cease!


Sessions / Cookies not working

How can i transmit data of a logged-in user when he is sending a message? :(

`// client read functions
function wsProcessClient($clientID, &$buffer, $bufferLength) {
if ($this->wsClients[$clientID][2] == self::WS_READY_STATE_OPEN) {
// handshake completed
$result = $this->wsBuildClientFrame($clientID, $buffer, $bufferLength);
}
elseif ($this->wsClients[$clientID][2] == self::WS_READY_STATE_CONNECTING) {
// handshake not completed
$result = $this->wsProcessClientHandshake($clientID, $buffer);
if ($result) {
$this->wsClients[$clientID][2] = self::WS_READY_STATE_OPEN;
			if ( array_key_exists('open', $this->wsOnEvents) )
				foreach ( $this->wsOnEvents['open'] as $func )
					$func($clientID);
		}
	}
	else {
		// ready state is set to closed
		$result = false;
	}

	// headers and cookie
	$headers = array();
	$cookies = array();
	$lines = preg_split("/\r\n/", $buffer);
	foreach($lines as $line)
	{
		$line = chop($line);
		if(preg_match('/\A(\S+): (.*)\z/', $line, $matches))
		{
			$headers[$matches[1]] = $matches[2];
			if($matches[1] == 'Cookie'){
				$line = preg_replace( '/^Cookie: /i', '', trim( $line ) );
				$csplit = explode( ';', $line );
				foreach($csplit as $val){
					$cinfo = explode('=', $val);
					$cookies[trim($cinfo[0])] = trim($cinfo[1]);
				}
			}
		}
	}

	if($cookies){
		if(isset($cookies['session'])) $this->wsClients[$clientID][12] = $cookies['session'];
	}

	return $result;
}`

If user logged-in, you can write user ip in file and read from it...


It would be worth including the lockdown level per province starting from 1 May

It would be worth including the lockdown level each province is at starting from 1 May. Been able to see how infection rates increase or decreate according what level a province is in would be a valuable insite.
Id suggest an extra column in "covid19za_provincial_cumulative_timeline_confirmed.csv" labeled level.

Thanks @codeChap we can create the file to keep track of that. If you can assist with keeping it updated?

Cool, if you create the file I’ll look after it. Or I can create it. What columns would we need  - level and source of information?

See the cumulative province.
create a folder called lockdown in the data folder and put the file in there.

Hi guys. I was looking at info regarding the levels and came across your conversation.
I was looking everywhere for more info on this topic.
Saw on co.za that a new site was created: http://lockdownlevel.co.za/ but not sure if it is a hobby site or gov site. Hosted on Afrihost, so I assume hobbyist.
Anycase, will there be an official site with the global, provincial, district, and metro levels as indicated by the president in his speech? Does anyone know?
And then secondly do we know how the different levels will affect the others?
A city at level 2 in a metro at level 4. Which overrides which?
Maybe something to think about when generating data.
Just my 2 cents

Yes - it looks like it might break down beyond a provioncial level. Ethekwini could have remained on Level 5, while the rest of the provinc would have been on level 4. So the data structure is probably going to have to change.


REQUIRE problem XCode

Hi guys,
I have some errors in XCode when i want to run the test scripts.

I don't know why i've these errors. Does some body can help me?
Thanks

Did you added the
#define CATCH_CONFIG_MAIN  // This tells Catch to provide a main() - only do this in one cpp file
at the top. I am asking because maybe it is not visible on the screenshot. Also can you let us know what version of XCode you are using.

I tested in Version 8.2.1 (8C1002) of XCode  and it works just fine.

@horenmar can you check this please?

I'm using the latest version of XCode.
I'm not able to test it now. I will test it in 2-3 hours. Thanks for your help :)

I'm using Xcode 8.2.1 too
There is my full main

Can you attach the full xcode project in a zip file so i can try it

CatchTest.zip
There is my project. Thanks for your help

Your project indeed does not work but mine worked with your code.

It works with your project. So it's the project configuration... I don't what i forget...

Glad to help. As this not a catch issue will close this now.


BESU-146 - resolved conflict

Signed-off-by: Anthony Buckle<EMAIL_ADDRESS>

PR description
BESU-146 - resolved conflict
Fixed Issue(s)

Conflict already resolved.


Update README.md

Github -> GitHub

Thanks for your PR but that's generated by npx readme-md-generator and it looks fine to me :)


Error using global values

Hi,
I followed the steps detailed in the docs here:
https://github.com/kubernetes/helm/blob/master/docs/chart_template_guide/subcharts_and_globals.md
But getting the following error when using global values:
Error: render error in "mysubchart/templates/configmap.yaml": template: mysubchart/templates/configmap.yaml:7:19: executing "mysubchart/templates/configmap.yaml" at <.Values.Global.salad>: can't evaluate field salad in type interface {}
Helm & tiller versions as follows:
Client: &version.Version{SemVer:"v2.8.0", GitCommit:"14af25f1de6832228539259b821949d20069a222", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.8.0", GitCommit:"14af25f1de6832228539259b821949d20069a222", GitTreeState:"clean"}
What is causing this?
Thanks,
Joe

It would be nice to know what you changed to fix it. There's nothing more annoying than finding a problem like yours and then not knowing how you fixed it.

@ramalhais-sky, there is no fix required. It's just a matter of instructions misinterpretation.
If you run:
helm install --dry-run --debug mychart
you will see both ConfigMaps rendered (parent and child).
Otherwise, if you run:
helm install --dry-run --debug mychart/charts/mysubchart
you will see the error that brought you to this issue.


Submitting captcha with no submit button

Hi!
I am trying to use cap monster services for google captchas that are returned to the user while scraping google search as a part
of a large-scale scraping service
These captchas don't have submit button, and I don't seem to be able to figure out how to trigger them like the example shows.
Would it be possible if you could clarify how this plugin could be used to make it work for that use case?
P.S. So far I have tried these
                // const checkbox = await recaptchaFrame.$(
                //     ".recaptcha-checkbox-border"
                // );

                await this.page.solveRecaptchas();
                await Promise.all([
                    // checkbox.click({ delay: rdn(30, 150) })
                    // this.page.waitForNavigation(),
                    // this.page.keyboard.press("Enter"),
                    // this.sleep(1000000)
                ])

Many thanks!
Ivica

Just tested with the code below and it solved the captcha normally, I think the page browser not returning to "google.com" has something to be from google detecting puppeteer.

const puppeteer = require("puppeteer-extra");
const { default: RecaptchaPlugin, BuiltinSolutionProviders } = require("puppeteer-extra-plugin-recaptcha");
const CapMonsterProvider = require("puppeteer-extra-plugin-recaptcha-capmonster");

CapMonsterProvider.use(BuiltinSolutionProviders);

puppeteer.use(
	RecaptchaPlugin({
		provider: {
			id: "capmonster",
			token: "x" // REPLACE THIS WITH YOUR OWN CAPMONSTER API KEY ⚡
		},
		visualFeedback: true // colorize reCAPTCHAs (violet = detected, green = solved)
	})
);

puppeteer.launch({ headless: false }).then(async (browser) => {
	const page = await browser.newPage();
	await page.goto("url");

	await page.solveRecaptchas();

	await page.waitForTimeout(5000) // Wait for a litte bit so you can see it

	await browser.close();
});

Thanks for your swift response.
I managed to play around and debug it a bit...it seems that captcha is being solved.
It seems that google dosent want to accept my answers, giving me error 429, redirecting to /sorry/index.
I am using pupetter stealth, rotating proxies from webshare.io and incognito mode. Only possibe problem I can see is that I am manually putting search keyword into url. I will try going to google.com first, accept cookies and putting in the search term in the search field, not url.
Ill update you with my findings.
Ivica

Okay, I am attaching a bit bigger snipped to try out. Feel free to use my API key for your convenience, I'll change it later.
The only thing I can see the difference between our two snippets is that I am using a proxy (proxy from webshare with username and password mapped through local proxy server, npm proxy-chain package)). If you could give this snippet a try I would be very grateful!
const puppeteer = require("puppeteer-extra");
const {
    default: RecaptchaPlugin,
    BuiltinSolutionProviders,
} = require("puppeteer-extra-plugin-recaptcha");
const CapMonsterProvider = require("puppeteer-extra-plugin-recaptcha-capmonster");

CapMonsterProvider.use(BuiltinSolutionProviders);

puppeteer.use(
    RecaptchaPlugin({
        provider: {
            id: "capmonster",
            token: "146327ef4290631a86e3d528707dfc25", // REPLACE THIS WITH YOUR OWN CAPMONSTER API KEY ⚡
        },
        visualFeedback: true, // colorize reCAPTCHAs (violet = detected, green = solved)
    })
);

async function run() {
    let new_proxy_url = "localhost:8000";
    let chrome_instance = await puppeteer.launch({
        headless: false,
        args: [
            `--proxy-server=${new_proxy_url}`
        ],
    });
    //context = await chrome_instance.createIncognitoBrowserContext();
    const page = await chrome_instance.newPage();
    await page.goto("https://www.google.com");
    await check_and_accept_cookies(page);

    const input = await page.$('input[name="q"]');

    // If it exists, type in the keyword
    if (input) {
        await set_input_value(page, `input[name="q"]`, "Whats my ip");
    } else {
        throw new Error("No input search bar found");
    }

    // Shortly wait, to make sure keyword has been typed in
    await sleep(50);

    // Focus on the keyword and press enter
    console.log("Pressing enter");
    await input.focus();
    await page.keyboard.press("Enter");
    await sleep(2000);
    console.log("Precaptcha");
    await page.solveRecaptchas();
    console.log("Postcaptcha");
    // not closing the browser
}

run();

async function check_and_accept_cookies(page) {
    await page.evaluate((_) => {
        const text = [
            "Accept all",
            "I agree",
            "Consent",
            "I consent",
            "Accept Cookies",
            "Yes",
            "Ok",
        ];

        for (const div of document.querySelectorAll("div")) {
            if (text.includes(div.textContent)) {
                div.click();
            }
        }
    });
    await waitTillHTMLRendered(page);
}

async function waitTillHTMLRendered(page, timeout = 5000) {
    const checkDurationMsecs = 50;
    const maxChecks = timeout / checkDurationMsecs;
    let lastHTMLSize = 0;
    let checkCounts = 1;
    let countStableSizeIterations = 0;
    const minStableSizeIterations = 3;
    while (checkCounts++ <= maxChecks) {
        let html = await page.content();
        let currentHTMLSize = html.length;
        if (lastHTMLSize != 0 && currentHTMLSize == lastHTMLSize)
            countStableSizeIterations++;
        else countStableSizeIterations = 0; //reset the counter
        if (countStableSizeIterations >= minStableSizeIterations) {
            break;
        }
        lastHTMLSize = currentHTMLSize;
        await page.waitForTimeout(checkDurationMsecs);
    }
}

async function set_input_value(page, selector, value) {
    // wait for selector
    await page.waitForSelector(selector);

    await page.evaluate(
        (value, selector) => {
            return (document.querySelector(selector).value = value);
        },
        value,
        selector
    );
}

async function sleep(ms) {
    return new Promise((resolve) => {
        setTimeout(resolve, ms);
    });
}


Migrate untimeout function to Helix API

As part of Twitch's announced deprecation of IRC-based commands, the untimeout function needs to be migrated to use the relevant Helix API Endpoint.
Helix API reference: https://dev.twitch.tv/docs/api/reference#unban-user
Split from #2117

In order to distinguish if the user is banned or not, we should check timeout_end. Only if there is a value, should we call the unban endpoint; else we risk unbanning a user that is permabanned.


Can't make build on MacOS

Attempting to follow the instructions at https://plfa.github.io/GettingStarted/ step by step from a machine with no previous Agda install, after cloning plfa from GitHub and typing "make build", I get:
% make build
Building PLFA...
Up to date
Using Agda standard library version v1.3
# sass (for _site/assets/css/highlight.css)
Error when running Shake build system:
  at want, called at src/Development/Shake/Internal/Args.hs:83:67 in shk-0.19.6-b8d011e5:Development.Shake.Internal.Args
* Depends on: build
  at need, called at tools/Buildfile.hs:236:9 in main:Main
* Depends on: _site/assets/css/highlight.css
* Raised the exception:
npm: createProcess: exec: invalid argument (Bad file descriptor)

Happy to provide logs or other info if that helps.

The instructions for compiling the entire book locally aren’t there yet, but you won’t need those to read the book or do the exercises.
The specific error you’re running into is that you don’t have node installed.

Attempting to follow the instructions at https://plfa.github.io/GettingStarted/ step by step from a machine with no previous Agda install, after cloning plfa from GitHub and typing "make build", I get:
% make build
Building PLFA...
Up to date
Using Agda standard library version v1.3
# sass (for _site/assets/css/highlight.css)
Error when running Shake build system:
  at want, called at src/Development/Shake/Internal/Args.hs:83:67 in shk-0.19.6-b8d011e5:Development.Shake.Internal.Args
* Depends on: build
  at need, called at tools/Buildfile.hs:236:9 in main:Main
* Depends on: _site/assets/css/highlight.css
* Raised the exception:
npm: createProcess: exec: invalid argument (Bad file descriptor)

Happy to provide logs or other info if that helps.

I think that nowhere in the instructions it says to run “make build”, am I right?


Sending a file as part of the prompt

Hello,
I was wondering if the current SDK supports sending a file (PDF, txt) as part of the prompt. We can certainly read the content of the file and append it to the prompt, but I was wondering if this is something that the SDK would support directly.
Thanks

Sorry, this is neither supported nor planned; you'll have to assemble the text yourself.


bug: Annotations on the SyncTarget object may break the synchronization

Describe the bug

Status of resources managed by the SyncTarget are not synced back to the kcp workspace.

Steps To Reproduce

Create a SyncTarget
Verify that resources are synced properly
Update the SyncTarget to add an annotation:

# Add annotations required by kcp-glbc
KUBECONFIG="${kcp_kcfg}" kubectl annotate --overwrite synctarget "${sync_target_name}" featuregates.experimental.workload.kcp.dev/advancedscheduling='true'

Verify that resources (possibly only new resources?) are not synced anymore

Expected Behaviour
Adding an annotation to the SyncTarget should not prevent the synchronization of the resources' status.
Additional Context
This is causing an outage of Pipeline Service. While it is not a full outage as the resources are still synced to the compute, all users are impacted. Not having feedback might encourage users to spawn multiple pipelines in the hope of a transient issue, and will trigger support requests.

Is this any annotation, or is it specifically advanced scheduling feature gate?

If you remove the annotation, does syncing begin again?

@stevekuznetsov So far, we have only faced this issue with the annotation mentioned above as we were trying to use kcp glbc in our service.
No, removing the annotation is not resuming sync. In fact, I deleted the deployment and ran it again. Still no sync. Only way I could get it to work is :

remove the synctarget
Run kcp workload sync command
Apply syncer.yaml on the physical cluster thus creating a new synctarget

Apply syncer.yaml on the physical cluster thus creating a new synctarget

side note: you are now likely to have a new identity hash for the apiexport of synctarget, which will require a reconfiguration of kcp-glbc

Yes that's it. Exactly.

Let me summarize:
The experimental Advanced Scheduling annotation added on the SyncTarget, and used by kcp-glbc is not expected to be used in a shared environment. It enables the mechanism explained by @mikenairn above where, for all resource types, the Status will not be updated in the upstream object anymore, but in SyncTarget-specific annotations.
So once this annotation has been added, you would need to have some controller setting the upstream resource status based on this annotation for all the types of resources you want to sync.
The answer to this strong but provisional limitation is the upcoming work on Syncer Virtual Workspace Transformations + coordination controller, which will supersede the Advanced Scheduling mechanism, which was only there to enable things like the kcp-glbc to be developed and tested before the forementioned EPIC lands.

Let me close this issue then, since it is not a bug, but related to an in-progress feature


Should we support an API to return the "latest" Version?

Since "default" != "latest", should we add a utility API to return the "latest" Version of Resource rather than requiring clients to return ALL Versions and find the one with the highest createat value?
Perhaps: GET /GROUPs/gID/RESOURCEs/rID[$meta]?latest
And we can then decide whether it just returns a redirect (307) or the actual Version itself - or perhaps that's an impl choice

Closing for now.

not 100% sure what "latest" means (created vs modified)
look at aliasing/tagging too


Transifex subscription expired

I get this when I try to join a team.

Strange - I don't see anything when I log in. Can you try again please?

Strange, it works now.

Maybe me signing in was enough to get it working again


SNOW-742421 daydiff method to match Spark datediff method

What is the current behavior?
The snowflake datediff has been built to match the snowflake platform https://docs.snowflake.com/en/sql-reference/functions/datediff
The spark datediff is different from snowflake datediff this can imply some manual changes. Spark diff is more of a diference in number of dates and the order or parameters is different.
What is the desired behavior?
A new method ‘daydiff’ is provided and this method provides higher compatibility with the previous method and spark make it a simple replacement.
How would this improve snowflake-snowpark-python?
It accelerates and simplifies the transition for people coming from spark.
References, Other Background

Could you provide an example that shows the difference between the two implementations?

Sure.
df = spark.createDataFrame([('2015-04-08','2015-05-10')], ['d1', 'd2'])
df.select(datediff(df.d2, df.d1).alias('diff')).collect()
[Row(diff=32)]

In spark datediff the results is df.d2 - df.d1
In https://docs.snowflake.com/ko/developer-guide/snowpark/reference/python/api/snowflake.snowpark.functions.datediff.html
The parameters are processed in different order. and the date part is required.
datediff('day',df.d1,df.d2)

This function is highly used so in spark migration that might imply changes in dozens for files.
the daydiff uses the same parameter order and it is more direct replacement.


bug

my code
from bardapi import Bard
token = 'xxxxxxxxxxxxxxxx'
bard = Bard(token=token)
a = bard.get_answer("나와 내 동년배들이 좋아하는 뉴진스에 대해서 알려줘")['content']
print(a)
output
Response Error: b')]}'\n\n38\n[["wrb.fr",null,null,null,null,[9]]]\n56\n[["di",55],["af.httprm",55,"-5659935360951844781",29]]\n25\n[["e",4,null,null,131]]\n'.

There are various possibilities, and the details regarding them are very well summarized in the following issue. I hope you can find the solution to your bug in the next issue. As this is a duplicate issue, I will close it. #1


Use RegisterDirectiveOrder for rate_limit before basic_auth

I believe it would be a nice improvement if the Caddy HTTP Rate Limit Module leveraged the new RegisterDirectiveOrder feature from Caddy v2.8 (caddyserver/caddy#5865).
func init() {
	httpcaddyfile.RegisterHandlerDirective("rate_limit", parseCaddyfile)
+	httpcaddyfile.RegisterDirectiveOrder("rate_limit", "before", "basic_auth")
}

I would open a PR, but I am unsure if upgrading the go.mod requirements from github.com/caddyserver/caddy/v2 v2.7.6 to v2.8.4, along with all the other necessary updates after running go mod tidy, is acceptable for you and if it might break something for other users. I simply don't know enough about Go / Caddy module dependencies to assess this.

The minimum version required to use that is v2.8.0 so we can put that in the go.mod, though up to .4 is just bugfix releases, people shouldn't be building with an earlier patch at this point.


[SPARK-38306][SQL] Fix ExplainSuite,StatisticsCollectionSuite and StringFunctionsSuite under ANSI mode

What changes were proposed in this pull request?

Fix ExplainSuite,StatisticsCollectionSuite and StringFunctionsSuite under ANSI mode
Why are the changes needed?

To set up a new GA test job with ANSI mode on
Does this PR introduce any user-facing change?

No
How was this patch tested?

Manually turn on ANSI mode and test

cc @anchovYu as well

Merging to master


Fixes crash in Fair analytics

I noticed the crash here, caused by creating a dictionary with a nil value entry. It's a one-line fix so I just did it. WIP because we're currently in-review and I don't want to changelog-faff right now.

Looking for the string id, in the file showed a bunch of others, so I fixed those too.

👍  merge on green


implements a fix for test-breaking changes in 2.12.0-beta.1

As discussed in Slack. Let's leave this open and point directly to this branch.

@maprules1000 -- how would you feel about closing this PR?  Is there anything more happening here?

@maprules1000 -- could you look at this and determine whether we still need to keep an open PR?

Update:
@maprules1000 will take care this soon in the following chore: https://www.pivotaltracker.com/story/show/152906183

So, we're actually not using this branch anymore. @maprules1000 already upgraded this addon in https://github.com/ActionSprout/fern/commit/048e2d4575 (#3401).
I have accepted the chore as complete and will close this PR.


Improve dataProvider annotation autocomplete

It is better suggest public non-test method for @dataProvider annotation, For now it completes class names.

Might be unnecessary as this autocompletion has been improved in PHPStorm itself for the next release: https://youtrack.jetbrains.com/issue/WI-37542

indeed. Will check

Well, AFAIK, the EAP for 2018.1 has not started yet, as they are finishing the 2017.3 release. And the issue says that this improvement is fixed only in 2018.1


Text 158

Fix Jaccard similarity with empty strings:
Due to bug, Jaccard similarity for two empty strings returned 0.0, and the distance 1.0, now it returns similarity 1.0, and the distance 0.0

This also includes the fix for TEXT-86 #106. Can you remove that so the only files changed are for the JaccardSimilarity and its test.

Coverage remained the same at 97.885% when pulling 199ed38cc7b57eea8c09f803f540c4b2fe2f10a6 on CAPS50:TEXT-158 into ea15c5a76eba199f3c08bab96ea17981c0ec01c1 on apache:master.

Hi @aherbert
it looks like Travis is failing in jdk 12 for a reason that is not related to this change:

install-jdk.sh 2019-01-18 II
Couldn't determine a download url for 12-GPL on linux-x64

can you please have a look and advise how to move forward?

I do not know why openjdk12 was in the Travis build matrix. Travis did not like it.
This has just been fixed on master by @garydgregory to use oraclejdk11 and openjdk8. Any new work pushed to this this PR will use the new matrix from master.
The current travis results pass JDK 8 and 11 so this is not an issue.


standardbooks.com? or .org?

Sorry, just noticed that it says it pulls from standardebooks.com in the read-me. It should be .org correct?

Thank you.
@gabrielgrant has fixed this with a PR #6


[BUG] graphscope.framework.errors.AnalyticalEngineInternalError

Describe the bug
An internal error occurred while I was loading the diagram
Expected behavior
g = load_ogbn_mag(sess, "/home/bbduser/graphscope_test") Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/dataset/ogbn_mag.py", line 71, in load_ogbn_mag     return sess.load_from(edges, vertices)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/client/session.py", line 649, in load_from     return graphscope.load_from(*args, **kwargs)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/framework/graph_utils.py", line 615, in load_from     graph_def = sess.run(op)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/client/session.py", line 531, in run     response = self._grpc_client.run(dag)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/client/rpc.py", line 136, in run     return self._run_step_impl(dag_def)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/client/rpc.py", line 45, in with_grpc_catch     return fn(*args, **kwargs)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/client/rpc.py", line 223, in _run_step_impl     return check_grpc_response(response)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/framework/errors.py", line 171, in check_grpc_response     raise error_type(status.error_msg, detail) graphscope.framework.errors.AnalyticalEngineInternalError: 'ArrowError occurred on worker 0: ArrowError occurred on worker 0: /usr/local/lib64/cmake/graphscope-analytical/../../../include/graphscope/core/loader/arrow_fragment_loader.h:368: readTableFromLocation -> IOError: Failed to open the /home/bbduser/graphscope_test/author_affiliated_with_institution.csv because: No such file or directory
this file is exists
Screenshots

Environment (please complete the following information):

GraphScope version: GraphScope 0.1
OS:Linux version 3.10.0-862.el7.x86_64<EMAIL_ADDRESS>(gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018
Version [e.g. 10.15]：python3.6.3
Kubernetes Version ：v1.20.1

Additional context
Add any other context about the problem here.

GraphScope on kubernetes will mount ${GS_TEST_DIR} to /testingdata.
export GS_TEST_DIR=/home/bbduser/graphscope_test
g = load_ogbn_mag(sess, "/testingdata")

Note that make sure path /home/bbduser/graphscope_test exist on all node.

os.environ["GS_TEST_DIR"] = os.path.expanduser("/home/bbduser/graphscope_test") g = load_ogbn_mag(sess, "/testingdata")
I export this variable but the error still exists
Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/dataset/ogbn_mag.py", line 71, in load_ogbn_mag     return sess.load_from(edges, vertices)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/client/session.py", line 649, in load_from     return graphscope.load_from(*args, **kwargs)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/framework/graph_utils.py", line 615, in load_from     graph_def = sess.run(op)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/client/session.py", line 531, in run     response = self._grpc_client.run(dag)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/client/rpc.py", line 136, in run     return self._run_step_impl(dag_def)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/client/rpc.py", line 45, in with_grpc_catch     return fn(*args, **kwargs)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/client/rpc.py", line 223, in _run_step_impl     return check_grpc_response(response)   File "/home/bbduser/.local/lib/python3.7/site-packages/graphscope/framework/errors.py", line 171, in check_grpc_response     raise error_type(status.error_msg, detail) graphscope.framework.errors.AnalyticalEngineInternalError: 'ArrowError occurred on worker 0: ArrowError occurred on worker 0: /usr/local/lib64/cmake/graphscope-analytical/../../../include/graphscope/core/loader/arrow_fragment_loader.h:368: readTableFromLocation -> IOError: Failed to open the /testingdata/author_affiliated_with_institution.csv because: No such file or directory
Did I do something wrong

GraphScope on kubernetes will mount ${GS_TEST_DIR} to /testingdata.
export GS_TEST_DIR=/home/bbduser/graphscope_test
g = load_ogbn_mag(sess, "/testingdata")

Note that make sure path /home/bbduser/graphscope_test exist on all node.

os.environ["GS_TEST_DIR"] = os.path.expanduser("/home/bbduser/graphscope_test")
g = load_ogbn_mag(sess, "/testingdata")
I export this variable but the error still exists, Did I do something wrong

os.environ["GS_TEST_DIR"] = os.path.expanduser("/home/bbduser/graphscope_test")

After setting GS_TEST_DIR, should re-launch the session.
os.environ["GS_TEST_DIR"] = os.path.expanduser("/home/bbduser/graphscope_test")
sess = graphscope.session()
g = load_ogbn_mag(sess, "/testingdata")

Do we have a section about how to mount host/local volumes to pods?

Close as after #100 merged we have an option for users to mount external volumes into worker pods.

Close as after #100 merged we have an option for users to mount external volumes into worker pods.


Fan Issues:  Raw_Key cannot be nulled

Hi,
This plugin is awesome and have been using it for a few months now.  However I noticed that a few days ago, it stopped working (aircon, tv, and fans).  Updating the plugin a few days back seemed to get almost everything back except Fan devices.  I can no longer control my electric fans from Homekit.  I get these errors:
[9/17/2022, 5:58:18 PM] [TuyaIR] Failed to change Fan speed due to error raw_key can not be null
[9/17/2022, 5:58:18 PM] [TuyaIR] Failed to change Fan status due to error raw_key can not be null
Any advice?

Please try the latest version. it should fix the problem.

I am currently using v1.0.8

I am not able to reproduce this error. I get proper response
[18/09/2022, 10:55:37] [TuyaIR] Setting DIY Commands for Fan as {"power":1,"speed":9367,"swing":9362}
[18/09/2022, 10:55:59] [TuyaIR] Calling endpoint https://openapi.tuyaeu.com/v1.0/infrareds/xxx/remotes/xxx/raw/command with payload {"raw_key":1}
[18/09/2022, 10:56:00] [TuyaIR] API call successful. {"result":true,"success":true,"t":1663478760572,"tid":"xxx"}
[18/09/2022, 10:56:00] [TuyaIR] Fan is now On

Can you please put home bridge in DEBUG mode and capture logs?

hi @prasad-edlabadka
[Playpen Area B340] The image snapshot handler for the given accessory is slow to respond! See https://homebridge.io/w/JtMGR for more info.
[10/5/2022, 4:39:00 AM] [TuyaIR] Calling endpoint https://openapi.tuyaus.com/v1.0/infrareds/ebf59a7721ddda73f5hcbh/remotes/eb140787d112052bd6vyb2/raw/command with payload {"raw_key":null}
[10/5/2022, 4:39:01 AM] [TuyaIR] API call successful. {"code":1102,"msg":"raw_key can not be null","success":false,"t":1664915947282,"tid":"97ac931d442411eda5021297425bcc23"}
[10/5/2022, 4:39:01 AM] [TuyaIR] Failed to change Fan status due to error raw_key can not be null
[10/5/2022, 4:39:14 AM] [Camera FFmpeg] [Playpen Area] Fetching snapshot took 19.732 seconds.

Looks like Fan commands are not retrieved correctly. Can you please send complete logs from home bridge startup? There is a debug log statement that logs retrieved IR commands.

homebridge-tuya-ir.log.txt
@prasad-edlabadka thanks in advance

Fixed in v1.0.10. Please test.

Fan now works! Thanks a bunch!


Update allowlist ID on update

Since the ID is based on the CIDR address, it needs to be recomputed when the address is updated.

The issue is we are using tfsdk.UseStateForUnknown() for the id attribute and this is used for computed attributes which are known to not change over time. This will produce the following error on the TF apply command while setting the TF state after updating.

I see. Thanks for clarifying! I had a wrong understanding of UseStateForUnknown. Fortunately, though, I just double checked the CCAPI's update allowlist endpoint, and it doesn't let you modify the CIDR address anyway. I marked both CIDR fields as RequiresReplace. The SQL user schema should still be OK, but I'll revisit the cluster schema in another PR.
I tested the update operation for all fields in the allowlist resource and didn't see any errors or get it into a bad state, so hopefully we're good now.


Persist toggled data

Is your feature request related to a problem? Please describe.
Nope, I wouldn't consider this a problem necessarily.
Describe the solution you'd like
I would like it so that if you once '/board toggle', it stays turned off, at least as a config option.
So basically add the option in the config for
settings:
  persist-toggle-data: false

(or something similar)
and if you set it to true, it will save it to disk who has it turned on or off and you'll not always have to use '/board toggle' just to turn it back off :)
Describe alternatives you've considered
I could probably create two scoreboards with permissions and create a custom command or something that sets the permission and removes it but that's super tedious.
Additional context
Don't really have anything here :D

Is your feature request related to a problem? Please describe. Nope, I wouldn't consider this a problem necessarily.
Describe the solution you'd like I would like it so that if you once '/board toggle', it stays turned off, at least as a config option. So basically add the option in the config for
settings:
  persist-toggle-data: false

(or something similar) and if you set it to true, it will save it to disk who has it turned on or off and you'll not always have to use '/board toggle' just to turn it back off :)
Describe alternatives you've considered I could probably create two scoreboards with permissions and create a custom command or something that sets the permission and removes it but that's super tedious.
Additional context Don't really have anything here :D

Hi, thanks for suggest that feature. Is really necesary? Because i would not like to save on a file or db that information. Maybe cache for some time.

I personally think it's necessary but I have actually found another solution to what I was doing with SternalBoard so I have now stopped using SternalBoard altogether.
If you still want to do this, go ahead, otherwise feel free to close this issue :)

Ok, i'll add it.


Delete the definition of Run_SSHCommand in perf_ntttcp.sh

Delete the definition of Run_SSHCommand in perf_ntttcp.sh.
[LISAv2 Test Results Summary]
Test Run On           : 07/28/2020 09:46:25
ARM Image Under Test  : RedHat : RHEL : 7-LVM : latest
Initial Kernel Version: 3.10.0-1127.el7.x86_64
Final Kernel Version  : 3.10.0-1127.el7.x86_64
Total Test Cases      : 1 (1 Passed, 0 Failed, 0 Aborted, 0 Skipped)
Total Time (dd:hh:mm) : 0:0:17

   ID TestArea             TestCaseName                                                                TestResult TestDuration(in minutes)
-------------------------------------------------------------------------------------------------------------------------------------------
    1 NETWORK              PERF-NETWORK-TCP-THROUGHPUT-MULTICONNECTION-NTTTCP-SRIOV                          PASS                14.06
      ARMImageName: RedHat RHEL 7-LVM latest, Networking: SRIOV, SetupType: TwoVM2Host, TestLocation: westus2
      Connections=20480 : throughput=2.38Gbps cyclesPerByte_sender=174.03 cyclesPerByte_receiver=22.75 Avg_TCP_lat=4029.689 pktsPerInterrupt=7.59 conCreatedTime=3399131
retransSegs=4423467.0
      Connections=40960 : throughput=2.45Gbps cyclesPerByte_sender=169.38 cyclesPerByte_receiver=30.05 Avg_TCP_lat=5465.905 pktsPerInterrupt=8.83 conCreatedTime=3950216
retransSegs=5327563.0
      Connections=50000 : throughput=2.29Gbps cyclesPerByte_sender=181.29 cyclesPerByte_receiver=31.45 Avg_TCP_lat=4499.201 pktsPerInterrupt=8.55 conCreatedTime=4890738
retransSegs=2936507.0
      Connections=55000 : throughput=2.36Gbps cyclesPerByte_sender=175.73 cyclesPerByte_receiver=42.30 Avg_TCP_lat=5360.564 pktsPerInterrupt=8.73 conCreatedTime=5002901
retransSegs=3831154.0

Close it

There are 15 callers in the perf_ntttcp.sh file. What about them?

They are used to execute command in server VM by ssh of client VM.


⚠ Bofrost.lu has degraded performance

In 9bd83f0, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1133 ms

Resolved: Bofrost.lu performance has improved in fdcc13e after 8 minutes.


Improve start script

Hi, 9 out of 10 times I start with this script nginx-gen does not start and each time I have to start it manually which is a pain.
making it pause for 1 second and doing docker-compose start makes sure it started 100% of the time. And it does skip the ones already started.
Also adding docker-compose ps at the end is a nice way to confirm it is up and running as it should.
Please accept this.
Cheers,
Khalil

Thanks for your contributions @khalilgharbaoui, but I don´t think this was a solutions, but a workaround. After the last update on nginx-gen I believe this got working just fine. Let me know if you still face this issue.

I will tnx!

@evertramos end of 2021 and on the latest version... I still sometime run into the issue mentioned above... I thought I'd discard my workaround script, but it's just a pain without it.
It's either I need to restart the gen container sometimes my self, or just use my old workaround and be 100% sure.
Maybe you could still incorporate something similar... and at least you know :)

Hello @khalilgharbaoui.
Are you using the latest version of docker-gen? Because I am not having this kind of  issues man... really. I would like to know what might be wrong there, because I am developing a whole server automation with this script right now and an API and this just working fine when firing a new server and a new site, so there might be some thing not lined up with the latest version of nginx-compose. If you would please consider testing in a fresh vps or with the latest version of the nginx-proxy and docker-gen.
There is an update script for server which runs every month so, the containers with docker updates restarts in specific hour when there is an update as it has the last month, but here it is my environment with no issues with working versions:

I think the docker-gen has one version which I did not update yet. But I will soon.


Formatting print lines with print(f"{foo}") returns E999

When you print using the following Python 3 method, this linter displays E999 (SyntaxError: invalid syntax) for the first instance in a file:
eventID = 1234
print(f"Failed for {eventID}")
print(f"Failed for {eventID}")

If I had to guess you are using the "wrong" python to launch flake8 so it is running in Python v2 mode instead of Python v3. Make sure that python is v3 in the environment you initially launch Atom from.

How can  I check this? I am able to run the Python 3 code fine, however, the linter does not work.

You can ensure that the correct Python version is being used by:

Close all instances of Atom
From a terminal ensure that python --version shows the desired results
From that terminal launch Atom (atom .)

I have the same problem. I have flake8 installed with pipsi and it uses Python 3.6.1 on my OSX.
So if I run:
$ flake8 foo.py

...it does not explain.
But in Atom I get the same as this issue mentions at the top.
My flake8 executable runs with the right Python.
▶ cat `which flake8` | head -n 1
#!/usr/local/opt/python3/bin/python3.6

I still have Python 2.7 as the default for python.
I.e.
▶ python --version
Python 2.7.11

The default is just flake8 which should be right.

I haven't changed the default.
So why does it run python to start flake8?

@peterbe If you follow the instructions posted in the post right above yours, does it work?

@peterbe If you follow the instructions posted in the post right above yours, does it work?

It did! I still have python --version yielding 2.7 but as my point above, it's not using python to start flake8, it starts flake8 directly.
So it turns out I just needed to fully restart Atom.
Close this issue?

Good to hear that, any sort of "virtualenv like" setup unfortunately requires Atom to be launched from that environment to work, and some don't even work then as they rely on shell macros that don't exist in the execution context of how flake8 is launched here.
Since @ReagentX hasn't responded, I'm assuming their issue was resolved and closing this. If you are still having problems @ReagentX please let us know!


feat(LayerManager): add focus trapping

The feature was implemented in #482 and released in 4.0.0. Closing this PR


Support shallow cloning submodules

Checklist

[x] I've read and accepted the Contribution Guidelines
Requires MINOR version update

Context
Support shallow cloning submodules to speed up cloning of repositories with submodules.
Resolves: STEP-51
Changes

Updated github.com/bitrise-io/go-utils/command/git
Introduced limit_submodule_update_depth input with default value of yes. If input has yes value that submodules will be cloned with the --depth=1 argument.
Create tests to cover the case.

Can you please link a sample workflow with a real repository, with this option applied?

Good catch, I've forgotten to update the e2e tests. I will added the test case for this. 👍

Actually, _test_submodule should already cover this case as both update_submodules and limit_submodule_update_depth has a default "yes" value. Do you think we are covered with that?

@adborbas

Do you think we are covered with that?

Based on https://stackoverflow.com/questions/2144406/how-to-make-shallow-git-submodules/17692710#17692710 shallow update could fail if the referenced commit is not a branch/tag but they added fixes to check out by commit hash (which not every git server supports). Can you check that the main providers work if the referenced submodule version is not on the tip of branch/tag? In https://github.com/bitrise-io/git-clone-test unsure which commit the submodule points to.


Bug: Add Data Caveat to MATS data

Test Case
 TC625
Steps to Reproduce
Issue 1:

Navigate to the CDD
Select Data Type

The system displays  Mercury And Air Toxics as a Data type. The Data type should be Mercury and Air Toxics Emissions (MATS)

Issue 2:

Navigate to the CDD
Apply Mercury and Air Toxics Emissions (MATS) as a data type.

The system should automatically populate the data sub type as hourly emissions and the sub type functionality should be disabled
Issue 3??
Can both alerts be centered?

Actual Results
Requirements
User Story
As a custom data download user I want the system to provide a warning about MATS data So that I know the data is incomplete
Acceptance Criteria
Given that a user has selected data type on the custom data download
When the functionality is displayed
Then the user has the option to select: Mercury and Air Toxics Emissions (MATS)
Given that a user has selected Mercury and Air Toxics Emissions (MATS) as a data type
When the data sub type functionality is displayed
Then the system automatically populates Hourly Emissions as a sub type
AND the data sub type functionality is disabled
Given that a user has has selected Mercury and Air Toxics Emissions (MATS) as a data type
When the data type functionality is displayed
Then the system displays the MATS data caveat in accordance with the wireframes
Given that a user has applied Mercury and Air Toxics Emissions (MATS) as a data type
When the functionality is displayed
Then the system displays the MATS data caveat in accordance with the wireframes
Given that a user has applied Mercury and Air Toxics Emissions (MATS) as a data type
When the change data type functionality is displayed
Then the system displays the MATS data caveat in accordance with the wireframes until a new data type is selected
Given that a user has previewed their dataset
When the functionality is displayed
Then MATS data caveat is displayed above the data table in accordance with the wireframes
Development Notes
When the MATS and the download limit alerts are both displayed, then the alerts will be stacked. The download limit alert should be on the top and the MATS alert should be on the bottom.
Data Caveat:
MATS required that coal-fired electricity generating units (EGUs) start reporting hourly MATS emissions and operations data as early as April 2015, but provided extensions for many EGUs until April 2016 or 2017. Therefore, complete MATS data are not available until calendar year 2018.
Data Caveat to Mats DATA - mobile -
https://xd.adobe.com/view/4853f38d-a5e3-4325-8aa4-7d50d7dc66aa-1d00/
Data Caveat to Mats DATA - Tablet -
https://xd.adobe.com/view/4111c69a-cf37-4a66-bbe8-485ca47523e5-1442/
Data Caveat to Mats DATA - Desktop 1024
https://xd.adobe.com/view/dac248cb-3232-42c0-b1f0-e9aa66f0bfcc-8f91/
Data Caveat to Mats DATA - Desktop 1200
https://xd.adobe.com/view/0cb919a9-bf20-42ee-b210-7073b367dd49-59ea/

Open defect in TestQuality D117

Test Add Data Caveat to MATS data in Run Add Data Caveat to MATS data (linked to Cycle MATS Filter/ Sort).


Unexpected exit with no traceback in eye_process.py and other OpenCV examples

In a clean environment with Python 3.9.13 installing only needed dependencies, eye_process.py and many other OpenCV examples either return empty arrays from Face.py or silently exit.
Root cause is the use of 'astype(np.[datatype])' throughout Face.py . Using native data types instead of the numpy prefixed data types where possible fixes this issue. I also found it works if the data type is changed to a data type explicitly listed out in the article below, such as 'np.intc' as opposed to 'np.int'. Not sure the reason why this is breaking it, but it may have to do with how NumPy handles array scalars (https://numpy.org/doc/stable/user/basics.types.html) . Let me know if you want me to make a pull request.

Hi. Can you fork the repo, do the updates then make a pull request ?


Added german translation

I did my best to help translating the messages into german, I hope, my pull request is conform to the contributing guidelines.

Thank you for your review, @chschlue! I missed quite a few typos :cry: and also thank you for the alternative suggestions too!

@SchrodingersGat looks good to me now.

Thanks for the contribution @olagino and the review @chshlue :) Fantastic work


🐛 takeSnapshot throws Not in application's main thread

What were you trying to do?
When using takeSnapshot() it throws this error, anyone else come across it on Android? I can take photos fine just not snapshots
 ERROR  [unknown/unknown: [unknown/unknown] Not in application's main thread]

Reproduceable Code
const snapshot = await camera.current.takeSnapshot();

What happened instead?
App throw Not in application's main thread error in the console
Relevant log output
ERROR  [unknown/unknown: [unknown/unknown] Not in application's main thread]

Device
Samsung SM-T575
VisionCamera Version
2.9.3
Additional information

[ ] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

I get the same error when calling takePhoto, when running on an emulator on Android, with API 26 and version 2.11.1

any update on this?

Sorry, did not have any free time to investigate this yet.

I am facing same issue. v2.13.0 and 0.64.1
I tried to patch-package with PR you made, but unfortunately build is failing with this error message
`
e: C:\Users\wol\Desktop\Projects\softzen\aidg\aidg-mobile-cognito\app\node_modules\react-native-vision-camera\android\src\main\java\com\mrousavy\camera\CameraView+TakeSnapshot.kt: (25, 30): Cannot access 'coroutineScope': it is private in 'CameraView'
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':react-native-vision-camera:compileDebugKotlin'.

Compilation error. See log for more details
`

above mention build issue somehow resolved, but takeSnapshot throws Not in application's main thread again
changes made in #961 does not work :|

Did you try with the latest version?

Sorry false alarm #1030#issuecomment-1117473084


Stuttering after installing CET (no additional mods)

Cyberpunk version: 1.61 (<IP_ADDRESS>510)
CET version: 1.21.1
OS: Windows 11
Description: After installing CET the game stutters. Removing CET the stutter is gone.
Note: No additional mods installed, manual install of CET, default CET values unmodified. Same result with or without amd_smt checked. Verified game files. Steam installation on C: - Steam library E: - (both m.2 drives.)
config.txt
cyber_engine_tweaks.log
gamelog.log

Could you check against staging branch?
CI artifact corresponding to it:
https://github.com/yamashi/CyberEngineTweaks/actions/runs/3523309388
Zip there has same structure as normal CET release so apply it the same way.

Sweet, thanks so much.
This has resolved the issue. Awesome work and thanks again Dude!


Automatically ignore baro if difference from GPS altitude is too big

Perhaps only if bar alt is less than 10KFT, indicating it's pressurized.

Not going to change.  Will get bad indications until difference is too high and when switching between the two.  Best for pilots of pressurized cabins to just shut off the baro sensor