text:
Fix README badges

Hey guys!
Thank you for develop this great package.
This is a very small contribution but it can make a difference for other people that are looking for an alternative.
Thanks!

Merged! Thank you! :)

authors: patricklafrance pesimeao

repo: gsoft-inc/craco


text:
Argument value with dash not accepted when using single-dash key

If I define the following:
[Option('t', "test")]
public string MyArg { get; set; }

then when running with arguments -t -1234, Parser.Default.ParseArgumentsStrict returns false.  If I use arguments --test -1234 it returns true.  Maybe the parser could be smart enough to treat the next argument as the value?

It should work exactly the way you expect. Sounds like a bug, but we are not developing version 1.x anymore. If you upgrade to the latest beta (2.1.1) and are still seeing issues, please submit them to this new repository as this original fork has closed.
If you are unable to upgrade, I believe you can work around the issue by using -t=-1234 or -t-1234, but I haven't had a chance to test.

source: gharchive/issue

authors: NelsonRothermel nemec

repo: gsscoder/commandline

license: mit

license_type: permissive

license_source: bigquery


text:
[BUG] ImageSurface::create_for_data() should take a smaller lifetime than 'static for data

Bug description
use cairo::{ImageSurface, Format};

fn main() {
    let mut data = vec![255, 0, 0, 255];
    {
        let surface = ImageSurface::create_for_data(&mut data, Format::ARgb32, 1, 1, 4).unwrap();
        do_stuff_with(surface);
    }
    // surface is now dropped, data still lives, but create_for_data() doesn’t allow this.
}

Error
error[E0597]: `data` does not live long enough
  --> src/main.rs:6:53
   |
6  |         let surface = ImageSurface::create_for_data(&mut data, Format::ARgb32, 1, 1, 4).unwrap();
   |                       ------------------------------^^^^^^^^^--------------------------
   |                       |                             |
   |                       |                             borrowed value does not live long enough
   |                       argument requires that `data` is borrowed for `'static`
...
10 | }
   | - `data` dropped here while still borrowed

For more information about this error, try `rustc --explain E0597`.

Due to surfaces being reference counted, the data has to be 'static and must be owned by the surface. Everything else would be unsound.
There are unsafe constructors with less strict requirements if your code can ensure that the surface can't outlive the data, and you can also build abstractions with safe code that return you the data via a channel from Drop. There is an example for the latter in the gtk3-rs repo. The former should be relatively self explanatory.

authors: linkmauve sdroege

repo: gtk-rs/gtk-rs-core

license: MIT

license_source: github-api


text:
glib-macros: Use absolute paths to the StaticType trait

Otherwise code using it derive macros needs to have it in scope already,
which is not very user-friendly.

CC @gdesmott

@GuillaumeGomez This should probably also get a bugfix release.

source: gharchive/pull-request

repo: gtk-rs/gtk-rs


text:
No icons & broken FileChooserDialog

Creating a directory FileChooserDialog looks like this by default on OSX:

The icons are all broken and the open/cancel buttons are missing. Maybe there is something extra you need to do to set up the theme, but I didn't see it mentioned anywhere in the tutorial and this is quite a bad out-of-the-box experience. :-/

You seem to be using OSX. I think the problem is simply that GTK doesn't embed its icons (it does now but in a recent version). Windows has the same issue. I don't really know how to fix it though (except by providing the icons yourself).
An idea maybe @sdroege @EPashkin ?

Ah, the icons seem to be in /usr/local/Cellar/gtk+3/3.24.8/share/icons. Presumably I need to call GtkIconThemeExt::append_search_path() (set_search_path() doesn't seem to be exposed for some reason).
I tried this in my startup signal handler:
IconTheme::get_default().unwrap().append_search_path("/usr/local/Cellar/gtk+3/3.24.8/share");

Also share/icons and share/icons/hicolor, but none had any effect.

Ah, the icons seem to be in /usr/local/Cellar/gtk+3/3.24.8/share/icons.

Actually scratch that, there are only a couple of random demo app icons in there. Where are the icons supposed to be?

What tutorial were you referring to btw? It'd be interesting to add those dependencies into it.

@Timmmm I don't have a Mac to test this, could you try with:
brew install adwaita-icon-theme

@GuillaumeGomez I would add them here - where it says brew install gtk+3, change it to brew install gtk+3 gnome-icon-theme.
@fengalin Installing gnome-icon-theme installs adwaita-icon-theme as a dependency.
I suspect the missing icons are related to the fact that on Gnome the buttons are in the title bar (as discussed here). I'm not sure how to change that setting though, given that we're not using gsettings.

Well it can't be the DialogsUseHeader setting because
gtk::Settings::get_default().expect("Couldn't get settings").set_property_gtk_dialogs_use_header(false);

Has no effect, and setting it to true makes it look a bit different (but still no ok/cancel buttons).

Best to discuss this at https://discourse.gnome.org as this is a general GTK problem and unrelated to the bindings.

authors: GuillaumeGomez Timmmm fengalin sdroege

repo: gtk-rs/gtk


text:
如果仓库不填写githubRepositories，会导致打包html文件变成目录，导致没有html文件

文件打包后的目录为
|--steppuzzleGuide
    |--config.html

其中config.html是目录，而不是html文件。
是我搞错了，是当githubRepositories为空字符串的时候会出现上述错误，但是当githubRepositories不写的时候没有问题。

windows系统可能会导致目录路径错误，使用vite的normalizePath函数更正，已在0.0.6版本修复

repo: guLinga/steppuzzle


text:
Cleaned Up Code in git_test

Cleaned up some code in git_test.go
There is no need for numCollectors and collectorsDone, because numCollectors is always 1 and collectorsDone is only incremented when case err := <-errChan

Signed-off-by: nathannaveen 42319948+nathannaveen@users.noreply.github.com

I think I prefer the first version since it is easier to update to run multiple collectors in parallel during the test.

Wouldn't it better to do that when we have multiple runners? Thoughts?

Hey @nathannaveen! Thanks for the PR. So there is issue #281 where we wanted to call the collector.Collect in all the collector tests (i.e. file, gcs, git...etc). That would be a better approach to cleaning up the collector tests. Let me know and I can expand on the issue if you need more guidance.

@pxp928 I can take it up, but I don't fully understand, could you explain? Thanks

@pxp928 I can take it up, but I don't fully understand, could you explain? Thanks

@nathannaveen I updated the issue with an example that should make it easier to understand. That will have to be done for all the collector tests (file, gcs, git and oci). Let me know if you need more guidance

Closing PR as there is a better path forward on issue #281

authors: nathannaveen naveensrinivasan pxp928

repo: guacsec/guac


text:
什么时候出js版？是js版可以实现吗？是否有什么限制？

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

你要用在Node.js里面还是用在浏览器里面？

浏览器里面，有可用的js版吗

你要用在Node.js里面还是用在浏览器里面？

浏览器

authors: dev-zl guanzhi shiwenna simei1

repo: guanzhi/GmSSL


text:
update dependencies

@kenoir

:+1:

authors: kenoir piuccio

repo: guardian/kinesis-logback-appender


text:
Update scalafmt-core to 3.8.2

About this PR
📦 Updates org.scalameta:scalafmt-core from 3.7.17 to 3.8.2
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scalameta", artifactId = "scalafmt-core" }
}]

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

Superseded by #2005.

repo: guardrail-dev/guardrail


text:
All 3 of those urls 404

I guess they all ended up merged into this page:
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html
... which just suggests that it's just a HEAD request anyway.

Coverage remained the same at 96.386% when pulling f4e650b6be0e5dfa2cf4bdaa8955bf756b0b853e on guest20:patch-1 into 93e51edcd05070971b13af518b1728522fd95555 on gugod:master.

Thank @gues20 for checking.

authors: coveralls guest20 gugod

repo: gugod/Elastijk


text:
Add Hyperspace legality to all cards

This adds a new field to all cards to indicate legality in the Hyperspace game format.
This field can be update from the FFG API by running yarn run hyperspace (or npm run hyperspace).

Thanks @FreakyDug. I rebased it to resolve merge conflicts with master.


text:
Text Watermarks

Hi,
Is there any way to add a Text watermark? I have tried adding the literal XML for the watermark and I get an error in document.xml which I think is due to the watermark being located in one of the header.xml files.
<v:shape id="PowerPlusWaterMarkObject200378111" stroked="f" fillcolor="silver" o:allowincell="f" style="position:absolute;margin-left:0;margin-top:0;width:397.65pt;height:238.6pt;rotation:315;z-index:-251657216;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin" type="#_x0000_t136" o:spid="_x0000_s2049">

<v:fill opacity=".5"/>

<v:textpath style="font-family:"Calibri";font-size:1pt" string="DRAFT"/>

<w10:wrap anchory="margin" anchorx="margin"/>

</v:shape>

Also if I set a watermark manually in Word in my template the generated document errors on opening.
Any help would be greatly appeciated.
Thanks

Thanks for the reporting, I'll look into it!

Fixed in v2.5.2. Please re-open if needed!

@guigrpa would it be possible to allow setting a watermark from the library, without setting it directly in the word template?

I don't think that this is possible. For those special use cases you can create your own code:

filledDoc.docx -> unzip (maybe only in memory not in filesystem)
Change the corresponding file (I think as of @iainfreestone this should be located in a  header.xml file
create zip all into a new file filledDocWithWatermark.docx

Hope this helps.

Hello,
I am reopening this post to complete the request. Is it possible to act on the watermark with js code?
For example by testing a variable to display the watermark or not.

authors: GiordanoArman ThierryMangin guigrpa iainfreestone mathe42

repo: guigrpa/docx-templates


text:
RSS/Atom feed support

It would be very useful to be able to follow new quotes directly from a RSS/Atom feed viewer, but the current version of Epiquote does not provide this feature.
Having a RSS feed with the last 25 quotes would be pretty cool :)

