Custom Dimensions

Ref #70

Maybe some javadoc to say that customvars are being deprecated at some point and some javadoc to say currently customdimensions require a plugin (insert plugin link).

@d4rken Sure, I'll update javadoc but I can't figure out how we can replace CustomVariables  with new plugin aproach 	though. Some users may want to sent customvars and custom dimensions in one request.

AFAIK the new plugin approach is not there to replace the current approach. It's a switch that will be done with Piwik 3.0 and for now requires an extra plugin. So currently you can install the plugin and do both customvariables and customdimensions.

The current custom variables approach does json conversion, so we can't really replace it anyways as the server wouldn't understand the syntax dimension$dimensionId=$dimensionValue without the plugin and even then, would it group the information in the same way? Probably not.

Did you remove the javadoc changes to setScreenCustomVariable? I think we could still encourage people to look at CustomDimensions. As deprecated might be too harsh, maybe something like:

This will be replaced by https://plugins.piwik.org/CustomDimensions at some point.

Otherwise, good job,  :+1:  for merge into dev.
btw what does the label CR stand for?

I have moved javadoc with setScreenCustomVariable straight to the master.
CR means that a Code Review is needed.


Benchmarks

This module can be the biggest performance bottleneck in projects such as lotion, so it will make sense to spend some time building benchmarks and optimizing against them.

Hi, I'm also very interested in a performance of a state object of lotion.js in a case when a state object is too large. Let's say state object stores nonces for 1 million accounts – this is a common requirement for a blockchain project.

@siman That's definitely a focus of this module and I have been targeting performance for millions of accounts like you suggest. Everything should happen in roughly O(log N) so queries and updates should already be pretty efficient as long as the data is structured into many separate objects (but also even it isn't once #3 is implemented).
Last time I ran some rough benchmarks with ~1 million accounts on my Macbook, I was getting hundreds of updates per second, and tens or hundreds of thousands of queries per second (and I think this can be optimized much further once we need to).

With the Rust rewrite now we have lots of benchmarks and much higher performance, closing.


🖐 Docker commands not working after v0.7.4

What happened? What did you expect to happen?
We are facing an issue with running docker commands with dagger ever since v0.7.4. That is the last version where it worked for us. We planned to use dagger in our ci/cd and some tasks include docker commands. It also fails for simple commands such as docker ps. Here is a snippet of command we use in go:
socket := client.Container().
		From("docker").
		WithUnixSocket("/var/run/docker.sock", client.Host().UnixSocket("/var/run/docker.sock")).
		WithExec([]string{"docker", "ps"})
	out, err := socket.Stdout(ctx)
	if err != nil {
		panic(err)
	}
	fmt.Println(out)

When this is ran with dagger.io/dagger v0.7.4 then we have the expected output of docker container list.
When the same is ran with v0.8 or v0.9 versions then it fails with the following:
13: exec dockerd-entrypoint.sh docker ps
13: [0.11s] runc run failed: unable to start container process: error during container init: error mounting "cgroup" to rootfs at "/sys/fs/cgroup": mount cgroup:/sys/fs/cgroup/openrc (via /proc/self/fd/6), flags: 0xf, data: openrc: invalid argument
13: exec dockerd-entrypoint.sh docker ps ERROR: process "dockerd-entrypoint.sh docker ps" did not complete successfully: exit code: 1
panic: input:1: container.from.withUnixSocket.withExec.stdout process "dockerd-entrypoint.sh docker ps" did not complete successfully: exit code: 1

Stdout:

Stderr:

goroutine 1 [running]:
main.main()
        /Users/karlisakotsgribulis/repos/github/dagger-ci-example/examples/docker-engine-host/main.go:31 +0x404
exit status 2

I am using Rancher Desktop on MacOS with M2 chip.
Is there something that we are missing? Or is this a known issue that would be fixed? Or is this interaction no longer supported? Any help would be greatly appreciated as we are hard stuck due to this and are forced to use older version.

@KarlisAG Rancher support on M1/M2 is abysmal, have you tried Orbstack? I'm using it for a few months and haven't come across any showstopper bug yet, compared to other containerization solutions

Thanks for the input @xsxz, I tried with OrbStack and the problem indeed disappeared. So it really seems to be a Rancher problem currently


add @NotCritical annotation for proxies to catch exceptions and only log them if something goes wrong in plugin/securityRule

just use try catch in plugin/rule


Bug: No Disk Icon in "Disk" Category

Description
I don't see any icons other than the default drive icon in the "Disk" category in Files. Even when I connect removable drives such as USB drives, external hard drives, or memory cards, only a folder icon is displayed.
Steps To Reproduce

Open Files
Insert a removable disk
Only one file icon appears

Requirements
The icons associated with each removable disk should be introduced in the sidebar.
Files Version
Version : <IP_ADDRESS>
Windows Version
Windows 11 22H2 22621.1635
Log file
No need

@Lukiluc29 thank you for the report, can you attach the log file?

Why do you attach the log file when it's just an icon and not a bug or for example the application is not responding or something?

Icons not showing is a bug and the log file could show an error on why it won't show them.

debug.log

Thanks! Can you also share a screenshot of the issue?

And there is also the OneDrive logo in the sidebar and also where the file is located.

@gave92 are removable drives supposed to have the folder icon?

No it should match those

Nope, iirc we user to display the corect (drive) icon for removable drives.

If it's displaying on the home page, it might be because the sidebar uses a different resolution/size.

S'il s'affiche sur la page d'accueil, c'est peut-être parce que la barre latérale utilise une résolution/taille différente.

Maybe, but that doesn't explain why internal drives have a logo and removable ones don't.

If it's displaying on the home page, it might be because the sidebar uses a different resolution/size.

Maybe, but that doesn't explain why internal drives have a logo and removable ones don't.

I have a fix


gmail.get.email_data failing for some reason

I believe I found a bug but want to make sure my code is correct.
gmail.observe.on('view_thread', () => {
  const emailData = gmail.get.email_data()
  console.log(`${emailData}`)
})

Based on the documentation I believe that when I click an email thread, emailData should return an object which contains data about the email.
When I click an email thread the code executes at the proper time. Unfortunately I get the following in the console. The GET seems to be receiving an undefined param which results in an erroneous response format. The behavior is the same even if I move lines 2-3 out of the observer.

Hey Brantron.
Thanks for the report. Thanks for the code-sample and the stack-trace. That's good info :)

Does this always fail? (Because I can't reproduce with the code provided)
Is this a new project or is this something which used to work?
Are you using latest Gmailjs?
Have you recently upgraded to latest version? (And if so what did you use?)
Etc

Basically anything to make it easier to narrow down the problem. Could you also outline what exactly you're trying to achieve?
Maybe there are other ways which doesn't have the same problems. For instance, if you subscribe to the view_email sub-observer, you will receive a api.dom.Email-instance with the event, which might contain the information you need.
If that doesn't do it... Could you provide a little more data/examples to outline this but:

The GET seems to be receiving an undefined param which results in an erroneous response format.

Full query URL for once would be a good start. Second ... What format is the response? JSON? HTML? Can you provide a screenshot from the network-tab in your developer console?

I had the same error. Just Update your gmail.js file.

Hi,
I am also facing same issue in my project. I am using updated gmail.js file and trying to get "email_ids()".
For this I have used below code
var gmailSave = new Gmail($);
var email_ids = gmailSave.get.email_ids();
After running above code I got this error

I have debugged it in gmail.js file, Then I found some issue with URL in "api.helper.get.email_data_pre" function.
URL -

After hitting this URL manually I am getting temporary error message.
Temporary Error -

I have also captured network activities.
Headers -

Response -

Please help.

If you just build the boilerplate project and install that in your browser, this leaves you a working gmail-instance available in the web developer console.
Can you reproduce the error by loading that extension and manually entering the code you've demonstrated here?
If not, it's probably related to how you load your code and when you execute it.

Hey!
I hope i can help. Just go to :
https://github.com/o-x-y-g-e-n/gmail-extension/blob/master/dist/extension.js
Scroll to the bottom most. Locate a comment 'shivam gohel'.
Yes, i had to manually write that code to make it work. I hope it helps.
[image: Mailtrack]
https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&
Sender
notified by
Mailtrack
https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&
31/08/18,
11:43:22
On Fri, Aug 31, 2018 at 10:59 AM muraridubey<EMAIL_ADDRESS>wrote:

Hi,
I am also facing same issue in my project. I am using updated gmail.js
file and trying to get "email_ids()".
For this I have used below code
var gmailSave = new Gmail($);
var email_ids = gmailSave.get.email_ids();
After running above code I got this error
[image: console_error]
https://user-images.githubusercontent.com/42836660/44893530-2d3bba00-ad09-11e8-9f08-d5c0cb54482b.png
I have debugged it in gmail.js file, Then I found some issue with URL in
"api.helper.get.email_data_pre" function.
URL -
[image: url]
https://user-images.githubusercontent.com/42836660/44893688-dc789100-ad09-11e8-87f6-996e414c9a28.png
After hitting this URL manually I am getting temporary error message.
Temporary Error -
[image: temporary_error]
https://user-images.githubusercontent.com/42836660/44893791-4b55ea00-ad0a-11e8-90ea-1ce3332727cf.png
I have also captured network activities.
Headers -
[image: network_headers]
https://user-images.githubusercontent.com/42836660/44893920-e5b62d80-ad0a-11e8-930b-6f6ea4f25cb0.png
Response -
[image: network_response]
https://user-images.githubusercontent.com/42836660/44893925-ee0e6880-ad0a-11e8-8b71-52786e01b208.png
Please help.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/KartikTalwar/gmail.js/issues/451#issuecomment-417556072,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVtUKsd-q4c3uQYxaYzPdeALRaRQwA7jks5uWMnWgaJpZM4SchCB
.

The code in your dist-folder does not match the code in the src folder, which is always suspicious. Try cleaning up your code. Ideally the dist-folder shouldn't be committed at all.
From the error-message you're getting, it seems like you're not providing any ID.  Maybe you should add some logging to verify the incoming ID in the "open_email" observer?
Also, your code (in dist) has at least issue: Trying to obtain email-ID from DOM while DOM is being rendered, instead of just using the ID variable you already have. Are there any particular reason you do this?
At best it will make your code slower and more error-prone. At worst it will provide you with inconsistent results.

Yes, i had to manually write that code to make it work. I hope it helps.

That probably means it's related to how you load your code.
Try not registered the observer inside the load-observer when everything should be ready.

Maybe it works. If it does, good for you I guess? :smile:
If it stops working, we have some new APIs which hopefully are not broken.


Added a Recently played section as per requirement.

@Ctoic
I've added a proper Recently played section which uses the local storage to keep track of the 5 recently played audiobooks and displays them right below the "Top Audio Books" Section. I've kept in mind all the requirements which are:
Description: Allow users to quickly access audiobooks they recently listened to by creating a "Recently Played" section below the "Top Audio Books" section.
Tasks:
Use localStorage to store the last few audiobooks the user played.
Create a new section on the homepage to display these books.
Ensure it updates dynamically as users interact with new books.
Review the code and merge the pull request. It has given me an amazing chance to take part in the Hacktoberfest.
Thank you!

Great @G-SaiVishwas Will merge after review.


Suspicious constant 1-recall score

I have trained 3 different index and every time, my 1-recall@20 are exactly the same:
INFO:autofaiss: 1-recall@20: 0.802
INFO:autofaiss: 1-recall@40: 0.824
But there is some variation in the 20-recall and 40-recall scores.
3 digits of exactitude is too much.
What do you think about it?

The kmeans training is not deterministic unless you fix the seed.

Ah i thought you were reporting scores not being exactly the same.
It's expected they are almost the same yes.

Ok,  I've investigated, with a loop on:
set_search_hyperparameters(
    index, f"nprobe={nprobe},efSearch={2*nprobe},ht={ht}", use_gpu=False
)

in fact, my 1-recall@40 is asymptotically convergent toward 0.8 with nprobe.
But weird thing is : the limit does not depend on the factory string.
I've tried
OPQ128_896,IVF65536_HNSW32,PQ128x8
OPQ256_1024,IVF65536_HNSW32,PQ256x8
and OPQ768_768,IVF262144_HNSW32,PQ768x4fsr
And I always have 1-recall@40 = 0.82 for reasonable value of nprobe


correct spelling

correct spelling

Coverage increased (+0.02%) to 50.664% when pulling 46ad1096ee60dda43ed476eafe934602df70ec3d on liaozan:master into f8f6fbe4aa7f5dee937e688322628c366b12a552 on apache:develop.


Account with Ledger can not remove other keys

Problem
Deleting key from an account in the Wallet that was previously authorized with Ledger key doesn't show any error and doesn't delete key.
Expected Behavior
Key gets deleted
Steps to reproduce

Account: marbletest.testnet
Open full access keys
Select non ledger key and try to deactivate it
Observe error in console without anything showing in the UI:
Error in background action: Error: Can not sign transaction for account, no matching key pair found.

This will be addressed in this PR: https://github.com/near/near-wallet/pull/645. We'll either be removing the Full Access Keys page entirely or restructuring it: #640.

This signatureFor issue is being fixed here https://github.com/near/near-wallet/pull/594/commits/b0ed701ba0853d084b1bc436b09f91c92ecb5fc2

I believe underlying issue is fixed with https://github.com/near/near-ledger-app/commit/bcce2a67ca5c0d3e8bc8afa9cf53910f5ac80e12


Perf: Instructor Dashboard performance regressions

In large scale load testing, the following Instructor Dashboard reports have poor performance, or are timing out:

Currently enrolled learners per day

This only seems to be slow when no course filter is applied, we could possibly force a course filter here)

