text:
bug: incorrect value after toggle

General information

Library version: 2.0.0
Browser and OS: Chrome,Firefox,Safari (latest) on MacOS 10.14.5

Issue description
Bug can look at https://braintree.github.io/restricted-input/
Steps

I enter the value (4111111111111111) in field Card Number (toggle-able)
I press the button toggle twice
and get the formatted value one less character 4111 1111 1111 111

This is expected, as the pattern it toggles to has 15 characters instead of 16 characters. When the input starts at 16 characters and then is restricted to 15 characters, it makes sense that the final character would be cut off when toggled back.
This particular example is emulating a toggle between a non-American Express card (which usually has 16 digits) and an American Express card (which only has 15 digits).

Your truth, but I noticed another mistake while trying to understand the reasons for this behavior. this can be seen on my demo page There you may notice that I obviously change the value of the element
function setUnionpay() {
  element.value = data.unionpay.value;
  formattedCreditCardInput.setPattern(creditCardGapsPattern(data.unionpay.gaps, data.unionpay.lengths));
}

function setAmex() {
  element.value = data.amex.value;
  formattedCreditCardInput.setPattern(creditCardGapsPattern(data.amex.gaps, data.amex.lengths));
}

then the unformat method does not take into account the characters used in the pattern.
I created a PR where there is a playback test

@crookedneighbor tagging you just in case you don’t see this, otherwise.

authors: Scrum crookedneighbor

repo: braintree/restricted-input


text:
Create new chat from template does not work everywhere

The Create new chat from template command does not show up when the welcome page or canvas is open. It only seems to appear inside of markdown files.
Steps to reproduce:

Open a new Tab
Welcome page appears
Try to invoke the command

I agree, it is caused by editorCallback which exists in arbitrary places in the code. It may be a small change, but I'd have to test it doesn't break anything downstream. Thank you for the PR btw!!! :)

Sure thing! Yes do that, I already tested it though

source: gharchive/issue

authors: bramses lukemt

repo: bramses/chatgpt-md

license: MIT

license_type: permissive

license_source: github-api


text:
Add LUT for LIFX Mini C

Measured via TP-Link KP125

Was unsure whether to call this "Mini C", or "Color E26", but my Lifx app called the model "Mini C".

@bramstroker how should I deal with the watts being below 0.01? Can I find and replace anything below that to 0.01?

@bramstroker how should I deal with the watts being below 0.01? Can I find and replace anything below that to 0.01?

The line numbers should be in the github action report. You can remove these lines or put in a value by looking at the nearby values and do your best guess.
Also the first two lines in CSV are wrong. They have really high values (not sure what could have caused this).
The standby power is also 0.0, that should be corrected as well. You could try measuring that again manually with your smartplug. Most smart plugs have troubles measuring values lower than 0.3 watt, so this could also be the case with your plug.

Thanks for the contribution btw.
The .csv file can be removed, only .csv.gz needs to be included

Could you also have a look into config/.storage/core.device_registry file? We are interested in model there for this LIFX light. Than we can see how to name the model directory to make auto discovery work correctly.

config/.storage/core.device_registry

Manufacturer: lifx
model: LIFX Mini Color
sw_version: 3.60
hw_version: null
I'll make the changes to the model.

The .csv file can be removed

The standby power is also 0.0, that should be corrected as well.

Got it, will do

@bramstroker Ready :)

Powercalc tries to match the discover model ID, in your case "LIFX Mini Color" to the directory name in the data directory. So you need to rename the directory from "LIFX Mini C" to "LIFX Mini Color".
There is also a possibility for aliases here: https://github.com/bramstroker/homeassistant-powercalc/blob/master/custom_components/powercalc/const.py#L140. This is not needed for this light, but it's good to know for future contributions ;-)

Changed the directory name

Looks good now!

Oh, I had no idea that this needs to match built in modes, I thought lut was just a more refined version of color_temp. I will measure and add this.
I wonder if theres a way to infer color_temp from lut.

Oh, I had no idea that this needs to match built in modes, I thought lut was just a more refined version of color_temp. I will measure and add this. I wonder if theres a way to infer color_temp from lut.

We can not infere values from hs, as color temp are completely other leds (not a mix of rgb colors). When a light supports both hs and colortemp modes measure script has to be run twice for each mode. Color temp will only take an hour.

source: gharchive/pull-request

authors: bramstroker jacobdonenfeld

repo: bramstroker/homeassistant-powercalc


text:
Rework Exports

Allow several exports, to reduce bundle size of those who consume this package.

Landed in https://github.com/bramus/js-specificity/commit/4afe04d6fa668268dda2051a3b4cbe67f70e9321, but I'm wondering if I'm doing it correctly: Do I export the src/index.js or the built dist/index.esm.js? Or doesn't it make any difference?

Finalized in https://github.com/bramus/js-specificity/commit/dedcde88d3c0292adf72724eff574bb7a0a21255: export the dist module.
Also fixed CJS export https://github.com/bramus/js-specificity/commit/30d9e5845c0f3cda7a83460b064630c37a1063b4

repo: bramus/js-specificity


text:
Metro bundler should not watch src folder

Metro bundler is currently watching src folder and will trigger a live-reloading event when there is a ts file being saved. However, we are expecting the event to be only fired after tsc watch compiled src to dist. This conflict causes inconsistency between src and dist until the user saves the file again.
Need to exclude the src folder or only watch dist folder, whichever is more appropriate

since metro bundler supports typescript source files,  all we need to do is (pirateship and actual projects):

not emitting dist folder in tsconfig
set entry point to import src instead of dist folder
And the issue above can be fixed

authors: VanceHubb vancehu

repo: brandingbrand/flagship


text:
Allow ember-prism to be used by other addons

This change allows addons to make use of ember-prism in their own components (with a bit of elbow grease from the author). It contains small refactorings to expose two functions, installPrismBowerPackage and importPrismSources, to allow consuming addons to pull Prism into their host applications. This follows a similar form-factor to the solution used by ember-tether.
I pulled the definition of those two functions off of their owning objects to reinforce for the authors of any future changes that they're now "public", but can move them back inline if you'd prefer.
The change as a whole just amounted to some refactoring and documentation. Apps using ember-prism today should see no difference.
Note: one acceptance test (Acceptance | CodeBlock: has `line-numbers` plugin) is failing, but that also seems to be the case on master.

Ping @brandonjmckay – anything I can do to help clarify on this?

Cool, thanks. Just got back from vacation. I'll try to check this out this week.
I may have some questions about it.

:+1: Thanks!

@brandonjmckay Not urgent, but when you have a chance could you publish a new release to NPM to capture these changes?

authors: brandonjmckay dfreeman

repo: brandonjmckay/ember-prism

license: mit

license_source: bigquery


text:
🛑 Dev Charite gateway-iop-connection is down

In cb92718, Dev Charite gateway-iop-connection (https://dev-ids.health-x.charite.de/health/4) was down:

HTTP code: 500
Response time: 178 ms

Resolved: Dev Charite gateway-iop-connection is back up in dd37bc2 after 19 minutes.

repo: braunma/dataloft-endpoint-monitor


text:
Support APK ABI Splits

Thanks for the library, it works really well!
According to what I understand abi splits for APKs (https://developer.android.com/studio/build/configure-apk-splits) is not supported for this library as the binaries are included in the assets directory. Can you think of any way to support apk splits?

Yes you can still reduce the APK size. You can read about it in the wiki.

Damn, sorry I missed that. Maybe it'll be a good idea to reference this in the Readme.

authors: Brianvdb jonasbark

repo: bravobit/FFmpeg-Android


text:
fix(openapi): add migration to change 'trigger_properties' to object

What is the motivation for this pull request?
fix(openapi): add migration to change trigger_properties to object
Relates to https://github.com/braze-community/braze-php/issues/37
What is the current behavior?
trigger_properties is string
What is the new behavior?
trigger_properties is object
Checklist:

[x] Conventional Commits
[ ] Tests
[ ] Documentation

Release:

https://github.com/braze-community/braze-specification/pull/48#issuecomment-1867418308

repo: braze-community/braze-specification


text:
ReferenceError on Travis CI Build (Node 11.x)

I'm getting the following error at the Node v11 Travis CI build:
> npm run build

> @brazilian-utils/brazilian-utils@1.0.0-rc.12 prebuild /home/travis/build/LucasCarrias/brazilian-utils

> npm run update-cities

> @brazilian-utils/brazilian-utils@1.0.0-rc.12 update-cities /home/travis/build/LucasCarrias/brazilian-utils

> node scripts/getCitiesFromIBGE.js && prettier --write ./src/common/cities.ts

/home/travis/build/LucasCarrias/brazilian-utils/node_modules/prettier/index.js:35440

var queueMicrotask_1 = typeof queueMicrotask === 'function' ? queueMicrotask.bind(globalThis) // reuse resolved promise, and allocate it lazily

ReferenceError: globalThis is not defined

    at Object.<anonymous> (/home/travis/build/LucasCarrias/brazilian-utils/node_modules/prettier/index.js:35440:83)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)
    at Function.Module._load (internal/modules/cjs/loader.js:620:12)
    at Module.require (internal/modules/cjs/loader.js:723:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/home/travis/build/LucasCarrias/brazilian-utils/node_modules/prettier/bin-prettier.js:131:18)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)

This error seems to be triggered by the prettier --write ./src/common/cities.ts call.
One possible workaround is to update the .travis.yml Node build versions to the same versions as the GitHub's Workflows build.yml Node version. As far as I've checked, Node 10.x doesn't breaks the Travis build.

Closed by #242

authors: LucasCarrias hyanmandian

repo: brazilian-utils/brazilian-utils


text:
[bug] tests aren't 100% working

It seems like there's a timezone offset issue with running the tests versus the original author's timezone (which are hardcoded).  There might be other issues too, e.g. with the original codebase.  I did notice one major issue which I thought stood out, search for "TODO" in the src/index.js file to see the comment.

Does later take into consideration timezones? Or is it just set to the hardcoded ones like you mentioned above?

It seems like this fork of later is the culprit behind the issues found in https://github.com/breejs/bree/issues/29.

Something went wrong with my fork, I'm going to spend a little time here trying to figure it out... If you see anything let me know.

I got it figured out, will release shortly.

This is now resolved as of v4.0.0.  I am also releasing a new version of bree now.

authors: jdalrymple niftylettuce

repo: breejs/later


text:
Unable to process SQS events