Hi,
Epiquote already support such feature, RSS and Atom feeds are available at
http://www.epiquote.fr/syndication/rss and http://www.epiquote.fr/syndication/atom respectively.
The real issue here is the their lack of visibility. I will add links on the home page and <link type="application/rss+xml"> in the <head>.
Thanks for the feedback.

Since update 2.0.1, feeds are more visible and <link> tags have been added.

authors: delroth guillaume-algis

repo: guillaume-algis/epiquote


text:
Does faster whisper support apple m1 gpu accelerate?

Hello, I am searching the fast whisper for M1 platform, I don't know if faster whisper support M1 GPU accelerate. If support, is it faster than whisper.cpp?

faster-whisper does not use the M1 GPU. It only uses the CPU.
On Apple Silicon, whisper.cpp tends to be faster: https://github.com/guillaumekln/faster-whisper/issues/168#issuecomment-1524542057

repo: guillaumekln/faster-whisper


text:
Weird behavior using gulp.watch

I created a task to watch html files and js files
The task has a  '/**/*.js' watcher that pass the file through babel and uglify and then send it to the dist path, and a  '/**/*.html' watcher that just send the file to the dist path
What were you expecting to happen?
The watcher should only be triggered with files that match the pattern, or perhaps if a folder that contains .js files change.
What actually happened?
The '/**/*.html' watcher works normally
The problem is that the '/**/*.js' watcher should only be listening to .js files but is also listening to every folder event, if  i create a folder(empty) it triggers an event and the folder is copied, and the same if i rename or delete an empty folder, the curious part is that it only happens when .js is used, i did som tests using  '/**/*.ts' and '/**/*.jsx', and they worked normally.
const SRC_PATH = 'src';
const APP_PATH = 'wwwroot/app';

gulp.task('watch', function () {
    //this is not working
    gulp.watch(SRC_PATH + '/**/*.js', function (event) {
        console.log(`${event.type}: ${event.path}`);
        gulp.src(event.path, { base: SRC_PATH })
            .pipe(babel({ presets: [['es2015', { 'loose': true }]], plugins: ['transform-es2015-modules-umd'] }))
            .pipe(uglify())
            .pipe(gulp.dest(APP_PATH));
    });
    //this is working
    gulp.watch(SRC_PATH + '/**/*.html', function (event) {
        console.log(`${event.type}: ${event.path}`);
        gulp.src(event.path, { base: SRC_PATH })
            .pipe(gulp.dest(APP_PATH));
    });
});

What version of gulp are you using?
Using gulp 3.9.1
What versions of npm and node are you using?
npm 4.0.5, node 6.9.2
Note: i'm using visual studio on win10 64bit (not sure if it's relevant)

Duplicate of #651 - the solution is to use the gulp-watch module.

authors: jsnoriegam phated

repo: gulpjs/gulp


text:
[Bug]: Cannot invoke "org.springframework.boot.docker.compose.core.DockerCliInspectResponse.hostConfig()" because "inspectResponse" is null

Error: DockerCliInspectResponse.hostConfig()
New version of docker-compose (2.23.0) is incompatible with spring-boot-docker-compose. These problems have already been reported in this issue and this question.

To solve there are two solutions:

Downgrade Docker from version 2.23.0 to 2.20.4 (for this, I recommend using asdf - make sure to uninstall your docker-compose from where you installed it beforehand).
Or update to version 3.1.6 of Spring Boot. However, since this is still a RELEASE version, I do not recommend this method as it may be troublesome.

Log/Stack this error
java.lang.NullPointerException: Cannot invoke "org.springframework.boot.docker.compose.core.DockerCliInspectResponse.hostConfig()" because "inspectResponse" is null
        at org.springframework.boot.docker.compose.core.DefaultConnectionPorts.isHostNetworkMode(DefaultConnectionPorts.java:56) ~[spring-boot-docker-compose-3.1.0.jar:3.1.0]
        at org.springframework.boot.docker.compose.core.DefaultConnectionPorts.<init>(DefaultConnectionPorts.java:47) ~[spring-boot-docker-compose-3.1.0.jar:3.1.0]
        at org.springframework.boot.docker.compose.core.DefaultRunningService.<init>(DefaultRunningService.java:55) ~[spring-boot-docker-compose-3.1.0.jar:3.1.0]
        at org.springframework.boot.docker.compose.core.DefaultDockerCompose.getRunningServices(DefaultDockerCompose.java:83) ~[spring-boot-docker-compose-3.1.0.jar:3.1.0]
        at org.springframework.boot.docker.compose.lifecycle.DockerComposeLifecycleManager.start(DockerComposeLifecycleManager.java:115) ~[spring-boot-docker-compose-3.1.0.jar:3.1.0]
        at org.springframework.boot.docker.compose.lifecycle.DockerComposeListener.onApplicationEvent(DockerComposeListener.java:53) ~[spring-boot-docker-compose-3.1.0.jar:3.1.0]
        at org.springframework.boot.docker.compose.lifecycle.DockerComposeListener.onApplicationEvent(DockerComposeListener.java:35) ~[spring-boot-docker-compose-3.1.0.jar:3.1.0]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-6.0.9.jar:6.0.9]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-6.0.9.jar:6.0.9]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-6.0.9.jar:6.0.9]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131) ~[spring-context-6.0.9.jar:6.0.9]
        at org.springframework.boot.context.event.EventPublishingRunListener.multicastInitialEvent(EventPublishingRunListener.java:136) ~[spring-boot-3.1.0.jar:3.1.0]
        at org.springframework.boot.context.event.EventPublishingRunListener.contextLoaded(EventPublishingRunListener.java:98) ~[spring-boot-3.1.0.jar:3.1.0]
        at org.springframework.boot.SpringApplicationRunListeners.lambda$contextLoaded$4(SpringApplicationRunListeners.java:72) ~[spring-boot-3.1.0.jar:3.1.0]
        at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[na:na]
        at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:118) ~[spring-boot-3.1.0.jar:3.1.0]
        at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:112) ~[spring-boot-3.1.0.jar:3.1.0]
        at org.springframework.boot.SpringApplicationRunListeners.contextLoaded(SpringApplicationRunListeners.java:72) ~[spring-boot-3.1.0.jar:3.1.0]
        at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:415) ~[spring-boot-3.1.0.jar:3.1.0]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:310) ~[spring-boot-3.1.0.jar:3.1.0]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1305) ~[spring-boot-3.1.0.jar:3.1.0]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1294) ~[spring-boot-3.1.0.jar:3.1.0]
        at io.github.gulybyte.todo.Application.main(Application.java:10) ~[main/:na]
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
        at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
        at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) ~[spring-boot-devtools-3.1.0.jar:3.1.0]

Importance
Not important

This issue will remain open until Spring Boot releases version 3.1.6.

In this new docker version 24.0.7 the problem is fixed

repo: gulybyte/sample-todo


text:
Arm & Disarm work only on first Area

I would like report issue that integration can arm & disarm only one Area.
For example I have 3 areas each one for each floor and when I arm Alarm Panel with integration it arm only first Area(Ground Floor) and other 2 areas stay disarmed...
I think that you need to call global arm/disarm function instead of first area... Or better make option to seperate arm/disarm each Area...

Hi,
Yes, right now it is hardcoded in the code to arm only first area.
I think the areas in use can be discovered with ISAPI queries and all area ids can be added to arm command for a global arming function.
Also as you said they can be managed separately.
I am marking this as a enhancement.
This issue will be picked soon when I have time.

Im see after Im post issue in your other repo(hikaxpro) that you have hardcoded links in file consts.py where on HAOS I can find that files? Maybe I can modify them myself or find what is global URL for arm&disarm all areas...
In documentation I found this:

I would like to confirm that now arm&disarm work on all zones.
Thanks for fast fix.

authors: DejanBukovec gunkutzeybek


text:
UTF-8 Normalization

Hey!
Can we assume the input is UTF-8 normalized? Many SIMD-powered implementation, or implementations that do not rely on building Strings right away will assume the input is UTF-8 normalized. Is this a valid assumption?

Yes, you can assume that byte-wise different strings are different.
Because normalization is about equivalence of sequences of code-points and because the reference solution does not contain any code to normalize the city names, I think that the reference solution treats equivalent names represented by different sequences of code-points as unequal.

authors: SamuelYvon sharpobject


text:
Spawn a subprocess

Check List:

[x] Tests pass (./test.sh <username> shows no differences between expected and actual outputs)
[x] All formatting changes by the build are committed
[x] Your launch script is named calculate_average_<username>.sh (make sure to match casing of your GH user name) and is executable
[x] Output matches that of calculate_average_baseline.sh
[x] For new entries, or after substantial changes: When implementing custom hash structures, please point to where you deal with hash collisions (line number)

Execution time: ~200 ms better
Execution time of reference implementation: a lot

00:02.248 now.
Benchmark 1: timeout -v 300 ./calculate_average_artsiomkorzun.sh 2>&1
  Time (mean ± σ):      2.247 s ±  0.003 s    [User: 0.001 s, System: 0.004 s]
  Range (min … max):    2.238 s …  2.250 s    10 runs

Summary
  artsiomkorzun: trimmed mean 2.2482573756200006, raw times 2.23799890612,2.24919948412,2.24974701412,2.24893248312,2.24709839612,2.24733371212,2.24895525812,2.24913507612,2.24712848412,2.24827611112

Leaderboard

