Remote SSH error

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.88. 1
OS Version: 14.4.1

I have been using VSC for quite a while and I never faced this problem until a few days ago.
While connecting to remote ssh, I'm prompted to 2FA and then it gives me this error - "Setting up SSH Host niagara.computecanada.ca: Copying VS Code Server to host with scp" and never opens
If I do ssh through terminal, I can successfully log in.

I have been using the latest version like I mentioned above - VS Code Version: 1.88. 1

Please share the full log from the Remote-SSH output channel

It got resolved. Seems like my $HOME was full and it's somehow linked to that and it worked after I freed up disk space. Thanks!

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.88.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

I have met the same problem, my vscode version is as follow:

Log:
`[10:58:14.210] Log Level: 2
[10:58:14.220] SSH Resolver called for "ssh-remote+120", attempt 1
[10:58:14.220] "remote.SSH.useLocalServer": false
[10:58:14.220] "remote.SSH.useExecServer": true
[10:58:14.220] "remote.SSH.showLoginTerminal": false
[10:58:14.220] "remote.SSH.remotePlatform": {"35":"linux","120":"linux","121":"linux","129":"linux"}
[10:58:14.221] "remote.SSH.path": undefined
[10:58:14.221] "remote.SSH.configFile": undefined
[10:58:14.221] "remote.SSH.useFlock": true
[10:58:14.221] "remote.SSH.lockfilesInTmp": false
[10:58:14.221] "remote.SSH.localServerDownload": auto
[10:58:14.221] "remote.SSH.remoteServerListenOnSocket": false
[10:58:14.221] "remote.SSH.showLoginTerminal": false
[10:58:14.224] "remote.SSH.defaultExtensions": []
[10:58:14.224] "remote.SSH.loglevel": 2
[10:58:14.224] "remote.SSH.enableDynamicForwarding": true
[10:58:14.224] "remote.SSH.enableRemoteCommand": false
[10:58:14.224] "remote.SSH.serverPickPortsFromRange": {}
[10:58:14.224] "remote.SSH.serverInstallPath": {}
[10:58:14.232] SSH Resolver called for host: 120
[10:58:14.232] Setting up SSH remote "120"
[10:58:14.236] VS Code version: 1.90.2
[10:58:14.236] Remote-SSH version<EMAIL_ADDRESS>[10:58:14.236] win32 x64
[10:58:14.237] Using commit id "5437499feb04f7a586f677b155b039bc2b3669eb" and quality "stable" for server
[10:58:14.239] Install and start server if needed
[10:58:14.243] Checking ssh with "C:\app\blj_admin\product\11.2.0\client_1\bin\ssh.exe -V"
[10:58:14.246] Got error from ssh: spawn C:\app\blj_admin\product\11.2.0\client_1\bin\ssh.exe ENOENT
[10:58:14.246] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[10:58:14.247] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[10:58:14.247] Checking ssh with "C:\Windows\ssh.exe -V"
[10:58:14.248] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[10:58:14.248] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[10:58:14.250] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[10:58:14.250] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[10:58:14.252] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[10:58:14.252] Checking ssh with "C:\Program Files\Java\jre1.8.0_201\bin\ssh.exe -V"
[10:58:14.253] Got error from ssh: spawn C:\Program Files\Java\jre1.8.0_201\bin\ssh.exe ENOENT
[10:58:14.253] Checking ssh with "C:\Program Files\Git\cmd\ssh.exe -V"
[10:58:14.254] Got error from ssh: spawn C:\Program Files\Git\cmd\ssh.exe ENOENT
[10:58:14.255] Checking ssh with "C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\ssh.exe -V"
[10:58:14.256] Got error from ssh: spawn C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\ssh.exe ENOENT
[10:58:14.256] Checking ssh with "C:\Program Files\Microsoft VS Code\bin\ssh.exe -V"
[10:58:14.257] Got error from ssh: spawn C:\Program Files\Microsoft VS Code\bin\ssh.exe ENOENT
[10:58:14.258] Checking ssh with "C:\Users\heng.cao\AppData\Local\Microsoft\WindowsApps\ssh.exe -V"
[10:58:14.259] Got error from ssh: spawn C:\Users\heng.cao\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT
[10:58:14.260] Checking ssh with "C:\Users\heng.cao\AppData\Local\Programs\Microsoft VS Code\bin\ssh.exe -V"
[10:58:14.262] Got error from ssh: spawn C:\Users\heng.cao\AppData\Local\Programs\Microsoft VS Code\bin\ssh.exe ENOENT
[10:58:14.262] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[10:58:14.264] Got error from ssh: spawn C:\Windows\System32\OpenSSH\ssh.exe ENOENT
[10:58:14.264] Checking ssh with "C:\Program Files\Git\usr\bin\ssh.exe -V"
[10:58:14.320] > OpenSSH_8.8p1, OpenSSL 1.1.1m  14 Dec 2021
[10:58:14.326] Running script with connection command: "C:\Program Files\Git\usr\bin\ssh.exe" -T -D 56788 120 bash
[10:58:14.330] Terminal shell path: C:\Windows\System32\cmd.exe
[10:58:14.656] >
[10:58:14.657] Got some output, clearing connection timeout
[10:58:14.712] ><EMAIL_ADDRESS>password:
[10:58:14.713] Showing password prompt
[10:58:23.295] Got password response
[10:58:23.296] "install" wrote data to terminal: "**********"
[10:58:23.322] >

[10:58:23.643] > 641994a4f94c: running

[10:58:23.693] > Installing to /home/heng_cao/.vscode-server...

[10:58:23.731] > 641994a4f94c%%1%%

Downloading with wget

[10:58:23.854] > wget download failed

wget: /usr/local/ssl/lib/libcrypto.so.1.0.0: no version information available (r
equired by wget) wget: /usr/local/ssl/lib/libssl.so.1.0.0: no version informatio
n available (required by wget) wget: /usr/local/ssl/lib/libssl.so.1.0.0: no vers
ion information available (required by wget) ERROR: cannot verify update.code.vi
sualstudio.com's certificate, issued by ‘CN=Microsoft Azure RSA TLS Issuing CA
03,O=Microsoft Corporation,C=US’: Self-signed certificate encountered. To conne
ct to update.code.visualstudio.com insecurely, use `--no-check-certificate'.
printenv:

[10:58:23.889] >     LC_PAPER=zh_CN.UTF-8

XDG_SESSION_ID=1584
LC_ADDRESS=zh_CN.UTF-8
LC_MONETARY=zh_CN.UTF-8
SHELL=/bin/bash
SSH_CLIENT=<IP_ADDRESS> 56794 22
LC_NUMERIC=zh_CN.UTF-8
USER=heng_cao
LC_TELEPHONE=zh_CN.UTF-8
VSCODE_AGENT_FOLDER=/home/heng_cao/.vscode-server
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

:/usr/local/games:/snap/bin
MAIL=/var/mail/heng_cao
LC_IDENTIFICATION=zh_CN.UTF-8
PWD=/home/heng_cao/.vscode-server
LANG=en_US.UTF-8
LC_MEASUREMENT=zh_CN.UTF-8
HOME=/home/heng_cao
SHLVL=2
LOGNAME=heng_cao
SSH_CONNECTION=<IP_ADDRESS> 56794 <IP_ADDRESS> 22
XDG_RUNTIME_DIR=/run/user/1013
LC_TIME=zh_CN.UTF-8
LC_NAME=zh_CN.UTF-8
OLDPWD=/home/heng_cao
_=/usr/bin/printenv
Trigger local server download
641994a4f94c:trigger_server_download
artifact==cli-alpine-x64==
destFolder==/home/heng_cao/.vscode-server==
destFolder2==/vscode-cli-5437499feb04f7a586f677b155b039bc2b3669eb.tar.gz==
641994a4f94c:trigger_server_download_end
Waiting for client to transfer server archive...
Waiting for /home/heng_cao/.vscode-server/vscode-cli-5437499feb04f7a586f677b155b
039bc2b3669eb.tar.gz.done and vscode-server.tar.gz to exist

[10:58:23.890] Got request to download on client for {"artifact":"cli-alpine-x64","destPath":"/home/heng_cao/.vscode-server/vscode-cli-5437499feb04f7a586f677b155b039bc2b3669eb.tar.gz"}
[10:58:23.890] Downloading VS Code server locally...
[10:58:24.277] Downloaded VS Code server to c:\Users\heng.cao\AppData\Local\Temp\764\e235535b-a2db-4af4-b6ca-24714135457c
[10:58:24.280] Renamed VS Code server to c:\Users\heng.cao\AppData\Local\Temp\764\vscode_server_1719889104277\vscode-cli-5437499feb04f7a586f677b155b039bc2b3669eb.tar.gz
[10:58:24.285] Checking ssh with "C:\app\blj_admin\product\11.2.0\client_1\bin\ssh.exe -V"
[10:58:24.287] Got error from ssh: spawn C:\app\blj_admin\product\11.2.0\client_1\bin\ssh.exe ENOENT
[10:58:24.287] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[10:58:24.289] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[10:58:24.289] Checking ssh with "C:\Windows\ssh.exe -V"
[10:58:24.290] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[10:58:24.291] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[10:58:24.292] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[10:58:24.292] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[10:58:24.294] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[10:58:24.294] Checking ssh with "C:\Program Files\Java\jre1.8.0_201\bin\ssh.exe -V"
[10:58:24.296] Got error from ssh: spawn C:\Program Files\Java\jre1.8.0_201\bin\ssh.exe ENOENT
[10:58:24.296] Checking ssh with "C:\Program Files\Git\cmd\ssh.exe -V"
[10:58:24.298] Got error from ssh: spawn C:\Program Files\Git\cmd\ssh.exe ENOENT
[10:58:24.298] Checking ssh with "C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\ssh.exe -V"
[10:58:24.299] Got error from ssh: spawn C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\ssh.exe ENOENT
[10:58:24.299] Checking ssh with "C:\Program Files\Microsoft VS Code\bin\ssh.exe -V"
[10:58:24.301] Got error from ssh: spawn C:\Program Files\Microsoft VS Code\bin\ssh.exe ENOENT
[10:58:24.302] Checking ssh with "C:\Users\heng.cao\AppData\Local\Microsoft\WindowsApps\ssh.exe -V"
[10:58:24.304] Got error from ssh: spawn C:\Users\heng.cao\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT
[10:58:24.304] Checking ssh with "C:\Users\heng.cao\AppData\Local\Programs\Microsoft VS Code\bin\ssh.exe -V"
[10:58:24.306] Got error from ssh: spawn C:\Users\heng.cao\AppData\Local\Programs\Microsoft VS Code\bin\ssh.exe ENOENT
[10:58:24.306] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[10:58:24.308] Got error from ssh: spawn C:\Windows\System32\OpenSSH\ssh.exe ENOENT
[10:58:24.308] Checking ssh with "C:\Program Files\Git\usr\bin\ssh.exe -V"
[10:58:24.370] > OpenSSH_8.8p1, OpenSSL 1.1.1m  14 Dec 2021
[10:58:24.372] Expecting scp to be next to ssh at C:\Program Files\Git\usr\bin\scp.exe
[10:58:24.372] Testing scp with "C:\Program Files\Git\usr\bin\scp.exe"
[10:58:24.421] scp exited with code: 1
[10:58:24.421] Got stderr from scp: usage: scp [-346ABCOpqRrsTv] [-c cipher] [-D sftp_server_path] [-F ssh_config]
[-i identity_file] [-J destination] [-l limit]
[-o ssh_option] [-P port] [-S program] source ... target
[10:58:24.422] Copying file to remote with "C:\Program Files\Git\usr\bin\scp.exe" "c:\Users\heng.cao\AppData\Local\Temp\764\vscode_server_1719889104277\vscode-cli-5437499feb04f7a586f677b155b039bc2b3669eb.tar.gz" "vscode-cli-5437499feb04f7a586f677b155b039bc2b3669eb.tar.gz.done" 120:"/home/heng_cao/.vscode-server"
[10:58:24.422] Using cwd: file:///c%3A/Users/heng.cao/AppData/Local/Temp/764/vscode_server_1719889104277
[10:58:24.422] Terminal shell path: C:\Windows\System32\cmd.exe
[10:58:24.692] >
[10:58:24.771] ><EMAIL_ADDRESS>password:
[10:58:24.771] Showing password prompt
[10:58:26.880] >
[10:58:29.885] >
[10:58:31.330] Got password response
[10:58:31.330] "Copy server to host" wrote data to terminal: "**********"
[10:58:31.371] >