Using Laravel 7 and the php 7.4 layer.
I have setup a worker.php and made the changes to the serverless.yml file. I am able to write to the SQS queue, but when the lambda tries to process the event, I am seeing this error message:
This handler expected to be invoked with a API Gateway or ALB event. Instead, the handler was invoked with invalid event data.
"stack": [
"#0 /var/task/vendor/bref/bref/src/Event/Http/HttpHandler.php(20): Bref\Event\Http\HttpRequestEvent->__construct()",
"#1 /var/task/vendor/bref/bref/src/Runtime/LambdaRuntime.php(107): Bref\Event\Http\HttpHandler->handle()",
"#2 /opt/bootstrap(35): Bref\Runtime\LambdaRuntime->processNextEvent()",
"#3 {main}"
]
It seems to me that the API handler is trying to process the event, not the SQS handler.

Yes, you most likely have an error in your serverless.yml. It's not possible to help further without more details, feel free to share.

@mnapoli
Here is what I have in my yml file

I created the SQS manually and placed the ARN in there. The lambda trigger successfully attaches to the queue, it almost looks like the bridge does not pick it up, the other router does.
In the error message above, I can see the entire queue item that it's trying to process.
I am testing using queue able emails.

The worker function should not have the -fpm runtime, it should run with the php-74 (function) runtime instead. You can find a full example in the readme.

authors: hesomApptega mnapoli

repo: brefphp/laravel-bridge


text:
User badges for core php-src maintainers

Some users' opinion on internal technical matters might weigh heavier than others. :) If I say "generics is possible to implement in the PHP engine" it doesn't mean much, because I'm not a core php-src maintainer. To highlight technical expertise during discussions, some users could have verified badges next to the user name, like "core PHP maintainer". Other labels might be relevant too, for framework maintainers, extension maintainers, people with voter rights, etc.
This is similar to certain subreddits where users can be verified as professional doctors or historians.
The user should probably be able to change which verified label to show or hide at any point.

I think this is a great idea. I guess that some of this validation steps can also be automated in some ways, like framework maintainers there has to be some ways to get this info from github api.
As I'm thinking more about this, I fee that we do need to implement some sort of validation process and have some sort of verified badge, think of it as a general validation badge and I think it can be easily implemented.
What if we consider github as some sort of verification processor, what I mean by that is that any user registered with github it is automatically validated/verified, users who registered through the web form have a button somewhere to link their account with github.
I think in the end, what I'm saying is that users will not be able to just simply paste a link to a github profile, they actually have to link their account with github, in this way I know for sure that the user actually owns that github account.

Verifying with GitHub was actually the exact idea I was thinking about as well. I'm gonna focus on the special badge case first, and then work in automation.

TODO:

[ ] Finish the TODO paragraph in the profile form
[ ] Style the flair itself
[ ] Maybe we need predefined flair color sets for foreground and background, so that you don't have to pick a random hex

We need to restyle this

@SerhiiCho do you have any input?

I would have been nice instead of adding flair and flair_color columns, add flairs table with all the needed flairs data. Also flair_user table to connect user and flair. I would have been better in the long run.
Because if we change flair color, we'll need to change this color for every user that already have flair_color assigned to them.

Great idea. Maybe it's ok to keep them in an enum though? I don't think we need to make them dynamic, as there will only be a handful of flair types in total.
Do you perhaps also have an idea about how we can style flairs in the argument cards?

Do you perhaps also have an idea about how we can style flairs in the argument cards?

Yeah, I would personally go for colorless version like this:

I don't think that if user is admin or contributor to PHP source needs to be associated to some color

Makes sense, I like it! Do you want to submit a PR?

It's done :)
For now, admins, contributors and internals can apply for a badge.

Hooray!

authors: SerhiiCho brendt olleharstedt vsergiu93

repo: brendt/rfc-vote


text:
empty nanmedian segfaults on Vector{Float64}

julia> using NaNStatistics

julia> nanmedian([])
┌ Warning: #= /Users/andy/.julia/packages/NaNStatistics/TKMwf/src/Sorting/quicksort.jl:5 =#:
│ `LoopVectorization.check_args` on your inputs failed; running fallback `@inbounds @fastmath` loop instead.
│ Use `warn_check_args=false`, e.g. `@turbo warn_check_args=false ...`, to disable this warning.
└ @ NaNStatistics ~/.julia/packages/LoopVectorization/JLuqo/src/condense_loopset.jl:1148
ERROR: MethodError: no method matching float(::Type{Any})

julia> nanmedian(Int[])
NaN

julia> nanmedian(Float64[])

[80496] signal (11.2): Segmentation fault: 11

julia-1.9.0-beta3+0.aarch64.apple.darwin14

Thanks for the report! Should be able to put in a fix for this pretty quicly

awesome, thanks!

https://github.com/JuliaRegistries/General/pull/76218 should have the fix, once that gets merged

authors: adienes brenhinkeller


text:
Can't access it remotely

The problem
I can't access it remotely on my phone outside of my house or in the house when I don't connect to wifi.
What version of Cloudflared has the issue?
4.2.1
What was the last working version of Cloudflared?
No response
What type of installation are you running?
Home Assistant OS
Add-on YAML Configuration
external_hostname: wi***b.ml
additional_hosts: []
tunnel_name: homeassistant

Anything in the logs that might be useful for us?
-----------------------------------------------------------
 Add-on: Cloudflared
 Use a Cloudflare Tunnel to remotely connect to Home Assistant without opening any ports
-----------------------------------------------------------
 Add-on version: 4.2.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.3  (amd64 / qemux86-64)
 Home Assistant Core: 2023.7.2
 Home Assistant Supervisor: 2023.07.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[09:05:20] INFO: Checking add-on config...
[09:05:20] INFO: Checking for existing certificate...
[09:05:20] INFO: Existing certificate found
[09:05:20] INFO: Checking for existing tunnel...
[09:05:20] INFO: Existing tunnel with ID d05258aa-****-****-****-********* found
[09:05:20] INFO: Checking if existing tunnel matches name given in config
[09:05:21] INFO: Existing Cloudflare Tunnel name matches config, proceeding with existing tunnel file
[09:05:21] INFO: Creating config file...
[09:05:22] INFO: Validating config file...
Validating rules from /tmp/config.json
OK
[09:05:22] INFO: Creating DNS entry wi***b.ml...
2023-07-21T06:05:23Z INF wi***b.ml is already configured to route to your tunnel tunnelID=d05258aa-****-****-****-********
[09:05:23] INFO: Finished setting up the Cloudflare Tunnel
[09:05:23] INFO: Connecting Cloudflare Tunnel...
2023-07-21T06:05:23Z INF Starting tunnel tunnelID=d05258aa-****-****-****-********
2023-07-21T06:05:23Z INF Version 2023.7.1
2023-07-21T06:05:23Z INF GOOS: linux, GOVersion: go1.19.6, GoArch: amd64
2023-07-21T06:05:23Z INF Settings: map[config:/tmp/config.json cred-file:/data/tunnel.json credentials-file:/data/tunnel.json loglevel:info metrics:0.0.0.0:36500 no-autoupdate:true origincert:/data/cert.pem]
2023-07-21T06:05:23Z INF Generated Connector ID: 760c6c3b-****-****-****-********
2023-07-21T06:05:23Z INF Initial protocol quic
2023-07-21T06:05:23Z INF ICMP proxy will use 172.30.33.4 as source for IPv4
2023-07-21T06:05:23Z INF ICMP proxy will use :: as source for IPv6
2023-07-21T06:05:23Z INF Starting metrics server on [::]:36500/metrics
2023-07-21T06:05:24Z INF Registered tunnel connection connIndex=0 connection=125a2db3-05df-4c43-9404-5b7cd5d3ae9b event=0 ip=198.41.192.27 location=LHR protocol=quic
2023-07-21T06:05:25Z INF Registered tunnel connection connIndex=1 connection=fb4c431b-fa3d-4889-9f81-27ff2a7c0a63 event=0 ip=198.41.200.53 location=BRU protocol=quic
2023-07-21T06:05:26Z INF Registered tunnel connection connIndex=2 connection=4d6a160b-0ea4-4cce-bf2f-9dc91fb665a3 event=0 ip=198.41.192.167 location=FRA protocol=quic
2023-07-21T06:05:26Z WRN Failed to serve quic connection error="already connected to this server, trying another address" connIndex=3 event=0 ip=198.41.200.43
2023-07-21T06:05:26Z WRN Unable to establish connection. error="already connected to this server, trying another address" connIndex=3 event=0 ip=198.41.200.43
2023-07-21T06:05:26Z INF Retrying connection in up to 2s connIndex=3 event=0 ip=198.41.200.43
2023-07-21T06:05:28Z WRN Connection terminated error="already connected to this server, trying another address" connIndex=3
2023-07-21T06:05:48Z INF Registered tunnel connection connIndex=3 connection=3c2422e9-cd0a-41d7-9685-e14a875c3906 event=0 ip=198.41.200.113 location=BRU protocol=quic

Steps to reproduce the issue
Restart the addon.
Reinstalled it.
Reconfigure the tunnel.
Additional information
No response

Same here.
First restarted. Then reinstalled e reconfigured the add on. Nothing.

Same here. First restarted. Then reinstalled e reconfigured the add on. Nothing.

I have the same problem

Having the same issue! I tried rolling back to an earlier version (4.1.4) but that also didn't help. Wondering if it's tied to the home assistant core version issue. I'm on the latest 2023.7.2.