| # | Result (m:s.ms) | Implementation     | JDK | Submitter     | Notes     |
|---|-----------------|--------------------|-----|---------------|-----------|
|   | 00:02.248 | [link](https://github.com/gunnarmorling/1brc/blob/main/src/main/java/dev/morling/onebrc/CalculateAverage_artsiomkorzun.java)| 21.0.2-graal | [Artsiom Korzun](https://github.com/artsiomkorzun) | GraalVM native binary |

authors: artsiomkorzun gunnarmorling


text:
Mac catalyst set initial crop aspect ratio problem

I'm having a hard time initiating a cropViewController with a non-default aspect ratio in mac Catalyst.
Let's say I initiate my cropViewController with an image and want to show the default crop aspect ratio as 16/9
let cropViewController = Mantis.cropViewController(image: myImage)
cropViewController.config.presetFixedRatioType = .alwaysUsingOnePresetFixedRatio(ratio: 16.0/9.0)
When I present the above cropViewController, for a split second the aspect ratio is set to 16/9 but then the crop box expands to cover the full image without me touching anything. This behavior is not present in the iOS app.
Has anyone seen this behavior?

@behrangnm
Thanks for the feedback. Could you provide more information like your macOS version and your Xcode version?
I did a test but didn't reproduce it on my MacBook Pro (macOS 12.6, Xcode Version 13.3.1 (13E500a))
https://user-images.githubusercontent.com/26723384/196868150-ef61a71e-8f71-46da-b6c2-b17b59e54192.mov

Thanks for getting back to me quickly. I checked your sample example against my code and I was missing the following in my setup of the cropViewController:
cropViewController.modalPresentationStyle = .fullScreen
So if you remove that from your test code, you will seeing the bouncing of the crop frame. I guess I had to read the "Basics" of how to set it up in the read.me file :)
Anyway, problem solved on my part but maybe it would be a good idea to automatically set the presentation style to fullscreen on ios 13+ / mac catalyst

Just released Mantis 2.3.0 which automatically sets the presentation style to fullscreen on ios 13+ / mac catalyst

authors: behrangnm guoyingtao

repo: guoyingtao/Mantis


text:
Changes across the board

Notable changes below.
Streams:

Use confluent.version 2.1.0-alpha1
Use Scala 2.11.7
Add ZK connect config to examples

All = Streams + other examples:

Improve docs (READMEs)
Restructure layout of examples repository.  Streams examples are now under kafka-streams, everything else is under kafka-clients.
Updated 2 of the 4 kafka-clients examples (producer and consumer;  I didn't touch the two Avro examples) to use CP 2.0.1 / Kafka 0.9.0.1-cp1.
Add licensing information (Apache v2) and NOTICE files for all projects.

LGTM. I will add the staging repo after merging PR.

authors: guozhangwang miguno

repo: guozhangwang/examples


text:
Token is required

I tried run the example command, but I had the next error:
`> flashscore-scraping@1.1.1 start /content/FlashscoreScraping

node src/index.js "country=brazil" "league=serie-a-2023" "headless"

file:///content/FlashscoreScraping/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js:98
configuration.experiments ??= {};
^^^
SyntaxError: Unexpected token '??='
at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! flashscore-scraping@1.1.1 start: node src/index.js "country=brazil" "league=serie-a-2023" "headless"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the flashscore-scraping@1.1.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2024-06-09T17_03_12_734Z-debug.log`

I ran the same command successfully.
What version are you currently using?
The issue might be due to an older Node.js version. Try updating Node.

repo: gustavofariaa/FlashscoreScraping

license: Unlicense


text:
Onde está os slides da Aula 04? #5

proucurei os slids da aula 04 e não encontrei, Alguém poderia atualizar para mim

Olá @GuilhermeFernandes-2003, gostaria de dizer que estou fazendo o curso de Git e GitHub em 2023 e te atualizar que este curso não possui slids da aula 04.

repo: gustavoguanabara/git-github


text:
The allow_redirects option doesn't work for sendRequest method

Guzzle version(s) affected: 7.3.0
PHP version: 8.0.7
cURL version: 7.77.0
Description
The allow_redirects client option does not work for sendRequest method.
How to reproduce
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Client;

$httpClient = new Client([
    'allow_redirects' => true
]);

$response = $httpClient->sendRequest(new Request('GET', 'https://gmail.com'));

var_dump($response->getStatusCode()); // 301

Possible Solution
Before setting the following options, check if the default options are set.
public function sendRequest(RequestInterface $request): ResponseInterface
{
    $options[RequestOptions::SYNCHRONOUS] = true;
    $options[RequestOptions::ALLOW_REDIRECTS] = false;
    $options[RequestOptions::HTTP_ERRORS] = false;

    return $this->sendAsync($request, $options)->wait();
}

Additional context

Thanks for getting in touch. This is not a bug, but the intentional behaviour. Please see https://github.com/guzzle/guzzle/issues/2584 for a detailed discussion. I think you need to use the send method, instead.

Thanks for answer. Unfortunately, I can't use the send method. I need to make a factory that will return the \Psr\Http\Client\ClientInterface with specific follow-redirects behavior.
Perhaps I need to dig deeper into the middleware mechanism to find a solution.

I think your factory is returning something that's too granular. Things that implement that shouldn't be following redirects or performing retries. That stuff happens in the layer one above that interface, and it's that next layer up that I think you really wanted, not the psr client interface. While it is possible to manhandle our middleware to still follow redirects even when the config is off, I would not recommend it - you'd be violating the interface.

There is no standard PSR interface for that next up layer, so you might as well just use the guzzle client interface. :)

authors: GrahamCampbell gladyshev

repo: guzzle/guzzle


text:
Invalid file protocol response body detection

Guzzle version(s) affected: 7.5.0
PHP version: 8.1
cURL version: 7.81
Description
Library can't correctly build response by querying local prepared page via FILE protocol.
How to reproduce
I've made simply issue reproduction in compare to plain Curl request
https://gist.github.com/Greg0/57eedb952d1de19a41b9c6f9d40b733f
Possible Solution
Issue location \GuzzleHttp\Handler\CurlFactory::createHeaderFn
When querying standard page via http protocol, every header line ends with single CRLF and there is always last plain single header line \r\n, where guzzle detects end of headers and start of body.
When querying by file protocol, last header line have double CRLF at the end (\r\n\r\n). So it is trimmed and code thinks there is no body.
https://imgur.com/URUEU7h

Guzzle does not support that protocol. Care should be taken when setting options not supported by Guzzle into curl.


text:
Throwing Exception from within promises handler doesn't stop script execution

I'm doing some integration testing with a library and use guzzle to make an async http request and noticed that my tests were always passing even when that is not expected. Through debugging narrowed down the issue to being caused by the fact that an exception thrown from a then in a promise won't stop the system from running.
In the snippet bellow for instance, I'm able to get the log in the error.log but PHPUnit never gets the exception when running the unit test. I also tried running this in isolation outside of the unit testing context and same behavior is exhibited
$promise = $httpClient->requestAsync('GET', 'http://some-api-url');

$promise->then(
    function ($response) {
        error_log('Exceptions thrown in promise do not bubble-up');
        throw new Exception('Invalid hit sent. got response: ' . $response->getBody());
    },
    function ($exception) {
        // handle HTTP request exception
    }
);

Is this behavior expected? Am I doing something wrong?
Thanks

If this is the complete code, then the behaviour is valid. You have to call ->wait() on a promise to process the callback (task) queue. Or use some aggregation functions like all().

I do call ->wait() after this bit to ensure the promise is processed. And it does get processed as later on I'm able to see the log message. My problem is that the exception does not bubble up, and thus I cannot know if there was an exception thrown or not.
Is it like within the task queue there's some sort of global error trapper?

Exceptions thrown in fulfillment callbacks reject the promise returned from then(). You must call wait() on the returnd promise.
$newPromise = $promise->then(
    function ($response) {
        throw new Exception('Invalid hit sent. got response: ' . $response->getBody());
    }
);

$newPromise->wait();

Probably I could clarify my issue with the sample bellow.
I have phpunit installed globally and guzzle installed as a library

require 'vendor/autoload.php';

use GuzzleHttp\Client;

class GuzzlePromisesTest extends \PHPUnit_Framework_TestCase
{
    /**
     * The http client
     * @var GuzzleHttp\ClientInterface
     */
    protected $httpClient;

    public function setUp() {
        $this->httpClient = new Client();
    }

    /**
     * @test
     * @expectedException Exception
     */
    public function should_trap_thrown_exception() {
        $promise = $this->httpClient->requestAsync('GET', 'https://www.google-analytics.com/debug/collect?v=1&aip=1&tid=UA-0000-00');

        $promise->then(
            function ($response){
                throw new Exception('Invalid hit sent. got response: ' . $response->getBody());
            }
        );

        $promise->wait();
    }
}

➜  tracking git:(use-guzzle-for-async-http-reqs) ✗ phpunit ~/Desktop/files/file.php
PHPUnit 5.1.3 by Sebastian Bergmann and contributors.

F                                                                   1 / 1 (100%)

Time: 1.69 seconds, Memory: 10.00Mb

There was 1 failure:

1) GuzzlePromisesTest::should_trap_thrown_exception
Failed asserting that exception of type "Exception" is thrown.

FAILURES!
Tests: 1, Assertions: 1, Failures: 1.

Note that if you navigate to the URL used in the test, you'll get a JSON response stating there are errors in the request data, but please mind the status code is 200. Meaning no "error" should be thrown by guzzle regarding the request.
However an error should be thrown from the promise handling. And that is what I expect to trap of the test
Thanks