[10:58:31.620] > c:\Users\heng.cao\AppData\Local\Temp\764\vsco   0%    0     0.0KB/s   --:-- ETA
[10:58:31.776] > c:\Users\heng.cao\AppData\Local\Temp\764\vsco 100% 8752KB  50.9MB/s   00:00

vscode-cli-5437499feb04f7a586f677b155b039bc2b 100%    9     9.2KB/s   00:00

[10:58:32.071] "Copy server to host" terminal command done
[10:58:32.898] >    Found flag and server on host

641994a4f94c%%2%%
tar --version:
tar (GNU tar) 1.28
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
tar: This does not look like a tar archive
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR: tar exited with non-0 exit code: 0
Already attempted local download, failing
641994a4f94c: start
exitCode==37==
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1013==
platform==linux==
unpackResult==error==
didLocalDownload==1==
downloadTime====
installTime==7==
serverStartTime====
execServerToken==1a1a1aaa-111a-1a1a-aa1a-a11111111a11==
641994a4f94c: end

[10:58:32.899] Received install output:
exitCode==37==
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1013==
platform==linux==
unpackResult==error==
didLocalDownload==1==
downloadTime====
installTime==7==
serverStartTime====
execServerToken==1a1a1aaa-111a-1a1a-aa1a-a11111111a11==
[10:58:32.901] Resolver error: Error: Failed to install the VS Code Server
at g.ServerInstallError (c:\Users\heng.cao.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.0\out\extension.js:2:499852)
at d (c:\Users\heng.cao.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.0\out\extension.js:2:493513)
at t.handleInstallOutput (c:\Users\heng.cao.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.0\out\extension.js:2:495331)
at t.tryInstall (c:\Users\heng.cao.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.0\out\extension.js:2:621085)
at async c:\Users\heng.cao.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.0\out\extension.js:2:580730
at async t.withShowDetailsEvent (c:\Users\heng.cao.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.0\out\extension.js:2:584036)
at async k (c:\Users\heng.cao.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.0\out\extension.js:2:577649)
at async t.resolve (c:\Users\heng.cao.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.0\out\extension.js:2:581407)
at async c:\Users\heng.cao.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.0\out\extension.js:2:848023
[10:58:32.908] ------
[10:58:33.332] "install" terminal command done
[10:58:33.332] Install terminal quit with output:
[10:58:33.364] Opening exec server for ssh-remote+120
[10:58:33.385] Initizing new exec server for ssh-remote+120
[10:58:33.411] Using commit id "5437499feb04f7a586f677b155b039bc2b3669eb" and quality "stable" for server
[10:58:33.415] Install and start server if needed
[10:58:33.439] Running script with connection command: "C:\Program Files\Git\usr\bin\ssh.exe" -T -D 56788 120 bash
[10:58:33.442] Terminal shell path: C:\Windows\System32\cmd.exe
[10:58:33.705] >
[10:58:33.705] Got some output, clearing connection timeout
[10:58:33.755] ><EMAIL_ADDRESS>password:
[10:58:33.756] Showing password prompt
[10:58:37.286] Password dialog canceled
[10:58:37.286] "install" terminal command canceled
[10:58:37.287] Exec server for ssh-remote+120 failed: Error: Connecting was canceled
[10:58:37.287] Error opening exec server for ssh-remote+120: Error: Connecting was canceled`
Can you offer some useful advice for this issue? As far as i know, this issue would randomly occur after restarting vscode, my colleagues have met the same issue.


Update config.php

This is defined in the readme, not X-Authorization

Hi @jeroenlammerts
A lot of people were having issues with "Authorization" as default so we changed it to "X-Authorization" instead. Apache has problems reading from the "Authorization" header - its probably reserved and you would probably need to tinker with Apache a bit to get it to work. Either way, I guess its the README that we need to change.
Thanks


Add Customizable Presets🚨

Description:
Allow users to save their current settings (color quantity, time interval, view type, and sound effects) as presets that can be easily reloaded.
Benefits:
Convenience : Users can quickly switch between their favorite settings without having to manually adjust them each time.
Personalization :  Users can create and manage multiple presets for different moods or events.
This feature would make the Random Disco Light Simulator more versatile and user-friendly, enhancing its appeal and functionality.
please assign me this issue to work on it

@sk66641 Hey, I would like to do this.

@animex007
Could you please give an update over this issue as it has been pending for over two weeks?

On the way  ! I will upload the PR ASAP


Changes - After installing updates or hotfixes to Azure Stack - Forever?

The change which requires the following commands to be run:
$adminResourceManagerEndpoint = "https://adminmanagement.<region>.<domain>"
$homeDirectoryTenantName = "<homeDirectoryTenant>.onmicrosoft.com" # This is the primary tenant Azure Stack is registered to
Update-AzsHomeDirectoryTenant -AdminResourceManagerEndpoint $adminResourceManagerEndpoint `
-DirectoryTenantName $homeDirectoryTenantName -Verbose
***** Is this required in every Azure Stack release after 1901? *****

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

ID: ec360839-d5b3-d010-d2bd-8e612672717a
Version Independent ID: 761e4136-7729-fd4b-997b-e9a1ca4171ce
Content: Azure Stack 1901 update
Content Source: articles/azure-stack/azure-stack-update-1901.md
Service: azure-stack
GitHub Login: @sethmanheim
Microsoft Alias: sethm

@AzureStacker Thank you for the question! We are investigating this and will get back to you shortly.

@AzureStacker It would be a good idea to run this script after every update. If new features are added to an existing installation, this script will give them the needed permissions to function.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


[Chore] Add graphql client unit test

What happened 👀
Add unit test coverage to the graphQLClient part.
Insight 📝

Refactor the logic to refreshToken a bit -> we should go through OAuthRepository instead of calling ApiClient directly -> correcting architecture.
Decoupling the dependencies injection of ApiClient/cache Store (HiveStore) /TokenStorage within the graphql client.
Start testing the behavior of the GraphQL Client:

Success (no auth)
Success with (auth)
Failed with auth_link -> it calls to refreshToken() once before failing request as it is an incorrect token is submitted to the real API.

Proof Of Work 📹
Codecov ++++++ 🤑

will merge as it has been pending review for more than 3 days


kernel: mem_domain: fix warning in ASSERT expression

While fixing the ASSERT expressions in mem_domain.c to use
%lx instead of %x for uintptr_t variables, commit
f32330b22c333012cf5f771b0eae9ef378e446d4 has overlooked
one ASSERT expression specific to ARMv8-M. This causes
printk compilation warnings for ARMv8-M builds, so we
provide a fix here.
Signed-off-by: Ioannis Glaropoulos<EMAIL_ADDRESS>

FYI @npitre


Clicking a comment from panel in an unopened file flickers

Issue Type: Bug

Checkout a PR
Open Comments Panel
Click a comment for a file that is not currently open

:bug: => file opens but comment is flickered on and off
Extension version: 2020.9.31141
VS Code version: Code - Insiders 1.50.0-insider (f943318042a3b9229049aea86cea04d0ff9c8210, 2020-09-23T06:50:43.482Z)
OS version: Windows_NT x64 10.0.19041

Some notes to myself on why this happens:

Comments are created for a particular uri. When a PR is checked out and we show diffs from the tree, the right hand side is the same uri as the normal local uri.
Right now we create comments for these local files once. When we open the local file outside of the diff, the comments should be collapsed, but in the diff, we want to expand them by default.
Because of this, when a text editor is opened, we check to see which of these cases we are in and try to reset the collapse state.
VSCode expands the comment when clicked from the panel, but then this is reset by the extension immediately


Polymorphic types can't be referred to in function body

Here's something that caught me by surprise:
/* @flow */

function x<T>(a: T) {
  var b: T = a;
}

[chris /tmp/a]$ flow check

/private/tmp/a/bar.js:4:10,10: identifier T
Could not resolve name

Found 1 error

If the T annotation isn't there on line 4, it checks fine and it seems like Flow infers that it's of type T anyway.

I have a PR open that addresses this already over in #571, just waiting on a bit of feedback :)

Oh and this is a direct duplicate of https://github.com/facebook/flow/issues/160. I'll close this.

@AgentME just a quick update: the restriction on referencing types is now lifted on the latest master, so your example code will type check now.


make fails with error: unknown type name 'kwm_callback'