Same issue here. Using freenom but doesn't expire for like 10 months.
Reinstalled add-on, restored my Home Assistant VM to a few days back when it worked, used older add-on version, reconfigured DNS and tunnels in cloudflare from scratch..no errors in HA logs :(

I just realized, I registered my domain with freenom for 12 months, I believe it has expired. Did you use the same service?

Yes, I'm also with Freenome but mine didn't expire yet. I also check that.

Hi Guy, try register new domain, it work on my side !!

You right. I'm also registered to a new domain and it works fine now.

Looks like freenom is the issue for me as well. I got an email from Cloudflare a couple days ago saying my nameservers were set to [null] on the freenom side. I decided to just get rid of the crappy freenom domain and get my own for $10 through cloudflare. More seamless this way anyways not having to mess with the nameservers going forward. Everything working fine again now.
Thanks for the tip!

I have also get email from cloudflare that my dns on freenome .ml domain changed, but i have check and it did not its same like before, but i cant get HA to work from the web

Freenom .ml domains are no longer operational, the same also for .ga
Both TLD’s have been handed back to their respective countries for management.
Look also here:
https://www.youtube.com/watch?v=jsXHwsjZRbM

.cf is working for me

repo: brenner-tobias/addon-cloudflared


text:
iOS: "Export Subscriptions" doesn't do anythings unless "Import Subscriptions" is selected first

Screen recording of issue
Steps

Go into settings
Tap "Export Subscriptions" --> no response
Tap "Import Subscriptions" then tap cancel
Tap "Export Subscriptions" again --> show the file menu
iPhone SE iOS 13.3

Thanks for the bug report!  The fix for this will be in the next release.

repo: brentsimmons/NetNewsWire


text:
Interrupts Not Propagated in getConnection

@brettwooldridge
If the thread is interrupted while in HikariPool#getConnection(), the interrupted exception is rethrown as a SQLException but the interrupt status on the thread is not reset.
I believe the pool should be calling Thread.currentThread().interrupt() before rethrowing the exception.
I'm happy to submit a PR for this if you wish.

@kevinconaway Interesting catch.  Not only that, but an InterruptedConnection could cause a connection to leak from the pool.  That is fixed as well.

authors: brettwooldridge kevinconaway

repo: brettwooldridge/HikariCP


text:
add a simple implementation of substitute

Hello,
we used this helper in a few recent projects, and generally found that it is useful to have a compile-less substitute() function handy. I assume this might also be useful for others, so I'm pushing this to upstream.
If this needs any improvement (or is unacceptable for some other reason) please let me know, I'll be happy to add fixes.
Thanks!
-mk

(cc @stelmo; also this is semirelated to https://github.com/brianguenter/FastDifferentiation.jl/discussions/99 )

Thank you for submitting this PR. An interpreted evaluation can be handy in some cases.
Do you have tests for this code? I much prefer accepting PR's with tests.
This algorithm appears to have exponential time complexity when used on DAG's, as opposed to trees. Here is a simple example:
julia> function wc(n,x)
       tmp = x
       for _ in 1:n
       tmp = cos(tmp)*sin(tmp)
       end
       return tmp
       end

Calling make_function on wc(3,x) we can see it has approximately  9 nodes. substitute(wc(3,x),(z)->z==:x ? 1 : nothing) takes about 100μs (see benchmark results below).
wc(20,x) has approximately 60 nodes (still a really small function), is only 7x bigger than wc(3,x), but substitute takes approximately 160,000 times as long and allocates 140,000 times as much memory.
I'm somewhat uncomfortable about adding a function whose execution time can explode so dramatically, even if it is carefully documented as having this characteristic.
If you track which nodes have been visited during substitution you can make the algorithm linear in the graph size instead of exponential. It's more complicated but would make the algorithm more practical. Is this something you'd be interested in doing?

 Benchmark results
julia> @benchmark substitute(kk,(z)->z==:x ? 1 : nothing) setup = kk=wc(3,$x)
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
 Range (min … max):  50.500 μs …  6.535 ms  ┊ GC (min … max): 0.00% … 97.87%
 Time  (median):     54.200 μs              ┊ GC (median):    0.00%
 Time  (mean ± σ):   56.568 μs ± 64.987 μs  ┊ GC (mean ± σ):  1.13% ±  0.98%

     ▁▂▃█▅▃
  ▁▂▄██████▇▆▆▅▅▅▅▄▃▃▃▃▃▃▂▂▂▂▂▂▂▂▁▁▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ ▂
  50.5 μs         Histogram: frequency by time        76.2 μs <

 Memory estimate: 11.85 KiB, allocs estimate: 391.

julia> @benchmark substitute(kk,(z)->z==:x ? 1 : nothing) setup = kk=wc(10,$x)
BenchmarkTools.Trial: 384 samples with 1 evaluation.
 Range (min … max):  7.268 ms …  13.706 ms  ┊ GC (min … max): 0.00% … 17.24%
 Time  (median):     7.739 ms               ┊ GC (median):    0.00%
 Time  (mean ± σ):   7.988 ms ± 725.928 μs  ┊ GC (mean ± σ):  0.94% ±  3.95%

      ▃▅▆█▇▆▆▅▄▂ ▂ ▂
  ▄▆▄▇████████████▄█▄█▄▇▆▇▄▄▄▆▁▄▆▁▄▁▆▁▄▇▁▄▆▄▆▄▁▄▄▇▁▁▄▇▄▆▁▇▁▆▇ ▇
  7.27 ms      Histogram: log(frequency) by time      10.3 ms <

 Memory estimate: 1.69 MiB, allocs estimate: 57287.

julia> @benchmark substitute(kk,(z)->z==:x ? 1 : nothing) setup = kk=wc(20,$x)
BenchmarkTools.Trial: 1 sample with 1 evaluation.
 Single result which took 8.411 s (1.70% GC) to evaluate,
 with a memory estimate of 1.70 GiB, over 58720199 allocations.

authors: brianguenter exaexa


text:
remove PHP 5.3 from build matrix?

We still keep up the 5.3 compatibility as it is part of the travis build matrix. Is this still neccessary when php 5.3 is not officially supported anymore?
According to this blog from october 2014, PHP5.3 is still used by about 44% of all (observed) webservers. Would it be
a) positive to no longer support php5.3 at paratest to support upgrades to newer versions?
or
b) negative because so many sites still use it?
It is not that a big deal to use array() instead of [] etc, but it gets annoying over time and maybe we are sending the wrong signals by still supporting it. Any thoughts?

Normally I would say drop support of too old versions.  We still use it here, but dropped support from external libs would force us to upgrade, and that would be good :)

:+1:

As soon as the build is back to green, 5.3 will be removed from the build matrix and 5.4 will follow at EOL (15 Sep 2015 http://php.net/supported-versions.php)

authors: fiddur julianseeger localheinz

repo: brianium/paratest


text:
Crash App on device samsung

let filter = {
box: 'all',
minDate: date.valueOf(), // timestamp (in milliseconds since UNIX epoch)
indexFrom: 0, // start from index 0
maxCount: 500, // count of SMS to return each time
};
I use like this. Maybe samsung doesn't support get all sms

Hi
Are you able to at least get back a message when using the package?

Hi
Are you able to at least get back a message when using the package?

yes sir


text:
Add openAPI/Swagger documentation for the endpoints

Please consider adding openAPI documentation for the endpoints and make it available on e.g. the /swagger path.
I'm happy to see frequent updates to this awesome project but it can be a struggle to keep documentation and implementation in sync.
E.g I can't get the the GET /api/events to work given the current documentation

Hey Per, it is a good point. Might take some time to make this happen. May I ask what is the error code and error message for GET /api/events failure?

Yes, openAPI/Swagger really helps with integration and it lives with the code - or if you prefer design-before-code, in the specifications.
In the end it turned out that I sent parameters in the request body instead of the query so Mea Culpa. The error code indicated missing parameters and I made futile changes to the request body. But on the other hand, the new /api/v2/events didn't make it to the documentation ;o)
I hope it's Ok that I post a few more suggestions. My own Golang journey is brief and steep, but I like the language and development model.
/Per

You should definitely post more suggestions because we want to improve the product as much we can. The v2 endpoint is still subject to change which is why I haven't documented it yet.

Update: Just added documentation for the v2 events API

Swagger for admin server: https://bricks-cloud.github.io/BricksLLM/admin
Swagger for proxy server: https://bricks-cloud.github.io/BricksLLM/proxy

Great work, this will be helpful!
I detect a small error that has snuck into the (global?) swagger definitions.

If looking at e.g. the Admin service GET /api/health;
Clicking "Try it out" and "execute" will present the below Curl command.

Admin service:
GET /api/health
curl -X 'GET'
'localhost://bricks-cloud.github.io8001/api/health'
-H 'accept: /'
Here the Url seems to be malformed. "http://bricks-cloud.github.io:8001/api/health" seems more likely.
The same goes for other methods for both APIs.
E.g. the Proxy service:
curl -X 'GET'
'localhost://bricks-cloud.github.io8002/api/health'
-H 'accept: /'

Will the services on bricks-cloud use port 8001/8002 or could this be a development reminisce?

Hey per. the documentation is for local development, not connected to our cloud hosted version yet. therefore, curl won't work as for now

Great work, this will be helpful!
I detect a small error that has snuck into the (global?) swagger definitions.

If looking at e.g. the Admin service GET /api/health;
Clicking "Try it out" and "execute" will present the below Curl command.

Admin service: GET /api/health
curl -X 'GET' 'localhost://bricks-cloud.github.io8001/api/health' -H 'accept: /'
Here the Url seems to be malformed. "http://bricks-cloud.github.io:8001/api/health" seems more likely. The same goes for other methods for both APIs.
E.g. the Proxy service: curl -X 'GET' 'localhost://bricks-cloud.github.io8002/api/health' -H 'accept: /'

Will the services on bricks-cloud use port 8001/8002 or could this be a development reminisce?

repo: bricks-cloud/BricksLLM


text:
Fix committing to branch

Fixes #13

Worked on https://github.com/nimrodkor/test_yor_action/actions/runs/1692837581, see commit https://github.com/nimrodkor/test_yor_action/commit/c6d0b643a272d4bc4b65f1d8849930a914239a51

repo: bridgecrewio/yor-action


text:
Create official version of binding from response body

https://github.com/brightcove/brine/blob/master/lib/brine/rest_steps.rb#L43
And `$IDENTIFIER` is assigned the response body[ $TRAVERSAL]`

On starting this, this overlaps with/could reuse selection so that will be used instead.
And the value of the response body [ $TRAVERSAL]is assigned to `$IDENTIFIER`

repo: brightcove/brine


text:
zed.Context.LookupTypeUnion: dedupe unions

LookupTypeUnion shoud produce canonical union values, which means
it should not produce union values with deplicate types. Fix this.

I think this check should go in zngio.Validate and zson.
@mccanne would this result in an error?

I think this check should go in zngio.Validate and zson.
@mccanne would this result in an error?

ZNG yes an error (and we should clarify the spec).  ZSON would be flexible and fix it.

I think this check should go in zngio.Validate and zson.
@mccanne would this result in an error?

ZNG yes an error (and we should clarify the spec). ZSON would be flexible and fix it.

ZNG spec already says "The type IDs of a union must be unique.".  We should clariify that they must follow the Zed type total order.

I'm going to close this and we'll revisit this later.

authors: mattnibs mccanne

repo: brimdata/zed


text:
Broken zq version reporting in Brim-built artifacts

The handling of things like zq -version or the /version endpoint in zqd changed recently and broke some things, which got mostly fixed in #1256. However, I've more recently noticed that since Brim commit d936bad when the included zqd started having the benefit of of that fix, there's still some breakage:
$ curl http://localhost:9867/version
{"version":"unknown"}

I think I see where in the build system the change still needs to be made, so I'll take a stab at that.

This is working again. in Brim commit ebd3a91 talking to zqd commit 4bce00d:
$ curl http://localhost:9867/version
{"version":"4bce00d"}

repo: brimsec/zq


text:
Progress bar

I would love to see the progress bar functionality from the demo!

I think this is the relevant section of the demo in the main imgui repo:
https://github.com/ocornut/imgui/blob/master/imgui_demo.cpp#L1626

Will add. I'll send a PR to britzl in a bit.

Closed by #11

authors: 8bitskull britzl dlannan

repo: britzl/extension-imgui


text:
Normalize user specified OVF

When a user specifies a Metavisor OVF, do not automatically assume
that it does not have the .ovf extension. Add the extension only
when it is not present.

LGTM

authors: apoorva-jindal krishnanrs

repo: brkt/brkt-cli


text:
GatherSampleEvidence description needs update

In GatherSampleEvidence readme section, BAF is listed as an output, but this is actually performed in GatherBatchEvidence. BAF file needs to be removed from output list.

GatherSampleEvidence
Formerly Module00a
Runs raw evidence collection on each sample with the following SV callers: Manta, Wham, and/or MELT. Delly can be enabled but is no longer officially supported. For guidance on pre-filtering prior to GatherSampleEvidence, refer to the Sample Exclusion section.
Note: a list of sample IDs must be provided. Refer to the sample ID requirements for specifications of allowable sample IDs. IDs that do not meet these requirements may cause errors.
Inputs:
Per-sample BAM or CRAM files aligned to hg38. Index files (.bai) must be provided if using BAMs.
Outputs:
Caller VCFs (Delly, Manta, MELT, and/or Wham)
Binned read counts file
Split reads (SR) file
Discordant read pairs (PE) file
B-allele fraction (BAF) file

Addressed by #248

repo: broadinstitute/gatk-sv


text:
RelationalLinkedAccount claims behavior

In my situation, I need to update a list of linked accounts once daily, and each linked account has a few (2-3) claims each.  The values of the claims can change, which is the reason for the daily refresh.
The default behavior is to remove all claims then re-add them, which was going to become a problem eventually with the keys incrementing daily on 4000+ linked accounts.
The quick solution I used was to separate the linked account claim update methods to match the update/add/remove technique you used for UserClaims.  Is this something you would consider to separate?

Yes, it's not ideal. Have a look and let me know if you would like to improve on the code and we could discuss a PR.

Sure, why not? :)   So far, I only had time to create a "dirty" quick fix.
My original goal was to edit the source as little as possible.  Do you think this sort of update would fit better in the UserAccountService class?  I was hesitant to make a breaking change, so I created a new RelationalUserAccountService.

Well, if you can change the existing code so there's no breaking change, that'd be best.

I'll submit a PR something in the next week or 2.  I think the technique will be to overload the AddOrUpdateLinkedAccount as shown below and make an additional method to update claims.
When the "claims" param is null on #2, no claims are updated.  When not null, claims will be overwritten.  I believe this will be non-breaking.
public virtual void AddOrUpdateLinkedAccount(TAccount account, string provider, string id)
public virtual void AddOrUpdateLinkedAccount(TAccount account, string provider, string id, IEnumerable claims)


text:
🛑 Kandor is down

In 3b2811e, Kandor (https://status.lutis.net/status/cardboard) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kandor is back up in 1ee6099 after 5 minutes.

repo: brockbreacher/statuspage


text:
What's the right way to create a react native module with Podfile

Hi, I'm working with a react native module, and I need to install some 3rd party pods via CocoaPods. So firstly, I tried pods init and then added the 3rd party pod into Podfile.
However, the compiler said React/RCTBridgeModule.h could not be found.
Finally, I added all the pods that react native needed into Podfile
and the Podfile looks like this:

Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'

source 'https://github.com/CocoaPods/Specs.git'

target 'MyNavtiveModule' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for JikeSdk
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  # some 3rd party pod here
end

I don't think this is the correct way. Could you please tell me how to solve this problem?

I would recommend that you just start with the podfile that is included in the generated module.
Unfortunately I am not an expert with Pod files, adding the help wanted label.

I actually created a module with the following commands, however I do not see any podfile in iOS folder. Reference from here
create-react-native-module MyLibrary
cd MyLibrary
yarn install

Can someone confirm the Podfile is not generated together with the command?
@brodybits Any clue from you maybe?
React Native Info
System:
    OS: macOS Mojave 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-6360U CPU @ 2.00GHz
    Memory: 383.54 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.10.0 - /usr/local/bin/node
    Yarn: 1.19.0 - /usr/local/bin/yarn
    npm: 6.12.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 28, 29
      Build Tools: 28.0.3, 29.0.2
      System Images: android-21 | Google APIs ARM EABI v7a, android-21 | Google APIs Intel x86 Atom_64, android-24 | Google APIs Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom_64
      Android NDK: 19.2.5345600
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5791312
    Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
  npmPackages:
    react: ^16.9.0 => 16.13.0
    react-native: ^0.61.5 => 0.61.5
  npmGlobalPackages:
    react-native-cli: 2.0.1

create-react-native-module MyLibrary

That command should give you a package named react-native-my-library, with a podspec here: react-native-my-library/react-native-my-library.podspec.

Yup, missed that. Thanks for pointing out. Nevertheless, with the podspec appended in podfile the build (testModule) still fail. Like I mentioned in https://github.com/brodybits/create-react-native-module/issues/159#issuecomment-594352652, will ignore the build fail issue since example project works. Thanks for the prompt reply!

Hello every one, here is my confusion:
I am using this library as I want to create an RN library (with some native implementations obviously). I suspected that the generated stuff is ready to be used and build on. On android, it worked as I expected, but on iOS, there are those errors React/RCTBridgeModule.h could not be found..
From my perspective, the project should be initialized in a way, that as a developer I am ready to go.
I am not sure whether this behaviour is intended and I am just missing something.
I will try to use the Podfile that is provided in this thread to get it up and running, but somewhat this feels counter-intuitive.
Thank you for the great work on this lib 😊

Huge flaw in my thinking I guess. I have made the following observations:

You can't build a 'standalone react native library (for ios)'. By saying that I mean, that when you develop your library you need to implement it into a react native project and open it from the node_modules. By doing this we can give our library access to the React-Native Headers that are needed to compile.
If you want to add pod dependencies you can specify them in your podspec, like s.dependency "PodToInclude". This will only work if you consider the first point I made, as the react native application will install the pod, not the library will include the pod.

Maybe there are other ways to do it better.
I guess my misconception was that I thought that this library could be used to build a standalone library, however, it is called create-react-native-module.

@hannojg  you could also run create-react-native-module --generate-example testModule  to get a sample project which has the test module linked. Maybe you can learn something from there.
Thanks for sharing on the following.. i do not know before this.

If you want to add pod dependencies you can specify them in your podspec, like s.dependency "PodToInclude". This will only work if you consider the first point I made, as the react native application will install the pod, not the library will include the pod.

@hannojg I don't get the difference here. I'm still stuck with aReact/RCTBridgeModule.h could not be found. Irregardless of how I add this my native module to my react-native project, moving it manually or  yarn link I just get the import as undefined. And how do you work with it in XCode if you have this import problem? Do you not get code completion etc?
I'm really lost at continuing forward with development from just setting it up with
create-react-native-module MyLibrary
cd MyLibrary
yarn install

If I create with the example I can run that so I don't think it's a technical issue, I just don't understand how to proceed. A continuation in the docs after this step would be most helpful

If while compiling a error appears saying RCTBridgeModule.h not found do the following:
pod install

Then, in XCode, select Product -> Scheme -> React instead of the default selection of MyModuleName.
cd ios/
pod install

Then your build should succeed!

@TfADrama I don't have an React.xcodeproj file in this React directory so I tried to link the third-party.xcconfig.
after this I also didn't need to select the Scheme and no pod install.
… and it Works! 🎉

@TfADrama with RN 0.61.5, there is no React.xcodeproj anymore.
Does anyone found a solution to the 'React/RCTBridgeModule.h' file not found problem?

@maximeschwab  did u find a solution to this problem? I am still looking solution to this problem

@TfADrama There is no React.xcodeproj in the given location

create-react-native-module MyLibrary

That command should give you a package named react-native-my-library, with a podspec here: react-native-my-library/react-native-my-library.podspec.

Pardon my ignorance, how do I use this podspec file to get rid of React/RCTBridgeModule.h' file not found problem.

create-react-native-module MyLibrary

That command should give you a package named react-native-my-library, with a podspec here: react-native-my-library/react-native-my-library.podspec.

Pardon my ignorance, how do I use this podspec file to get rid of React/RCTBridgeModule.h' file not found problem.

@asabya Tell me, what do you really want to do?
You can compile the project using the example project. Open the example project, go to the pods target, open development pods and search for your lib. Then you can do your code modifications on your library there and compile it with no errors.

You cant compile the lib for itself.

I was trying to do this.... Will try to add it in a project and compile.

You cant compile the lib for itself.

I was trying to do this.... Will try to add it in a project and compile.

Create the lib with the example project, much easier.

I created the lib with example and ran the example code for iOS and doing my development within that example/ios folder.
The ~/ios main folder will not compile unless or until you add the podfile with required dependencies

I also wasn't aware that development should be done like this:

You can compile the project using the example project. Open the example project, go to the pods target, open development pods and search for your lib. Then you can do your code modifications on your library there and compile it with no errors.
You cant compile the lib for itself.

Thank you for clarifying this.

Sorry for resurrecting the thread, but I'm still confused (iOS dev here, I need to write a React module for someone but I have no experience with RN).
When I create a new project (with create-react-native-module or create-react-native-library) I get two Xcode projects, one in ios and the other in example/ios. I assumed that the first builds the library itself and the second builds an example app that uses the library. However, the first one (in ./ios) doesn't compile (in case of create-react-native-library) or does not even include the two generated files in the Xcode project (in case of create-react-native-module).
So are you saying I should never use the ./ios/*.xcodeproj and only use the one in example/ios? What's the point of the first Xcode project in ios then? (the example Xcode project does not include it as far as I can tell, only the m/h files)

Why all of this is so confusing, idk...
In my case I stumbled upon the native module being null, even though everything seem to be compiled successfully...

In my case I stumbled upon the native module being null, even though everything seem to be compiled successfully...

I had that too at some point - if you don't see the module in NativeModules, it could mean that you're not exporting it correctly in ObjC/Swift. Check if:

you have RCT_EXTERN_METHOD / RCT_EXPORT_METHOD / RCT_EXTERN_MODULE / RCT_EXPORT_MODULE written as in the docs
the export macros are in the .m file, not .h
in Swift, you have the class marked as @objc(MyModuleName) (with an explicit name)
you have at least one method exported
methods are also marked with @objc(method:name:like:in:objc:), same name as in the export macro

create-react-native-module MyLibrary

That command should give you a package named react-native-my-library, with a podspec here: react-native-my-library/react-native-my-library.podspec.

Pardon my ignorance, how do I use this podspec file to get rid of React/RCTBridgeModule.h' file not found problem.

@asabya Tell me, what do you really want to do?
You can compile the project using the example project. Open the example project, go to the pods target, open development pods and search for your lib. Then you can do your code modifications on your library there and compile it with no errors. You cant compile the lib for itself.

Interesting...and definitely not intuitive.
Thank you, however...
Building the example project throws a Swift Compiler Error within the lib when building the example project. I haven't even added any code to the lib yet...

Any clear guidelines yet? I am struggling to use a React Native Project as an external module to existing ios app.

I have a react native app say 'Alpha' that is a complete application with many react-native community packages.
I have also developed another react native app say 'Beta' and that is also a complete app on its own. Now, I want to package my app 'Beta' as an npm package that I could install in my app 'Alpha' and navigate to my app 'Beta' and also pass some params to that package application.
The issue I am currently facing is that when I install my 'Beta' App package in the 'Alpha' app it install all the node_modules my 'Beta' Package is using but its not installing the pods that my 'Beta' App uses.
Guide me accordingly if someone has resolved or know a work around for this.

authors: ElectroBuddha ManAnRuck SunskyXH TfADrama TommyLeong acrabb afnan-khakwani anand-hsc asabya axelinternet brodybits hannojg mackuba malikmani maximeschwab shivam-rallyhealth thexdd

repo: brodybits/create-react-native-module


text:
Model training progress

Created by: brollb
When training a model, the executor should report the loss of the latest iteration. This loss should be visualized in the newly created node.

Created by: brollb
This is blocked by https://github.com/webgme/webgme/issues/686

repo: brollb/deepforge


text:
Add mapeheat info to README for release

To release #4

Coverage: 99.561%. Remained the same when pulling b956df730c5e9b900eac5915117fda79804a88f3 on mape-release into beafc78dea3ced4c6e2342b9fb4cb1f5cd16f9dc on master.

Coverage: 99.561%. Remained the same when pulling b956df730c5e9b900eac5915117fda79804a88f3 on mape-release into beafc78dea3ced4c6e2342b9fb4cb1f5cd16f9dc on master.

authors: broox coveralls

repo: broox/python-nuheat


text:
Adapter cannot start

Describe the bug
After the installation the adapter cannot start and is not visible in ioBroker.
To Reproduce
Steps to reproduce the behavior:
Install Adapter from the command line.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots & Logfiles
souhl@node2:/opt/iobroker$ npm i iobroker.eufy-security
[sudo] password for souhl:

> protobuf-typescript@6.8.8 postinstall /opt/iobroker/node_modules/protobuf-typescript
> node scripts/postinstall

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.7 (node_modules/osx-temperature-sensor):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ iobroker.eufy-security@0.0.7
added 21 packages from 62 contributors in 4.791s

30 packages are looking for funding
  run `npm fund` for details

souhl@node2:/opt/iobroker/node_modules/iobroker.eufy-security/build$ node main.js 0 --debug
2020-12-11 19:20:27.868  - debug: eufy-security.0 (24207) Redis Objects: Use Redis connection: 127.0.0.1:9001
2020-12-11 19:20:27.881  - debug: eufy-security.0 (24207) Objects client ready ... initialize now
2020-12-11 19:20:27.884  - debug: eufy-security.0 (24207) Objects create System PubSub Client
2020-12-11 19:20:27.885  - debug: eufy-security.0 (24207) Objects create User PubSub Client
2020-12-11 19:20:27.885  - debug: eufy-security.0 (24207) Objects client initialize lua scripts
2020-12-11 19:20:27.891  - debug: eufy-security.0 (24207) Objects connected to redis: 127.0.0.1:9001
2020-12-11 19:20:27.893  - debug: eufy-security.0 (24207) objectDB connected
2020-12-11 19:20:27.894  - debug: eufy-security.0 (24207) Redis States: Use Redis connection: 127.0.0.1:9000
2020-12-11 19:20:27.897  - debug: eufy-security.0 (24207) States create User PubSub Client
2020-12-11 19:20:27.898  - debug: eufy-security.0 (24207) States create System PubSub Client
2020-12-11 19:20:27.903  - debug: eufy-security.0 (24207) States connected to redis: 127.0.0.1:9000
2020-12-11 19:20:27.903  - debug: eufy-security.0 (24207) statesDB connected
2020-12-11 19:20:27.906  - error: eufy-security.0 (24207) eufy-security.0 invalid config
2020-12-11 19:20:27.906  - warn: eufy-security.0 (24207) Terminated (INVALID_ADAPTER_CONFIG): Without reason

Versions:

Adapter version: 0.0.7
JS-Controller version: 3.1.6
Node version: v14.15.1
Operating system: 18.04.5 LTS (Bionic Beaver)

Additional context
Add any other context about the problem here.

Have you configured the adapter (set username and password)?

How? I don't even get the adapter listed in "Instances" in ioBroker.

Strange. If you try to add the adapter from admin webif pointing to the github repository:

Install Adapter from own URL

Select the second tab any, fill in this URL and press install:
https://github.com/bropat/ioBroker.eufy-security
Source: https://www.iobroker.net/#en/documentation/admin/adapter.md

Tried that. It installs and I see the folder created and so on, but the adapter is not shown.

Ok, so you don't se it under Adapters installed to create a new Instance?

Ah, in most of the adapters I used the instance is created automatically.

authors: bropat suhl-cloudian


text:
feat: add error types

This adds some typings for ErrorBoundary.

https://github.com/brophdawg11/remix-routers/pull/6


text:
Feature rubocop integration + YARD documentation

This PR is to:
1- Integrate Rubocop to Travis and fix most of the Rubocop violations so we can maintain consistent coding style across the project.
2- Start and generate YARD documentation to provide rubydoc.info reference for contributors and IDEs for intelligence and autocompletion. EX: https://rubydoc.info/github/rubocop-hq/rubocop

@tareksamni Looks great - thank you!
We have to add small modifications (eg. description of status) and then it's ready to merge.

authors: brotandgames tareksamni

repo: brotandgames/ciao


text:
Running rustic-cargo-fmt disables rustic-mode

After formatting a buffer with C-c C-c C-f, the buffer is formatted and saved (expected) but also leaves rustic-mode and enters rust-mode (unexpected). Before I can use rust-analyzer, I must re-enable rustic-mode via M-x rustic-mode. If I use (setq rustic-format-on-save t), I also have to re-enable rustic-mode every time the buffer is saved.
I using Emacs 27.1.

Thanks for the bug report. Do you get the same result when you turn off lsp-mode ?

I don't know what that is. Here are the relevant lines:
(require 'rustic)
(add-hook 'rustic-mode-hook (lambda () (setq indent-tabs-mode nil)))
(add-hook 'rustic-mode-hook 'display-fill-column-indicator-mode)
(add-hook 'rustic-mode-hook #'rainbow-delimiters-mode)
(add-hook 'rustic-mode-hook #'smartparens-mode)
(setq rustic-format-on-save t)

Before I can use rust-analyzer

How do you use rust-analyzer ? lsp-mode is a package that serves as a client.

but also leaves rustic-mode and enters rust-mode

You shouldn't load rust-mode when you want to use rustic-mode and vice versa, for several reasons.

How do you use rust-analyzer ? lsp-mode is a package that serves as a client.

lsp-mode is enabled. I see it under describe-mode.

You shouldn't load rust-mode when you want to use rustic-mode and vice versa, for several reasons.

I'm not loading rust-mode. Could this be built into Emacs now?

Do you use a starter package like spacemacs ?

It looks like rust-mode was still installed. After I removed it, the problem away.

Ok :+1:

authors: brotzeit creese

repo: brotzeit/rustic


text:
Support for QtWebEngine

Is your feature request related to a problem? Please describe.
QT-Browser send this browser agent:
"Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.3 Chrome/69.0.3497.128 Safari/537.36"
and gets currently detected as Chrome 69
Describe the solution you'd like
Get regcognized as QT-Browser
https://doc.qt.io/qt-5.12/qtwebengine-overview.html says
Qt WebEngine Core Module
The Qt WebEngine core is based on the Chromium Project. Chromium provides its own network and painting engines and is developed tightly together with its dependent modules.
Note: Qt WebEngine is based on Chromium, but does not contain or use any services or add-ons that might be part of the Chrome browser that is built and delivered by Google. You can find more detailed information about the differences between Chromium and Chrome in this overview that is part of the documentation in the Chromium Project upstream source tree.
This version of Qt WebEngine is based on Chromium version 69.0.3497.128, with additional security fixes from newer versions.

Qt is now ignored. I think I will add an information for outdated QT like:
"You are using an old embedded browser (QTWebengine). In case this site does not work, use your normal browser".
What do you think?

repo: browser-update/browser-update


text:
[Feature] llm Options

Background
I wish to experiment with other LLM models like Tongyi or Gemini, but it's not feasible.
https://github.com/browserbase/stagehand/blob/fecd42e9c71f60f50ce14212f76b422603933ab8/lib/llm/LLMProvider.ts#L62
Aspiration
Provide a solution akin to browser-use, allowing the integration of custom models.
import { OpenAI } from "@langchain/openai";

const llm = new OpenAI({
  model: "gpt-3.5-turbo-instruct",
  temperature: 0,
  maxTokens: undefined,
  timeout: undefined,
  maxRetries: 2,
  apiKey: process.env.OPENAI_API_KEY,
  // other params...
});
await stagehand.init({llm});

Benefits

less code、lower maintenance complexity
The token cost of GPT-4 is relatively high; in certain scenarios, cheaper models can be employed to achieve similar outcomes.

+1, this would also be nice if we could use with OpenRouter for many reasons (e.g. rate limits, consolidated billing, experimenting with different models to determine the output quality against cost)

repo: browserbase/stagehand


text:
Align function as a wrapper with other types

Currently, when specifying modules.wrapper as a function, the conventions.vendor and modules.nameCleaner aren't respected.
This PR allow to :

Not having to check if a file is a vendor one
Not having to cleanup the module name manually

@paulmillr this also looks good to merge

authors: Florian-R goshakkk

repo: brunch/brunch


text:
Graph is frozen after PC wake-up

Hello,
I honestly don't know if this is an issue from NZXT Cam Web Integration itself, or just in this particular project. What simply happens is that when you wake-up your computer from Windows Sleep mode, the graph is completely frozen at the moment you put your computer to sleep. The only way to make it responsive again is either to close-reopen NZXT Cam or simply swap what you have on the Kraken LCD with something else and then put this graph back.
Would this be fixable in anyway in case it does not depend from Cam?

humm It sounds like a CAM bug, web integration can't handle this kind of behavior. Does it happens with non web integration as well ? Now I'm curious, I will turn on sleep mode to check if happens with me. but it would be better to open this issue at nzxt docs as well : https://github.com/NZXTCorp/web-integrations-docs/issues.

I tested entering sleep mode and hibernate mode and in both case they back normally from frozen state. maybe something with your device config or windows.

humm It sounds like a CAM bug, web integration can't handle this kind of behavior. Does it happens with non web integration as well ? Now I'm curious, I will turn on sleep mode to check if happens with me. but it would be better to open this issue at nzxt docs as well : https://github.com/NZXTCorp/web-integrations-docs/issues.

Thank you so much for the answer and since I haven't told already, thanks for sharing this awesome project. Before using this I was simply using the Dual Infograph with some customized colors I put, but the config was the one directly from NZXT Cam Dual Infograph. That one has always worked, I put my computer everyday to sleep and then get back and never got this issue.
Unfortunately this does seem to happen with this Web Integration. Even if it was my config, thing that it's probably true, I wouldn't honestly know what to touch. As I stated the only way to get it back for me after sleep mode is to put on another config (i.e. Dual Infograph) and then get back to this Web integration.
Shall I notice NZXT about this?

Thanks, I appreciate it. for not getting this error even entering these mods, it's hard to tell the origin, but it would be greate to have nzxt developers consideration, so openning an issue there would be better. I'll be watching the issue to be informed.

Hello, I've opened an issue here https://github.com/NZXTCorp/web-integrations-docs/issues/13

@brunoandradebr has this integration been updated in the meantime? Because it looks like the sleep issue might be fixed!

@TheGITofTeo997 yeah, I have updated with more custom things but nothing related to the bug you mentioned =s. But in the meantime nzxt realsed an update. I will never know hahahaha

But, reinforcing... this bug never happened to me and I think to anyone else =s

I've tested multiple times and either NZXT has been updated or this integration has been updated too, but for now this is fixed for me. I will close the issue!

repo: brunoandradebr/nzxt


text:
Failed clone wiringPi

Hi
I try install raspi-io package on raspberry pi, but got error
Installing I2C tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
libi2c-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 69 not upgraded.

Downloading Wiring Pi...

Cloning into 'wiringPi'...
fatal: read error: Connection reset by peer
Could not download Wiring Pi

npm ERR! Linux 3.18.7-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "raspi-wiringpi"
npm ERR! node v0.12.1
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! raspi-wiringpi@1.0.4 install: `sh install-wiringpi.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the raspi-wiringpi@1.0.4 install script 'sh install-wiringpi.sh'.
npm ERR! This is most likely a problem with the raspi-wiringpi package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     sh install-wiringpi.sh
npm ERR! You can get their info via:
npm ERR!     npm owner ls raspi-wiringpi
npm ERR! There is likely additional logging output above.

And I try clone wiringPi, can't this
% git clone git://git.drogon.net/wiringPi
Cloning into 'wiringPi'...
fatal: read error: Connection reset by peer

Looks like it's down for me too. I set up my own mirror of Wiring Pi on GitHub to get around this issue now and in the future.
Fixed in v1.0.5 of raspi-wiringpi and v3.1.1 of raspi-io

Thank you!

authors: bryan-m-hughes suisho

repo: bryan-m-hughes/raspi-wiringpi


text:
dense_flow

I am facing this error which installing dense flow:
.
.
[ 57%] Building CXX object CMakeFiles/extract_gpu.dir/tools/extract_flow_gpu.cpp.o
[ 64%] Building CXX object CMakeFiles/extract_warp_gpu.dir/tools/extract_warp_flow_gpu.cpp.o
[ 71%] Building CXX object CMakeFiles/pydenseflow.dir/src/py_denseflow.cpp.o
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/extract_warp_gpu.dir/all' failed
make[1]: *** [CMakeFiles/extract_warp_gpu.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/extract_cpu.dir/all' failed
make[1]: *** [CMakeFiles/extract_cpu.dir/all] Error 2
CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/extract_gpu.dir/all' failed
make[1]: *** [CMakeFiles/extract_gpu.dir/all] Error 2
CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/pydenseflow.dir/all' failed
make[1]: *** [CMakeFiles/pydenseflow.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
How to solve this issue?

Hi, are you using this branch (https://github.com/yjxiong/dense_flow/tree/opencv-3.1)? And when did you see this error, building opencv?
Installing opencv is a very tricky thing. From your log, I couldn't see any useful information. Could you send the full log to me? It seems the error is before these lines.

Yes, you are right. OpenCV is quite tricky. Actually, I have installed two versions 3.1 and later 2.4 for a project. I dont know if this can help you.

CMakeError.log

From your error, you can see your system is missing a package named libImath.so. Try to see if you can install or download that first.

Sorry for the late reply, since I couldn't reproduce your error on my machine. It is hard to debug for you. You can seek help from the dense_flow repo, maybe they can give you some help.

OK Thank you for your reply.

authors: bryanyzhu kanza-ali

repo: bryanyzhu/two-stream-pytorch


text:
gcc is required

gcc is required and not available from the docker image by default.

Thank you!

authors: andersbl brycedrennan

repo: brycedrennan/imaginAIry


text:
Add a "Job cleanup option"

Both for internal and external rendering (in advanced options)

What would this do exactly?

Remove textures and rib files after the render.  Not a huge issue, but some people like it.

I can work on this one if you're okay with it.

Yep.  That would be great!
On Mon, Aug 1, 2016 at 1:04 PM, Jon D notifications@github.com wrote:

I can work on this one if you're okay with it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bsavery/PRMan-for-Blender/issues/313#issuecomment-236691240,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABzffPmuMWZ3edSo7rmaZEts0GE-O8Glks5qblFrgaJpZM4JTA74
.

--
brian.savery@gmail.com
508-274-8700

First question: Self contained operator action or a step in the rendering process?  Self contained operator would be the easiest but I could see an advantage in making it a render stage.  Only problem I see is how to get that to work with an internal animation render being that each frame is a fresh launch of the render process.

part of the rendering process.  Normally in Tractor there is a "chaser command".
For internal rendering you could make it call some procedure after the image is final.

How is this for a solution:
For spooling: Add a task to the end of each frame that deletes the .rib and per frame archive.  At the end of the render task a post command runs that removes the texture, shader and archive directories.  If denoising is used, commands will be run to remove all the .variance files and non-denoised base images.
Internal rendering might take a little longer to figure out.  Brian, do you know of anywhere that shows what the Blender internal 'render' and 'render animation' buttons actually do in between the time they are pressed and Renderman is called?

So I tried to get the cleanup command to work last night and I was able to get it to work but the Windows 10 laptop i was on just didn't want to dance with the commands I was sending it.  So I had a thought: instead of directly issuing the command from LocalQueue, would it make sense to dynamically generate a Python 'cleanup' script to delete the necessary files and then have LocalQueue call that for the cleanup routine?  That way I wouldn't need to keep track of multiple cmd syntax's (Linux, Mac, Windows, etc...)

Honestly, I wouldn't say this is a huge priority if you have something
you'd rather work on.
On Wed, Aug 3, 2016 at 6:49 AM, Jon D notifications@github.com wrote:

So I tried to get the cleanup command to work last night and I was able to
get it to work but the Windows 10 laptop i was on just didn't want to dance
with the commands I was sending it. So I had a thought: instead of directly
issuing the command from LocalQueue, would it make sense to dynamically
generate a Python 'cleanup' script to delete the necessary files and then
have LocalQueue call that for the cleanup routine? That way I wouldn't need
to keep track of multiple cmd syntax's (Linux, Mac, Windows, etc...)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bsavery/PRMan-for-Blender/issues/313#issuecomment-237237285,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABzffDWJsknIZZIt4yb67dhY6p2GjiqHks5qcJx8gaJpZM4JTA74
.

--
brian.savery@gmail.com
508-274-8700

Meh, I really don't have anything else I'm itching to tackle.  I'm slowly working on the parameter/tooltip cleanup but that's low priority too.  That and watching the forums for bug reports......
This one is going into areas I haven't played in yet so I was just brainstorming on the best way to do it since you're a more seasoned programmer than I am.

Ok.  Well yes I'd think having some sort of cleanup script would make sense in that case.

repo: bsavery/PRMan-for-Blender


text:
Contrib/nlunghi

Some changes....
see the commit messages

Hi, thanks for the PR! I'll look over these changes soon, just wanted to let you know I saw it.

These changes look good! Sorry for the delay on the review.

authors: bschwind nicola-lunghi


text:
FYI docker image for IT tests - qwazer/atlassian-sdk-confluence

May be you'll be interested in using next docker image in your IT tests
https://github.com/qwazer/atlassian-sdk-confluence
It contain demo data provided by Atlassian and updates weekly (automatically by github actions).

Hi @qwazer
I'm absolutely interested. I already use docker for IT and I pick up images from docker-hub

authors: bsorrentino qwazer

repo: bsorrentino/maven-confluence-plugin


text:
Host.py

An alternative to the admin PR #21.

The intention of this is so that if necessary, the Ryver owner/admin/org admin can see who is running BrainBot, as an alternative to just pressing the pfp.

Discarding, I don't really see a purpose of this.

Alright!

repo: bsoyka/brainbot


text:
Create a better AI

[x] If all deductions are playable, play (for ex : AI knows card is a 1 and can be either blue or yellow, both being playable)

[x] If all deductions are discardable, discard -- If all 1s have been played and you have a 1 in hand, it's discardable.

[x] If you have the last example of a playable card, don't discard it (discardable = false) (will replace the multicolor or 5 rule)

[ ] Seems like a bug

On the first turn, AI played their card

[ ] If cannot do any logical action, nor discard cards, give a hint even to non-playable cards

Closing because we changed recently the AI

repo: bstnfrmry/hanabi


text:
How to handle dynamic ports used by Adapters

Hi there,
I just moved from an Rpi installation to a Docker install on my NAS - and face the following issue:
I got an adapter (knx), which after connecting to a gateway is listning on further input on an UDP port. Now, this port is changing on each start of the adapter, so I can't easily make an permanent port mapping to Docker.
So: How do I handle this - currently I can't get the adapter to work.

you could go for the network options host or at least macvlan for the docker container.
In both cases you don't need to forward the ports to the container

The straight forward solution is to open feature request tickets on the affected adapters to allow to configure the port numbers, or ?!

I agree with @fzzybllz  and @Apollon77 .
If you want to use dynamic ports you have to use a network option other than bridge. On the other hand it would be nice if dynamic port ranges could be set manually in adapter options.
I think there is no more to say. Could this be closed?
Regards,
André

authors: Apollon77 Vrumfondel buanet fzzybllz


text:
[frontend]: add install target for frontend headers

This can benefit downstream projects by allowing them to easily include headers from a distributed installation.

Ok I will fix it up and amend to the previous PR.

Thanks! @Avimitin @meshtag

repo: buddy-compiler/buddy-mlir


text:
Gitter communities for typescript-hero and node-typescript-parser

Not sure if you are a gitter.im user.
Most of the important github projects (vscode/rxjs/redux/ngrx/react) do have a good community presence on gitter. Sometimes it is easier to ask small clarifications, or coordinate on gitter chat rather than creating github issues. I highly recommend that you create gitter spaces for both typescript-hero and node-typescript-parser.
@buehler Since both of these projects are your repositories, therefore only you can create gitter communities for them.
Goto: https://gitter.im
Sign-in/Authenticate yourself via GitHub so that Gitter knows about your github repositories.
Then goto: https://gitter.im/home/explore#createcommunity
Look for do you want to start a community for one of your github projects?
And I am sure you can navigate yourself from there.
Thanks.

Will do :-)

Hi, I saw the community you created.
It doesn't look right.
It seems you created a room that isn't connected to your repo buehler/typescript-hero.
When you reached this gitter site, did you create the community using the link provided in the text do you want to start a community for one of your github projects?

Hmm I actually did... let me try that again.

Alright.
The communities are opened. I'll add the badges right away.
https://gitter.im/vscode-typescript-hero/
and
https://gitter.im/node-typescript-parser

authors: buehler shobhitg

repo: buehler/typescript-hero


text:
Make grpc gateway generate code at the correct location and alias at the wrong location

Our patch to gRPC gate way had a bug. It generated code at the wrong location: what should be generated at foo/v1/v1gateway/filename.pb.gw.go is generated at foo/v1/filename/v1gateway/filename.pb.gw.go.
This fixes it by generating the code now at the correct location, but continuing to generate aliases (Func = aliaspackage.Func) at the incorrect location to stay backward compatible.
If the user has both foo/bar.proto and foo/bar/bar.proto, buf generate will fail with duplicate generated file name "foo/bar/foogateway/bar.pb.gw.go". Generation will continue without error here and drop the second occurrence of this file, but please raise an issue with the maintainer of the plugin. But this should be very rare, and it shouldn't happen in general if the user uses managed mode and end their directory path with a version number.
It's probably easier to review the actual code diff.
I also assume that a revision will be generated on merge?

No sure why the test failed, make test passes locally.

Confirmed it's outputting code and I can see the deprecation notice in my IDEs (code and zed)
I do wish it showed up on the function itself, but it likely doesn't matter and if it means complicating the patch it's not worth it imo.

repo: bufbuild/plugins


text:
v4 Failing To Load With Laravel Mix

Expected behavior
Bugsnag loads and functions properly when running Laravel Mix
Observed behavior
Currently, v4 will not initiate and work properly with Laravel Mix. It works when running Mix in development mode, but as soon as assets are compiled using the production command, Bugsnag fails to load with the error:
r._logger.warn(e) is not a function

It appears that something with how Webpack is compiling the libraries is preventing Bugsnag from loading properly. I'm genuinely not sure if this is an issue with Bugsnag or Mix (or maybe I'm just missing something simple), but I figured it made sense to open an issue since Mix is a pretty popular library and I'm assuming I'm going to be the only one with this issue. v3 worked without issue using Mix, and my v4 code worked fine when running via development.
Steps to reproduce

Install Laravel Mix (Instructions)
Install Bugsnag v4.0.0 as NPM dependency
Edit content of app.js file referenced in webpack.mix.js to load bugsnag-js and attempt to initiate Bugsnag
Run npm run production command in Terminal
Load website to see error referenced above

I apologize for the work involved in reproducing this one! Kind of a pain.
Version
v4.0.0
Additional information
Again, I'm uncertain if this is something with Bugsnag JS or Laravel Mix (@JeffreyWay), and I can open this issue in their repository if it's a better fit there. This is, however, the only library I've had any problems with while using Mix, and Bugsnag JS v3 worked properly.
Let me know if there is anything more I need to dig up.

Hi @aaronhuisinga thanks for the report! I've managed to reproduce, so thanks for the detailed steps.

I apologize for the work involved in reproducing this one! Kind of a pain.

Don't worry 😂 this was relatively straightforward to get set up!
I'll let you know where I get with it.

It looks like by default laravel mix uses the drop_console compressor option in uglify.
I'm surprised this doesn't break other libararies and user code! I'll see if there's something we can do about it.

@bengourley Hmm, I wasn't under the impression that activating that option as a default would potentially break any libraries. I can tag a new release that removes it, if needed.

@JeffreyWay is this the same for Laravel Elixir?

@jbrooksuk In production mode, yes, I think it drops console.

@JeffreyWay that'll do it. Any chance we could get a new version out that doesn't? We're not yet able to make the upgrade to Mix (we're working on it) but we'd really like to get the Bugsnag Vue stuff out.

Yep, today I'll tag both packages to set that drop_console option to false by default.

Thanks @JeffreyWay 🍻

Thanks for being responsive on this @JeffreyWay. I'm going to ship a version of bugsnag-js that scoots around this issue too (#281), as you're probably not the only one doing so!

Okay, Laravel Mix 1.7 has been tagged. We no longer strip console.logs.

Thanks @JeffreyWay!

Thanks so much for the quick fix @JeffreyWay and @bengourley! You guys are great.

authors: JeffreyWay aaronhuisinga bengourley jbrooksuk

repo: bugsnag/bugsnag-js


text:
Cannot read property 'instance' of undefined at i.trace exception

The following exception gets thrown from a limited set of IPs which are trying to reach pinterest.com:
TypeError: Cannot read property 'instance' of undefined
	at i.__trace__ (https://s.pinimg.com/webapp/js/bugsnag-693c66a9f6ec8285e05d.mjs:1:29967)

Related minified code:
if(n&&e.apply(this,r),"function"!=typeof i)return e.apply(this,r);if(i.__trace__)o.replace(i.__trace__);else{var a=f();i.__trace__=function(){d(a),g((function(){d(null)}),0);var e=i.apply(this,arguments);return d(null),e},i.__trace__.__trace__=i.__trace__,o.replace(i.__trace__)}}catch(s){}if(e.apply)return e.apply(this,r)

We use @bugsnag/js v7.0.0 and initialize the library this way:
import Bugsnag from '@bugsnag/js';
Bugsnag.start({
      apiKey,
      releaseStage,
      appVersion
});

Hey @christianvuerings, I'm wondering if since it's only affecting a certain number of select IPs, that this is related to a location or a VPN blocking an element of your Javascript from loading, and then when addressed throwing this undefined error.
The code at https://s.pinimg.com/webapp/js/bugsnag-693c66a9f6ec8285e05d.mjs looks to be a minified version of the bugsnag-js v7.0.0 code with some additional initialization code, but the sourceMappingURL is not found so I was unable to unminify this entirely to see what's different exactly.
Are you able to reproduce this error locally at all? If you could write in to support@bugsnag.com letting us know the link to these errors that would be very helpful to find out any more information.

authors: christianvuerings xander-jones


text:
lose data in linux

Hi, i want to use this lib to reveive and handle message by a hardware(SIM900A), but i just receive part of the message, and i use minicom to test the hardware, it works fine.
just like the picture:

there is my code:
package app

import (
	"go.bug.st/serial"
	"io"
	"log"
	"strings"
	"sync"
)

const BUFFER_SIZE = 1024 * 8
var port io.ReadWriteCloser = nil

func connDevice() {
	options := &serial.Mode{
		BaudRate: 115200,
	}
	p, err := serial.Open("/dev/ttyS2", options)
	if err != nil {
		log.Fatal(err)
	}
	port = p
}

func close() {
	if port != nil {
		port.Close()
	}
}

func listenSms() {
	buffer := make([]byte, BUFFER_SIZE)
	for {
		port.Read(buffer)
		sms := string(buffer[:])
		if strings.Contains(sms, "+CMT:") {
			log.Println("receive a message.")
			log.Println(sms)
		} else if len(strings.ReplaceAll(string(buffer), string(0), "")) > 0 {
			// todo
		}
	}
}

func main() {
	wg := sync.WaitGroup{}
	wg.Add(1)
	connDevice()
	defer close()
	go listenSms()
       // other gorutine, don't use serial
	wg.Wait()
}

and this code can run correctly in windows with CH340, but in linux (ARM, the hardware is bananapi m2 zero, the os is ubuntu16.04, SIM900A connect to bananapi by UART pins), it is wrong.

@darthrookie Thanks, I have tried it and it works well.

repo: bugst/go-serial


text:
Get Location Tool can't access GPS location

When I test the get location tool on its own by triggering the _run function with the arg "here" it accurately provides out the simulator GPS latitude and longitude, but when the agent uses the tool it says something like "You are currently at the location with the latitude and longitude values provided by the GetLocation tool." instead of providing the lat and long values.
I added permission in my info.plist for location access and when I run the function manually with a tesrt button the Location symbol shows up in the top bar that shows when its' accessing your location, but when Langchain uses the tool the symbol does not show up, which leads me to believe that it does not have permission to access the location for some reason.
At first it was just providing the example lat and long values given in the tool description but then I edited it in my fork to display 'Returns the current numerical latitude and longitude values in this format "Latitude, Longitude"'

Can you provide a minimum reproduction project?

Yes will do tomorrow morning!
That's when I just create a stripped down version of the project for testing purposes, correct?
Still very new to this..

Okey. Nice.

Nevermind, either your new version fixed this or more likely I messed something up in the process of exploration.
thanks!

non-issue

My mistake - it is still not working. At first it provides the example coordinates from the getlocations.swift file tool prompt "Tool of get current location.
Input must be "here".
Returns the current longitude and latitude, such as -78.4:38.5."
and I mistook them for my actual location, but when I reformatted the description to read
"Tool of get current location.
Input must be "here".
Returns the current latitude and longitude in the form: "lat, long".
It defaults to providing the coordinates for City Hall in NYC
"40.7128, -74.0060"
Again I think this must be a permissions issue or something because I can run the tool manually perfectly fine and get my accurate location coordinates.
Will upload a minimum reproduction project later!

Fixed it
In the end I was using ChatOpenAI instead of OpenAI as the llm and that seems to have been causing the problem. All good.

Congratulate!
Do I need to change anything?

Congratulate! Do I need to change anything?

No sir!

authors: SteveCutler buhe

repo: buhe/langchain-swift


text:
feat(node): poc of a node/typescript integration

Proposed changes
A proof-of-concept of an integration that works with NodeJS and Typescript. It currently downloads and installs the Ockam Command on-demand using an install script which (should) be executed as part of npm install once this is packaged and published to the npm registry. All methods are ultimately running a child process with Command rather than integrating with the Rust bindings directly in any way.

This is awesome,
Backed up your branch here: https://github.com/build-trust/ockam/tree/backup/glenngillen/node-spike
I refactored this PR:

to be a package in implementations/typescript, so we can benefit from shared infra and publish this as @ockam/command on npm registry.
Remove the child_process package, which seems unmaintained and held as a place holder by the npm security team. Replaced it with node's child_process.
Added some infra for testing with jest and formatting with prettier.

Instructions to try with pnpm:
https://github.com/build-trust/ockam/blob/975f0f3e6323d4681e5355b04100d8b354905c50/implementations/typescript/DEVELOP.md

Merged, will land the other commands from https://github.com/build-trust/ockam/tree/backup/glenngillen/node-spike in a follow up PR.

authors: glenngillen mrinalwadhwa

repo: build-trust/ockam


text:
wish: Zydis - Fast and lightweight x86/x86-64 disassembler and code generation library

Fast and lightweight x86/x86-64 disassembler and code generation library.
Features

Supports all x86 and x86-64 (AMD64) instructions and extensions
Optimized for high performance
No dynamic memory allocation ("malloc")
Thread-safe by design
Very small file-size overhead compared to other common disassembler libraries
Complete doxygen documentation
Absolutely no third party dependencies — not even libc

Should compile on any platform with a working C11 compiler
Tested on Windows, macOS, FreeBSD, Linux and UEFI, both user and kernel mode

Examples
Disassembler
The following example program uses Zydis to disassemble a given memory buffer and prints the output to the console.
int main()
{
    ZyanU8 data[] =
    {
        0x51, 0x8D, 0x45, 0xFF, 0x50, 0xFF, 0x75, 0x0C, 0xFF, 0x75,
        0x08, 0xFF, 0x15, 0xA0, 0xA5, 0x48, 0x76, 0x85, 0xC0, 0x0F,
        0x88, 0xFC, 0xDA, 0x02, 0x00
    };

    // The runtime address (instruction pointer) was chosen arbitrarily here in order to better
    // visualize relative addressing. In your actual program, set this to e.g. the memory address
    // that the code being disassembled was read from.
    ZyanU64 runtime_address = 0x007FFFFFFF400000;

    // Loop over the instructions in our buffer.
    ZyanUSize offset = 0;
    ZydisDisassembledInstruction instruction;
    while (ZYAN_SUCCESS(ZydisDisassembleIntel(
        /* machine_mode:    */ ZYDIS_MACHINE_MODE_LONG_64,
        /* runtime_address: */ runtime_address,
        /* buffer:          */ data + offset,
        /* length:          */ sizeof(data) - offset,
        /* instruction:     */ &instruction
    ))) {
        printf("%016" PRIX64 "  %s\n", runtime_address, instruction.text);
        offset += instruction.info.length;
        runtime_address += instruction.info.length;
    }

    return 0;
}

The above example program generates the following output:
007FFFFFFF400000   push rcx
007FFFFFFF400001   lea eax, [rbp-0x01]
007FFFFFFF400004   push rax
007FFFFFFF400005   push qword ptr [rbp+0x0C]
007FFFFFFF400008   push qword ptr [rbp+0x08]
007FFFFFFF40000B   call [0x008000007588A5B1]
007FFFFFFF400011   test eax, eax
007FFFFFFF400013   js 0x007FFFFFFF42DB15

Encoder
int main()
{
    ZydisEncoderRequest req;
    memset(&req, 0, sizeof(req));

    req.mnemonic = ZYDIS_MNEMONIC_MOV;
    req.machine_mode = ZYDIS_MACHINE_MODE_LONG_64;
    req.operand_count = 2;
    req.operands[0].type = ZYDIS_OPERAND_TYPE_REGISTER;
    req.operands[0].reg.value = ZYDIS_REGISTER_RAX;
    req.operands[1].type = ZYDIS_OPERAND_TYPE_IMMEDIATE;
    req.operands[1].imm.u = 0x1337;

    ZyanU8 encoded_instruction[ZYDIS_MAX_INSTRUCTION_LENGTH];
    ZyanUSize encoded_length = sizeof(encoded_instruction);

    if (ZYAN_FAILED(ZydisEncoderEncodeInstruction(&req, encoded_instruction, &encoded_length)))
    {
        puts("Failed to encode instruction");
        return 1;
    }

    for (ZyanUSize i = 0; i < encoded_length; ++i)
    {
        printf("%02X ", encoded_instruction[i]);
    }
    puts("");

    return 0;
}

The above example program generates the following output:
48 C7 C0 37 13 00 00

More Examples
More examples can be found in the examples directory of Zydis repository.

https://github.com/build2-packaging/zydis
https://github.com/build2-packaging/zycore
https://queue.cppget.org/libzycore
https://queue.cppget.org/libzydis

license: Unlicense


text:
Allow automatic zip/unzip

It would be great if the plugin zips/unzips artifacts automatically
A build step can generate a lot of artifacts: Test results, htmls, screenshots...
Currently, the UI does not have a "Download all" button, and don't know if its feasible to implement
Having auto-package/un-package artifacts will allow to download them at one shot and save space on artifacts server
In terms of plugin api, it could be something like
steps:
  - plugins:
      - artifacts#v1.2.0:
          upload: [ "log/**/*.log", "debug/*.error" ]
          # makes a `output.tar.gz` with all the files found by the `upload` directive
          # and uploads only an artifact called `output.tar.gz`
          pack: "output.tar.gz"

steps:
  - plugins:
      - artifacts#v1.2.0:
          download: [ "log/**/*.log", "debug/*.error" ]
          # downloads `output.tar.gz` and decompress only
          # the files matching the `download` directive
          pack: "output.tar.gz"

@toolmantim WDYT?

+1 to this - our artifacts include the entire contents of a directory (10,000s of files) which we archive as directory.zip - its much more intuitive and accessible this way, but writing the boilerplate to archive/unarchive is a little tedious

I just created a PR implementing this feature. Note that I called it compressed instead of pack, but your idea was spot on to make the implementation quite simple and I wouldn't have thought of it myself.

authors: ca-johnson jmendiara toote


text:
Add script and template to generate docs for CloudFormation template

Add ERB template which generates a docs page from the inline CloudFormation template parameter docs.
Fixes #1093

It doesn’t look particularly pretty but the template works 😄
https://docs-review-pr-1167.herokuapp.com/docs/agent/v3/elastic-ci-aws/parameters

Can I hand this off to you @plaindocs to make it look good?

This is great stuff @keithduncan .
Over in the ancient #1002 I started some nudges towards standardization on:

YAML in /data
having a script to generate the data, but leave the page generation to the rails app, do you reckon that would work here? similar to how agent updater works
At some point we could look at automating the pull request when a new agent is released (or whatever would trigger an update here)

Any thoughts?

YAML in /data

:+1:

having a script to generate the data, but leave the page generation to the rails app, do you reckon that would work here? similar to how agent updater works

Do you know whether these go through any precompiling by the assets pipeline? My aim here was to avoid having the docs frontends read, parse and generate that YAML file for each request since we know it isn’t going to change live.

At some point we could look at automating the pull request when a new agent is released (or whatever would trigger an update here)

That’s the dream! 😄 depending on what you think of the doc content itself I did consider support for an 'overrides' file that could overwrite or append to the docs coming in from the template so we can add more detail here while leaving the template quite utilitarian.

authors: keithduncan plaindocs

repo: buildkite/docs


text:
Current release 0.1.2 does not have patched lockfile

Description
The current release (0.1.2) does not contain the fix from #7. This prevents users from using a frozen lockfile to build the collector.
Reproduction
You can reproduce the issue by executing the following:
git checkout 0.1.2
cargo build --frozen --release

I don't have permission to release this crate anymore - @gchan or @KatieWright26; any chance you can cut a new release?

I can sort that out! 👍🏼
I imagine we'll need to bump the patch-level to v0.1.3 as presumably we can't amend the existing v0.1.2 release?

I believe that is correct @pda. You could also yank 0.1.2, but I don't know that it's necessary since it builds for everyday users (cargo install). Thank you!

I believe this is sorted in https://crates.io/crates/buildkite-test-collector/0.1.3
(Hopefully I haven't made the same/similar mistake 😅)
As far as I can tell, I can cargo build --frozen --release the v0.1.3 tag.

Thank you all! I think that works well :)

Are you going to git tag for version 0.1.3. @pda?

Oops, I didn't see your reply.
I believe I did create the git tag v0.1.3:

But perhaps I should have also drafted/publishes a Release for that tag?
I've done that now:
https://github.com/buildkite/test-collector-rust/releases/tag/v0.1.3

Thank you!

authors: jimsynz nickgerace pda

repo: buildkite/test-collector-rust


text:
Support yj's updated download filename

As of yj 5.1.0+ the filename of the asset attached to the GitHub release is now yj-linux-arm64 instead of yj-linux.
For example:
https://github.com/sclevine/yj/releases/tag/v5.1.0
vs
https://github.com/sclevine/yj/releases/tag/v5.0.0
This change ensures that the new yj default (as of #164; which updated the default yj from 5.0.0 to 5.1.0) is able to be downloaded, since currently the setup-tools action fails with:
Installing yj 5.1.0
curl: (22) The requested URL returned error: 404
Error: Process completed with exit code 22.

The bash string comparison of the semver version isn't ideal, but it doesn't feel worth adding further complexity given that:

all yj releases so far use a full semver version (and not say an X.Y version)
yj major releases are infrequent, so it's going to be a while before v10 is out (which would break the comparison) - by which point this backwards compatibiluty comparison can just be removed (and support for pre v5.1.0 removed).
any failure modes will be fairly noisy/obvious, and won't result in a subtle bug.

@jkutner Thank you for the review/merge. I don't suppose you could release v5.0.1 of the action, so as to fix the stable latest setup-tools action release?

done. thanks for the nudge

authors: edmorley jkutner

repo: buildpacks/github-actions


text:
Order by QUALITY, POPULARITY, MAINTENANCE or OVERALL

I want to know which packages are the most popular or best maintained.  How can I sort by one of the attributes instead of just it always sorting by Overall?

@gofreddo Thanks for the request. Let me add this as a feature

Just found some time to add this feature in.

authors: abishekrsrikaanth gofreddo

repo: builtforvue/ui


text:
🛑 GOTO Parking is down

In 6fcac90, GOTO Parking (https://gotoparking.ro) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GOTO Parking is back up in 8ba2314 after 23 minutes.

repo: buligadragos/UpTime


text:
🛑 heartMap is down

In e971489, heartMap (https://heartmap.buligadragos.work/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: heartMap is back up in 1481349.


text:
这个还有维护吗

怎么使用呀

在维护 根据readme使用

repo: bumandpunk/ntchat-wx