That's exactly covered by my comment https://github.com/guzzle/promises/issues/78#issuecomment-332185411 above.
You need to wait() on the returned promise.
    public function should_trap_thrown_exception() {
        $promise = $this->httpClient->requestAsync('GET', 'https://www.google-analytics.com/debug/collect?v=1&aip=1&tid=UA-0000-00');

        $newPromise = $promise->then(
            function ($response){
                throw new Exception('Invalid hit sent. got response: ' . $response->getBody());
            }
        );

        $newPromise->wait();
    }

Ohhhh sorry ...  Didn't notice I have to wait on the new promise returned by then on the first promise.
Doing as suggested does work.
Thanks

authors: alexeyshockov dareenzo jsor

repo: guzzle/promises


text:
league\uri as a PSR's UriInterface implementation

A proposal to use league\uri package instead of the current Uri implementation. My main goal for this is to get rid of PHP's parse_url() issues with internationalized domain names (see #269 and guzzle/guzzle#2286).
It's a BC break, but has not been released yet, so IMO it's good chance for a change like this.

Couldnt we just fix the parse_url issues?

Well, is there a point in having two implementations? Seems like s good idea to reuse leagues?

@Nyholm, league/uri-parser is deprecated, league/uri should be used instead.
As @GrahamCampbell already said, my main idea is to decrease the product scope. UriInterface is already implemented (in league/uri, for example), so why does Guzzle need to maintain it's own implementation? My fix in #297 is a bit hacky and doesn't fix other bug that PHP's parse_uri() contains. And it seems that PHP's parser will stay the same because of backward compatibility.
So if we want to have a better parser for 2.x (hacks around parse_url() don't count), why would we write another one from scratch when league/uri has implemented it already?

And yes, we can use just a URI parser from league/uri, but why not take the whole URI implementation? Less code to maintain here.

authors: GrahamCampbell Nyholm alexeyshockov


text:
升级版本之后切换 nodejs 报 Cannot find version

我本地是很早就安装了vm，之后通过readme的升级命令进行了升级，现在情况如下：
$ vmr version
v0.1.6(c5e3c3b)  # 是最新的commit id

$ node -v
v14.21.3

$ vmr use nodejs@16.20.1
 SUCCESS  Switched to 16.20.1

$ node -v
v16.20.1

$ vmr use nodejs@14.21.3
  ERROR   Cannot find version: 14.21.3

$ node -v
v14.21.3

神奇的是，我把最新源码拉下来，直接执行是没有这个错误的：
$ go run cmd/vmr/manager.go u nodejs@14.21.3
 SUCCESS  Switched to 14.21.3

目前还没定位到为什么我更新了二进制之后切到14会报一个找不到，但实际有正常切过去了，这里记录一下现象。

我在MacOS下复现不了。

authors: eryajf moqsien

repo: gvcgo/version-manager


text:
Issue #13 fix - Added multi-threading

A picture is worth 1000 words, but you still should use a few -- tell me what issue you're fixing and give me a sentence to explain how.  Overall the code looks good--I gave some comments about edge cases.  You can either fix them or give some warning messages in there for others.

Because I can't git: plz merge so I can not fail. Fixes Issue #13


text:
select_view: Fix StyledString selection highlighting

Before, highlighting would break if the focused item had custom styling.
THis was because the background color of the StyledString would not
necessarily match highlighting color.
This commit overwrites StyledString background colors to the
highlighting color if the item is focused.
This closes #481 .

With the following diff applied:
diff --git a/examples/src/bin/select.rs b/examples/src/bin/select.rs
index 4099dde..4b7cf77 100644
--- a/examples/src/bin/select.rs
+++ b/examples/src/bin/select.rs
@@ -1,6 +1,8 @@
 use cursive::align::HAlign;
 use cursive::event::EventResult;
+use cursive::theme::{BaseColor, Color};
 use cursive::traits::*;
+use cursive::utils::markup::StyledString;
 use cursive::views::{Dialog, OnEventView, SelectView, TextView};
 use cursive::Cursive;

@@ -16,13 +18,13 @@ fn main() {
         // Use keyboard to jump to the pressed letters
         .autojump();

-    // Read the list of cities from separate file, and fill the view with it.
-    // (We include the file at compile-time to avoid runtime read errors.)
     let content = include_str!("../../assets/cities.txt");
-    select.add_all_str(content.lines());
-
-    // Sets the callback for when "Enter" is pressed.
-    select.set_on_submit(show_next_window);
+    for line in content.lines() {
+        select.add_item(
+            StyledString::styled(line, Color::Light(BaseColor::Green)),
+            0,
+        );
+    }

     // Let's override the `j` and `k` keys for navigation
     let select = OnEventView::new(select)
@@ -46,13 +48,3 @@ fn main() {

     siv.run();
 }
-
-// Let's put the callback in a separate function to keep it clean,
-// but it's not required.
-fn show_next_window(siv: &mut Cursive, city: &str) {
-    siv.pop_layer();
-    let text = format!("{} is a great city!", city);
-    siv.add_layer(
-        Dialog::around(TextView::new(text)).button("Quit", |s| s.quit()),
-    );
-}

Before:

After:

With the following diff applied:
diff --git a/examples/src/bin/select.rs b/examples/src/bin/select.rs
index 4099dde..4b7cf77 100644
--- a/examples/src/bin/select.rs
+++ b/examples/src/bin/select.rs
@@ -1,6 +1,8 @@
 use cursive::align::HAlign;
 use cursive::event::EventResult;
+use cursive::theme::{BaseColor, Color};
 use cursive::traits::*;
+use cursive::utils::markup::StyledString;
 use cursive::views::{Dialog, OnEventView, SelectView, TextView};
 use cursive::Cursive;

@@ -16,13 +18,13 @@ fn main() {
         // Use keyboard to jump to the pressed letters
         .autojump();

-    // Read the list of cities from separate file, and fill the view with it.
-    // (We include the file at compile-time to avoid runtime read errors.)
     let content = include_str!("../../assets/cities.txt");
-    select.add_all_str(content.lines());
-
-    // Sets the callback for when "Enter" is pressed.
-    select.set_on_submit(show_next_window);
+    for line in content.lines() {
+        select.add_item(
+            StyledString::styled(line, Color::Light(BaseColor::Green)),
+            0,
+        );
+    }

     // Let's override the `j` and `k` keys for navigation
     let select = OnEventView::new(select)
@@ -46,13 +48,3 @@ fn main() {

     siv.run();
 }
-
-// Let's put the callback in a separate function to keep it clean,
-// but it's not required.
-fn show_next_window(siv: &mut Cursive, city: &str) {
-    siv.pop_layer();
-    let text = format!("{} is a great city!", city);
-    siv.add_layer(
-        Dialog::around(TextView::new(text)).button("Quit", |s| s.quit()),
-    );
-}

Before:

After:

I think the root cause of this issue is that when converting Color to ColorStyle, the current PaletteColor::View is used as the background: code.
However, the intention is to have a transparent background, i.e. delay background color resolution until the moment of printing. In this particular case, the background color should have been PaletteColor::Highlight for selected items.
I think a real solution is to allow ColorStyle to have background and foreground colors as Option and only resolve at print time. But this diff as a workaround also works.

I think the root cause of this issue is that when converting Color to ColorStyle, the current PaletteColor::View is used as the background: code.
However, the intention is to have a transparent background, i.e. delay background color resolution until the moment of printing. In this particular case, the background color should have been PaletteColor::Highlight for selected items.
I think a real solution is to allow ColorStyle to have background and foreground colors as Option and only resolve at print time. But this diff as a workaround also works.

I finally merged the inherit_parent_color_type branch, which brings ColorType::InheritParent, which may help here.

I finally merged the inherit_parent_color_type branch, which brings ColorType::InheritParent, which may help here.

I also just updated the impl From<T> for ColorStyle implementations, so it forwards the calls to ColorStyle::front, which uses ColorType::InheritParent as background color. The net result is that specifying a single color as a style now properly leaves the background "unset", and the patched select example from the first post now works as expected.

I also just updated the impl From<T> for ColorStyle implementations, so it forwards the calls to ColorStyle::front, which uses ColorType::InheritParent as background color. The net result is that specifying a single color as a style now properly leaves the background "unset", and the patched select example from the first post now works as expected.

@gyscos thanks! Works great

@gyscos thanks! Works great

authors: danobi gyscos lnyng

repo: gyscos/cursive


text:
[de]compress_to_buffer overwrites data in Vec<u8> target buffer

Both Compressor::compress_to_buffer and Decompressor::decompress_to_buffer overwrite any pre-existing contents of the provided buffer without this being documented.
This makes it difficult to work with pre-allocated consecutive memory for more than just the (de)compression of one block and makes 0-copy use of zstd-rs in memory-sensitive workloads much more difficult.

Documentation could certainly be better for the WriteBuf trait.
Note that for Vec<u8>, the capacity is not changed when using it as a WriteBuf (this means that using Vec::new as a buffer here will never work).
Sounds like what you want is to use a Vec + offset, and only write data after this offset.
This is actually very similar to a Cursor<Vec<u8>>, so I think I may add a WriteBuf implementation for that.
It will use as buffer the space between the current cursor location and the end of the vector capacity.
fn compress(compressor: &mut Compressor, source: &[u8], target: &mut Vec<u8>) -> std::io::Result<()> {
  // Where we should start to write.
  let start = target.len();
  let mut cursor = Cursor::new(target);
  cursor.set_position(start);
  compressor.compress_to_buffer(source, &mut cursor)?;
  Ok(())
}

Note: zstd-safe now has impl WriteBuf for Cursor<T: WriteBuf> (which includes Cursor<Vec<u8>>).
It will essentially ignore data before the current position.

authors: MMeent gyscos

repo: gyscos/zstd-rs


text:
What is the deal with Chinese characters?

I noticed that many pages have Chinese characters.  For example, In the answer to 1.1-1 in https://github.com/gzc/CLRS/blob/master/C01-The-Role-of-Algorithms-in-Computing/1.1.md , I see
用到排序的应用很多，比如电商网站对商品按价格进行排序
The above is just an example. But I see many such instances in the repository. Is that intentional?

Because the owner is a Chinese :D

Because the owner is a Chinese :D

Could those be in English that anyone could use them, or could it be a complete English version?

Because the owner is a Chinese :D

Could those be in English that anyone could use them, or could it be a complete English version?

I can help this. I will do my best!
(But the owner needs to merge my PR...

repo: gzc/CLRS


text:
Simply added generated files to gitignore

Cleaner development

Added a simple fix for cmake_minimum_required deprecation warning

Closing this one since I did it agains my master branch and it has evolved


text:
The number of detected key points is oscillating

Reported by Pablo, the original author of A-Kaze.
https://gist.github.com/h2suzuki/ddc40e5913a1674ce6d9
There seems to be a standard deviation about 5% for the number of detected keypoints using the same image and different executions of your code.

The following commits should fix this issue

6616328 Fix the regression due to the overuse of std::ref()
b4de167 Fix a race condition due to "initialized" flag

The fix has been verified by the reporter, so I'm closing the issue.


text:
Rapid and Repeated: E NimBLEClient: Connection failed; status=574 Connection Failed to be Established

I'm having a difficult time connecting. There are times when I get mostly failures to connect with code 574, occasionally it works.   Other times it works the first try.  I've turned on all the nimble debugging and no other messages are printed except connect and disconnect.
What makes me think this is a bug is that the timing between the failures is sometimes not even a second, or sometimes several seconds, but always on very even 50 mS intervals, which looks like a race condition.  It's always much less than the 30 second connection timeout.
My server device is  advertising at 300 mS intervals, and on a power monitor. It's advertising behaviour is not changing at all. So it's not even starting attribute discovery. Retrying like was suggested in #140 does not always work. The percentage is just too low.

I've think I've pinned to core 0, which should be the unused one,  using this in platformio.ini
build_flags =  -DCONFIG_BT_NIMBLE_PINNED_TO_CORE=0
Using default connection parameters
Using default connection timeout.
WiFI is disabled

Why wont it connect more reliably, and why is it returning failures so quickly?
Log where Time markers are in seconds, my device is  PIXEL:
@   0.871 ScanStart
@   0.876 Found : c0:ca:96:ae:80:bb @ -91 RN4678-5221 - Reject
@   0.951 Found : fe:9e:ce:cf:38:b1 @ -88 N4REQ - Reject
@   0.964 Found : 47:43:7e:cc:07:f1 @ -64  - Reject
@   1.086 Found : 6a:d5:18:61:d5:11 @ -86  - Reject
@   1.1@   1.566 Found : 00:19:01:c0:43:c0 @ -94 YamahaAV - Reject
@   1.731 Found : a4:da:32:64:5e:d2 @ -79  - Reject
@   3.155 Found : 73:33:33:dd:31:84 @ -95  - Reject
@   5.233 Loops 89 last @   0.191 free 263104
@   8.097 Found : 00:a0:50:08:1d:0f @ -80 PIXEL Re -
@   8.097 ScanStop
@   8.125 Scan completed with 9 results
@   8.625 Connect started.
E NimBLEClient: Connection failed; status=574 Connection Failed to be Established
@  10.232 Failed to connect
E NimBLEClient: Connection failed; status=574 Connection Failed to be Established
@  13.332 Failed to connect
E NimBLEClient: Connection failed; status=574 Connection Failed to be Established
@  21.532 Failed to connect
E NimBLEClient: Connection failed; status=574 Connection Failed to be Established
@  28.532 Failed to connect
E NimBLEClient: Connection failed; status=574 Connection Failed to be Established
@  34.932 Failed to connect
E NimBLEClient: Connection failed; status=574 Connection Failed to be Established
@  37.132 Failed to connect
@  40.031 OnConnect
@  40.031 Connected to: 00:a0:50:08:1d:0f RSSI:-69
@  42.581 Discover Characteristic
@  43.731 Connect onConnParamsUpdateRequest( 80,160,4,501)
@  44.031 ConnectToServer Done.
...
@  49.131 OnDisconnected
@  49.197 ScanStart
@  49.225 Found : 47:43:7e:cc:07:f1 @ -58  - Reject
@  49.258 Found : 6a:d5:18:61:d5:11 @ -87  - Reject
@  49.507 Found : c0:ca:96:ae:80:bb @ -92 RN4678-5221 - Reject
@  49.637 Found : 70:5b:99:a4:df:c5 @ -70  - Reject
@  50.638 Found : a4:da:32:64:5e:d2 @ -79  - Reject
@  50.645 Found : 73:33:33:dd:31:84 @ -92  - Reject
@  51.021 Found : 00:19:01:c0:43:c0 @ -94 YamahaAV - Reject
@  52.673 Found : 00:a0:50:08:1d:0f @ -70 PIXEL Re -
@  52.673 ScanStop
@  52.678 Scan completed with 8 results, restarting.
@  53.178 Connect started.
E NimBLEClient: Connection failed; status=574 Connection Failed to be Established
@  56.982 Failed to connect
E NimBLEClient: Connection failed; status=574 Connection Failed to be Established
@  59.732 Failed to connect
E NimBLEClient: Connection failed; status=574 Connection Failed to be Established
@  60.632 Failed to connect
E NimBLEClient: Connection failed; status=574 Connection Failed to be Established
@  62.132 Failed to connect

Connection Code:
bool connectToServer()
{
	bool success = false, fresh = false;
	int connectretries = 10;
	static NimBLEClient *pClient; // Reuse the client if it exists.
	if (!pClient)
	{
		pClient = NimBLEDevice::createClient();
	}
	pBLEScan = NimBLEDevice::getScan();
	if (pBLEScan->isScanning()){
		pBLEScan->stop();
		while (pBLEScan->isScanning())
		{
			delay(500);
		};
	}
	delay(500);
	do
	{
		pClient->setClientCallbacks(&clientCB, false);
//		pClient->setConnectionParams(160, 160, 4, 501); // Causes many 574 erros when connecting.
//		pClient->setConnectTimeout(10); // Seems to cause connection failures?
		Serial.printf("@ %7.3f Connect started.\r\n", millis() / 1000.0);

		// Frequently fails to connect, so retry a few times.
		// workaround per library author (h2zero): https://github.com/h2zero/NimBLE-Arduino/issues/140
		while (!pClient->connect(advDevice) && --connectretries)
		{
			// CRASHES NimBLEDevice::deleteClient(pClient);
			Serial.printf("@ %7.3f Failed to connect\r\n", millis() / 1000.0);
			delay(500);
		}
		if (connectretries<1)
		{
			break;
		}

		NimBLERemoteService *pSvc = nullptr;
		NimBLERemoteCharacteristic *pChr = nullptr;
		Serial.printf("@ %7.3f Connected to: %s RSSI:%d\r\n", millis() / 1000.0,
			pClient->getPeerAddress().toString().c_str(), pClient->getRssi());

		pSvc = pClient->getService(serviceUuid);
...

Have you tried using a different esp32? some boards have crystals that aren't quite up to spec and get out of sync quickly.

Thanks for getting back, actually I made some progress.  I had these commented out in the scanner, because I did not think they were needed if using scan callbacks:
	//pBLEScan->setInterval(1349);
	//pBLEScan->setWindow(449);

So I was getting zeros.  Turns out if the window is zero, it makes it very difficult to connect.  The examples are all over the place, but after tracking it down the default esp-idf value is 16 to get 10 ms.  And if you want all the bandwidth used for BLE, the Window should be equal to the interval.
So an improvement might be to default them both to 16,  and standardize the examples.


text:
Update renault_api 0.0.3

Update renault_api 0.0.3

Close #87

Please edit the top comment to add the closes statement.

like that?

One more thing for future: create separate branches for separate PR...

repo: hacf-fr/hassRenaultZE


text:
Protobuild.exe Triggers Avira anti Virus

When I synced the most recent protobuild.exe, Avira brought up a message box saying it had detected the TR/Dropper.msil.gen Trojan.  Probably a false positive, but, seemed worth a mention.

There's unfortunately nothing I can do about this (it sounds like the
antivirus in question is a pile of junk if it's signature matches are this
broad).
It's most likely because the Protobuild executable contains another
compressed library which is decompressed and loaded at runtime.  This is
done to ensure the binary file remains as small as possible for storage in
Git repositories.

Thanks... that is what I suspected as well.  This at least is now a record that it has come up and that it is nothing to worry about.

Closing this as there's nothing to action.

authors: AxiomVerge hach-que tomspilman

repo: hach-que/Protobuild


text:
DevOps: Create Data Core Project

Create a new Spring Boot Project: Spring Initializer
Refer to this for initial requirements: REASEARCH-12
Group: com.lbibera.tradebutler
Artifact: data-core
Name: Project Alfred
Description: TradeButler Data Core
Package: com.lbibera.tradebutler.datacore
Packaging: Jar
Java: 1.8

Things to Do After Setting Up:

create a README
basic end-to-end crud
unit tests demo
integration tests demo

repo: hack-of-all-codes/project-tradebutler


text:
DragonBall-Mayank

I grew up watching Dragon Ball, so I thought of writing a script to draw Dragon Balls.
Building the code is gratifying, especially when it doesn't work as it should. Although it's my 3rd third idea I've enjoyed each building process

Thanks, Hack Club, for such an experience

Thanks for being persistent. I think we discussed this on Slack that you were going to try to make the dragon balls match the canon. I think this is close but not quite right.

I'm going to close this for housekeeping but feel free to resubmit when you are ready.

authors: innovativecreations leomcelroy

repo: hackclub/blot


text:
Brush color should stay the same when tabbing between sprites

example workflows which are made very tedious by having to constantly change your brush color every time you tab over: character animation, changing color scheme of multiple sprites
a headache to implement due to how state is divvied up though

I'm triaging issues rn & @cedric-h mentioned there was additional context on this ticket that @leomcelroy could provide

authors: cedric-h maxwofford

repo: hackclub/gamelab


text:
사전 워크샵 과제 완료 인증

제목
사전 워크샵
GitHub 프로필 URL
https://github.com/GloryCiel
GitHub 리포지토리 URL
https://github.com/GloryCiel/aspire-app-dev-in-a-day-ko
프론트엔드 앱 URL
https://webapp.purplepebble-ce536768.koreacentral.azurecontainerapps.io
백엔드 앱 URL
https://apiapp.internal.purplepebble-ce536768.koreacentral.azurecontainerapps.io
대시보드 앱 URL
https://apiapp.internal.purplepebble-ce536768.koreacentral.azurecontainerapps.io

아직 과제 제출 기간이 아닙니다! 검증앱 오류로 현재 운영 측에서 대응 중입니다. 디스코드 공지를 기다려주세요.

repo: hackersground-kr/hackers-ground


text:
Host the Demo Map on a Domain Outside of the Current GitHub Pages

Since the rebranding to HG Labs, we lost use of the previous CFG domain for Olivia's version of the demo map.
The current GitHub page URL for the demo map is https://hackgvl.github.io/open-map-data-multi-layers-demo/ , but it would be nice to have that under data.openupstate.org, or some other domain or subdomain that's not a GitHub domain.

Would something like https://map.opendata.org work?
GitHub Pages only supports sub and apex domains. It seems like a subdomain would be the easiest route here.
https://github.com/hackgvl/open-map-data-multi-layers-demo/settings/pages <-- There should be an option to specify the address here on the GHub side (alternatively we could just add a CNAME file manually), and then it'd be a matter of setting a CNAME record in the settings for the domain itself.
GitHub Pages - Configuring a subdomain
Question: If the CNAME file is present in the repo, is the existing address still active? It seems like it will be.
Answer: Yes. See https://ysoftwareab.github.io (CNAME file) and https://ysoftware.se/ This should allow for immediate implementation without risking breaking links.
Question: Where would there need to be updates to hrefs to point to the new domain across the HGVL portfolio?
Answer:

https://hackgreenville.com/labs
Others?

We have used https://data.openupstate.org/map-layers to preview the layers for years.  It's sort of a hybrid view for developers and random people who find maps through search engines.
We've never widely publicized the map layers because some of them may not be very well maintained. Plus, I'm not sure if the Greenville County iMAP layers are still being updated by the iMAP project team.
The previous version of the demo map was hosted at https://data.openupstate.org/map/preview/all-layers/dist/#/ and an old copy is still there.
We could continue with the demo map under https://data.openupstate.org or possibly another subdomain of openupstate.org
I'm not sure if HackGreenville is the best domain for it since many of the layers, like the Greenville County GIS ones, are pretty random services.
This demo map hasn't been widely promoted, so we don't have to worry much about changing the URL as far as I'm concerned.
Is hosting this on GitHub pages going to lead to limitations?   Would we be better off doing like with the Slack Bot and having GitHub build a container and then Docker deploy releases in a directory of https://data.openupstate.org ?

I think keeping with GitHub pages will box us in as far as our possible paths forwards, for sure.
The newer implementation of the demo map is bundled into static files for deployment. This would bypass the need for Docker (unless it is part of the build pipeline) to be configured for this app. I think the question will become how to get the updated bundled files onto the VPS from the continuous delivery flow. In the past I've placed an SSH to my VPS into GitHub secerts and had GitHub actions use scp to put the files on the machine. Also in the workflow I would typically use this action to execute commands on the VPS to move files into place. That's just one way of many that it could be gone about.

I think the last time the SSH appleboy conversation came up the conversation with the broader HackGreenville community may have suggested considering a pull / monitoring tool on the server end as an alternative to an SSH push from GitHub.
Drone and Argo were mentioned, though they may be more enterprise level.

Got it! I wonder if starting off with a script on a cron schedule to check for, and download, tagged releases from the repo could be a good fit. There could be a workflow bundles the app, creates a release, and then uploads the files in a .zip to the releases as an artifact that the script can occassionally query for and pull if it finds a newer release.
I don't have much personal experience with pull-based deployments, so I'll be researching the landscape in the meantime to familiarize myself with the landscape. Both Argo and Drone look very compelling! For Argo especially- has there been any desire to run these apps on a k8s cluster (even if it's a single node)?

I don't know much about k8s or the other tools, but they mostly seem like more overhead and moving parts than we'd want for these small projects.
We'll figure out more as we join up with RefactorGVL and understand the hosting budget, but no / low cost and non-enterprise are probably things we'll continue doing with these community projects.

I self-host drone, and it's more of an alternative to a CI system like github actions. We can talk more about this later, but I think for other applications deployments it'd make sense to use any of the heroku alternatives such as fly, vercel, etc.
For this application, I think the best solution would be to continue using Github pages since the application is a static page and Github pages is currently free. I host https://olivia.sculley.dev from Github pages, so there's a reference example of using Github pages with a custom domain/subdomain.
If this map progresses past the need for a static site, we could look into using some of those other hosting options, but it seems unnecessary at the current moment.

Drone looks great! I've just ordered a new SSD for my home server (my old boot drive somehow got fried) and I'd love to take it for a spin also. It looks like it could be a good fit for where things currently stand. :grin:

I didn't realize there was a difference between user/org and project pages. 😲 Something like https://data.opendata.org/open-map-data-multi-layers-demo seems to be possible.

For example, if the custom domain for your user site is www.octocat.com, and you have a project site with no custom domain configured that is published from a repository called octo-project, the GitHub Pages site for that repository will be available at www.octocat.com/octo-project.

Source
I apologize for any confusion I may have brought about.

authors: ThorntonMatthewD allella oliviasculley

repo: hackgvl/open-map-data-multi-layers-demo


text:
Update readme

Update the README.md to include

Installation instructions
Usage instructions
License
Changelog

PR open https://github.com/haensl/js-performance/pull/38

Done in v1.6.0

repo: haensl/js-performance


text:
Vocal trigger

Is your feature request related to a problem?
One of the main functions of SpeechGPT is to simulate oral conversations. It is even better than voice control for chatGPT and other similar plugins. However when I use it, I have to press the send or enter button frequently. It interrupts the natural flow of conversations, especially in Continuous Recognition mode.
Describe the solution you'd like
Add vocal triggers for sending the message such as "send it" or other personalized vocal triggers. Then SpeechGPT will create vivid conversation senarios.
Additional context
No response

Thanks for your suggestions, this feature will be considered in future updates.

repo: hahahumble/speechgpt


text:
Tracking speed

thanks for your great work.
I have a question: your tracker runs at which fps?

similar question.I use this great work for my dataset and the trakcing speed is Abnormally fast，I want to solve this question but I have no idea.

@liyn69 my problem is similar to yours，have you solved it?


text:
Failed in multiple GPU training

I could train with a single GPU, but when I try to run with multiple GPU by running dist_train.sh, the program stopped without reporting anything.
My dist_train.sh is like this:
CUDA_VISIBLE_DEVICES=0,1 nohup python3 -m torch.distributed.launch --nproc_per_node=2 --master_port 29501 train.py --launcher pytorch > log.txt&
The log.txt shows like this:
/usr/local/miniconda3/envs/pcdt/lib/python3.8/site-packages/torch/distributed/launch.py:178: FutureWarning: The module torch.distributed.launch is deprecated
and will be removed in future. Use torch.distributed.run.
Note that --use_env is set by default in torch.distributed.run.
If your script expects --local_rank argument to be set, please
change it to read from os.environ['LOCAL_RANK'] instead. See
https://pytorch.org/docs/stable/distributed.html#launch-utility for
further instructions
warnings.warn(
WARNING:torch.distributed.run:*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.

Feels like something wrong with distributed, any ideas? Thanks

Hi, @EvW1998. I also meet this question. Do you solve it?

Hi, @EvW1998. I also meet this question. Do you solve it?

I also meet this question. Do you solve it?

authors: EvW1998 vehxianfish zhaojinbiao

repo: hailanyi/VirConv


text:
internal/uidriver/glfw: Implement currentMonitorByOS on Linux or other UNIX

currentMonitor should not use the current window's position as much as possible, because this function can be accessed before the main loop, when the window position is not reliable.
Now, this always returns the primary monitor and the window always starts at the primary monitor, wherever the user is.

I will look into this and see if I can help with it.

@divVerent Hi, do you know how to get the current active monitor (without a window handler) via X protocol? Thanks,

I looked into it (ok, a bit late) , and I think we need to use the XRandR extension, and in particular the XRRGetOutputPrimary function. GLFW also uses this: https://github.com/glfw/glfw/blob/master/src/x11_monitor.c .

Thanks, but IIUC the primary display is a little different from the currently active display.
X protocol is already used at ui_unix.go so it's fine to use X protocol directly there.

Sorry to ask but what exactly is the "active" display? Is I have 2 monitors connected then what dermines this? The position of the mouse, or something else?

If it is simply the first connected screen (crtc) then we can use XRRGetCrtcInfo() and if available use the crts info at index 0 as the first "active" display.
https://github.com/liballeg/allegro5/blob/master/src/x/xrandr.c
https://stackoverflow.com/questions/13706078/xrandr-related-c-programming
Otherwise we might have to see where the mouse is with relation to the CRTC info, and perhaps the Display info as well.

The position of the mouse seems fine. (Or, the window might have an information which output it belongs to, but sometimes the window's position is not reliable)

OK I'try to implement the cursor-position way. This can be implemented only with GLFW APIs.

I'm not sure the general rule which monitor should be used when launching a GUI application, but detecting the cursor position seems general.

Yes, that's also how we seem to do it for Allegro:
See _al_xsys_mheadx_get_default_adapter in
https://github.com/liballeg/allegro5/blob/4aa54e6c994af21bc63d8b593673ab3df62390f8/src/x/xfullscreen.c

Hmm, when a cursor and a terminal is in different monitors, and you press the enter key to launch something, the app should be opened on the terminal side.

https://github.com/liballeg/allegro5/blob/4aa54e6c994af21bc63d8b593673ab3df62390f8/src/x/xfullscreen.c
XGetInputFocus seems the key, thanks

Yes, but as you can see in tha tcode we confirm it with a check with the mouse cursor position.

https://pkg.go.dev/github.com/jezek/xgb@v0.0.0-20210312150743-0e0f116e1240/xproto#GetWindowAttributesReply Screen doesn't exist in this library 😢

OK probably I can do it by myself https://gitlab.freedesktop.org/xorg/lib/libx11/-/blob/master/src/GetWAttrs.c#L130-139

It is also missing in xproto, so I reported it: https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/issues/21.
Meanwhile we I guess might have to think of a different way...

You are right, actually _XGetWindowAttributes doesn't get this from X11 but determines it itself by looping over the available screens in the display. I'll close that issue again.

You may have to make a few X requests, actually, to get the root, including https://pkg.go.dev/github.com/jezek/xgb@v0.0.0-20210312150743-0e0f116e1240/xproto#GetGeometry .

I think it depends a lot on what you mean by current monitor.
E.g. which monitor a fullscreen window ends up on is not clearly defined (_NET_WM_STATE_FULLSCREEN does not let you select a specific monitor, and neither does the spec say which one to use).
However, and this may be very relevant if this is for ScreenSizeInFullScreen() - GLFW actually can pass a second hint: _NET_WM_FULLSCREEN_MONITORS to do request a specific one. GLFW does this when window->monitor is set.
My personal preference is "same monitor the mouse cursor is on", but then of course Ebiten will also have to make sure to actually create its fullscreen windows on that screen. However, IIRC this is a preference that may differ for people and window managers may have configuration for this. IIRC the only "proper" way to say "which screen should a new window appear on" is actually creating the window and checking what happened. And indeed, "same monitor as the currently focused window" is just as valid, and querying _NET_WM_ACTIVE_WINDOW will usually be a better way to do this, although not all window managers support this (so you'll need the XGetInputFocus-and-then-walk-upwards-towards-root way anyway).
Now, checking in Ebiten source what we actually use currentMonitorByOS for... it appears to be used only to find the monitor the current window is on. So this shouldn't use mouse cursor or anything, but "some coordinate" of the window, if it's already been fully created (heuristics like focus or mouse position however make sense before we have a real window).
X11 does in general not know what a monitor is, and e.g. does not prevent windows from spanning multiple monitors. I would even say that getMonitorFromPosition is the correct way on X11. Multiple-monitor support is usually implemented at window manager level, using XRandR to query information about the monitors and to then limit window placement to prevent them from spanning monitors and to make sure maximizing fills a monitor entirely etc.

IIRC the only "proper" way to say "which screen should a new window appear on" is actually creating the window and checking what happened. And indeed, "same monitor as the currently focused window" is just as valid, and querying _NET_WM_ACTIVE_WINDOW will usually be a better way to do this, although not all window managers support this (so you'll need the XGetInputFocus-and-then-walk-upwards-towards-root way anyway).

Thanks. Yes, what I want is to know which monitor a new window is created. Ebiten has a transparent window before the main loop, so getting the root window from the window might work (GetGeometry) but I'm not sure. _NET_WM_ACTIVE_WINDOW seems also the way to go. Even this is not supported, that's fine, we can use the primary monitor as a fallback.

(so you'll need the XGetInputFocus-and-then-walk-upwards-towards-root way anyway).

My understanding is there is one root window and the root window includes all the monitors. Actually, videoModeScaleUncached now gets the default root window and iterates the CRTC information. Is this correct, or does this depend on window managers?

The times when people on X11 had multiple root windows are over. That is
from the early beginnings of multiscreen, when one ran a separate window
manager on each monitor using displays like :0.0, :0.1 etc. - and even for
that, Ebiten basically can assume there is just one monitor, as it will not
even have access to anything else.
Let's not worry about that. After that Xinerama and finally XRandR came
along to do it in a better way, actually allowing interaction and moving
windows between screens. And yes, with those you have exactly one root
window spanning all monitors, and it is the window manager's job to ensure
non-stupid window placement.
The walking upwards is needed for another reason - XGetInputFocus may
return a subwindow and you probably want the closest child to root, so you
walk up to root then take the last non root window on the path.
On Wed, Sep 22, 2021, 23:39 Hajime Hoshi @.***> wrote:

(so you'll need the XGetInputFocus-and-then-walk-upwards-towards-root way
anyway).
My understanding is there is one root window and the root window includes
all the monitors. Actually, videoModeScaleUncached now gets the default
root window and iterates the CRTC information. Is this correct, or does
this depend on window managers?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hajimehoshi/ebiten/issues/1119#issuecomment-925484176,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB5NMGNQJVGX2C5WIKR2P3UDKOQTANCNFSM4LVT6TKQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

On Wed, Sep 22, 2021, 23:19 Hajime Hoshi @.***> wrote:

IIRC the only "proper" way to say "which screen should a new window appear
on" is actually creating the window and checking what happened. And indeed,
"same monitor as the currently focused window" is just as valid, and
querying _NET_WM_ACTIVE_WINDOW will usually be a better way to do this,
although not all window managers support this (so you'll need the
XGetInputFocus-and-then-walk-upwards-towards-root way anyway).
Thanks. Yes, what I want is to know which monitor a new window is created.
Ebiten has a transparent window before the main loop, so getting the root
window from the window might work (GetGeometry) but I'm not sure.
_NET_WM_ACTIVE_WINDOW seems also the way to go. Even this is not
supported, that's fine, we can use the primary monitor as a fallback.

I guess that is OK, but even that is only approximate.
Especially tiling window managers (and Wayland tiling compositors like
Sway) allow defining in a config file which window gets to which screen
regardless of mouse position or focus. Usually defined based on window
class names or title.
So basically, for windowed mode one cannot predict at all. For fullscreen
mode, as I wrote above, you kinda can - you can request a specific monitor,
and then assume that is the one you will get.
And yes, this is kinda bad if you want to use the device scale factor of
the monitor before creating a window so you know which size to request -
basically a chicken/egg problem. The good news is that X11 only supports
global scale (via Xft.dpi); the only thing that varies per monitor is the
final scale from framebuffer to screen, which you set using XRandR, but you
do not need that to compute a desired window size.
Of course, this is something Wayland solves better, by allowing XRandR-ish
scaling but unlike X11, allowing native-DPI surfaces on it. But in
particular XWayland does not support that, so anyone using this will look
like LoDPI to X11 apps.

Now I've succeeded to get a correct position from an initial window, I can de-prioritize this task. (A hidden window just after creation always had (0, 0) position, and this was the problem. After showing and hiding it once, it has a correct position. Ha! See https://github.com/hajimehoshi/ebiten/commit/77664ff0575c8f51e1ba5cd3604a57808fbf95f4 for more details)

So basically, for windowed mode one cannot predict at all.

Hmm ok. Thank you for elaborating. Apparently there is no silver bullet there.
Currently Ebiten has a fallback to detect a monitor from the window position, and this might be already enough.

Integrated into #1982

Oops this is different from initialMonitorByOS

authors: beoran divVerent hajimehoshi

repo: hajimehoshi/ebiten


text:
When will all the code be released?

Thanks for your great work!
BTW, there is nothing except Readme.md on this repository.
Is there a specific date when all codes will be released?

Will release by May. Reorganizing the code now.

Thank you for checking out

@haleqiu
I got it. Thanks for your reply. 👍

sorry for being late on the reorganizing. Will release the data first. If you want to access the beta version, feel free to contact me through email.

@haleqiu
Thanks for your reply.
The code is not urgently needed, so I will check it when it is committed to GitHub.  :)

repo: haleqiu/AirDOS


text:
It doesn't update old code text values from files at startup.

Lets say, We wanted to change text message of a code to different value. It doesn't update them automatically at startup.

there is some in memory caching. If you look at the code you should find
how to clear that cache after making a change.
On 20 October 2016 at 05:02, Sachin Verma notifications@github.com wrote:

Lets say, We wanted to change text message of a code to different value.
It doesn't update them automatically at startup.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/halfbaked/grails-localizations/issues/24, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AADTJp-jLg33aVrBiVoZJm4ciM9VCirHks5q1tm6gaJpZM4KbrCp
.

@halfbaked No not caching issue. It's related to DB side entries data update from message.properties when a already added message.properties code text has been updated in the file but not syncing the DB.

@halfbaked Thats something i needed to call Localization.reload(). I got that later. Its just to let everyone know as well.

authors: halfbaked vsachinv

repo: halfbaked/grails-localizations


text:
The other player can't see the bullet

why The other player can't see the bullet self can

Hi! I'm also running into this issue. I'd like to try to fix it. Any ideas what may be causing this? @halftheopposite  @LukeWood

Really not sure honestly.  maybe a colyseus API changed with a major version?

Ah I found it. Issue with the bullet re-use on server side. I’ll PR a fix when I can :)

On Mar 9, 2022, at 1:26 AM, Luke Wood @.***> wrote:

Really not sure honestly. maybe a colyseus API changed with a major version?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.

@tabakd That'd be great if you can fix it and submit a PR 👍

@tabakd Could you post a quick fix here in the meantime? I'm able to get it working if I comment out the bullet recycling code on the server-side so it only pushes new bullets, and also if I just push the recycled bullet onto the existing bullets array. But if I delete the bullet from the array and re-push, no go. My guess is Colyseus isn't detecting the array change because it thinks it is the same item, and could probably fix it by adding a new ID like this monsters array does for new entries

So ?

@tabakd Could you post a quick fix here in the meantime? I'm able to get it working if I comment out the bullet recycling code on the server-side so it only pushes new bullets, and also if I just push the recycled bullet onto the existing bullets array. But if I delete the bullet from the array and re-push, no go. My guess is Colyseus isn't detecting the array change because it thinks it is the same item, and could probably fix it by adding a new ID like this monsters array does for new entries

That sounds like a plausible fix. I simply disabled the bullet re-use logic for my purposes but can look into fixing it.

@tabakd I think this is roughly what you had in mind.

It is actually happening since Bullet.reset method in server can trigger neither onAdd, onRemove nor onChange event from Colyseus server. I don't know why Bullet instance has to be remain inactive without destroying them. But #62 fixes it without too much hassle.

repo: halftheopposite/TOSIOS


text:
RangeSlider Doesn't Appear On iOS

IMPORTANT
RangeSlider Doesn't Appear On iOS but Appear in android
If you are reporting a bug and want it to be fixed as soon as posible don't forget to provide a sample project.

No information provided.

authors: AhmedAdelGadElkareeem halkar

repo: halkar/xamarin-range-slider


text:
Introduce an option to reverse hotbar scrolling

Since this mod changes the hotbar scrolling to be consistent with the rest of macOS, it ends up scrolling in the other direction. Some people are not used to this and would like an option to change the hotbar scrolling direction. This will be introduced in an upcoming version, you can add notifications to this issue to stay up-to-date about its progress.

GameParrot did some work with these Minecraft/macOS issues before, maybe you can collaborate?

@GameParrot 's ones require replacing native binaries, whereas mine doesn't (which is very intentional). Maybe we could recommend each other's mods and he could remove his fix for MC-121772 so it doesn't interact badly with mine (which it probably doesn't, idk). We also may be able to incorporate his other mouse fix into this mod (MC-145948), but I've never experienced this so I wouldn't know if I'd actually fixed it or not. Also I just discovered MC-122296 which my mod fixes too lol, I'll have to add that to the list.

I'm strictly a user, to say my knowledge of programming is minuscule would be giving me credit. That said, GameParrot's mod did fix, I believe, 6 MC-XXXXXX issues, would it be possible to put all of those in your mod?

The issue is that my mod is done through java and a custom native library, whereas his modifies preexisting native files, meaning the fixes are quite different.

Implemented in version 1.1


text:
⚠ ClamAV has degraded performance

In 48c6da0, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 197 ms

Resolved: ClamAV performance has improved in b590f09 after 5 minutes.

repo: hamboneZA/caffeine


text:
⚠ ClamAV has degraded performance

In 385c033, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 96 ms

Resolved: ClamAV performance has improved in 872fd93 after 16 minutes.


text:
⚠ PostgreSQL has degraded performance

In 3ba13b8, PostgreSQL (https://news.ycombinator.com) experienced degraded performance:

HTTP code: 200
Response time: 5510 ms

Resolved: PostgreSQL performance has improved in ba64780 after 7 minutes.


text:
⚠ ClamAV has degraded performance

In b711ac5, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 249 ms

Resolved: ClamAV performance has improved in d1bbd96 after 5 minutes.


text:
⚠ ClamAV has degraded performance

In 9cc7738, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 492 ms

Resolved: ClamAV performance has improved in 184be76.


text:
⚠ ClamAV has degraded performance

In b5d1b52, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 207 ms

Resolved: ClamAV performance has improved in 2382e73.


text:
⚠ ClamAV has degraded performance

In c284dc0, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 495 ms

Resolved: ClamAV performance has improved in db99399.


text:
⚠ ClamAV has degraded performance

In 38524f9, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 67 ms

Resolved: ClamAV performance has improved in 2d79a55.


text:
⚠ ClamAV has degraded performance

In 7cf05f2, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 192 ms

Resolved: ClamAV performance has improved in 1df1dfc.


text:
⚠ ClamAV has degraded performance

In 4212e05, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 223 ms

Resolved: ClamAV performance has improved in 342e339.


text:
Matcher.matches needs to have parameterized argument

Generics are hard to understand and a wonderful thing after you did. Roughly speaking, the description
public interface Matcher<T> extends SelfDescribing {

    /**
     * Evaluates the matcher for argument <var>item</var>.
     *
     * This method matches against Object, instead of the generic type T. This is
     * because the caller of the Matcher does not know at runtime what the type is
     * (because of type erasure with Java generics). It is down to the implementations
     * to check the correct type.
     *
     * @param actual the object against which the matcher is evaluated.
     * @return true if <var>item</var> matches, otherwise false.
     *
     * @see BaseMatcher
     */
    boolean matches(Object actual);

shows that generics have not been understood by the author.

This is because the caller of the Matcher does not know at runtime what the type is (because of type erasure with Java generics)

The opposite (almost) is the case. If you specify a Matcher (without generics) as static type the matcher doesn't know the type at runtime - how could it. If you specify a Matcher<SomeType> you either

are accessing it at least once as Matcher and might get ClassCastExceptions, but also an unchecked conversion or rawtypes warning which you shouldn't take easy in Java - roughly speaking you get what you deserve or
you use Matcher<SomeType> everywhere you don't get warning or compilation errors the Matcher knows exactly which type the argument is at runtime.

2. allows to write awesome cast- and type-check-free code in Java and 1. allows you to do what you want by omitting the generic type on static type of callers, but still be able to enforce maximum type safety in interfaces and thus allow others to stick with 2..
It makes sense that the parameter is not used if you don't use it in matches.
Once this is fixed the type-safety could be expanded to factory methods like public static org.hamcrest.Matcher<java.lang.Object> anything() in Matchers which could be public static <T> org.hamcrest.Matcher<T> anything() invoking
public static <T> Matcher<T> anything(String description) {
    return new IsAnything<>(description);
}

Since getting a Matcher<Object> if you could have a Matcher<T> with no harm done to any other user is slightly painful.
I'm willing to submit a PR if you ok it.

Thanks for contributing. Please see the pull request message.
One point to make is that we're very picky about our mismatch descriptions because matchers are used in other situations than unit tests. It's a conscious design choice not to just let things fail.

repo: hamcrest/JavaHamcrest


text:
Sample Sets: No restrictions on naming or colours of sample sets

Sample sets can be named the same thing (and have the same colour). This is not inherently a problem as there are sample set ids, but can be confusing.

As the number of available colors is limited, we decided to allow repeats of colors (only once all colors have been used)

authors: Ambivalentalfa hannamlmv

repo: hannamlmv/tseda


text:
播放歌曲口令支持模糊搜索

做成可配置选项，口令为播放歌曲+搜索词，播放匹配的第一个。

v0.1.77 版本支持模糊搜索

模糊匹配默认打开，如果想关闭可以把 XIAOMUSIC_ENABLE_FUZZY_MATCH 设为 false。如下:
services:
  xiaomusic:
    image: hanxi/xiaomusic
    container_name: xiaomusic
    restart: unless-stopped
    ports:
      - 8090:8090
    volumes:
      - ./music:/app/music
    environment:
      MI_USER: '小米账号'
      MI_PASS: '小米密码'
      XIAOMUSIC_ENABLE_FUZZY_MATCH : 'false'
      XIAOMUSIC_HOSTNAME: 'docker 主机 ip'

如果想要修改匹配阈值，可以设置 XIAOMUSIC_FUZZY_MATCH_CUTOFF ，这个值默认为 0.6，可以配0到1直接的小数，越小越模糊，越大越精准。比如：
services:
  xiaomusic:
    image: hanxi/xiaomusic
    container_name: xiaomusic
    restart: unless-stopped
    ports:
      - 8090:8090
    volumes:
      - ./music:/app/music
    environment:
      MI_USER: '小米账号'
      MI_PASS: '小米密码'
      XIAOMUSIC_FUZZY_MATCH_CUTOFF : '0.3'
      XIAOMUSIC_HOSTNAME: 'docker 主机 ip'

repo: hanxi/xiaomusic


text:
[Question] Why I got nothing when I tested my lora finetune model

Question
1.I  use finetune_lora to finetune the model for 3 epochs, and I modified the save code to ensure every epoch will save non_lora_trainable.bin
2. I merge lora weight for every epoch
3. I tested on model_vqa but my output tensor is null

Are your projector weights changing after every epoch?

authors: Vignesh-Valaboju wuwu-C

repo: haotian-liu/LLaVA


text:
Closes #115: Atom no longer mandatory

Clarify that the chunk in which atoms are stored is either Atom or AtU8, depending
on the source file encoding.

Yes, Thanks. The code example should also be updated at some point.

authors: happi ramkumarr

repo: happi/theBeamBook