I'm on master at commit a59871b, kwm fails to make for me.
$ make clean install
kwm/kwm.cpp:26:1: error: unknown type name 'kwm_callback'
kwm_callback KWMCallback =  {};
^
1 error generated.
kwm/window.cpp:1331:5: warning: 'GetProcessForPID' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
    GetProcessForPID(Window->PID, &NewPSN);
    ^
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:930:1: note: 'GetProcessForPID' has been explicitly marked deprecated here
GetProcessForPID(
^
kwm/window.cpp:1342:9: warning: 'SetFrontProcessWithOptions' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
        SetFrontProcessWithOptions(&KWMFocus.PSN, kSetFrontProcessFrontWindowOnly);
        ^
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:658:1: note: 'SetFrontProcessWithOptions' has been explicitly marked deprecated
      here
SetFrontProcessWithOptions(
^
2 warnings generated.
make: *** [bin/kwm] Error 1

Uh my bad, will fix in a seond.

Should be fixed, thought I was on a different branch when I made that change.


Transactional AB Updates of the core OS

I am trying to get Transactional AB updates working with hypriot.
Transactional AB Updates is what CoreOS and Ubuntu Core also offers.  ChromeOS pioneered this as far as i know.
The use case for this is so that you can update Hypriot OS (the host) itself in a transactional way, such that if the update fails you can rollback everything.
For me this is a huge feature that would make this very useful for my project, my clients project, and also the general public to be able to run Owncloud and other things. It advances everyone.
One aspect of this is the disk partitioning. Hence why i am raising this in this repo.
Another aspect is modifying the boot to tell it to boot up which partition, based on the state of the machine. This might be a bit tough based on the many boards out there.
I spent a few weeks lookig into how Ubuntu COre does it and its not that complex. Ubuntu have written a ton of golang code to wrap lots of this, and so its kind of easy to follow whats going on.
So, i am raising this idea here to see if anyone else wants to work on this with me, if the core developers are thinkng about this, or dont see any value in this... Would be nice if my patches are accepted...

@joeblew99 This sounds awesome. We basically did not this see as one of our near term goals - guess we also thought this might be quite complex. But if you say after some investigation that this is not to complex it might be worth to work on this together.
I do have some free time next week which I could use here. If you had an initial PR and some pointers where to look to get started with this I would have a first look.
What do you think?

This an frequently requested feature by the community. This feature beeing stable puts HypriotOS on a new level!

I am also having some free time.
I am really happy that this is something we want.  It really helps to hear
that.
I don't have any PR because I was working on this 6 months ago for an iot
startup and its their code. I was focussing on slip streaming some changes
to Ubuntu code for their needs. Long story but I learnt a bit about it then.
The place to look is the Ubuntu core code. I would look at the raspberry pi
code there. From that it's easier to form an understanding of it. It's
basically all about initrd.
Its also written in golang which is awesome.
https://github.com/snapcore/snapd/blob/master/boot/kernel_os.go
The hardest part is understanding it.
Also different boards need slightly different code.
The other trick of this is the pxe boot. I am bringing this up because I
feel it's 100% out of scope for Hypriot as this stage and much more work /
tricky. But here is how it works.  Coreos uses pixie, a nice golang wrapper
that acts as a server to allow the raspberry pi to boot / load the OS over
the network. The raspberry pi hits the router which then tells the
raspberry pi to use a different dhcp server. The dhcp server is the pixie
server. Then a few things happen etcet. The point however is that Hypriot
does not need booting over the network. It's out of scope and there be
dragons and boiling the ocean there.
I am in Berlin / Potsdam in case anyone else is around to hack on this
together :)
Joe
On Thu, 16 Jun 2016, 14:36 Govinda Fichtner<EMAIL_ADDRESS>wrote:

@joeblew99 https://github.com/joeblew99 This sounds awesome. We
basically did not this see as one of our near term goals - guess we also
thought this might be quite complex. But if you say after some
investigation that this is not to complex it might be worth to work on this
together.
I do have some free time next week which I could use here. If you had an
initial PR and some pointers where to look to get started with this I would
have a first look.
What do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hypriot/os-rootfs/issues/41#issuecomment-226472272,
or mute the thread
https://github.com/notifications/unsubscribe/ALcac47TOJmUq3BhHHTlwIFGfGCmypa0ks5qMUNFgaJpZM4I3SlT
.

Btw this is news to me.
http://arstechnica.com/information-technology/2016/06/goodbye-apt-and-yum-ubuntus-snap-apps-are-coming-to-distros-everywhere/
So add Hypriot to the list. This is great news.
On Thu, 16 Jun 2016, 15:36 Joe Blue<EMAIL_ADDRESS>wrote:

I am also having some free time.
I am really happy that this is something we want.  It really helps to hear
that.
I don't have any PR because I was working on this 6 months ago for an iot
startup and its their code. I was focussing on slip streaming some changes
to Ubuntu code for their needs. Long story but I learnt a bit about it then.
The place to look is the Ubuntu core code. I would look at the raspberry
pi code there. From that it's easier to form an understanding of it. It's
basically all about initrd.
Its also written in golang which is awesome.
https://github.com/snapcore/snapd/blob/master/boot/kernel_os.go
The hardest part is understanding it.
Also different boards need slightly different code.
The other trick of this is the pxe boot. I am bringing this up because I
feel it's 100% out of scope for Hypriot as this stage and much more work /
tricky. But here is how it works.  Coreos uses pixie, a nice golang wrapper
that acts as a server to allow the raspberry pi to boot / load the OS over
the network. The raspberry pi hits the router which then tells the
raspberry pi to use a different dhcp server. The dhcp server is the pixie
server. Then a few things happen etcet. The point however is that Hypriot
does not need booting over the network. It's out of scope and there be
dragons and boiling the ocean there.
I am in Berlin / Potsdam in case anyone else is around to hack on this
together :)
Joe
On Thu, 16 Jun 2016, 14:36 Govinda Fichtner<EMAIL_ADDRESS>wrote:

@joeblew99 https://github.com/joeblew99 This sounds awesome. We
basically did not this see as one of our near term goals - guess we also
thought this might be quite complex. But if you say after some
investigation that this is not to complex it might be worth to work on this
together.
I do have some free time next week which I could use here. If you had an
initial PR and some pointers where to look to get started with this I would
have a first look.
What do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hypriot/os-rootfs/issues/41#issuecomment-226472272,
or mute the thread
https://github.com/notifications/unsubscribe/ALcac47TOJmUq3BhHHTlwIFGfGCmypa0ks5qMUNFgaJpZM4I3SlT
.

@joeblew99 Great to hear this requirement, we'd love to support it!
AB booting would be a great feature to have and you're right, it heavily depends on the boards you're using.
PXE boot with CoreOS is damn easy to use, and it also is able to boot the complete systems via the internet, I've already run this as an experiment in the past with CoreOS! Just loading CoreOS over HTTP while booting your PC, an OS always up-to-date.
BTW, the Hypriot team is located in Bamberg, just a 4 hours drive from Berlin.

I traveling down near there in a few weeks for some energy tech project
review. Nothing to do with IT
Can you shoot me your contacts via email. Would be awesome to meetup.
Cheers
Joe
On Thu, 16 Jun 2016, 15:47 Dieter Reuter<EMAIL_ADDRESS>wrote:

@joeblew99 https://github.com/joeblew99 Great to hear this requirement,
we'd love to support it!
AB booting would be a great feature to have and you're right, it heavily
depends on the boards you're using.
PXE boot with CoreOS is damn easy to use, and it also is able to boot the
complete systems via the internet, I've already run this as an experiment
in the past with CoreOS! Just loading CoreOS over HTTP while booting your
PC, an OS always up-to-date.
BTW, the Hypriot team is located in Bamberg, just a 4 hours drive from
Berlin.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hypriot/os-rootfs/issues/41#issuecomment-226489694,
or mute the thread
https://github.com/notifications/unsubscribe/ALcacxkG-dSe8VRFoIlh7lgAmbvcL6leks5qMVPcgaJpZM4I3SlT
.

@joeblew99 you can find our email addresses in our GH profiles, I can't find yours.

I dont have it public.
I just sent you an email and my mobile :)

I love the way coreos does network boot too. Its amazing.
The reason i suggested it to be out of scope for now is this:

Hypriot is for ARM boards and allot of these are not in Data Centers (yet), and so its normal that you can get the base OS onto the machine yourself. This of course is likely to change, for example i was deploying to Armv8 boards in a French Data Center.
Its a matter of what to do first without boiling the ocean
what most useful for now ? For me, its that once the server is setup by me, i can set and forget and when new versions of Hypriot are released it just updates.

If others have thoughts on this love to be wrong. Just thinking of whats useful and not to boil the ocean too much

Any updates about this ?
If gokrazy an option ?
https://github.com/gokrazy/gokrazy
It seems to have the ability to do updates.
https://github.com/gokrazy/autoupdate


brunch watch bug

The "brunch watch" process failed while i was editting a styl file. After that, i executed "brunch build" command. However, the content i editted in build/index.html disappeared and rollback to the original content.
The version i used is 0.9.0-beta1
/home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/lib/fs_utils.js:278
      order = this.files[destFile.path].order;
                                       ^
TypeError: Cannot read property 'order' of undefined
    at FileWriter.<anonymous> (/home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/lib/fs_utils.js:278:40)
    at /home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/lib/fs_utils.js:6:61
    at /home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/node_modules/async/lib/async.js:97:13
    at Array.forEach (native)
    at /home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/node_modules/async/lib/async.js:26:24
    at Object.forEach (/home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/node_modules/async/lib/async.js:96:9)
    at FileWriter.<anonymous> (/home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/lib/fs_utils.js:309:20)
    at Object._onTimeout (/home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/lib/fs_utils.js:6:61)
    at Timer.ontimeout (timers.js:84:39)

It seems to be a linux-specific problem. And it needs more info.
Edit /home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/lib/fs_utils.js and append this before line 278:
console.log('Destfile', destFile);
console.log('Files', this.files);

Then try to watch again and copy output here.

oh wait. what text editor do you use? emacs?

vim

I met same issue when I edited template files(eco) by vim on linux.
The version i used brunch 0.9.0 and node 0.6.10.

It seems that vim creates some temporary files. Strange because I can't reproduce the bug.


How to follow Edge's intents?

Previously, there was a way to subscribe Edge's intentions for new features via RSS feed. Is there any equivalent considered for new Edge?
Right now, all intents are also posted to blink-devs, so that's one way. But I assume there will eventually be a feature intents which will only be available to Edge and not in Chromium. I think there should be a way for developers and users to follow Edge's intents :)

Thanks for your interest! As you mentioned, blink-dev and this repo are the best channels to keep track of our contributions to the Chromium platform. We’re defaulting to contributing our web platform work back but will share if there’s any other future channels for staying up to date on our roadmap!

Closing the issue since the question has been answered.


Rubocop legacy fix: Erroneous Auto Inheritance of ActionDispatch::IntegrationTest in the World

Summary
We inherit from ActionDispatch::IntegrationTest which inherits from about 4 other things down the chain. We need to try remedy this and only inherit what we need (Which are the test helpers).

Thanks for the heads up. It's likely we need to fix this in a breaking change release.
The reason I made this ticket was because we can streamline what rails should be and the inheritance (at that point), was only to get some test helpers (nothing more).
Maybe in doing so we find that we need more of the inheritance chain. I don't know. But definitely good you've posted this so I can be careful as/when I tackle this.

@BrianHawley - As a heads up. I'm going to try a small tweak, to just ensure that the class is setup correctly by calling super on the existing initialize method. This will alleviate rubocop and give us something to learn from - if this also causes issues then I think we might have to put more guards around any modifications here
Now this "could" be potentially problematic. So for now I'm just going to push the branch up and invite a few people to play with it.

As an update this branch is merged into main
I dug into some of the code and found the initializer was a "hack" set up 13 years ago. With the comment "Remove this". So after checking and removing it. I found that 4 levels deep the super call will require a name property. So I just added in a super call with a name and then from there everything else worked fine.
This obviously doesn't fix the issue of inheriting from it, but when I removed that I found a whole word of hurt happened including things like standard rails methods (model_path for example), started failing.
As such I'll keep this issue open for a couple of weeks, but then I'll close it off as no longer relevant.