Transcripts / Captions per video

This is pulling directly from xapi_events_all_parsed and should probably have an intermediate model of just these events with associated "enabled" / "disabled" values parsed out

The transcripts chart should be backed by a smaller MV instead of the larger xapi_events_all_parsed table, so performance should be improved.
I haven't been able to get much more performance out of the enrolled learners per day dataset, so I think requiring a course filter would be a reasonable change to enhance performance.

I think choosing a course is going to be required for v1 anyway 👍  Calling this one done, we'll do another round of testing once we have a v1 RC.


Access denied finding property "camera.aux.packagelist"

Description of the problem:
Nothing is happening after scanning QRCode. I am just getting the following error:
Access denied finding property "camera.aux.packagelist"
Using library com.journeyapps:zxing-android-embedded:3.6.0
Using Vivo V9  Funtouch OS Android version 8.1.0
Here is the log:
D/Camera: release finalizeCamera
V/Camera: sendReleaseCameraBroadCast mIsNormalCamera = true
D/Camera: closeFlashlightService package name io.shoffrstoreboard
W/CameraThread: type=1400 audit(0.0:6884): avc: denied { open } for path="/dev/__properties__/u:object_r:camera_prop:s0" dev="tmpfs" ino=14398 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "camera.aux.packagelist"
D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=CaptureActivityPortrait, firebase_previous_id(_pi)=-7282452548712047663, firebase_screen_class(_sc)=StoreListActivity, firebase_screen_id(_si)=-7282452548712047665}]
V/FA: Activity resumed, time: 56421652

This looks like an issue with the specific device or application. Does scanning work with the sample application or the Barcode Scanner app?

did you guys solve this problem?, I am also facing this issue.

The same error also happens to me, in some devices, when I try to scan a bar code.
W/CameraThread: type=1400 audit(0.0:150997): avc: denied { read } for name="u:object_r:nvram_country_prop:s0" dev="tmpfs" ino=490 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:nvram_country_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "ro.camera.sound.forced"
E/libc: Access denied finding property "camera.hal1.packagelist"

I have the same issue in my app. Barcode Scanner app works like a charm. It's seems to be a hardware problem(probably autofocus)

I have to face the same issue in MI A1 device but not using this library.
My solution is to use the below code in your manifest
<application> <uses-library android:name="org.apache.http.legacy" android:required="false"/> </application>
It was solved my Access denied finding property "camera.aux.packagelist" issue.

Closing this issue, as it is device-specific, and probably doesn't affect the actual scanning.

I have the same problem on OnePlus 8T Pro.
Other scanners app from store work fine.

I have the same problem on OnePlus 8T Pro.
Other scanners app from store work fine.

这个问题应该被重新打开和找出原因，大概率还是代码问题


Auto remove the contamination

Please see point 3 here: https://github.com/ncbi/fcs/wiki/FCS-GX-quickstart#usage-examples
By default the NCBI GX tool hard masks internal contaminants. Hard masking already has multiple meaning. First, it can represent a gap. Second, it can represent hard masking by a tool such as repeat masker. Now with this, it can also mean hard masking due to contamination.
Some suggestions:

Adaptors should be removed by the assembler software.
Foreign organism contamination should be removed following the recommendations from NCBI FCS GX (https://github.com/ncbi/fcs/wiki/FCS-GX-output#fcs-gx-action-report), except for the FIX action for internal contaminations. Instead of hard masking the contamination, we should insert 100 N's there to denote a gap of unknown size.


Generate all Pythagorean Triples within a Given limit in C++

🚀 Feature
(A Program to Generate all the Pythagorean Triples within a User-given limit)
Have you read the Contributing Guidelines on Pull Requests?
(Yes)
Motivation
(Pythagorean Triples Generation using Rationality relation is an important Math-centric algorithm.)
Pitch
(A Program to Generate all the Pythagorean Triples within a user-given limit
SAMPLE I/O:
Enter a limit: 20
3 4 5
8 6 10
5 12 13
15 8 17
12 16 20)

Can you please assign this issue to me

Can I go ahead with this?

please assign this issue yo me


multi command keybinds

list of commands can now binded to a key by ; ,
for example bindsym $mod+Return exec urxvt; exec firefox, exec whatever
commands return a bit more information, which config_read handles better.
for example mode this { and }

Looks alright. Need to hear test results from xorg and native before I'll merge.

bump. Any testers?

w/e


Return results from cx.active.current.files in the same order as configured in sort_by

yazi --debug output
Yazi
    Version: 0.3.0 (Arch Linux 2024-08-07)
    Debug  : false
    OS     : linux-x86_64 (unix)

Ya
    Version: 0.3.0

Emulator
    Emulator.via_env: ("xterm-kitty", "")
    Emulator.via_csi: Ok(Kitty)
    Emulator.detect : Kitty

Adapter
    Adapter.matches: Kitty

Desktop
    XDG_SESSION_TYPE: Some("x11")
    WAYLAND_DISPLAY : None
    DISPLAY         : Some(":0")

SSH
    shared.in_ssh_connection: false

WSL
    /proc/sys/fs/binfmt_misc/WSLInterop: false

Variables
    SHELL              : Some("/usr/bin/bash")
    EDITOR             : Some("nvim")
    YAZI_FILE_ONE      : None
    YAZI_CONFIG_HOME   : None
    ZELLIJ_SESSION_NAME: None

Text Opener
    default: Some(Opener { run: "${EDITOR:=vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block  : Some(Opener { run: "${EDITOR:=vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })

tmux
    TMUX   : false
    Version: No such file or directory (os error 2)

Dependencies
    file             : 5.45
    ueberzugpp       : No such file or directory (os error 2)
    ffmpegthumbnailer: No such file or directory (os error 2)
    magick           : No such file or directory (os error 2)
    fzf              : 0.54.3
    fd               : 10.1.0
    rg               : 14.1.0
    chafa            : No such file or directory (os error 2)
    zoxide           : No such file or directory (os error 2)
    7z               : 17.05
    7zz              : No such file or directory (os error 2)
    jq               : No such file or directory (os error 2)

--------------------------------------------------
When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time.
You can find it in the "/home/omar/.local/state/yazi" directory.

Please describe the problem you're trying to solve
Im trying to get the list of files under the current directory in the same order as I'm viewing the files in yazi, but the files seem to be returned in a random order every time.
Using this plugin at ~/.config/lazy/plugins/repro.yazi/init.lua:
local M = {}

local get_files = ya.sync(function()
    local files = cx.active.current.files
    local names = {}
    for i = 1, #files do
        names[i] = tostring(files[i].name)
    end
    return names
end)

function M.entry()
    local files = get_files()
    ya.notify {
        title = 'files',
        content = table.concat(files, '\n'),
        timeout = 10,
    }
end

return M

And using a keymap like this:
[[manager.append_keymap]]
on = '<C-l>'
run = 'plugin repro'
desc = 'Show files'

I get this result using sort_by = 'natural', note that the results in the notification are in a different order from those in the middle column:

Would you be willing to contribute this feature?

[ ] Yes, I'll give it a shot

Describe the solution you'd like
Return the the list of current files in the same order as configured in yazi.toml. Alternatively, expose the functions to sort filenames under the global ya, maybe ya.sort_natural, ya.sort_modified, etc.
Additional context
No response
Validations

[X] I have searched the existing issues
[X] The latest nightly build of Yazi doesn't already have this feature

After experimenting a bit more, it seems that it works as expected when the --sync flag is used to call the plugin:
[[manager.append_keymap]]
on = '<C-l>'
run = 'plugin --sync repro'
desc = 'Show files'

Is this intended?

Though this is still a problem, because then I can't use any of the async features (like the Command object), so I have to pick between async or receiving the files in the order that I want.

Thanks for the report!
I can reproduce the issue, will create a PR to fix it.

Please try https://github.com/sxyazi/yazi/pull/1457

I can confirm that it works, thanks!


Update 'Policy Conflict', GP wins over MDM

Can you please update the statement about the conflict handling part below?
If a conflicting policy is applied via MDM and GP, the setting applied from MDM takes precedence.
Basically, when an ASR rule setting has both MDM and GP setting, the GP value wins. Note that MDMWinsOverGPO is not working for this policy. Please help to correct the statement so that when an org has both MDM and GP, admin can understand they need to clean GP settings explicitly to allow MDM version work as expected.

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

ID: 1a360dd4-bb59-9f48-b182-8eaaf9e20a82
Version Independent ID: 54c5dde8-f8f1-4dd3-5408-12d2dc480970
Content: Enable attack surface reduction rules
Content Source: microsoft-365/security/defender-endpoint/enable-attack-surface-reduction.md
Service: microsoft-365-security
Sub-service: mde
GitHub Login: @Dansimp
Microsoft Alias: dansimp

@azureidentity Thank you for your feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/13250
Once the author approves, the changes will be live.
Thanks
Sri


Service Discovery for VM telemetry

This is the first PR to the VM service discovery repo, which could hopefully be added to istio-ecosystem.

This is a good start. I think the next step for this is to add a simple Dockerfile and instructions on deploying and running as a standalone thing or as a sidecar.

@douglas-reid Thanks for the suggestion! I actually tried to deploy as a sidecar by adding one more container, but I am stuck at reading the kubeConfig env to create a rest client. What would be the best way to do that in the container? Thanks!

See https://github.com/kubernetes/client-go/tree/master/examples/in-cluster-client-configuration for authenticating in cluster

See https://github.com/kubernetes/client-go/tree/master/examples/in-cluster-client-configuration for authenticating in cluster

Thanks!!

@howardjohn @douglas-reid I took you advice and maintain only one whole file instead of each WLE having one file. I also deployed it as a sidecar by adding the vm-discovery container to the Prometheus configuration.


fix set genre exclude boolean

fix https://github.com/jikan-me/jikan/issues/331

Nice, thanks. It does seem like this would fix the issue.
Strange that this just broke, perhaps MAL changed something with how they handle the gx flag. It was never obvious how it worked.
[ ~ ] $ curl 'localhost:8000/v3/search/anime?q=&page=1&genre=12&genre_exclude=1&order_by=id&sort=desc' > before_one.json
[ ~ ] $ curl 'localhost:8000/v3/search/anime?q=&page=1&genre=12&genre_exclude=0&order_by=id&sort=desc' > before_zero.json
[ ~ ] $ diff -s before_*
Files before_one.json and before_zero.json are identical
# git checkout your branch, restart PHP, flush cache
[ ~ ] $ redis-cli flushall
OK
[ ~ ] $ curl 'localhost:8000/v3/search/anime?q=&page=1&genre=12&genre_exclude=0&order_by=id&sort=desc' > after_zero.json
[ ~ ] $ curl 'localhost:8000/v3/search/anime?q=&page=1&genre=12&genre_exclude=1&order_by=id&sort=desc' > after_one.json
[ ~ ] $ jq '.results | .[0]' <after_zero.json
{
  "mal_id": 43467,
  "url": "https://myanimelist.net/anime/43467/Ajisai_no_Chiru_Koro_ni",
  "image_url": "https://cdn.myanimelist.net/images/anime/1367/109804.jpg?s=f650391a7183bb05b255c6fc38d438eb",
  "title": "Ajisai no Chiru Koro ni",
  "airing": false,
  "synopsis": "",
  "type": "OVA",
  "episodes": 1,
  "score": 0,
  "start_date": "2021-01-29T00:00:00+00:00",
  "end_date": "2021-01-29T00:00:00+00:00",
  "members": 201,
  "rated": "Rx"
}
[ ~ ] $ jq '.results | .[0]' <after_one.json
{
  "mal_id": 43917,
  "url": "https://myanimelist.net/anime/43917/Viola_wa_Utau",
  "image_url": "https://cdn.myanimelist.net/images/anime/1438/110173.jpg?s=983efdbac8060591d035738b95697265",
  "title": "Viola wa Utau",
  "airing": false,
  "synopsis": "Music video for the song Viola wa Utau by Noriyuki Makihara that was featured on NHK's Minna no Uta program. The video was animated by Kouichirou Uchida with assistance from Super Brain.",
  "type": "Music",
  "episodes": 1,
  "score": 0,
  "start_date": "2010-06-01T00:00:00+00:00",
  "end_date": "2010-06-01T00:00:00+00:00",
  "members": 0,
  "rated": "G"
}
[ ~ ] $ diff -s after_*
[ ~ ] $ diff <(jq '.results | .[] | .mal_id' <./after_zero.json) <(jq '.results | .[] | .mal_id' <./after_one.json)
1,50c1,50
< 43467
< 43466
< 43465
< 43426
< 43016
< 43015
< 43013
< 42848
< 42757
< 42756
< 42592
< 42591
< 42383
< 42324
< 42224
< 42223
< 42141
< 42048
< 42031
< 41848
< 41824
< 41795
< 41794
< 41691
< 41512
< 41397
< 41396
< 41375
< 41370
< 41282
< 41261
< 41260
< 41236
< 41235
< 41212
< 41211
< 41207
< 41200
< 40959
< 40941
< 40922
< 40855
< 40819
< 40801
< 40700
< 40658
< 40639
< 40521
< 40520
< 40519
---
> 43917
> 43814
> 43787
> 43779
> 43778
> 43775
> 43774
> 43772
> 43771
> 43768
> 43767
> 43763
> 43762
> 43761
> 43760
> 43756
> 43755
> 43746
> 43741
> 43735
> 43729
> 43727
> 43722
> 43711
> 43704
> 43694
> 43693
> 43692
> 43691
> 43690
> 43689
> 43688
> 43684
> 43683
> 43682
> 43629
> 43628
> 43627
> 43626
> 43609
> 43608
> 43603
> 43602
> 43600
> 43598
> 43591
> 43590
> 43567
> 43566
> 43565

Hmm, works there but not in a couple other requests, trying to look for patterns

Omitting is the same as not providing it, as it is now:
[ ~ ] $ curl 'localhost:8000/v3/search/anime?q=&page=1&genre=1&order_by=members&sort=desc' | jq '.results | .[0]'
{
  "mal_id": 16498,
  "url": "https://myanimelist.net/anime/16498/Shingeki_no_Kyojin",
  "image_url": "https://cdn.myanimelist.net/images/anime/10/47347.jpg?s=29949c6e892df123f0b0563e836d3d98",
  "title": "Shingeki no Kyojin",
  "airing": false,
  "synopsis": "Centuries ago, mankind was slaughtered to near extinction by monstrous humanoid creatures called titans, forcing humans to hide in fear behind enormous concentric walls. What makes these giants truly...",
  "type": "TV",
  "episodes": 25,
  "score": 8.45,
  "start_date": "2013-04-07T00:00:00+00:00",
  "end_date": "2013-09-29T00:00:00+00:00",
  "members": 2211252,
  "rated": "R"
}
[ ~ ] $ curl 'localhost:8000/v3/search/anime?q=&page=1&genre=1&genre_exclude=0&order_by=members&sort=desc' | jq '.results | .[0]'
{
  "mal_id": 16498,
  "url": "https://myanimelist.net/anime/16498/Shingeki_no_Kyojin",
  "image_url": "https://cdn.myanimelist.net/images/anime/10/47347.jpg?s=29949c6e892df123f0b0563e836d3d98",
  "title": "Shingeki no Kyojin",
  "airing": false,
  "synopsis": "Centuries ago, mankind was slaughtered to near extinction by monstrous humanoid creatures called titans, forcing humans to hide in fear behind enormous concentric walls. What makes these giants truly...",
  "type": "TV",
  "episodes": 25,
  "score": 8.45,
  "start_date": "2013-04-07T00:00:00+00:00",
  "end_date": "2013-09-29T00:00:00+00:00",
  "members": 2211252,
  "rated": "R"
}
[ ~ ] $ curl 'localhost:8000/v3/search/anime?q=&page=1&genre=1&genre_exclude=1&order_by=members&sort=desc' | jq '.results | .[0]'
{
  "mal_id": 1535,
  "url": "https://myanimelist.net/anime/1535/Death_Note",
  "image_url": "https://cdn.myanimelist.net/images/anime/9/9453.jpg?s=b89e80691ac5cc0610847ccbe0b8424a",
  "title": "Death Note",
  "airing": false,
  "synopsis": "A shinigami, as a god of death, can kill any person—provided they see their victim's face and write their victim's name in a notebook called a Death Note. One day, Ryuk, bored by the shinigami lifesty...",
  "type": "TV",
  "episodes": 37,
  "score": 8.62,
  "start_date": "2006-10-04T00:00:00+00:00",
  "end_date": "2007-06-27T00:00:00+00:00",
  "members": 2327770,
  "rated": "R"
}

Ah, but I believe this has flipped the meaning of genre_exclude, technically the 0/1 currently acts as what genre_include might.
Debugging MAL search queries always makes me confused, but I think that has to be fixed.
According to my code/looking back on discussions in the discord, the API currently does -
genre=12&genre_exclude=1 should mean NSFW results are included, genre=12&genre_exclude=0 should mean NSFW results (the genre 12) are not included -- excluded.
Currently it does the opposite (though Im still not totally clear on why flipping the bool worked, not sure if its targeting different integer values for the gx param):
[sean@fish-webserver ~/vps ] $ curl -s 'localhost:8000/v3/search/anime?q=&page=1&genre=12&genre_exclude=1&order_by=id&sort=desc' | jq '.results | .[0]'
{
  "mal_id": 43917,
  "url": "https://myanimelist.net/anime/43917/Viola_wa_Utau",
  "image_url": "https://cdn.myanimelist.net/images/anime/1438/110173.jpg?s=983efdbac8060591d035738b95697265",
  "title": "Viola wa Utau",
  "airing": false,
  "synopsis": "Music video for the song Viola wa Utau by Noriyuki Makihara that was featured on NHK's Minna no Uta program. The video was animated by Kouichirou Uchida with assistance from Super Brain.",
  "type": "Music",
  "episodes": 1,
  "score": 0,
  "start_date": "2010-06-01T00:00:00+00:00",
  "end_date": "2010-06-01T00:00:00+00:00",
  "members": 0,
  "rated": "G"
}
[sean@fish-webserver ~/vps ] $ curl -s 'https://api.jikan.moe/v3/search/anime?q=&page=1&genre=12&genre_exclude=1&order_by=id&sort=desc' | jq '.results | .[0]'
{
  "mal_id": 43467,
  "url": "https://myanimelist.net/anime/43467/Ajisai_no_Chiru_Koro_ni",
  "image_url": "https://cdn.myanimelist.net/images/anime/1367/109804.jpg?s=f650391a7183bb05b255c6fc38d438eb",
  "title": "Ajisai no Chiru Koro ni",
  "airing": false,
  "synopsis": "",
  "type": "OVA",
  "episodes": 1,
  "score": 0,
  "start_date": "2021-01-29T00:00:00+00:00",
  "end_date": "2021-01-29T00:00:00+00:00",
  "members": 193,
  "rated": "Rx"
}

Am still confused as to why flipping the bool worked, and why remote is still working (may be because its using v4, is it?):
This is:

not including any genre_exclude parameter in the request (latest NSFW entry)
including genre_exclude=1 (should be NSFW, is SFW)

[sean@fish-webserver ~/vps ] $ curl -s 'https://api.jikan.moe/v3/search/anime?q=&page=1&genre=12&order_by=id&sort=desc' | jq '.results | .[0]'
{
  "mal_id": 43467,
  "url": "https://myanimelist.net/anime/43467/Ajisai_no_Chiru_Koro_ni",
  "image_url": "https://cdn.myanimelist.net/images/anime/1367/109804.jpg?s=f650391a7183bb05b255c6fc38d438eb",
  "title": "Ajisai no Chiru Koro ni",
  "airing": false,
  "synopsis": "",
  "type": "OVA",
  "episodes": 1,
  "score": 0,
  "start_date": "2021-01-29T00:00:00+00:00",
  "end_date": "2021-01-29T00:00:00+00:00",
  "members": 201,
  "rated": "Rx"
[sean@fish-webserver ~/vps ] $ curl -s 'https://api.jikan.moe/v3/search/anime?q=&page=1&genre=12&genre_exclude=1&order_by=id&sort=desc' | jq '.results | .[0]'
{ '.results | .[0]'
  "mal_id": 43467,
  "url": "https://myanimelist.net/anime/43467/Ajisai_no_Chiru_Koro_ni",
  "image_url": "https://cdn.myanimelist.net/images/anime/1367/109804.jpg?s=f650391a7183bb05b255c6fc38d438eb",
  "title": "Ajisai no Chiru Koro ni",
  "airing": false,
  "synopsis": "",
  "type": "OVA",
  "episodes": 1,
  "score": 0,
  "start_date": "2021-01-29T00:00:00+00:00",
  "end_date": "2021-01-29T00:00:00+00:00",
  "members": 193,
  "rated": "Rx"
}
[sean@fish-webserver ~/vps ] $ curl -s 'https://api.jikan.moe/v3/search/anime?q=&page=1&genre=12&genre_exclude=0&order_by=id&sort=desc' | jq '.results | .[0]'
{
  "mal_id": 43814,
  "url": "https://myanimelist.net/anime/43814/Deatte_5-byou_de_Battle",
  "image_url": "https://cdn.myanimelist.net/images/anime/1062/110160.jpg?s=a4e64e282a3c4f4eaa64d187d2c625b9",
  "title": "Deatte 5-byou de Battle",
  "airing": false,
  "synopsis": "It was just a usual morning. Akira Shiroyanagi, a high schooler who loves games and Konpeito (Japanese sweets), has suddenly been dragged into a battlefield by a mysterious girl who calls herself Mion...",
  "type": "TV",
  "episodes": 0,
  "score": 0,
  "start_date": null,
  "end_date": null,
  "members": 0,
  "rated": null
}

https://api.jikan.moe/v3/search/anime?q=&page=1&genre=12&genre_exclude=0&order_by=id&sort=desc

Seems like I seriously messed up the logic there. Thanks for looking into this and the PR!

Very strange bug anyways
This had been working fine for months and all of a sudden stopped.


Support multiple circuit status for Hystrix Dashboard

Hystrix Dashboard displays [object Object] on circuit status when isCircuitBreakerOpen is aggregate using Turbine stream.

I fixed it like this :

Nice!  Thanks @eunmin !

Shouldn't the open count be red to match the existing display?
https://github.com/Netflix/Hystrix/wiki/Dashboard

@mattnelson You're right. I'll fix the color. :)

@mattnelson I have opened a PR(#1551) for this issue.


Contentlayer -> Velite

https://github.com/contentlayerdev/contentlayer/issues/429
Contentlayer is now unmaintained with the last commit being 5 months ago. Now it can't work normally

This is great I used it in my fork


fetch should throw an error when it receives a 404

When there's eg a 404, fetch should throw an error, so that I can .catch() and handle it. (The error related code in the readme should be in fetch by default.)

You would think so, but that's not per spec. The spec only rejects the promise if there was an error making or receiving the response. A HTTP 404 should be treated as a "successful" response and is up to the user to decide what to do with such response.
If you want to reject non-20x responses, you can make your own wrapper:
function myFetch(url, options) {
  if (options == null) options = {}
  if (options.credentials == null) options.credentials = 'same-origin'
  return fetch(url, options).then(function(response) {
    if (response.status >= 200 && response.status < 300) {
      return Promise.resolve(response)
    } else {
      var error = new Error(response.statusText || response.status)
      error.response = response
      return Promise.reject(error)
    }
  })
}

This resembles XMLHttpRequest in its handling of same-domain cookies and successful responses.

Actually, in this specific case, I want to accept only status 200, so having my own code "if (response.status === 200) ..." instead of "if (response.status >= 200 && response.status < 300) ..." is handy.
Thanks for the wrapper code, but for my project, the following is sufficient AFAICS:
(Inside a Promise wrapper containing additional stuff:)
fetch(url)
  .then(
    fetchStatusHandler
  ).then(function(response) {
    return response.blob();
  }).then(function(blob) {
    resolve(blob.size);
  }).catch(function(error) {
    reject(error);
  });

Also: related: https://github.com/whatwg/fetch/issues/60 .


Additional Bug Fixes for PR #438

Added IsAlive to players check when dropship is killed

In gamemodes that do not use Evac during epilogue but during eGameState.Playing, this prevents a possible crash when the script tries to kill the player twice.

Swap EVAC_WAIT_TIME to waitTime

Clients would see an 18 seconds before dropship leaves even if waitTime was modified due to it using the const EVAC_WAIT_TIME.

Given that it merges into a PR whose code is de facto @BobTheBob9's I'm gonna assign it accordingly :P

mf time to open another PR for the waitTime fix


Solve LeetCode problem [P1]

I would like to request to see the following problem solved:

Name: Two Sum
ID: 1
Link: https://leetcode.com/problems/two-sum/

My proposed solution(s):
Outer sum the array and multiply it with an inverse diagonal matrix of the same length, find the index of the target and take the first element.
Sol ← { ⊃⍸⍵=(∘.≠⍨∘⍳∘≢×∘.+⍨)⍺ }

I have recorded and scheduled a video where I tackle this problem: https://youtu.be/kWE_LwUa-8I

Thanks for your hard work. The video gave me an insight into a better solution, I will try implementing it soon.

Just bear in mind that I won't be able to keep up with your requests at the rate you are posting them!

I apologize for the inconvenience caused by me. I will slow down a bit and submit fewer issues in the future.

No need to apologise @salastro , just letting you know that I can't keep up with you 🙃


Merge Devel to Master

Ciao @traversaro @S-Dafarra  @GiulioRomualdi .
As you can see, the devel and master branch histories are diverged, even if those commits of master, already are in devel only with different commit hash.
We know devel is working fine.
In order to cleanly, merge the devel into master, I found this solution and I tried on my terminal without any problem. Let me know if this is fine for you. I will directly push to devel and master:
# to be sure my local bracnhes are updated
- git checkout master
- git pull origin master
- git checkout devel
- git pull origin devel
# first merge the master into devel, knowing that devel is correct (i.e., I want to keep devel)
- git checkout devel
- git merge master -s ours
- git checkout master
-  git merge devel

After this steps, here are the results for the devel and master branches:
- git checkout master
-  git log --oneline
9d13329 (HEAD -> master, devel) Merge branch 'master' into devel
1ff864d (origin/devel) Merge pull request #61 from robotology/feature/virtualizer_new_approach
8a2ed84 update the configuration and application files for virtualizer cmd to walking controller
a724176 Use buffer port to stream the desired robot pose
c7d0c79 fix the wrist joints list for Xsens/iFeel joint retargeting (#64)
b27616c Add iFeel option to Walking Teleoperation (#59)
f1223c1 Fix oculus xsens (#58)
86c3a04 fix changes for the inclusion of the hde thrift msgs (#57)
8558c46 Fix the open of the orientation port
22c6b65 Use a deadzone for the linear speed
4a7caec Removed --context when calling the VirtualizerModule from yarpmanager
41f301e Copy of the virtualizerConfig file for all the robots
bd69d47 We open the orientation port anyways
9ec1b65 Some tuning on the robot.
2a8c0b3 Fixed sign issue when computing the velocity
c443cd1 Fixed a stupid bug when checking the window size
25075ae Added head control
a6a8193 Added parameter to use only the head for turning
9b0595c The robot orientation port gets opened only if used
b992d56 Added first implementation of ring velocity control
cbb4cfc Moved the virtualizerConfig file to the robot's folder
270c118 Updated Oculus application with parameters to have cameras aligned.
a13027c Modified Dependencies.md to document libfvad dependency.
6fc58d5 Update Xprize application to use the new face expressions module.
b5b7019 Added first version of FaceExpressionsRetargeting module.
01547aa Moved some required dependencies to a single place.
257b8d9 (tag: v1.1.0, origin/master, origin/HEAD) Update the project version on CMakeLists.txt
076ecab Add configuration file for XPRIZE demo Feb 2021 (#47)
42480ba Use fast_tcp for the audio ports (#46)
81c3827 Added possibility to reset the cameras at startup. (#45)
4346502 Manage CybSDK as other dependencies (#44)
15118ba add glove option to the Oculus Retargeting Module (#42)
7eb5ab1 Add application for audio retargeting (#41)
c552197 Remove useless connection in dcmWalkingRetargeting (#40)
a5c8da9 Update the Cyberith SDK documentation (#38)
8fab1ed Update the Virtualizer Module with the new version of the Cyberith treadmill  (#37)
5b7bb95 Update the project version on CMakeLists.txt
fb39923 Merge branch 'master' into devel
21dfbc8 Add configuration file for XPRIZE demo Feb 2021 (#47)
99e8c5e (tag: v1.0.0) Update CMakeLists.txt (#48)
9bc40b0 Use fast_tcp for the audio ports (#46)
e6ec327 Added possibility to reset the cameras at startup. (#45)
ce236cc Manage CybSDK as other dependencies (#44)
5fa28c0 add glove option to the Oculus Retargeting Module (#42)
dfd933d Add application for audio retargeting (#41)
6e38b8d Remove useless connection in dcmWalkingRetargeting (#40)
958e01d Update the Cyberith SDK documentation (#38)
20c3068 Update the Virtualizer Module with the new version of the Cyberith treadmill  (#37)
99e29a4 Merge pull request #35 from robotology/devel
88a7b1d Update CMakeLists.txt project version
40c12db Merge branch 'master' into devel
75169f6 Update the ReadMe, frame Documentation, and License info of the repo (#32)
5ae5a89 update kinematic scaling for task-space retargeting (#30)
088b318 Add CI to the project and fix the bugs related to windows build (#31)
6b7ac44 Merge pull request #28 from kouroshD/feature/addLogger_develRebased
db3bad5 fix some notations
1bf34a7 add the position changes for teleoeration frame
559fded fix some bugs
786b357 head neck values smooth preparation and update the configuration files
f53dd11 update the configuration files

and for the devel branch:
- git checkout devel
-  git log --oneline
9d13329 (HEAD -> devel, master) Merge branch 'master' into devel
1ff864d (origin/devel) Merge pull request #61 from robotology/feature/virtualizer_new_approach
8a2ed84 update the configuration and application files for virtualizer cmd to walking controller
a724176 Use buffer port to stream the desired robot pose
c7d0c79 fix the wrist joints list for Xsens/iFeel joint retargeting (#64)
b27616c Add iFeel option to Walking Teleoperation (#59)
f1223c1 Fix oculus xsens (#58)
86c3a04 fix changes for the inclusion of the hde thrift msgs (#57)
8558c46 Fix the open of the orientation port
22c6b65 Use a deadzone for the linear speed
4a7caec Removed --context when calling the VirtualizerModule from yarpmanager
41f301e Copy of the virtualizerConfig file for all the robots
bd69d47 We open the orientation port anyways
9ec1b65 Some tuning on the robot.
2a8c0b3 Fixed sign issue when computing the velocity
c443cd1 Fixed a stupid bug when checking the window size
25075ae Added head control
a6a8193 Added parameter to use only the head for turning
9b0595c The robot orientation port gets opened only if used
b992d56 Added first implementation of ring velocity control
cbb4cfc Moved the virtualizerConfig file to the robot's folder
270c118 Updated Oculus application with parameters to have cameras aligned.
a13027c Modified Dependencies.md to document libfvad dependency.
6fc58d5 Update Xprize application to use the new face expressions module.
b5b7019 Added first version of FaceExpressionsRetargeting module.
01547aa Moved some required dependencies to a single place.
257b8d9 (tag: v1.1.0, origin/master, origin/HEAD) Update the project version on CMakeLists.txt
076ecab Add configuration file for XPRIZE demo Feb 2021 (#47)
42480ba Use fast_tcp for the audio ports (#46)
81c3827 Added possibility to reset the cameras at startup. (#45)
4346502 Manage CybSDK as other dependencies (#44)
15118ba add glove option to the Oculus Retargeting Module (#42)
7eb5ab1 Add application for audio retargeting (#41)
c552197 Remove useless connection in dcmWalkingRetargeting (#40)
a5c8da9 Update the Cyberith SDK documentation (#38)
8fab1ed Update the Virtualizer Module with the new version of the Cyberith treadmill  (#37)
5b7bb95 Update the project version on CMakeLists.txt
fb39923 Merge branch 'master' into devel
21dfbc8 Add configuration file for XPRIZE demo Feb 2021 (#47)
99e8c5e (tag: v1.0.0) Update CMakeLists.txt (#48)
9bc40b0 Use fast_tcp for the audio ports (#46)
e6ec327 Added possibility to reset the cameras at startup. (#45)
ce236cc Manage CybSDK as other dependencies (#44)
5fa28c0 add glove option to the Oculus Retargeting Module (#42)
dfd933d Add application for audio retargeting (#41)
6e38b8d Remove useless connection in dcmWalkingRetargeting (#40)
958e01d Update the Cyberith SDK documentation (#38)
20c3068 Update the Virtualizer Module with the new version of the Cyberith treadmill  (#37)
99e29a4 Merge pull request #35 from robotology/devel
88a7b1d Update CMakeLists.txt project version
40c12db Merge branch 'master' into devel
75169f6 Update the ReadMe, frame Documentation, and License info of the repo (#32)
5ae5a89 update kinematic scaling for task-space retargeting (#30)
088b318 Add CI to the project and fix the bugs related to windows build (#31)
6b7ac44 Merge pull request #28 from kouroshD/feature/addLogger_develRebased
db3bad5 fix some notations
1bf34a7 add the position changes for teleoeration frame
559fded fix some bugs
786b357 head neck values smooth preparation and update the configuration files
f53dd11 update the configuration files

In this way, as you can see, I avoided rewriting the history of devel and master, while keeping the PR traces on both master and devel.
The results of the git diff is empty, i.e.:
git diff 9d13329 1ff864d

I could build the both the devel and master on my Ubuntu Machine without any problem.
If you agree, I directly push those to remote devel and master? And I close this PR, without merging.
If you have better solutions, please let me know.

If you can try this solution on your machine, it will be great. Since, I want to avoid rewriting the histories of the two branches.

Ah well done @kouroshD, I did not know about the merging strategies. Your plan looks good to me

Ok for me.


Connection Impossible

Hi
On redhat i can't connect to datastage
[DSGetProjectList]: 80011
Python 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
Thank you

Hello
80011 - Incorrect system name or invalid user name or password provided
Error codes

Hello
I'm sorry i wasn't clear enough.
I know what 80011 , but i don't understand why i got this error.
In fact with the same config file i can connect on windows but not on redhat.
Thank you


bytes: require 0.4.4

Various APIs used in this crate were added in 0.4.4.

Hrm. Seems bytes itself needs some work for minimal-versions in some cases. I'll have a followup within a few days.

Requires a release of https://github.com/tokio-rs/bytes/pull/312

I poked the bottom of this PR hole; hopefully it can cause some movement to let this get merged :) .

looks like a conflict ::(

Not surprising; I'll rebase once the dependent PRs are merged (and have a release on crates.io to depend on).

Conflict with #364 and specifically 845fdd1?

Well, this might need to go to 0.1.x as well now because of that :) .

Branch whack-a-mole!   Seriously, thanks for trying to fix this. I hope there is a potential for an 0.1.21 with the fix, as I suspect some projects will need to support both http 0.1 and 0.2 for some transition period.

I'll probably be back for 0.2 at some point. I've got a lot of plates in the air for my own set of crates at the moment before I can start to actually fix everything :) .

Ping?

@mathstuf is this something we still want to go with or should we close this in favor of ensuring 0.5 has all the fixes we need?

Oh, my bad. I thought this was the bottom of my stack. This will need the PR mentioned above first. Sorry for the noise. Going down one level deeper.

If there is action on #440 this should probably just be closed as semi-duplicate.

I'm more interested in minimum-versions support, so if that fixes it, I'm fine with that.

this can be closed

It looks like #440 also got closed. Would another minimal versions support PR make it any further?

Yea, it'd be a good thing to add to CI. Sorry we missed these, but we have more attention now.


Add discovery server and fix controller JSON mapping

This should be merged after pull request #25.
These two commits don't really belong in the same commit. We need to get a lot of more-or-less unrelated changes through, and pull request #30 depends on both of these commits.

@maciejgrzybek I responded to your comments.
As for the squashing of the fixup commits, the only reason that commit is separate is because there are branches that aren't mine off of the earlier commits in this pull requests. If I change those, we're liable to end up with some unnecessarily messy merge conflicts.


Allow TLS context in AuthService

Fixes #1202. Note that issue #1224 is still a factor -- you cannot mix HTTP and HTTPS upstreams for anything right now, including AuthService. This should be fixed soon.

(Also note that the substantive change here is adding tls back to AuthService.schema -- the code to process it was already present, the only problem was that the schema wouldn't allow setting it.)


change browser "platform" [Question]:

Your question
Hello,
Could you tell how to change browser "platform"? I don't mean to change UA ，changes "platform" windows to linux.
Thanks

Seems like a duplicate of https://github.com/microsoft/playwright/issues/8216 to me. Currently its not yet possible.

What is your use case?

I just want to crawl some data, some of my other businesses also use it.

Closing in favor of the upstream issue as it'd have to be implemented upstream first. Please upvote that issue if you need the feature.


Update DebouncerTest to use Semaphore to detect when test conditions have been met

This allows us to use semaphores to detect when it is safe to proceed instead of relying on waiting some duration of time. This makes for more reliable and faster tests. Plus, no mocks.

Not going to bother waiting for review on this, as it doesn't change public surface area and just reduces the flakiness of tests.


[SPARK-5296] [SQL] Add more filter types for data sources API

This PR adds the following filter types for data sources API:

IsNull
IsNotNull
Not
And
Or

The code which converts Catalyst predicate expressions to data sources filters is very similar to filter conversion logics in ParquetFilters which converts Catalyst predicates to Parquet filter predicates. In this way we can support nested AND/OR/NOT predicates without changing current BaseScan type hierarchy.

Test build #27547 has started for   PR 4623 at commit 1b296f4.

This patch merges cleanly.

Test build #27547 has finished for   PR 4623 at commit 1b296f4.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
case class IsNull(attribute: String) extends Filter
case class IsNotNull(attribute: String) extends Filter
case class And(left: Filter, right: Filter) extends Filter
case class Or(left: Filter, right: Filter) extends Filter
case class Not(child: Filter) extends Filter

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

Thanks!  I fixed up the merge by hand and added this to master and branch-1.3.


On X11, don't panic when getting EINTR

Cherry-picks e9d5b2007a5b7cb70a514dad6812fbc22f2f619c from https://github.com/rust-windowing/winit/pull/2031 which fixes #1972.
winit panics on Linux when debugging from this EINTR, and appears to also happen when entering / resuming from sleep.

Thanks!
I recently rebased on top of upstream and pushed the new 0.26 branch. and also updated iced accordingly in https://github.com/iced-rs/iced/pull/1182.


Cannot open the Nav Bar on Google Chrome (Android 13)

Are you experiencing an issue with...
shields.io
🐞 Description
Opening the navbar on Google Chrome 114.0.5735.196, Android 13; LE2123 Build/TP1A.220905.001 does not work.
The search bar function when viewing on desktop mode also does not work.
This effectively prevents me using anything on the website other than making static badges, whereas previously I was able to generate badges on mobile easily.
https://github.com/badges/shields/assets/73482956/b774827b-2ec5-44c1-a46c-8b557b91f70a
🔗 Link to the badge
N/A
💡 Possible Solution
N/A

I'm also seeing that... I tested it on desktop and it was broken too for a minute but seemed to resolve... now I'm seeing that some badges aren't working?

I'm seeing this on multiple devices now and I assume this is the issue...

seems odd that a SVG would be a script?

Not sure if this is related (or just on my machine), but I'm no longer seeing any of the badge builder content on the right; there is no execute button and associated fields

Not sure if this is related (or just on my machine), but I'm no longer seeing any of the badge builder content on the right; there is no execute button and associated fields

Yep I believe I'm seeing that now too.

OK. This was a real head-scratcher, but I worked out what is happening.
Basically, we had ended up in a state where some of the containers in the cluster were running one version of the application, and some were running another version. This meant that when a browser made a request for main.1d01d963.js (for example), that could have either been:

a valid javascript file or
a 404 error (badge)

..depending on which container served it. This lead to obvious breakage!
The good news is: I've re-deployed. If you hit shields.io right now, the frontend should work as expected because every container is running the same version of the application.
The bad news is: Re-deploying isn't a permanent fix. As things stand, that issue is going to happen again at some point.
I think further work/discussion on this (how do we prevent getting into this state again) will move to the
:detective: super secret devops place 🤫
as it is a deployment concern, rather than an issue to be solved at the codebase level.
Thanks for the bug report flagging this issue though.

Closing this as it is now resolved


Separate dev and staging environments

We will have the frontend team working across time zones using the zeno api. To be able to test new agents quickly, we need to be able to push changes without worrying that we block the frontend team.
A simple dev & staging env separation is necessary to ensure that.

Fixed by https://github.com/wri/project-zeno-deploy/commit/009cc48181ea29d2c394ad493a64a359375e5397.

The dev instance is available at: https://dev.api.zeno.ds.io/docs
The staging instance is at: https://api.zeno.ds.io/docs

To deploy a new version:

for dev, we need to update the image tag (which is the same as the full commit hash on the main branch of project-zeno) at https://github.com/wri/project-zeno-deploy/blob/107038a7cb89611167868dd4fa0be53fa0445a33/helm/zeno/values-dev.yaml#L25
for staging, similarly we need to update the image tag at https://github.com/wri/project-zeno-deploy/blob/107038a7cb89611167868dd4fa0be53fa0445a33/helm/zeno/values.yaml#L25


Only working with html files

Both nvim-treesitter and nvim-ts-autotag have been properly configured, but it only works with html files.  I couldn't manage to make it work with xml. Is this the issue of nvim-ts-autotag itself or the treesitter xml parser? nvim-treesitter started to officially deliver xml parser not long ago, so it could be buggy?

Inspecting the source, an XML file uses the same tag configuration as an HTML file: https://github.com/windwp/nvim-ts-autotag/blob/main/lua/nvim-ts-autotag/internal.lua#L36.
It's possible that the Treesitter grammar changed since this was first published, in any case, XML files use a different set of Treesitter node names than the HTML grammar. This can be verified using :TSPlaygroundToggle on both files.
I was able to get it basically working by adding the following in lua/nvim-ts-autotag/internal.lua:

Remove 'xml', from the local HTML_TAG.filetypes table, circa L36.
Insert a local XML_TAG table like this directly beneath the HTML_TAG table:-- stylua: ignore
local XML_TAG = {
    filetypes              = {'xml'},
    start_tag_pattern      = 'STag',
    start_name_tag_pattern = 'Name',
    end_tag_pattern        = 'ETag',
    end_name_tag_pattern   = 'Name',
    close_tag_pattern      = 'ETag',
    close_name_tag_pattern = 'Name',
    element_tag            = 'element',
    skip_tag_pattern       = {},
}

Add this table to the local all_tag table circa 106:

local all_tag = {
    HBS_TAG,
    SVELTE_TAG,
    JSX_TAG,
    XML_TAG,    --<<<- here
}

Exit, restart, and Bob's your uncle.
Verify the plugin is working HTML before doing this so you're sure it's being loaded correctly and just not working for XML.
I wasn't sure what to put for close_tag_pattern and close_name_tag_pattern so I just used the same values as the end_tag_pattern and end_name_tag_pattern items. The XML parser doesn't seem to have those differentiated "unmatched close" nodes. I could see them in the HTML but nothing corresponding in the XML TSPlayground output.
@windwp happy to put this in a PR if you're open to it, just let me know.

any update on this ? 😄

Inspecting the source, an XML file uses the same tag configuration as an HTML file: https://github.com/windwp/nvim-ts-autotag/blob/main/lua/nvim-ts-autotag/internal.lua#L36.
It's possible that the Treesitter grammar changed since this was first published, in any case, XML files use a different set of Treesitter node names than the HTML grammar. This can be verified using :TSPlaygroundToggle on both files.
I was able to get it basically working by adding the following in lua/nvim-ts-autotag/internal.lua. That lives here on my machine: ~/.local/share/nvim/lazy/nvim-ts-autotag/lua/nvim-ts-autotag/internal.lua but I'm sure depends on your package manager and OS. This strategy works to prove the concept but will be removed on update I believe, so you might want to either fork or use a local copy until it makes it onto main.

Remove 'xml', from the local HTML_TAG.filetypes table, circa L36.
Insert a local XML_TAG table like this directly beneath the HTML_TAG table:-- stylua: ignore
local XML_TAG = {
    filetypes              = {'xml'},
    start_tag_pattern      = 'STag',
    start_name_tag_pattern = 'Name',
    end_tag_pattern        = 'ETag',
    end_name_tag_pattern   = 'Name',
    close_tag_pattern      = 'ETag',
    close_name_tag_pattern = 'Name',
    element_tag            = 'element',
    skip_tag_pattern       = {},
}

Add this table to the local all_tag table circa 106:

local all_tag = {
    HBS_TAG,
    SVELTE_TAG,
    JSX_TAG,
    XML_TAG,    --<<<- here
}

Exit, restart, and Bob's your uncle.
Verify the plugin is working HTML before doing this so you're sure it's being loaded correctly and just not working for XML.
I wasn't sure what to put for close_tag_pattern and close_name_tag_pattern so I just used the same values as the end_tag_pattern and end_name_tag_pattern items. The XML parser doesn't seem to have those differentiated "unmatched close" nodes. I could see them in the HTML but nothing corresponding in the XML TSPlayground output.
@windwp happy to put this in a PR if you're open to it, just let me know.

This solution is working for xml files. But In my case, I want this package to work on my tsx files. It is working fine on jsx files btw. Any idea how to solve this?


No .NET Core support

The lib isn't .NET Core compatible. Are there any plans or alternatives that support .NET Core?

I'm interested in using with .NET core as well. Is there a timeline for this support?

lol it's not a library, but api server

The lib isn't .NET Core compatible. Are there any plans or alternatives that support .NET Core?

which lib? it's restful service dude

BrowserMobProxy nuget package currently dont support .net core. Are there any plans to provide support for .netcore as well?


Sidebar is no displayed

The sidebar is not displayed on every page. In the index.php or viewtopic.php and other pages it works perfectly, but posting.php, viewonline.php, faq.php (give examples) not shown.
In pages generated by the “pages” extension or “portal” it does not appear. Only where they are marked in coreframe options.

Fixed in version 1.6.0

sidebar appears on all pages marked in coreframe options, but not in Board3 Portal
Example: http://www.reballing.es/portal
would have way to implement a "show everywhere" and a "select pages where you show"? Before working perfectly, and for us is a problem losing sidebar
Waiting for your answer. Thank you very much

The Board3 Portal is not officially supported by Eles, and there is no easy way at the moment to implement a "show everywhere" options, but seen that the current implementation fails in this regard, I think it would be a good idea to reverse the logic, so "Pages to show the sidebar:" will become "Hide sidebar on the following pages:".
This is an easy solution which will fix the issues encountered with the current implementation.
Cheers!


Support netstandard2.0

@daalcant can you investigate the pipeline failures?

The problem is that the pipeline tries to publish RecursiveExtractor, however RecursiveExtractor is multitargetting netstandard2.0 and 2.1 and publish then requires a target framework argument.  Instead RecursiveExtractor should be dotnet packed which will include both versions.


dot-separated date not parsed

After my question on tex.stackexchange I think my problem is an issue of BetterBibLaTeX.
The export of the year and date filed are mixed and in the wrong format.
Here is my MWE:
BetterBibLaTeX 1.6.6 within Zotero Standalone 4.0 gives me an export of a book like this:
@book{west_introduction_2000,
  edition = {2},
  title = {Introduction to Graph Theory},
  isbn = {978-0-13-014400-3},
  pagetotal = {470},
  timestamp = {2015-11-23T15:45:12Z},
  publisher = {{Prentice Hall}},
  author = {West, Douglas Brent},
  year = {22.08.2000}
}

With the MWE LaTeX document
\documentclass{scrartcl}

\usepackage[style = authoryear, url = false]{biblatex}
\addbibresource{book.bib}

\begin{document}
\textcite{west_introduction_2000}
\printbibliography
\end{document}

I get the following result:

As you can see, the complete content of the year is shown and not parsed by biber because it is in the year field and in the wrong fromat. It should be 22-08-2000.
Do I have a problem with my fresh installation or is this an issue?

Can you right-click that reference, select "send better bibtex error", and
post the resulting id here?

Sure: GJ2CFX6D

The book I posted above gives the correct result with version 1.6.13. Unfortunately, I have problems with some other references. Here are the corresponding ids:
ET2ZEDWU
ZGVAZRXX
WSCB9ITF

What kind of problems do you experience for these references?
No need to resubmit, but if you need to submit future error reports, you can select more than one reference and it will submit all of them at once.

Exactly the same as mentioned in the initial post. Is this information enough to identify the problem?
Ok, I will take this into account.

I see. This wasn't the case before? That would be surprising. Or did you
just now notice it?

This was the case before. It was a general issue on nearly all references in my .bib file. However, I showed the problem on one example.

Ah cool, that makes sense. I know what I have to do but I'm not near a pc
until later tonight.

Release is out

Thanks for the release. Unfortunately, I cannot observe a change in the .bib file. I used version 1.6.14 and still observe this issue. The year still contains a complete date with dots. Here are two lines from a git diff between the last working version and the current one:
-  date = {2012-06-08}
+  year = {2012.06.08}

For me locally and in the automated tests 2012.06.08 translates to date = {2012-06-08}. Could you try the following:

Get the XPI from http://tempsend.com/100CD9E1CB and install it
Turn on extended debugging in the BBT prefs
Export the reference that has the 2012.06.08 date
Submit an error report

I've added more debug loggin to the XPI at tempsend, hopefully it will tell me more.

Can you submit that new report by right-click on this last reference? Then
I'll also have that to test with. Do the earlier 3 you submitted now export
correctly btw? They do for me.

I don´t know why, but now it works and I cannot reproduce the issue. Thanks for your fast support!

Perhaps you didn't force the upgrade? By default, Firefox only checks for updates once every 24 hours.

I think I did and checked the version before my post. Never mind, no it works.


Bug: Synchronous Receiver throws null reference exception on Grasshopper 2.4.2

Using https://speckle.xyz/streams/a632e7a784/commits/6003488892

Thanks @secretlyagoblin ! Quick ping to @psarras, as he's the author, to see if he has time to look into it.

Had a quick peek and it was a no-brainer fix so i just went and made it since I had Grasshopper open.
It was also my changes to the conversion routine for the variable output receiver that broke it, so it's only fair  I fix it too! 👍🏻
Thanks for reaching out on this @secretlyagoblin

Cheers Alan!


Add Arbitrum and Optimism to Ahbap

Add the new bridged L2 assets to Ahbap.
Sources
Arbitrum

https://twitter.com/ConnextNetwork/status/1624413520258379776
https://arbiscan.io/address/0x8888759373137b84e9f0ef13ecb13e321c251ee3#readContract

Optimism

https://twitter.com/ConnextNetwork/status/1624413520258379776
https://optimistic.etherscan.io/address/0x8888759373137b84e9f0ef13ecb13e321c251ee3#readContract

Add info: "Bridged through a trustless and audited contract"

I've done this. How and where can i add the code?

I commented on the PR @tervelix.

Read: https://github.com/neu-fi/turkiye-relief-dao/pull/41#issuecomment-1426990115


How can i use Sluggable in my own package in vendor?

I have model in package, which use Sluggable:
StarterKit\Core\Models\Category.php
<?php

namespace StarterKit\Core\Models;

use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;
use Cviebrock\EloquentSluggable\Sluggable;
use Kalnoy\Nestedset\NodeTrait;

class Category extends Model
{
    use HasTranslations;
    use NodeTrait, Sluggable {
        Sluggable::replicate as replicateSluggable;
        NodeTrait::replicate insteadof Sluggable;
    }

    public $translatable = ['name'];

    protected $table = 'categories';

    protected $fillable = [
        'name',
        'slug',
        'parent_id',
        'owner'
    ];

    public function sluggable()
    {
        return [
            'slug' => [
                'source' => 'name'
            ]
        ];
    }

}

When i try to create new record, sluggable won't fill slug field. And i get error:
SQLSTATE[HY000]: General error: 1364 Field 'slug' doesn't have a default value

But when i use model Category with same data in App\Models namespace, all work fine..
App\Models\Category.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;
use Cviebrock\EloquentSluggable\Sluggable;
use Kalnoy\Nestedset\NodeTrait;

class Category extends Model
{
    use HasTranslations;
    use NodeTrait, Sluggable {
        Sluggable::replicate as replicateSluggable;
        NodeTrait::replicate insteadof Sluggable;
    }

    public $translatable = ['name'];
    protected $table = 'categories';
    protected $fillable = ['name', 'slug', 'parent_id', 'owner'];

    public function sluggable()
    {
        return [
            'slug' => [
                'source' => 'name'
            ]
        ];
    }
}

Are you maybe not instantiating the ServiceProvider?


Rendering issues for one eight block characters in Terminal

Type: Bug
There are a few rendering issues related to the one eight block unicode characters in the vscode terminal, as used for scrollbars and lines.
The following is a screenshot of an app in the vscode terminal. I have highlighted where the rendering isn't quite right. I suspect there is more than one issue here. It looks like their is both a sub-pixel glitch and maybe a block char renders outside of a cell.

The following is iTerm on MacOS. Other terminals look much the same.

I've zoomed in the exaggerate the effect, but the issue is present on more typical zoom levels.
VS Code version: Code 1.71.2 (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:07:15.900Z)
OS version: Darwin arm64 21.6.0
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Apple M1 Pro (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
4, 4, 4

Memory (System)
16.00GB (0.06GB free)

Process Argv
--crash-reporter-id 708fb231-9126-40c3-a471-56c4901cf66d

Screen Reader
no

VM
0%

Extensions (48)

Extension
Author (truncated)
Version

vscode-sqlite
ale
0.14.1

vscode-color
ans
0.4.5

vscode-database
baj
2.2.3

vscode-django
bat
1.10.0

better-toml
bun
0.3.2

vscode-svgviewer
css
2.0.0

vscode-eslint
dba
2.2.6

xml
Dot
2.5.1

vsc-material-theme
Equ
33.5.0

vsc-material-theme-icons
equ
2.4.0

prettier-vscode
esb
9.8.0

code-runner
for
0.11.8

vscode-pull-request-github
Git
0.50.0

sass-lint
gle
1.0.7

gc-excelviewer
Gra
4.2.55

vscode-peacock
joh
4.2.1

chat
kar
0.35.0

restructuredtext
lex
189.2.0

dotenv
mik
1.0.1

theme-monokai-pro-vscode
mon
1.1.21

black-formatter
ms-
2022.5.12591021

python
ms-
2022.14.0

vscode-pylance
ms-
2022.9.20

jupyter
ms-
2022.8.1002431955

jupyter-keymap
ms-
1.0.0

jupyter-renderers
ms-
1.0.9

vsliveshare
ms-
1.0.5723

vsliveshare-audio
ms-
0.1.91

vsliveshare-pack
ms-
0.4.0

color-highlight
nau
2.5.0

autodocstring
njp
0.6.1

hide-gitignored
npx
1.1.0

vetur
oct
0.36.0

austin-vscode
p40
0.10.8

material-icon-theme
PKi
4.20.0

excalidraw-editor
pom
3.3.1

vscode-commons
red
0.0.6

vscode-yaml
red
1.10.1

LiveServer
rit
5.7.9

snappify
sna
1.0.1

code-spell-checker
str
2.8.0

sass-indented
syl
1.8.22

cython
tcw
0.1.0

simple-rst
tro
1.5.2

luna-paint
Tyr
0.16.0

vscode-icons
vsc
11.17.0

markdown-all-in-one
yzh
3.4.3

material-theme
zhu
3.15.5

(3 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30557514
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
hb751961:30553087
dsvsc012cf:30540253
azure-dev_surveyone:30548225
i497e931:30553904
fc301958:30567733

@willmcgugan can you copy and paste the content of the terminal in this state so we can get the problem characters?

Can reproduce with ▔ when zoomed in:

Upstream fix: https://github.com/xtermjs/xterm.js/pull/4134

Thanks @Tyriar  I gather that fixes the long top line, but there are other rendering issues in the screenshot.
Here's vscode. Note the glitches at the top and bottom of the scrollbars.
https://user-images.githubusercontent.com/554369/193017319-021ad132-bea5-41f2-b904-0ac8c1a415e8.mov
Here's iTerm (other terminals look much the same).
https://user-images.githubusercontent.com/554369/193017448-7565e14b-5539-4328-8c0d-bfc8189ea44f.mov
I'm guessing the block characters don't quite cover the background, which is leads to this erroneous line.

@willmcgugan what do you mean at the top of the scroll bar?
I can't reproduce the bottom of the scrollbar problem:

I should have moved the scrollbar in the txt dump. Try the following:
capture2.txt
I wonder if it related to screen resolution. It only appears at certain zoom levels, but when it does it is quite obvious. I'm also viewing this on a 4K monitor, which might be making a difference.
Here's a screen capture I've blown up a bit. Hopefully it's obvious now.

Here's the original. The difference is a line of one pixel in height, so it might not be clear unless you download this image and zoom in...

Top of the scrollbar blown up a bit...

I see this:

@willmcgugan can you set up the xterm.js demo and see if changing these 4 lines:
https://github.com/xtermjs/xterm.js/blob/51c580e7a47dd92dc77f12fca602e76d106ec327/src/browser/renderer/CustomGlyphs.ts#L429-L432
to:
      Math.round(xOffset + box.x * xEighth),
      Math.round(yOffset + box.y * yEighth),
      Math.round(box.w * xEighth),
      Math.round(box.h * yEighth)

and see if that fixes it? You'll need node installed for this so feel free to decline, but it would make it easier to iterate on this stuff.

Reopening as it sounds like there's still some ongoing fixes to be made here

Looks fixed now:

I tested both canvas and webgl on the xterm.js demo at various zoom levels on my 4k monitor.


Soap Using Callbacks instead of Promise

Using the library on an endpoint with BasicAuthSecurity causes issues with the library resolving to the next .then.
This is how I expect to use the library:
export default function soapPromise(url, soapMethod, soapParams){
  return new Promise( (resolve, reject) => {
    soap.createClient(url)
      .then( client => {
        client.setSecurity( new soap.BasicAuthSecurity(username, password));
        client[soapMethod](soapParams)
      .then((result) => { resolve(result) })
      .catch((error) => {reject(error)})
  });
}

After creating the soap client, I set the security as done in parent library and as talked about in a previous issue.  Then everything else should operate as if there was no security, call the method and handle the result in the next .then.
Unfortunately while this passes the http auth security issue it will not pass on the result to the next .then as it would if we were accessing a soap endpoint that does not have auth.  (I use this function to access multiple soap endpoints.)
The following is the only way I can get this to work:
export default function soapPromise(url, soapMethod, soapParams){
  return new Promise( (resolve, reject) => {
    soap.createClient(url)
      .then( client => {
        client.setSecurity( new soap.BasicAuthSecurity(username, password));
        client[soapMethod](soapParams, (err, res) => {
          if(err){reject(err)}
          resolve(res);
        });
      })
      .then((result) => {
      })
      .catch((error) => {reject(error)})
  });
}

As you can see, I have to access the result through a callback, which is of course not the desired outcome.  I also have to remove any resolve call in the second .then function because it resolves immediately, before the result actually comes back from the soap method.
Just to save time, here is the similar function using the parent library which works perfectly:
const method = "ValidateUser";
const ValidateUser = (validateUserPackage) =>{
  soap.createClient(wageringURL, (err, client) => {
    client.setSecurity(new soap.BasicAuthSecurity(user, password));
    if(err){return console.log(err)}

    client[method](validateUserPackage, (err, result, raw, soapHeader) => {
      if(err){
        console.log(`Error: \n${err}`);
      }
      console.log(result);
    });
  });
}

If Im using the library wrong please let me know.

Hi @pljeskavica!
I'm having a bit of trouble understanding how you want to use the library, so please let me know if I didn't get it correctly.
I think this would be what you want:
export default function soapPromise(url, soapMethod, soapParams) {
  return soap.createClient(url)
    .then(client => {
      client.setSecurity(new soap.BasicAuthSecurity(username, password));
      return client;
    })
    .then(client => client[soapMethod](soapParams));
}

Let me know if that works or if you need additional help.
Cheers!

Hi @pljeskavica, did it work? Let me know so I can close the issue.
Cheers!

Ok, I'm closing this issue, let me know if it wasn't solved.


feat: add toggle for enable perceptor or not

Purpose

Add toggle for enable perceptor or not. See https://github.com/hypertrons/hypertrons-crx/issues/178

Add description for token. See https://github.com/hypertrons/hypertrons-crx/issues/179

Proposed changes
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
Open Questions and Pre-Merge TODOs

[ ] Use github checklists. When solved, check the box and explain the answer.

Types of changes
What types of changes does your code introduce to hypertrons-crx?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices apply)

Approach
How does this change address the problem?
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA
[ ] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments (Optional)
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
Links to blog posts, patterns, libraries or addons used to solve this problem

/approve

@frank-zsy

I also should know which scopes should be selected, I think.

I think leaving all boxes but repo/public_repo unchecked is enough. I have referred to no scope.

PS: I'm not sure.

I also should know which scopes should be selected, I think.

I think leaving all boxes but repo/public_repo unchecked is enough. I have referred to no scope.

PS: I'm not sure.

You are right

/approve


adds token callback to AuthToken Middleware & Subscriber

This is an attempt to resolve https://github.com/google/google-api-php-client/issues/901 and provide a more elegant way for https://github.com/google/google-api-php-client/pull/905 and https://github.com/google/google-api-php-client/pull/925

@tmatsuo @SurferJeffAtGoogle PTAL

LGTM


issue in npm run dev

I am getting below error while I tried to run npm run dev.
 ERROR  Failed to compile with 2 errors                                                                                00:01:25

 error  in ./resources/assets/less/adminlte-app.less

Module build failed: Can't resolve '../../bower_components/bootstrap/less/variables.less' in '/var/www/html/acacha/node_modules/admin-lte/build/less'
 @ /var/www/html/acacha/node_modules/admin-lte/build/less/select2.less (line 7, column 0)
 near lines:
   @import (reference) "../../bower_components/bootstrap/less/mixins";
   @import (reference) "../../bower_components/bootstrap/less/variables";
   @import (reference) "variables";

 @ ./resources/assets/less/adminlte-app.less 4:14-210
 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./~/bootstrap-less/bootstrap/bootstrap.less ./resources/assets/less/adminlte-app.less ./~/toastr/toastr.less

 error  in ./resources/assets/less/adminlte-app.less

Module build failed: ModuleBuildError: Module build failed: Can't resolve '../../bower_components/bootstrap/less/variables.less' in '/var/www/html/acacha/node_modules/admin-lte/build/less'
 @ /var/www/html/acacha/node_modules/admin-lte/build/less/select2.less (line 7, column 0)
 near lines:
   @import (reference) "../../bower_components/bootstrap/less/mixins";
   @import (reference) "../../bower_components/bootstrap/less/variables";
   @import (reference) "variables";

You need to run bower install in de admintle npm package. See #this issue for more information about it


Some white are yellow or red flashing ?

Hello
I use since few monthes this wonderful Adrilight and results are awesome, thank you for that.
Sometimes, for example here on github, adrilight displaying, bottom and left are ambilighted in yellow and up and left in white.
When a gamebooting or in movie appear an all white picture, same problem with some bottom/lef red flash blink.
On the "send random colors" function, works fine and when it is the red turn, flash/blink until the colors change and work again perfectly.
I first thank about a material problem but when i'm on desktop the "windows search" bar in taskbar is ambilighted in white, when i tried to move a "paint" all white and make it turn around the border of the screen, white ambilight follow nicely.
Anybody who have already experienced this ? Known problem or maybe i made a settings mistake, or else ?
Thanks for the help
All hail fabsenet ;)

Hello,
I think you problem could be power related.
I built 4 versions of adrilight for family and friends. And last time something occurs like this was due to a weak power source.
How many led do you have and how powerful is your power source to power up your led ?

Thanks for the answer. I have a Big TV (75") so i almost have 595 leds
approx.
Power supply is dc5v 40a for led ws2812b
Led 5050smd 96leds/m
28.8w/m (on the article description page)
€ 1,85  44%OFF | DC5V WS2812B 1m/4m/5m 30/60/74/96/144 pixels/leds/m Smart
led pixel strip,Black/White PCB,WS2812 IC;WS2812B/M,IP30/IP65/IP67
https://s.click.aliexpress.com/e/FG8FkNg8
The strip is connected on an Arduino mega. (Uno was not able to handled so
much led, seems to be AT first try)
Do you still think it could be the power supply that is not enough?
Its working perfectly except when display fast appear full white screen and
Brown almost appear flashy red. As i described
Thanks you si much for the help
Le dim. 13 oct. 2019 à 08:33, Morgan<EMAIL_ADDRESS>a écrit :

Hello,
I think you problem could be power related.
I built 4 versions of adrilight for family and friends. And last time
something occurs like this was due to a weak power source.
How many led do you have and how powerful is your power source to power up
your led ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fabsenet/adrilight/issues/88?email_source=notifications&email_token=AKWFOW2LY7VUG4VSHYV65TLQOK6KJA5CNFSM4I76VQWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBCPTZA#issuecomment-541391332,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKWFOW76M3CK2EVCIARNGKLQOK6KJANCNFSM4I76VQWA
.

In order to solve your problem I would :

try another Arduino
try another power supply unit
try other LEDs

I had issue like this with my first build, some colors were weird sometimes, not always.
Here are my math when I encountered the issue.
I'm running 12V ws2011 LED where I am right now.
One led 0.02 A multiplied by 186 = 3.72 A (
(186x0.02=3.72)
So 3.72 x 12 v = 44.64 W
See how much one of your led consumes and replace number accordingly and that might give you a hint.

Hello
After few more tests , it seems that all the bottom and left side is
flashing /blinking in red when white picture Comes.
The same parts of the strip Cant be pink or Brown still be red. But only
with this side.
the 2 others sides are working perfect. and the defective part is working
well with red blue green yello black..
If it Can help to find a way out please friends
Le dim. 13 oct. 2019 à 10:22, Morgan<EMAIL_ADDRESS>a écrit :

In order to solve your problem I would :

try another Arduino
try another power supply unit
try other LEDs

I had issue like this with my first build, some colors were weird
sometimes, not always.
Here are my math when I encountered the issue.
I'm running 12V ws2011 LED where I am right now.
One led 0.02 A multiplied by 186 = 3.72 A (
(186x0.02=3.72)
So 3.72 x 12 v = 44.64 W
See how much one of your led consumes and replace number accordingly and
that might give you a hint.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fabsenet/adrilight/issues/88?email_source=notifications&email_token=AKWFOW7PCAFJROKM3ZYDSCTQOLLCPA5CNFSM4I76VQWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBCRGKI#issuecomment-541397801,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKWFOW3AWKKSIYBNAGVUVKDQOLLCPANCNFSM4I76VQWA
.

the led strips make a white color by turning red, green and blue on. white is the most power hungry color. Every led chip needs 60mA as a maximum.
Either your power supply is still too small or you should connect VCC and GND on both sides of the led strip to your power supply. Do not connect the Data pin on the other side!
How many LEDs do you have? You have roughly 4 meters of strip which translates to roughly 400 LEDs. 400*60mA = 24000mA or 24A.
Your power supply should be big enough.
So the best guess from me is, should add more power cables. Either to the other end of the strip or somewhere in between. for example at one edge. The strip is so thin and it has to transport so many amps.... a real cable is better for this task!

Thanks for the answer i just remade my cable connection there was a little
play that cause some of the problems.
The only thing remaining is white red blinking when appear and whites
turning more yellow at end of the led strip approach.
I have 498leds ws2812b and a power supply 5v 40a.
I am french so not perfect english speaker : if i understood correctly i
should add an other incoming 5v on the end or in the middle?
I Guess i Can Do it
Nb: i just tried when i wrote  to reduce by sliders in white balance mod
and if i reduce from 88 to 75 it is not flashing anymore and if i reduce
again whites are more white on all sides. AT 50 whites are quite perfect si
i Guess you are right Fabian. Less brightness solve the problems so it
needs a second power entry in the strip.

I will try to find the better way to add 5v cable from my ambilight box (in
old internet box) to the half of strips  (I have a 4k TV 75" so i have a
long cable to add ^^)
Thanks again have nice night
Le jeu. 28 nov. 2019 à 21:41, Fabian Wetzel<EMAIL_ADDRESS>a
écrit :

the led strips make a white color by turning red, green and blue on. white
is the most power hungry color. Every led chip needs 60mA as a maximum.
Either your power supply is still too small or you should connect VCC and
GND on both sides of the led strip to your power supply. Do not connect the
Data pin on the other side!
How many LEDs do you have? You have roughly 4 meters of strip which
translates to roughly 400 LEDs. 400*60mA = 24000mA or 24A.
Your power supply should be big enough.
So the best guess from me is, should add more power cables. Either to the
other end of the strip or somewhere in between. for example at one edge.
The strip is so thin and it has to transport so many amps.... a real cable
is better for this task!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fabsenet/adrilight/issues/88?email_source=notifications&email_token=AKWFOWZPX4PQD7GX2NUXMCDQWAUHXA5CNFSM4I76VQWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFNNBBI#issuecomment-559599749,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKWFOW7OZMCSC2W57QP76S3QWAUHXANCNFSM4I76VQWA
.


Update VetTests.java

test pull

@Almos18 Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


Fix 'relative_include' error messages when the same file is included more than once

It appears that if we have a file like this:
include_relative ../foo.cfg
include_relative ../bar.cfg

and foo.cfg look like this:
include_relative bar.cfg

struct foo {
  ...
}

Then the resulting error message is not as helpful as it could be.
Needs investigation.

This is now supported with include [once]


Issue 2306: Allow for jobs with a TaskStatus of 'Created' to be started.

To fix download counter.
https://github.com/NuGet/NuGetGallery/issues/2306

Hi @grenade, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, DNFBOT;

Thanks for the PR!


⚠ Turnos 24x7 has degraded performance

In cd23023, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 4427 ms

Resolved: Turnos 24x7 performance has improved in 2fc3c00.