Closing as no longer relevant. cc/ @BrianHawley


Handle NullableArrays with missing, undefined vals

Don't attempt to access the value without first making sure the value is
not null.  Fixes https://github.com/JuliaDB/SQLite.jl/issues/88.

I think you could write this even more concisely using get. Another advantage is that you don't need to play with the internals of the NullableArray:
function getbind!(dt::NullableVector,row,col,stmt)
        @inbounds val = get(dt[row], NULL)
        SQLite.bind!(stmt, col, val)
end

One would have to check that the performance is as good as your version, though.

Thanks for the effort @amellnik, could you put a test in about this and then it should be good to merge.
Alternatively (because I know our test file is a bit messy at the moment) could you give me a small example which fails on master but passes on this branch and I'll put the test in myself.

Thanks @Sean1708, here's a short example which passes on this commit and should fail on the master (although I unfortunately don't have time to check atm).
arr = Array(Any,2)
arr[1] = 1 #Now an array with the second value undefined
nv = NullableArrays.NullableArray(arr, [false, true])
schema = DataStreams.Data.Schema(["nv"], [Int64])
d = NullableArrays.NullableVector([nv])
dt = DataStreams.Data.Table(schema, d)
db = SQLite.DB("temp.sqlite")
SQLite.drop!(db, "temp", ifexists=true)
sink = SQLite.Sink(dt, db, "temp")
Data.stream!(dt, sink);

Just to follow up, I eventually found time and the latest commit includes tests for this.

@amellnik I'm so sorry, I'd completely forgotten about this. Looks good though, thanks.

Yes, thanks for this @amellnik. Sorry for being slow on the responses lately; moving into a new house has been more taxing that I ever imagined.

No problem!  I know moving is always a hassle -- good luck.


[T4A6][F09-B1] Tan Suan Zhi

Ready for review.

Accepting this PR without a review because another of your PRs for this tutorial was reviewed in detail.


fix: spacing and indentation in tactic formatters

This fixes a bunch of spacing bugs in tactics. Mathlib counterpart of:

Lean: leanprover/lean4#2240
Std: leanprover/std4#149
Aesop: JLimperg/aesop#56

bors merge

bors r+


App set up failed. Retry

Hello I am trying to understand this statement
There are currently a couple of ways to do development with remote notifications:
./bin/pu.sh is a script forked from pu.sh. There are instructions there for obtaining credentials from an Apple Developer account. However, we are out of available APN keys, so you'll need to obtain that from another developer. Run the script with the path to one of the example notifications to send a remote notification through Apple: ./bin/pu.sh "Example Notifications/2_potential_diagnosis.apns. You will also need to set the following environment variables to configure the script:
TEAMID
KEYID
SECRET - the fully expanded path to the .p8 key.
BUNDLEID
DEVICETOKEN - retrieved from the console when running the application
I have found all the relevant values except for DEVICETOKEN - how do i find this please?
When do I run the pu.sh script and what does it do.
Otherwise I can build and run the app on my iPhone and iPad.  However i am informed that the "App setup failed"
Does anybody have any comments on the above please?
Thank you
Ken

For all intents and purposes there's no way to run the app properly as we don't have access to the server. Once the server code is available we might be able to set up a test server to run against.

Thank you - I have now found the text in the code and  it indicates a registration failure.

I am still not sure what pu.sh does and when do use it.   When  i do use it often fails with BadDeviceToken.

As I said there’s no way to really get the app working properly right now. I was able to bypass the registration stuff enough to test the Bluetooth behaviour but that’s about it. We will need a test instance of the server, a Firebase account and instructions for configuring the app to use a test server.

I'm pasting this message in every active GitHub issue, so you may receive duplicate notifications.
Today, I'm happy to announce that NHSX has released the full git commit history for the Isle of Wight Beta apps.

Android - https://github.com/nhsx/COVID-19-app-Android-BETA
iOS - https://github.com/nhsx/COVID-19-app-iOS-BETA

As discussed, we have redacted API keys, sensitive domain names, and some of the developers' personal details. I am still waiting on final approval to publish the server-side code.
I would like to personally thank the community for your comments, bug reports, and vulnerability disclosures. They all went into helping the development process.
The beta trial of this app has now ended and we've moved to the next phase of app development. It is our intention to publish the source code of future apps as the binaries are released to the public.
Once again, thank you for being part of this.
Terence Eden
Head of Open Technology - NHSX


executable file not found

Hi there,
I'm getting "error: exec: "kibana" executable file not found in $PATH"
Running the container with "docker run -it --name kibana -p 5601:5601 --link elasticsearch kibana"
This is on RHEL 6.7
I have tried on CentOS 6.5 and the container runs successfully.
Docker version 1.7.1

Sorry for the delay!  Sounds like something strange with RHEL 6.7 -- I'd suggest getting in touch with RHEL support and seeing whether they've seen anything similar and can help debug further.


Add peer dependency @angular2-mdl-ext/popover

fixes #19

Coverage remained the same at 90.551% when pulling 12a2015daca5ff263336f56a4584c6bb9818a39d on tb:popover-peer-dep into 351d0720217858a0cc84dc7f68ab9d34373bade1 on mseemann:master.


Can not build !

Ubuntu 17.10
Maven 3.5.3
Java version: 1.8.0_161, vendor: Oracle Corporation
Node v8.9.1
[ERROR] npm ERR! Unexpected end of JSON input while parsing near '...kwrap":false,"publish'
[WARNING] npm WARN tar zlib error: unexpected end of file

It's my node problem.


how to get data (id card) when swipe card

hello, I'm currently using controller and I want to get card id every time I swipe the card using python, I wandered around, until I came across this project, it's amazing. There is almost no documentation on this issue, can you give me some instructions so that I can get the id every time I swipe the card through this controller. Thank you

Hi,
Hmm, I see the listen function isn't documented - I'll make a note to fix that. There is a sample in the example program but actually it's fairly straightforward:

configure the controller to send events to your host machine using the set-listener function
listen for events using the listen function

e.g.:
import ipaddress

from uhppoted import uhppote
from pprint import pprint

def main():
    controller = 405419896
    host_addr = ipaddress.IPv4Address('<IP_ADDRESS>')
    host_port = 60001

    bind_addr = '<IP_ADDRESS>'
    broadcast_addr = '<IP_ADDRESS>:60000'
    listen_addr = '<IP_ADDRESS>:60001'
    debug = True

    try:
        u = uhppote.Uhppote(bind_addr, broadcast_addr, listen_addr, debug)

        set_listener(u,controller, host_addr, host_port)
        listen(u)

    except Exception as x:
        print()
        print(f'*** ERROR  {x}')
        print()

def set_listener(u, controller, address, port):
    print('-- set-listener')

    response = u.set_listener(controller, address, port)

    print('  ', response)
    print()

def listen(u):
    print('-- listening for events')
    u.listen(onEvent)

def onEvent(event):
    if event != None:
        pprint(event.__dict__, indent=2, width=1)

if __name__ == '__main__':
    main()

If you edit that to set host_addr to the IP address of your machine, run it and swipe a card you should get something like:
python3 main.py

-- set-listener
   00000000  17 90 00 00 78 37 2a 18  c0 a8 01 64 61 ea 00 00
   00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
   00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
   00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

   00000000  17 90 00 00 78 37 2a 18  01 00 00 00 00 00 00 00
   00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
   00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
   00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

   SetListenerResponse(controller=405419896, ok=True)

-- listening for events
   00000000  17 20 00 00 78 37 2a 18  46 00 00 00 01 00 03 01
   00000010  a0 7a 99 00 20 24 04 02  19 14 07 12 00 00 00 00
   00000020  00 00 00 00 00 19 14 07  00 00 00 00 00 00 00 00
   00000030  00 00 00 24 04 02 00 00  00 00 00 00 00 00 00 00

{ 'controller': 405419896,
  'door_1_button': False,
  'door_1_open': False,
  'door_2_button': False,
  'door_2_open': False,
  'door_3_button': False,
  'door_3_open': False,
  'door_4_button': False,
  'door_4_open': False,
  'event_access_granted': False,
  'event_card': 10058400,
  'event_direction': 1,
  'event_door': 3,
  'event_index': 70,
  'event_reason': 18,
  'event_timestamp': datetime.datetime(2024, 4, 2, 19, 14, 7),
  'event_type': 1,
  'inputs': 0,
  'relays': 0,
  'sequence_no': 0,
  'special_info': 0,
  'system_date': datetime.date(2024, 4, 2),
  'system_error': 0,
  'system_time': datetime.time(19, 14, 7)}

@uhppoted when I change controller and host_addr to my address, I swipe the card but it doesn't return any numbers. When I tried swiping the card with access control software, I still got the result (so I can eliminate the line connection problem). I don't know if I did any wrong steps.

I want to add more information to avoid unwanted situations:
controller: acb-004 (s4a)
card reader: idteck ip10 (connect wiegand 26)
python: 3.11.8
I connect the controller to the switch and connect from the switch to the computer

Hmm - the fact that you got a valid reply back for the set-listener command says your network setup is ok and the card reader is clearly working.
Are you by any chance running the access control software and the Python script at the same time? And do you possibly have an active breakpoint set on line 37?

I can set a breakpoint at line 37, I also turned off the access control software to try again, but still nothing appears when I swipe the card

this is code:
import ipaddress
from uhppoted import uhppote
from pprint import pprint

def main():
    controller = 423138650
    host_addr = ipaddress.IPv4Address('<IP_ADDRESS>')
    host_port = 60001

    bind_addr = '<IP_ADDRESS>'
    broadcast_addr = '<IP_ADDRESS>:60000'
    listen_addr = '<IP_ADDRESS>:60001'
    debug = True

    try:
        u = uhppote.Uhppote(bind_addr, broadcast_addr, listen_addr, debug)

        set_listener(u,controller, host_addr, host_port)
        listen(u)

    except Exception as x:
        print()
        print(f'*** ERROR  {x}')
        print()

def set_listener(u, controller, address, port):
    print('-- set-listener')

    response = u.set_listener(controller, address, port)

    print('  ', response)
    print()

def listen(u):
    print('-- listening for events')
    u.listen(onEvent)

def onEvent(event):
    if event != None:
        pprint(event.__dict__, indent=2, width=1)
    else:
        print("nodata")

if __name__ == '__main__':
    main()

Ok:

you definitely don't want any breakpoints set (I thought the red dot in the first screenshot might have been a breakpoint)
you can't run the access control software and the Python script at the same time because the access control software will reset the listener address

Can you perhaps post your network configuration? And just to confirm - you are running directly on the host machine with IP address <IP_ADDRESS> (and not e.g. in a VM or Docker container)?
Some other things you can try:

Change the listen_addr to <IP_ADDRESS>:60001 so that it is definitely binding to the correct IP.
You could also try downloading the CLI and running the following commands:

uhppote-cli --debug set-listener 423138650 <IP_ADDRESS>:60001
uhppote-cli --debug get-listener 423138650
uhppote-cli --debug listen

If that doesn't work then the next step is get Wireshark traces on the UDP packets to and from the controller.

(BTW it's late this side of the planet so I'll only be able to follow up tomorrow)

@uhppoted  sorry, the ip address I passed in was the controller's ip, I changed it to the computer's ip address and it worked. Really sorry for my confusion, have a good night's sleep

Ah, yes! I was a bit puzzled .. I need to make a drawing or something that explains it better than words because a couple of people have done that.
Great! Glad you're up and running!

Hi,
I've added the missing listen API function to the README. The description is a bit brief but I've also added an event-listener example based on the code above which should hopefully make it clear for anybody else who runs into the same problem.
Going to close this one out - but feel free to reopen it if you need to :-).

@uhppoted  Hello, I am dealing with a situation where after 2 minutes there is no card swipe event, then call the gc.collect function. However, it seems that the statement after else is never executed, I tested it. but no results were printed.
def onEvent(self,event):
        # Nếu có sự kiện quẹt thẻ thì event nhận giá trị
        if event:
            self.time_start = time.time()
            # 2 lệnh dưới sẽ in ra toàn bộ thông tin có trong thẻ
            # pprint(event.__dict__, indent=2, width=1)
            # print(event.event_card)

            # Đây là sử dụng luồng, nếu số lượng luồng mở quá nhiều thì chương trình tự đóng, vì vậy dùng semaphore để giới hạn luồng được mở
            # Không dùng join để đợi luồng này, bởi như vậy sẽ làm delay các quá trình còn lại, không giải quyết được vấn đề vượt CPU
            if semaphore.acquire(blocking=False):
                get_license_in_thread = threading.Thread(target=self.function, args=(event.event_card,))
                get_license_in_thread.start()
                # Chờ luồng kết thúc, sử dụng join()
                # get_license_in_thread.join()
                self.id_card = event.event_card

            # Đây là không sử dụng luồng, nếu CPU>20% gây ra hiện tượng lag ( quẹt thẻ với tần suất 2s cho 1 lần quẹt)
            # self.function(event.event_card)
            # self.id_card = event.event_card
        else:
            current_time = time.time()
            elapsed_time = current_time - self.time_start
            print(current_time)
            # Trong vòng 2 phút nếu không có sự kiện quẹt thẻ nào cả thì dọn các file rác và hiển thị quảng cáo
            if elapsed_time >= 120:
                print(current_time)
                print(self.time_start)
                gc.collect()
                print("đã dọn bộ nhớ")
                self.time_start = time.time()

Hi,
I'd be very surprised if event is ever None because the onEvent handler is only called when an event is received - which means the else block is never going to be executed.
In my code I check for event == None because it avoids a crash if (for example) there is a mistake in some other code - it is not an expected condition.

@uhppoted  so is there any other way I can do the time calculation without the card swipe event? For example, how long has it been in the value of even = None?

Personally I would just start a separate thread in the main function to do garbage collection every 2 minutes.
Although TBH I'm a bit puzzled as to why you are doing garbage collection at all?

@uhppoted  I am integrating object detection and OCR every time there is a card swipe event, however after each object detection +OCR, those 2 models do not automatically return the used resources, every time. It increased to 50MB of RAM again, after 300 card swipes it increased to 250MB of RAM. So I need to clean up the trash after there are no swipe events at all. To make sure that there is no situation where someone is swiping the card, gc.collect() also collects garbage and causes the program to error. So I have to know when event = None  will allow me to collect the garbage

Huh! Very interesting!
In that situation I would typically have a separate thread to do garbage collection and something like a shared counter - when onEvent sees a card swipe it e.g. increments the counter. The thread would periodically wake up and decrement the counter and if the counter was zero then do a gc. There are lots of other ways to do it - but I'm afraid doing it in the else block isn't going to work because event == None is only going to happen if there is a serious error in the controller (so basically never).

@uhppoted thank you so much

Pleasure! And good luck!

@uhppoted Can I limit the time to receive the id from the magnetic card, for example, after 2 seconds before I can swipe the card? Because if I intentionally swipe the card continuously (less than 1 second), it will cause an unexpected error, so I want to limit the time I can swipe the card to 2 seconds for each swipe.

@uhppoted  Every time I swipe my card, I will open a new thread to perform tasks. However, if I swipe the card too quickly, many open threads will cause conflicts in the parameters in that thread. I don't have much experience. so I don't know how to handle it well

Oh .. ok, what you want to do is use a work queue:

In the onEvent handler, when you receive a swipe event you add it to a FIFO queue.
In a separate thread you have a loop that waits for the FIFO queue to be not empty - then while there is a swipe event in the queue, remove the event and process it and repeat until the queue is empty, at which point the thread goes back to sleep and waits for the queue to be not empty again.
If the queue gets too large (e.g. 16 pending swipes) then you can either discard the event in the onEvent handler (and log a warning message) or discard it in the processing thread (and log a warning message).

To start with, the processing thread can just sleep in a loop and when it wakes up check the queue for a swipe event. Once you've got that working with just one thread you can get more sophisticated (e.g. wait for a signal/event) and/or use multiple processing threads. If you have e.g. 4 cores in your machine then you could run 4 processing threads.
You'll also need to use mutexes/semaphores guard the queue but you can read up on that if you need to.

@uhppoted Thank you, I will try it immediately

Interestingly, if you use Python's queue.get() you can do the gc.collection on timeout very easily!
(it's also threadsafe so you don't need to have external mutexes/semaphores).


body overflow-x: hidden

I found wrong behavior when body has overflow-x: hidden then all elements below fold are not triggered. It's also related to height: 100% set to body, html.
But the bug can be fixed, when overflow-x: hidden is removed.
Essentially it means, that any element which is not visible on page load will never be triggered.
It works correctly in Chrome\Firefox without polyfill, so I assume this is incorrect behavior.
Here is demo file (use Firefox or Safari to test): https://gist.github.com/usrbowe/2b6663ea9dfb73514255da0a277d634a
Related/same bug: https://github.com/WICG/IntersectionObserver/issues/189

Fixed via #221.


ai2html version update

Changes:

Update ai2html script version from 0.60.0 to 0.81.5
Remove artboardResizer function from graphic.js
New export settings (in the template file ai2html-graphic.ai) as per a conversation with @alykat: Change image_format from png to jpg, and update settings_version from 0.60 to 0.81.5

:shipit:


Fix 327

Current coverage is 90.68% (diff: 100%)

Merging #329 into master will not change coverage

@@             master       #329   diff @@
==========================================
  Files            63         63
  Lines          3700       3700
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           3355       3355
  Misses          203        203
  Partials        142        142

Powered by Codecov. Last update b685040...5c43a55


Update paths to the executable

paths currently point to SpiderOak and to SpiderOakBlue, they will need to be updated to point to SpiderOakONE and SpiderOak Groups

That said, when I manually edit them the create_device.sh in this branch works beautifully for both Mac and Linux

@reneelynn then can you commit the changes and make a PR? :) Happy to walk you through that.

please walk me through AFTER the current round of tests since we're on a crunch.


Update Dialog

resources/app/client/ui/dialog.js

no changes @JPMeehan

there is a use of Partial in application constructor... wasn't sure if that's right or not

there is a use of Partial in application constructor... wasn't sure if that's right or not

I think it is because of the way that options are handled; namely, overwrite: true in Application means explicit undefined is handled differently
    /**
     * The options provided to this application upon initialization
     * @type {object}
     */
    this.options = foundry.utils.mergeObject(this.constructor.defaultOptions, options, {
      insertKeys: true,
      insertValues: true,
      overwrite: true,
      inplace: false
    });


MinMax in OAP is not as fast as Parquet

Since parquet has split feature and MaxMin is used to skip every row group.
OAP only uses MinMax to skip file, doesn't check each row group

We need add MinMax at row group level.


Improve TypeManager

The TypeManager has good intentions, but the implementation is not very usable. Ideally, it could be used for finding the declaration of a given type, but since it does looks up based on addresses it can only find previously indexed types. This means users cannot construct a type and see if its been declared.
Another issue is that decorations are added after the types have been created. This should be changed so that decorations are indexed at the same time as types. Furthermore, there should be a clear system of describing which decorations change the meaning of a type.
The SPIRV spec says non-aggregate types cannot be decorated in ways that change the meaning of their type (the variable pointers extension modifies that to non-pointer non-aggregate types). Perhaps not all decorations should matter and be recorded in a type.

Pushed as 616908503d747a052022d5f5af86647ec373855f


"Changes" meta-model

Hi! Is it possible to make the "changes" meta-model (http://nmf.codeplex.com/changes) available? Thanks!

Hi!
It already is: [https://github.com/georghinkel/ttc2017smartGrids/blob/master/metamodels/NMetaChanges.ecore]
However, I initially forgot to upload the change metamodel. You may have to pull the last commit.
Best,
Georg

Ah, I see. Thanks for the quick and helpful reply!


UI breaks inside ShadowDom

monaco-editor version: 0.20.0
**Browser:**Chrome
**OS:**Mac OS
When i to include monaco-editor inside a shadow DOM , most of the UI is breaking.
I have include the Demo for this issue in https://github.com/Pranomvignesh/MonacoEditorInsideShadowDom
Line Numbers , Find & Replace and Mini map UI are getting broken

I was also having issues, but could solve them by linking the editor.main.css style sheet in the shadow DOM as was suggested here: #1843
If that doesn't solve it maybe try looking at this test file: https://github.com/microsoft/monaco-editor/blob/daabff0021fd6d4f5b57479b99b9a8ab900f951a/test/shadow-dom.html#L27-L43

@GitHubJasper Thanks for your response. It works.
But now I am more concerned with the events registered by the monaco editor.
Is there any events registered globally by monaco editor. If so then i think it may not work properly inside the shadowRoot(Correct me if i am wrong)

I am not an expert on this topic myself but I don't think there are any, so far I haven't seen anything break in the shadowdom (except for the styling issues).
I would suggest just trying it out
If something doesn't seem to work, then also try it outside the shadowdom and maybe make a new issue for the specific problem you found.
Though, like I said, I haven't found any other problems yet.

@GitHubJasper , I am only using monaco editor inside shadowDom for about a week and i haven't found any issues. I posted it just to clarify if anyone has encountered any problem in this approach. Will post an issue if i find problem and Thanks for your response


add public testnet support

add public testnet support

add a local configure default_prefix, which support the different prefix of public net and testnet
fixes some error in testnet.

@lrita As @shawnpringle mentioned, if you could break out each piece of functionality proposed into individual PR's, it will be much easier to address. Also, please ensure you address any merge conflicts that have arisen since this pr was opened.

Thanks for your reply. I will close this one and push another one later.
At first, this PR only has one functional cmd changed. I push some modifications to the fork repo to share with my friends later, and those modifications auto be merged into this RP...


[Article] How to deploy machine learning models update Python Sample  from T1 package to T2

Docs Link
ADO Workitem Link
In the docs sample code, there are CLI version of how to deploy and Python version of How to deploy, we should update that part of python code to utilize T2 python lib

wrong issue raised, closing this one


Batch export to Sender extension

Presentaion:
https://youtu.be/GX8Wr3SjlnI
Sender batch import build:
https://github.com/SenderWallet/sender-build/blob/main/sender-batch-import.zip

@AmazingBeerBelly this is looking good! I added a comment regarding a minor refactor and wanted to confirm the following:

We can address this in a followup but is it not possible to detect the extension and call it directly from the wallet app? Seems like this would be better UX
When importing the accounts on your side are you adding a new key and deleting the one that's passed to you? Is it possible to link to this code?

@AmazingBeerBelly this is looking good! I added a comment regarding a minor refactor and wanted to confirm the following:

We can address this in a followup but is it not possible to detect the extension and call it directly from the wallet app? Seems like this would be better UX
When importing the accounts on your side are you adding a new key and deleting the one that's passed to you? Is it possible to link to this code?

I recommended against it as that would put too much logic in the wallet codebase specific to sender I didn't want to introduce.  Logic like:

Is extension installed?
Did the user attempt to export?
Is user attempting to export?

I'd rather this logic live on their specific SPA versus ours, this will be for all other wallets that wallet.near.org supports exports to.

@AmazingBeerBelly  I added a refactor in AmazingBeerBelly/near-wallet#1 to resolve above comments. Aside from this please make sure we are adding new keys and deleting the passed in keys and we should be good to go 👍

@AmazingBeerBelly In my testing I was only able to import one account unfortunately. Please make sure all accounts in the payload are added to Sender and also make sure ledger accounts are supported via the ledger hd path passed in the payload

Thanks for your refactor @esaminu and I have merged this PR into my branch.
In my testing I can import multiple accounts. Could you provide some sample test case?
At present, the function of ledger accounts are still under development, so the import of ledger accounts are not yet supported.

@AmazingBeerBelly It's happening when some of my accounts are ledger accounts - maybe it's a parsing issue. I put some parsing code in this repl that you could reuse to make sure you are parsing the payload and disregarding hd paths correctly.
We should also add a isLedgerSupported to WALLET_OPTIONS in this case and not list ledger accounts in the "We found X active accounts" modal in this case
Finally, can we submit a transaction to delete the passed in key and add a new NEAR full access key to the account and use that in the Sender app?

@esaminu I can import these three accounts.
I have uploaded the latest Sender version to github. Maybe you need reinstall the Sender extension to make sure the code is latest.
https://github.com/SenderWallet/sender-build/blob/main/sender-batch-import.zip
Then open this link:
https://sender.org/transfer?keystore=NDQsMjksMzUsMiwxMDksMTExLDE0MiwxODUsMTc1LDIyMywyMjMsMTk5LDE0Nyw0NCwyMjUsNzMsMjMwLDEwNywxMjksOTcsMTY2LDc3LDExOCwyLDE4OCwxMjYsMzcsMjU0LDE5MiwxNTgsMjE0LDIyNiw1MiwyNTEsMjMyLDE3NiwyMzIsMjMyLDExLDI0NywxNjksMTEzLDE4NSwyNDAsMTg4LDEzNywxNTIsNTEsNzQsMTM0LDU0LDEwMSwxMDgsMTEzLDg3LDE1MCwxMjYsMTgwLDcxLDQyLDE3MCwyOCwxMjUsNTEsMTEzLDkwLDEzOCwxNDIsNTMsMTU1LDE1NCw2Myw5OCwyMTQsMTg0LDIzOSwyMjAsMjAxLDEyMSw0NywzMywxMDMsMTkwLDk2LDEyNSwyNDgsNjUsNTksMTE3LDE1NCwyMTgsNjcsNDUsMTU2LDE5NywxODAsMTY3LDM1LDc3LDIwMiwxOTEsMTE2LDE1NCwxMDcsMTIsMjIzLDE4MCwxNTMsMTY3LDE3NCwxNjIsMzYsMjMwLDc5LDQwLDIwNSw2NCwyNyw2MCw2MSw3MCwyOCwyMjEsMTAxLDMxLDI1MSwyOSw5OSwxMTcsMTQsOTUsMjksMTQ2LDIxMCwxMTEsMTgzLDc0LDgwLDExNyw0NiwxNzEsMTc2LDE3NiwyMzMsMjUwLDIwMCw0LDE4NSwyNywxNTYsNjAsMjIxLDIwOSwxMjUsMjQ0LDEwMSwyMTgsMTE2LDgwLDE0NSwxMiwxMiw0MCwyNDYsMjE4LDIxOCw1OCw2OSwxODgsMTUzLDM4LDIxLDcxLDIyMiwxMzUsMTI4LDQ0LDM2LDg4LDg2LDExOSw5LDE5MCwxODAsMTQ2LDU3LDE0MywxOTAsMjM0LDE4OCwxNjEsMCwzMSwwLDExNiw0MiwyNTEsMTU2LDQ2LDIzLDE5NSwyMzMsMTg4LDIyLDE2Nyw4OCwyMDIsMzMsMTIwLDEyLDk3LDE3MSwyMzIsNDAsMTQ3LDEzNyw3Myw3LDE1NCwxMjYsMTA0LDI0OSw5NSwxOTYsNjAsMjMxLDY2LDIwMywxNTUsMjIxLDE1MCw0LDExNSw1MiwxOSw1MywxMTEsMjI4LDk4LDIyNywxMjIsMjUyLDg5LDQ3LDExMywyMjksMTEsMTI3LDczLDE4MCwxMjksMTg3LDQ1LDcsMjE4LDEwMCwyMDMsNzYsMjI2LDExMCw2NCw3Nyw3NywxMjIsMTg4LDE5Miw4OSwxOTMsMTEzLDQ4LDc4LDE1NywxMzIsOTUsMjI1LDI0NiwyMDcsMTMzLDI1MywxMTQsMjQ0LDE3OSw0OCwxNzgsMjYsNjYsMTE5LDIwOSwxNjYsMjExLDEwLDIwLDE2NSwxODMsMTQ2LDE0MCwyNTAsMjUyLDE0Myw4LDM4LDIzLDIxMCwyNTEsMTgsNCwxMDksNjMsMTE2LDI1MiwxNTQsMTE4LDE2NCwyMjUsMTQ0LDU5LDU1LDg3LDE4MiwyMDgsMTE3LDExNCwxODAsOTYsMTIwLDIyOSwyMTAsMTc5LDYwLDEwNiwxMjAsMjMzLDIzNywxMzgsMTQyLDY5LDIyOCwyMiwxNzEsOTMsMTk2LDEzNSwxMDQsMTgyLDE2NiwxNDk=&network=testnet
Import the key, and import success.
Here is my test screen shot:

And for last question, Sender is not support to send transaction to delete the passed in key and create new full access key to the account. If you think it's a important feature, we can add this feature as soon as possible.


remove workload-test command

It is no longer used.

This change is

Review status: 0 of 2 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Android documentation broken links

Not quite a bug, but if I google, for example, "MapLibre Android location", the top result is https://maplibre.org/maplibre-native/docs/book/android/location-component-guide.html, which 404s. Unsure if these docs have moved and Google has yet to update its index.
The reference does work (at https://maplibre.org/maplibre-native/android/api/) and this is the top link from googling "maplibre android docs". But some links on that home page (getting started guide) also 404. So perhaps Google is right, the docs should exist, but they've gone missing?

I found the docs I'm looking for here: https://github.com/maplibre/maplibre-native/blob/main/platform/android/docs/location-component.md


select doesn't show its initial value

Here is a plunker to reproduce the bug: http://plnkr.co/edit/hGJJAZpd67uVpJlJBYlt?p=preview
It seems to be introduced in 0.8.3 with the b7fb23a commit.
Angular docs says as and track by must not be used together: https://docs.angularjs.org/api/ng/directive/ngOptions#-select-as-

I agree, this is strange, there is an existing issue for this issue, enum is not initiated when the type in the form is explicitly set:
#462

Yes, the error appeared to me last week, just when they introduced the "trackBy" element

Sorry, removed the link above, this is a somewhat different bug, even though the symptoms are similar.

@aromanovich is right, I just removed the "track by item[form.trackBy]" element from the template of the select and voilà, worked lilke a charm!

This was due to https://github.com/Textalk/angular-schema-form/pull/418 which is reverted in release 0.8.4.


Add possibility to move tsconfig.json (angular-cli.json)

So basically I have problems with editor like VSCode.
It expects to have tsconfig.json at the project root directory.
And it seems like CLI skips angular-cli.json tsconfig option
When I did that I've got next problem:

Mac OSX El Capitan

angular-cli: 1.0.0-beta.4
node: 5.7.1
os: darwin x64

Move tsconfig.json to the project root directory
change angular-cli.json file
change configuration of tsconfig.json

The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
Error: ENOENT: no such file or directory, open '/Users/serhiysolonko/Development/Projects/WebApp/tmp/broccoli_type_script_compiler-input_base_path-jNRnmJYp.tmp/0/src/tsconfig.json'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.readFileSync (fs.js:431:33)
    at BroccoliTypeScriptCompiler._loadTsConfig (/Users/serhiysolonko/Development/Projects/WebApp/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:123:34)
    at BroccoliTypeScriptCompiler._createServiceHost (/Users/serhiysolonko/Development/Projects/WebApp/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:158:25)
    at BroccoliTypeScriptCompiler.build (/Users/serhiysolonko/Development/Projects/WebApp/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:41:12)
    at /Users/serhiysolonko/Development/Projects/WebApp/node_modules/angular-cli/node_modules/broccoli-caching-writer/index.js:152:21
    at lib$rsvp$$internal$$tryCatch (/Users/serhiysolonko/Development/Projects/WebApp/node_modules/angular-cli/node_modules/broccoli-caching-writer/node_modules/rsvp/dist/rsvp.js:1036:16)
    at lib$rsvp$$internal$$invokeCallback (/Users/serhiysolonko/Development/Projects/WebApp/node_modules/angular-cli/node_modules/broccoli-caching-writer/node_modules/rsvp/dist/rsvp.js:1048:17)
    at lib$rsvp$$internal$$publish (/Users/serhiysolonko/Development/Projects/WebApp/node_modules/angular-cli/node_modules/broccoli-caching-writer/node_modules/rsvp/dist/rsvp.js:1019:11)
    at lib$rsvp$asap$$flush (/Users/serhiysolonko/Development/Projects/WebApp/node_modules/angular-cli/node_modules/broccoli-caching-writer/node_modules/rsvp/dist/rsvp.js:1198:9)
    at _combinedTickCallback (node.js:370:9)
    at process._tickCallback (node.js:401:11)

Do you still have this? I'm running VSCode on CLI projects and it seems to be fine. I'll reopen if it still happens to you.

@filipesilva moving tsconfig.json seems not working for me.

I pulled code, master branch
made sudo npm link from repository folder
npm link angular-cli from project folder.
changed angular-cli.json apps[].tsconfig option
ran ng serve

Stack trace is the same.
Should I do something specific ?

Right you are, the location of tsconfig.json in angular-cli.json isn't being used in the build system: https://github.com/angular/angular-cli/blob/master/lib/broccoli/angular2-app.js#L320

Any updates ?

Any help ? !!

@filipesilva but there's an option in angular-cli.json:
"apps": [
    {
      "main": "src/main.ts",
      "tsconfig": "src/tsconfig.json",
      "mobile": false
    }
  ]

I don't think we'll be implementing this option as presented any time soon. Moving the tsconfig has serious implications in project compilation and it really should be at the root of the app.
It's perfectly valid to have a tsconfig at any depth of a project as well, and a project can have several tsconfig files. That makes me think that the problem might be related to the editor rather than the project.
There might also be other editor issues that manifest the way you are showing, for instance https://github.com/Microsoft/vscode/issues/9232 (I suffer from this one myself).


Fix endpoint url correctly for DynamoDB TTL

I found that the endpoint URL for DynamoDB TTL has a wrong double slash //. I fixed it to single slash /.
Other document (e.g., for SNS) also uses the format localhost:4566/_aws/.
It worked good on my sandbox environment😀
$ curl -X DELETE localhost:4566/_aws/dynamodb/expired
{"ExpiredItems": 1}%

Thanks!

Thanks for fixing this @kakakakakku !


[BEAM-6601] Fix wrong command to run Hadoop InputFormat integration test in Javadoc

This PR fixes wrong commands to run integration tests in Javadoc.

Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.


Non-empty list constructor should not return empty list

list(1, 2, 3) should give a TypeError.
>>> list(1, 2, 3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: list() takes at most 1 argument (3 given)
>>> list((1, 2, 3))
[1, 2, 3]

In filbert, list(1, 2, 3) evaluates to an empty list.
Note that in filbert list() correctly evaluates to an empty list and list((1, 2,3)) to a non-empty list.

Currently it seems the list() constructor is broken, probably by Esper? Just says Dont do this yet.


Feature Request 「plz support InternLM2.5」

Feature request
Hi,
I noticed that the repository currently lacks support for the InternLM2.5-7B (1.8B, 20B) model, which may cause compatibility issues or missing steps for users trying to implement it. It would be beneficial to update the repository with detailed instructions or tools for integrating and using the InternLM2.5-7B model, ensuring the content remains relevant.
I believe that adding this support would significantly enhance the usability of the project. While some manual adjustments are possible, official guidance or toolchain support would be much more efficient and advantageous, especially for new users.
If possible, including example scripts or demonstrating integration with InternLM2.5-7B would also be a valuable addition.
For further support, please add the InternLM Assistant (WeChat search: InternLM) or join the InternLM Discord(https://discord.com/invite/xa29JuW87d).
Motivation
.


Features and refactors

This PR contains:

Basic directory structure
Bank name extraction from card numbers
Iranian Iban validation
package name update from com.github -> dev.persiantools

@mohoma, please review

Hi all,
@ebrahimahmadi Jan, Thanks for contributing to the Project and I appreciate your contribution, and thanks to @mohoma for code reviewing and and thanks all for helping the Persian Tools to grow up faster than before.
Seems this PR is stopped and there is no update.
Is this PR final and ready to merge?
In my opinion, we can go and implement other utilities.

@ebrahimahmadi thank you for your patience and hardworking.

@ali-master Nokaram. 🌸


fix/mk1_faceplate_not_clearing

weather never clears faceplate after display
in addition mk1 events should always be emitted, not depend on a GUI being missing, as a voice sat may be connected to a master with a GUI
as reported by @goldyfruit

Works.


Add option for Flare flags

Flare is a new profiler created by the Airplane team, which is present in Airplane as well as its downstreams. This PR adds an option to add its required Java flags.

I'll tag and merge this to the other branches later today/this weekend.

This is now tagged merged via https://github.com/itzg/docker-minecraft-server/releases/tag/2021.9.0


Error: Tried to register two views with the same name FastImageView

Describe the bug
i think this lib not match with fast refresh.
when i comment a line code FastImage, and uncomment that line. I got this error
i got the issue on "react-native-fast-image": "^8.6.3",
"react-native": "0.70.5",
i had tried npm dedupe but still same error, so i think something wrong with fast refresh and this lib.
How can i solve that error.

Any update from anyone ?


Online editor replaces " with " in scripts

Saving groovy scripts using the online editor is resulting in corrupt script, as it replaces the " characters with &quot. You cannot see this in the editor itself, but the script cannot be executed and downloading it and open it offline can shows that " are replaced by &quot.

hi milkotodorov.
The issue has been corrected.
Soon after the deployment is expected in the near future.
You can check in below link.
https://github.com/naver/ngrinder/pull/190/files
thank you.

hi,
I just tried your fix, but unfortunately it doesn't work. Still works as before.
Regards,
Milko

hi,
The test results were good changes.
After clearing the existing source and
Is it even the same newly created?
Is it possible to share your case?
Please reply.

Hi,
I'm sorry, but I'm not quite sure whether I properly understand your question/request.
My case is quite simple - here is a bit more detailed description:
Let's say I'm creating a new groovy script called test_google.groovy that simply makes GET request to http://www.google.com:

However when you save this script with the nGrinder online editor and then try to download it and open it with some other editor offline it looks like this:
test_google.groovy.txt
You will notice that everywhere in the script the " sign is replaced by "
And of course this is causing an exception when you try to run any some tests using this script. I can only edit it offline and the online editor provided by the nGrinder is basically unusable.
Regards,
Milko

@milkotodorov Thanks! It's definately.. bug. We'll fix.
Thanks!

@milkotodorov
Question
Can you give us a test environment?

You can reproduce this on any PC. Just install the nGrinder even without any agent and try to use the online editor to edit some script. Then download it and there you go.

@milkotodorov
I have tried window, mac, linux.
Can you give more detail explaining?
For the operating system and version
And ngrinder version.
thank you.

Hi @songeunwoo,
so I tried it just on now AWS VM using ubuntu-trusty-14.04 image. Then I use JDK 1.8, Tomcat 8.5.5 and nGrinder 3.4. Can be reproduced in minutes.
Follow the following steps:

Create a VM on AWS with ubuntu-trusty-14.04 image (I believe that you can use 16 as well)
Download and extract JDK: wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.tar.gz
Download and extract Tomcat8: http://mirror.dkd.de/apache/tomcat/tomcat-8/v8.5.5/bin/apache-tomcat-8.5.5.tar.gz
Install the nGrinder 3.4 and try to create and edit a simple script.
Download it to your PC and open it with a standalone editor (Notepad or whatever)

Hope this helps.
Regards,
Milko

@milkotodorov
Would you feedback after the test?

Hi @songeunwoo,
perhaps I won't have the chance this week to do it, but I'll try next.
Regards,
Milko

Hi @milkotodorov
This commit is referred to as defense look for logic in your case.
Because I did not reproduce your case.
It has prepared a download link for easy testing.
https://drive.google.com/open?id=0B-2ubXuQYbbSZU90aGQ0YmVPZW8
install jdk and try

java -jar ngrinder-controller-3.4.1-SNAPSHOT.war

thank you.

I see int his commits that you are replacing the &quot with ", right? However it shouldn't be the case - the text should come in the right format so you do not need to do "replaceAll", don't you think so?

I also encountered similar problems, is the problem solved?

hi @songeunwoo,
I just verified your fix and it is unfortunately not working. However without you being able to reproduce it it would be more difficult for you to fix it. What's the problem with reproducing it? I've wrote you the steps a few replies earlier in the thread.
Regards,
Milko

같은 문제 발생하였습니다.

Hi, did you manage to reproduce it?
@lunker you may want to help @songeunwoo to reproduce the issue

Sorry! Behind me to avoid the use online editor.
<EMAIL_ADDRESS>From: Milko Todorov
Date: 2016-10-24 15:56
To: naver/ngrinder
CC: rxy007; Comment
Subject: Re: [naver/ngrinder] Online editor replaces " with " in scripts (#194)
Hi, did you manage to reproduce it?
@lunker you may want to help @songeunwoo to reproduce the issue
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Sorry, I do not understand.

I can reproduce this error. I downloaded the version of 3.4, the script can not be validated in editor. I tried the script created by quick test, which should be in SVN, and I also tested a new script. They both have same error.
After some investigation, I found:

the content sent to server side is right. all " is just ", not encoded.
the file in controller home dir, 'cat .ngrinder/script/admin/my_test.groovy ' is not right, all " are encoded with ".

So, the problem maybe in file copy/save file process. which is in ScriptValidationService.validate(...):
			if (useScriptInSVN) {
				fileEntryService.writeContentTo(user, scriptEntry.getPath(), scriptDirectory);
			} else {
				FileUtils.writeStringToFile(scriptFile, scriptEntry.getContent(),
						StringUtils.defaultIfBlank(scriptEntry.getEncoding(), "UTF-8"));
			}

I hope this can help.

And, even if I modify a existing script, and then run the test, there will be the error as above.

Precisely. Any script edited with this online editor cannot be used later on.

yes,do not use online editor!
<EMAIL_ADDRESS>From: Mavlarn
Date: 2016-10-27 16:58
To: naver/ngrinder
CC: rxy007; Comment
Subject: Re: [naver/ngrinder] Online editor replaces " with " in scripts (#194)
And, even if I modify a existing script, and then run the test, there will be the error as above.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Any update here?

I've the same issue as you @milkotodorov. I'm also using version 3.4 on a machine with Windows 10 and running the app in Tomcat 9.
If I try to validate any Jython script, it gives me the same error as you. But, if I run the generated script using the google.com example, it works. If I put the URL I want to actually test, it throws an exception complaining about the " in the script.
It even fails when I put the script that I successfully run manually on Grinder.
No news here?

이거 해결 됐나요..?

No - it is not solved yet. And no answer still.

@songeunwoo, do you still have issues reproducing this issue? Any updates?

@milkotodorov
hi. It is hard to reproduce.
I do not know what environment it is reproduced.
We are still looking for a solution.

hi , if there is not security issue
can you share your .ngrinder directory
??(this directory is in your homedirectory)

Man, so many people already reproduced this and I wrote you step by step how to do it too. What more I can do to help you?

우리가 도울 일이 있을까요?

we fixed this issue.
please download new version 3.4.1(https://github.com/naver/ngrinder/releases) and test
thank you

Thanks!

아주 잘 되네요.. 감사합니다

w==

i also  encounter this problem ,The script in editor is correct ,
when verify the script ,  report a bug.  the script file on server is wrong..

I also have same issue. When I edit and save scripts using online editor, quotes are replaced.
I am using 3.4.2 on Mac.
저도 온라인에서 스크립트 저장시 스크립트 에러가 뜹니다. 저는 3.4.2 버전 쓰고 있어요


(bot) Update ghcr.io/fluxcd/source-controller Docker tag to v0.15.1

This PR contains the following updates:

Package
Update
Change

ghcr.io/fluxcd/source-controller
minor
v0.13.2 -> v0.15.1

Release Notes

fluxcd/source-controller
v0.15.1
Compare Source
CHANGELOG
v0.15.0
Compare Source
CHANGELOG
v0.14.0
Compare Source
CHANGELOG

Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box.

This PR has been generated by Renovate Bot.

Renovate Ignore Notification
As this PR has been closed unmerged, Renovate will now ignore this update (v0.15.1). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.


Can filters be bi-directional in Vega Vis ?

Hi,
I am trying to create a map visualization in Kibana using Vega Vis by overlaying the geographic points on the Kibana default map. I am trying to get the filters in the Kibana dashboard to change based on a selection of a certain object/ point on the map and also affect the other graphs on the dashboard. Can you let me know if this can be done in any way?
Thanks and Regards

This is a work in progress, see https://github.com/elastic/kibana/pull/17586

duplicate of https://github.com/elastic/kibana/issues/17210


Market cap not updated

It seems that the market cap evaluation is not updated. The last valid data point is 12th May, which is 3 days old.

And hover legend has a copy past error: shows DAA in front of the color

print command in marketCapView must be removed

If the loadExtractedRichlistData-Routine runs first, the price is not updated. So market cap can not be calculated and routine will not run again until update of file extractedDFIdata.csv
Solution approach: Make update market cap also in routine loadDailyTradingData, which provides the price information


TypeError: Cannot set property 'state' of undefined

First of all, this is an amazing project.  It's working great!
I'm getting a weird error on macos, ae2017.
> job rendering failed
TypeError: Cannot set property 'state' of undefined
    at module.exports (/snapshot/nexrender/packages/nexrender-cli/node_modules/@nexrender/core/src/helpers/state.js:0:0)
    at Promise.resolve.then.then.then.then.then.then.then.job (/snapshot/nexrender/packages/nexrender-cli/node_modules/@nexrender/core/src/index.js:0:0)
    at process._tickCallback (internal/process/next_tick.js:68:7)

The render was successful, and the movie was correctly copied to the destination.  But I still get the error even though it works.
\
{
  "template": {
    "src": "file:///Users/egradman/dev/vr_loop/vr.aepx",
    "composition": "Main",
    "outputModule": "h264"
  },
  "assets": [
    {
      "type": "data",
      "layerName": "title",
      "property": "Source Text",
      "value": "Hello!"
    }
  ],
  "actions": {
    "prerender": [],
    "postrender": [
      {
        "module": "@nexrender/action-copy",
        "output": "/Users/egradman/dev/vr_loop/vr.mov"
      }
    ]
  }
}

oh, thank you for the report, looking into it!

indeed there was an issue related to action-copy, it didnt return the job properly
fixed that, and published a new build, thank you again!

fixed it for me!  thanks.


Including the JavaScript source map in the prototype kit config

What
Add Javascript maps to the prototype kit config
Why

Because at the moment there is a 404 when the console is open in the browser
So that prototype users get the benefit of the new source maps

Who needs to work on this

Developer

Who needs to review this

Developer

Done when

[x] Source maps are used by the dev tools for prototype kit users

As discussed in dev catch up, we think that adding the source maps to the assets array should do what we want:
https://github.com/alphagov/govuk-frontend/blob/394c67abdd06895a7d05f70f5fc0dd549d178790/src/govuk-prototype-kit/govuk-prototype-kit.config.mjs#L29-L31

Related issue:

https://github.com/alphagov/govuk-prototype-kit/issues/1950

Tested using npm link on a locally-built GOV.UK Frontend into a prototype 👍


itvr-327--loading-screen

Loading component used when the user submits a form, or when keycloak is initializing.

just a couple conflict fixes needed after the redesign merge

The submit buttons here should also be disabled on the form I think if the loading state is happening.

Thanks @tim738745 !


date type columns have object data type in df returned by athena.read_sql_query

Describe the bug
Columns of type date are mapped to the object datatype whereas columns of type timestamp are correctly mapped to datetime64[ns] in the dataframe returned by athena.read_sql_query
I did do some tracing and interestingly the dataframe returned by s3.read_csv here has the correct/expected datatype datetime64[ns] for date columns, but then following the invocation of the function _fix_csv_types here the dataframe has the datatype object.
How to Reproduce
query = '''
select timestamp_column, date_column
from table;'''

query_results = wr.athena.read_sql_query(
                sql=query,
                database=database_name,
                ctas_approach=False,
            )

print(query_results.dtypes)

timestamp_column                   datetime64[ns]
date_column                                object
dtype: object

Expected behavior
Columns of type date or timestamp should be mapped to datetime64[ns] in the dataframe returned by athena.read_sql_query
Your project
No response
Screenshots
No response
OS
macOS 13.2.1
Python version
3.9.16
AWS SDK for pandas version
2.19.0
Additional context
No response

Hi @sfanous does your date column contain empty values / None? If so the column type must be object, because datetime64 can't hold None. It should be fine if it's NaT though. I've added a test case below to demonstrate:
https://github.com/aws/aws-sdk-pandas/compare/fix/athena-date-csv

Can you share pip freeze, please? I'm interested in Pandas version in particular

Ah, I see. The issue is that Athena's date type effectively maps to pandas object with date values (since there is no dedicated date type in pandas). When you provide Athena destination type, the original data is casted, and it's difficult to trace it back to datetime64.

Basically, if you would want to keep the original types, do not pass dtypes when writing the file as it overrides them.

Not following you here. read_sql_query doesn't take a dtypes parameter. If it did, it'd actually solve the problem as it'd allow the caller to dictate the dataframe datatypes.

to_parquet does, and this is what registers the table in Glue, setting the column to date. An alternative is to read the data from S3 using read_parquet which will preserve original types in the file but Athena will read and cast types according to the schema in Glue.

Ah, I see. The issue is that Athena's date type effectively maps to pandas object with date values (since there is no dedicated date type in pandas). When you provide Athena destination type, the original data is casted, and it's difficult to trace it back to datetime64 after.

Then does it make sense to map Athena date to datetime64 in this function?
if dtype in ("date", "timestamp", "timestamp with time zone"):
        return "datetime64"

This would give a better user experience.

It looks like since the original data is datetime64, the most direct solution would be to use the timestamp column in Glue instead of date - is that possible in your case?

Not really but that's ok since I've wrapped read_sql_query into a function that takes a dtype like parameter and casts the returned dataframe columns. Basicly looks like this
query_results = wr.athena.read_sql_query(
    sql=query,
    database=f'{database_name}',
    ctas_approach=False,
)

if dtype:
    query_results = query_results.astype(dtype)

return query_results

We also do want to be able to distinguish between the three cases which would not be possible if they all map to datetime64. It would also be a breaking change for the users who use object type with date values.

To me it's a question of whether this is the right/expected behavior or not.
Perhaps the right thing to do here is to have read_sql_query accept a dtype parameter. This wouldn't be a breaking change since by default date columns would be returned as object and gives others the ability to cast columns to their liking. So something similar to what I explained earlier in this post.

If the source data is datetime64, Glue schema should match that with a timestamp (not the date) field, and you should get expected datetime64 when reading the data back via Athena.
I agree dtypes could be a solution to escape / override casting types. Would you shed some light on the logic that writes the original files / created the schema in your use case, please? Or was it created manually / outside of your control?

The source data is an ISO formatted date column YYYY-mm-dd that is being mapped to the Glue/Athena type date not timestamp.
I have no control over the logic that creates the schema and just have to work with it.

If the only thing a dtypes argument will do is convert the data frame types as a last step in the API call then I would just leave that to the user

As you mention, the dtypes argument is not explicitly exposed in the s3.read_csv API, it just happens to be available via the pandas_kwargs keyword arguments. Replicating the same approach in athena.read_sql_query would not be wise as read_csv is just one way to read via Athena (reading via parquet is another and other formats like orc could be supported in the future), so pandas_kwargs wouldn't be uniform in that case

Good point @jaidisido.
Feel free to close the issue then and thanks for the support.


pin tweedledum version

Tweedledum is highly unstable piece of software that might break backward compatibility, as in mentioned in https://github.com/Qiskit/qiskit-terra/issues/5852
Pinning tweedledum version fixes https://github.com/Qiskit/qiskit-terra/issues/5852

added in 59f214b1a3024df64708033016c26d6752ab1c9c .


Ability to define RMA texture in OBJ's MTL.

This adds the ability to define an RMA material within the OBJ's MTL via the command map_RMA or map_occlusionRoughnessMetallic.
This replaces the current implementation of using a presumed filename from the albeto name, often causing errors when using the PBREffectFactory.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: MattFiler sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


preloader

Related Issue
[Cite any related issue(s) this pull request addresses. If none, simply state "None”]
Description
#486
Type of PR

[x] Feature enhancement

Checklist:

[x] I have performed a self-review of my code
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have commented my code, particularly in hard-to-understand areas.

Additional context:
https://github.com/Suchitra-Sahoo/AgriLearnNetwork/assets/158484284/8457e526-2c7a-47d9-a06b-b8a1aa711866

Recently some changes have been made. Have you pulled those from origin?

Recently some changes have been made. Have you pulled those from origin?

Yes I forked from origin 15 min ago after deleting the previous repo from my account

Recently some changes have been made. Have you pulled those from origin?

Yes maam

Have you written the code of both style and javscript within html file? Seperate those as there are style.css and script.js file.

Have you written the code of both style and javscript within html file? Seperate those as there are style.css and script.js file.

ok making the changes

Have you written the code of both style and javscript within html file? Seperate those as there are style.css and script.js file.

@Suchitra-Sahoo Maam I made the changes

Reverted back your PR as your preloader is running even after the page is loaded. Also in mobile devices the loader keeps on running and the page is opened after a lot of time.


Add license check to Github actions

Following the Feb monthly meeting (#162), we must automate the recursive validation for our dependencies, especially for PRs including new dependencies. The tool https://github.com/google/go-licenses can allow us to track license compatibility issues.
Currently allowed licenses:

MIT
Apache 2
BSD 3 clauses
WTF

Please comment if you think there are more compatible licenses.

Not enough resources for this feature.


Fixes 2 panics initialising tests

Signed-off-by: John Howard<EMAIL_ADDRESS>@swernli Won't happen on automated Jenkins testing, but possible during local testing if DOCKER_HOST/DOCKER_TEST_HOST is set incorrectly or the daemon isn't reachable. The initial panic intended to be reached under those circumstances is never actually exercised.
There are three bugs (pretty cool for 4 lines of code!)

Defer b.Close() without checking for nil will cause an unintentional panic
Dereferencing through res to validate StatusCode when res is nil during the check will cause an unintentional panic.
Dereferencing through res to get StatusCode when res is nil in the panic statement will cause a different panic itself!

LGTM