Update bindings.md

Add in Kinetica

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

coverage: 98.824%. remained the same
when pulling 902f1dbcd95a0378b0c08319079c8e0fad71afa2 on eglaser77:eglaser77-community-bindings-kinetica
into 138a7487adb0892715ea7ced785db4e9c38842d1 on uber:master.


Create sign-hook

Hook for signing ZBM files,
Extends ZBM config with some settings to allow configurability
Standalone repo: https://github.com/Biyoni/zfsbootmenu-sb

Please add some documentary comments at the top of the script to describe its use.

I've added that now

Thanks for your contribution! I made the comments a bit more verbose and added a brief description in contrib/README.md.


fix GetBucketTagging error code

related to https://tracker.ceph.com/issues/55460

thanks @dang. has this made it to the ceph-master branch yet?

i cherry-picked it to ceph-master

cherry-picked to ceph-quincy after the merge of https://github.com/ceph/ceph/pull/50103

cherry-picked to ceph-pacific


[BUG] Portal runtime is unresponsive.

Describe the bug
Portal runtime is unresponsive when launching the application.
To Reproduce
Running this build: https://github.com/datature/portal/releases/tag/v0.5.5
On MacOs
Uncaught (in promise) Error: Network Error
    at e.exports (835-91f7fb22de8eba0dd168.js:1)
    at XMLHttpRequest.p.onerror (835-91f7fb22de8eba0dd168.js:1)
localhost:9449/api/project/assets:1
Failed to load resource: net::ERR_CONNECTION_REFUSED
835-91f7fb22de8eba0dd168.js:1
Uncaught (in promise) Error: Network Error
    at e.exports (835-91f7fb22de8eba0dd168.js:1)
    at XMLHttpRequest.p.onerror (835-91f7fb22de8eba0dd168.js:1)```

Hey @AlexVialaBellander - thank you for bringing this up - I was trying to reproduce using the particular release and didn;t manage to get this bug. Is it possible for you to try running this from terminal?
git clone https://github.com/datature/portal
cd portal
pip3 install -r requirements.txt
./setup.sh

Then subsequently
python3 portal.py

To get the app up? The electron app is essentially running the same codes in the backend, except wrapping around our react frontend, was wondering if this might be a viable way to get up and running as we look deeper into this issue?


Initialization error on NAV container with specific CU

When I try to create a NAV2016 Container from a certain CU I get an Initialization error.
Script
Set-NetFirewallProfile -Profile Public,Private -Enabled False
Import-Module BCContainerhelper -Force
$containerName = '2016CUtest'
$credential = get-credential -UserName $env:USERNAME -Message "Using Windows Authentication.Please enter your Windows credentials."
$Version = '2016'
$language = 'dk'
$CU = '18'
$artifactUrl = Get-NavArtifactUrl -nav $Version -country $language -CU $CU
$auth = 'UserPassword'
$licenseFile = '******************\Licens\20220509 NAV perpetual 2016 DEV.flf'

New-BcContainer `
    -accept_eula `
    -containerName $containerName `
    -credential $credential `
    -auth $auth `
    -artifactUrl $artifactUrl `
    -Shortcut DesktopFolder `
    -licensefile $licenseFile `
    -isolation hyperv `
    -memoryLimit 8G `
    -includeCSIDE `
    -doNotExportObjectsToText `
    -updateHosts

Set-NetFirewallProfile -Profile Public,Private -Enabled True

output:
PS C:\WINDOWS\system32> C:\Users\BENO\OneDrive - Columbus Global\Dokumenter\PS script\navContainer.ps1
BcContainerHelper version 3.0.11
BcContainerHelper emits usage statistics telemetry to Microsoft
WARNING: The names of some imported commands from the module 'BCContainerhelper' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-M
odule command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
BcContainerHelper is version 3.0.11
BcContainerHelper is running as administrator
Hyper-V is Enabled
UsePsSession is True
Host is Microsoft Windows 10 Enterprise - 21H2
Docker Client Version is 20.10.17
Docker Server Version is 20.10.17
Removing Session 2016CUtest
Removing container 2016CUtest
Removing entries from hosts
Removing 2016CUtest from container hosts file
Removing 2016CUtest-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\2016CUtest
Fetching all docker images
Fetching all docker volumes
INFO: Windows 10 21H1/21H2 images are not yet available, using 2004 as these are found to work better than 20H2 on 21H1/21H2
Using image mcr.microsoft.com/businesscentral:10.0.19041.1415
Creating Container 2016CUtest
Style: onprem
Multitenant: No
Version: 9.0.48316.0
Platform: 9.0.48316.0
Generic Tag: <IP_ADDRESS>
Container OS Version: 10.0.19041.1415 (2004)
Host OS Version: 10.0.19044.1826 (21H2)
Using hyperv isolation
Using locale da-DK
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\Users\BENO\OneDrive - Columbus Global\Dokumenter\Licens\20220509 NAV perpetual 2016 DEV.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\2016CUtest\my:
- AdditionalOutput.ps1
- AdditionalSetup.ps1
- license.flf
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container 2016CUtest from image mcr.microsoft.com/businesscentral:10.0.19041.1415
17ff633ad502a569cd005d059dbd972d1419df79e7c1ab6b76e927a7618b9422
Waiting for container 2016CUtest to be ready
Using artifactUrl https://bcartifacts.azureedge.net/onprem/9.0.48316.0/dk
Using installer from C:\Run\90
Copying Platform Artifacts
c:\dl\onprem\9.0.48316.0\platform
Copying Application Artifacts
Copying Database
Copying Installers
c:\dl\onprem\9.0.48316.0\dk\Installers
Copying TestToolKit
c:\dl\onprem\9.0.48316.0\dk\TestToolKit
Copying UpgradeToolKit
c:\dl\onprem\9.0.48316.0\dk\UpgradeToolKit
Installing NAV
Starting Local SQL Server
Installing Url Rewrite
Installing SQL Clr Types
Installing Report Viewer
Installing OpenXML
Starting Internet Information Server
Copying Service Tier Files
Copying Web Client Files
Copying Windows Client Files
Copying PowerShell Scripts
Copying Test Assemblies
Copying TestToolKit
Copying UpgradeToolKit
Copying ClientUserSettings
Copying ReportBuilder
Restoring CRONUS Demo Database
Installing C:\NAVDVD\Installers\DK\OlAddin\OutlookAddIn.Local.Dk.msi
Installing C:\NAVDVD\Installers\DK\RTC\RoleTailoredClient.Local.Dk.msi
Installing C:\NAVDVD\Installers\DK\Server\Server.Local.Dk.msi
Installing C:\NAVDVD\Installers\DK\WebClient\WebClient.Local.Dk.msi
Skipping C:\NAVDVD\Installers\DK\WebHelp\WebHelp.Local.Dk.msi
Modifying NAV Service Tier Config File for Docker
Creating NAV Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Installation took 179 seconds
Installation complete
Initializing...
Setting host.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Starting Container
Hostname is 2016CUtest
PublicDnsName is 2016CUtest
WARNING: DNS resolution not working from within the container.
WARNING: Container starts with TimeZone = Rom, normaltid, which is not recognized in the list of TimeZones.
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint A016F89C1A38102F23025A9B697CE33337503B18
DNS identity 2016CUtest
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Failed to start service 'Microsoft Dynamics NAV Server [NAV] (MicrosoftDynamicsNavServer$NAV)'.
at <ScriptBlock>, C:\Run\navstart.ps1: line 172
at <ScriptBlock>, C:\Run\start.ps1: line 377
at <ScriptBlock>, <No file>: line 1
remove C:\NAVDVDError
Using artifactUrl https://bcartifacts.azureedge.net/onprem/9.0.48316.0/dk
Using installer from C:\Run\90
Copying Platform Artifacts
c:\dl\onprem\9.0.48316.0\platform
Copying Application Artifacts
Copying Database
Copying Installers
c:\dl\onprem\9.0.48316.0\dk\Installers
Copying TestToolKit
c:\dl\onprem\9.0.48316.0\dk\TestToolKit
Copying UpgradeToolKit
c:\dl\onprem\9.0.48316.0\dk\UpgradeToolKit
Installing NAV
Starting Local SQL Server
Installing Url Rewrite
Installing SQL Clr Types
Installing Report Viewer
Installing OpenXML
Starting Internet Information Server
Copying Service Tier Files
Copying Web Client Files
Copying Windows Client Files
Copying PowerShell Scripts
Copying Test Assemblies
Copying TestToolKit
Copying UpgradeToolKit
Copying ClientUserSettings
Copying ReportBuilder
Restoring CRONUS Demo Database
Installing C:\NAVDVD\Installers\DK\OlAddin\OutlookAddIn.Local.Dk.msi
Installing C:\NAVDVD\Installers\DK\RTC\RoleTailoredClient.Local.Dk.msi
Installing C:\NAVDVD\Installers\DK\Server\Server.Local.Dk.msi
Installing C:\NAVDVD\Installers\DK\WebClient\WebClient.Local.Dk.msi
Skipping C:\NAVDVD\Installers\DK\WebHelp\WebHelp.Local.Dk.msi
Modifying NAV Service Tier Config File for Docker
Creating NAV Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Installation took 179 seconds
Installation complete
Initializing...
Setting host.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Starting Container
Hostname is 2016CUtest
PublicDnsName is 2016CUtest
WARNING: DNS resolution not working from within the container.
WARNING: Container starts with TimeZone = Rom, normaltid, which is not recognized in the list of TimeZones.
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint A016F89C1A38102F23025A9B697CE33337503B18
DNS identity 2016CUtest
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Failed to start service 'Microsoft Dynamics NAV Server [NAV] (MicrosoftDynamicsNavServer$NAV)'.
at <ScriptBlock>, C:\Run\navstart.ps1: line 172
at <ScriptBlock>, C:\Run\start.ps1: line 377
at <ScriptBlock>, <No file>: line 1
remove C:\NAVDVD
New-BcContainer Telemetry Correlation Id: 58803f5a-352d-4549-bb05-c78274d34d0c
Initialization of container 2016CUtest failed
At C:\Program Files\WindowsPowerShell\Modules\BCContainerhelper\3.0.11\ContainerHandling\Wait-NavContainerReady.ps1:42 char:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...16CUtest failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container 2016CUtest failed

PS C:\WINDOWS\system32>

This happens for every cu number I have tried (10, 18, 20 and 66), I do see the artifact URL changes so it's not the same image I pull, so I guess it's not an image specific error.
one thing in common is when I get the eventlog the NAV server fails like this:

if I remove the cu parameter the container creation works with out a problem

Change cu from ‘18’ to ‘cu18’ and try again just to be sure that it is not the problem.
You could also change the containername so it does not start with a number, as far as I remember, we have been advised not to start with numbers.
Regards
Palle

Will try the cu18, the container has another name IRL, it's just anonymized in the post like the with the license.
Did try the -alwayspull before posting, no change

Change cu from ‘18’ to ‘cu18’ and try again just to be sure that it is not the problem.
You could also change the containername so it does not start with a number, as far as I remember, we have been advised not to start with numbers.
And finally try to add the parameter -alwayspull Regards Palle

Sadly that changes nothing

Likely a duplicate of https://github.com/microsoft/navcontainerhelper/issues/2264

Likely a duplicate of #2264

Must be, the scripts works


Show patched version of dependency in the dependency review summary

In the PR summary, it would be nice to have a fix/patched version of the dependency, when a vulnerability is identified. The summary has vulnerability details, severity, etc. And additional column for "Patched Version" can be included as well. When a developer is looking at the summary, the patched version would help save time and avoid context switching in locating the patched version of the dependecy. Today, I have to click on the "vulnerability" link that points to the Github advisory database, which then contains the information on patched version of the dependency. The patched version column can be next to the severity column

Hi @virangdoshi , thank you for the suggestion.
In the meantime, I suggest you consider enabling Dependabot alerts for your repositories, which will alert you to vulnerable package versions, as well as suggest fixes to them.


runtime: Version() string should be more easily discernible

runtime.Version() prints something like
devel +226b28c Fri Jul 31 18:49:57 2015 +0000

at tip, and, if at a release, something like
go1.4.2

There's no easy way to determine which version is younger or older. Tests in external repos sometimes need to be able to distinguish against which version of the std lib they are running; typically they require a certain "minimal" version.
There could be a runtime.VersionNumber() that returns some form of monotonically increasing value/string; or perhaps runtime.VersionTime() could return a value that is easily converted into a time.Time. Alternatively, runtime.Version() could always start with the most recent version, followed by the current version hash if not at a release. That would at least make it possible to discern against tagged releases. For instance:
go1.4.2

means we are at the tagged release 1.4.2.
go1.4.2 devel +226b28c Fri Jul 31 18:49:57 2015 +0000

would mean we are at devel +226b28c past 1.4.2, and 1.4.2 is the most recent tagged release.
Another alternative would be to have a time stamp always.

This was done in CL 264938


Two changes to "center()", to make it work more like Jeet's center()

(This is actually my first Pull Request, so please let me know if I did this wrong!)
I'm really enjoying s-grid! Previously, I've used Jeet. One thing I liked about Jeet was passing percentages into the "center()" function, both for max-width and side padding. I made a slight modification to s-grid's center() function to allow passing percentages and optional padding as a second variable. Otherwise the function works as before, so should not conflict with existing code.
I tested for and corrected several cases where it broke. It's possible I haven't considered every failure case. Let me know if I have missed something obvious. 😄
Thanks for making s-grid. Hope this small change is helpful.
Original Commit Message:
Two changes to "center()", to make it work more like Jeet's center() function:

Add check for % as value, eg. "center(75%)" for responsive container width.
Add 2nd optional variable, "pad", to specify left and right padding. eg. "center(100%, 5%)" for reponsive container padding.
Not completely sure I'm using the unit() function correctly, but it works in my build environment.

Hi, thanks! I think it looks ok. It shouldn't break anything. I'll merge it and publish on Npm.

Awesome! Thanks. I'll update and put it to use.


Operator should be responsible for advancing time

Right now, the the operator does not advance time. It does iterate through the interfaces at each time node, and call each interface but typically a specific interface has been responsible for advancing time. Internally, at TerraPower it has been our depletion interface. We realize that since the operator doesn't do it, other users of the framework may be advancing time differently, but it could be helpful to unify how we handle time.
Here is a table of how it is done for an example problem with 3 30-day depletion steps and a 10 day outage. I don't think its optimal though but providing as an initial strawman... see discussion below for why it is this way currently:

Node
Time (days)
Written to DB

Beginning of Cycle(BOC)
0
no (same time as 0,0)

0,0
0
x

0,1
30
x

0,2
60
x

0,3
90
NO! (90 days isn't anywhere to be found)

End of Cycle(EOC)
100
x (as the 0,3 state point, but its not, its 10 days past..)

The first question is, Why is there no write at 0,3, but instead there is a write at EOC? This is so we can do restart runs from the end of a cycle. if you loaded from the data at 0,3 instead of EOC you and started the next cycle you would miss the decay step and the problem you would have run would diverge from the original by the decay step since currently when you load from 0,2 it jumps right into interact BOC for the next cycle (cycle 1 (1,0) ) rather than EOC from 0,2.
What's bad about this? If you want to retrieve the isotope distribution from 0,3 its not retrievable. only EOC is retrievable. Snapshot runs are much more interested in the 0,3 data than the EOC data. So the fundamental problem is the restarts want the EOC data but snapshots want the 0,3 data. We could potentially solve this by writing the 0,3 data instead of EOC and having restart run interact EOC when its restarting from the last node. I'm sure there are other solutions out there too such as redefining when the outage occurs... maybe it could be the first thing in a cycle and that might solve the misMatch, but its not super clear to me.
One solution that I discourage is writing both 0,3 AND EOC since this will increase the database size by a factor of ~1.25 (5/4) and haver very little valuable additional info. (was investigated here #1090 )
Just want to get discussion going.

I think it would be useful to clarify how the issue of writing only EOC isotopics to the DB is related to having time advancement be on the operator itself.
To me, those seem like related but different issues. From your description I don't quite understand how you think that the operator issue will resolve the DB issue.
You might have something in mind that I'm just not understanding...

No @keckler,its really 2 issues.
Operator should advance time... both @john-science and @ntouran agree.
Once we decide this we should figure out a better way of doing it, which most of this ticket talks about it. if we are moving time advancement to the framework, it should be done right.

Another issue with this, aside from the isotopics at the last time node being irretrievable, is that the results written to the last DB node are misleading.
For instance, the last DB node will look just like any other, so it will have keff. But that keff doesn't actually correspond to the isotopics that are written to the same DB node, because that last node would have extra decay time in there in comparison to when the value of keff was actually calculated. So if a user were to load up the isotopics from the DB and recalculate keff, they'd get a (potentially very) different answer.
I would imagine that to be very confusing to a user who doesn't understand this quirk.
One thing which might offer a path forward is the fact that, for a given assembly, EOC for cycle n is the same point in time as BOC for cycle n+1. Because of this, our current DBs actually have a lot of duplicated isotopic vectors between EOC of one cycle and BOC of the next. The reactor might be in a different configuration at n+1 BOC due to shuffling, but the isotopics in each given assembly are the same.
So if we were to deplete the assemblies for the end-of-cycle-decay at the EOC node for cycle n and then write those depleted isotopics to a DB point for node 0 of cycle n+1, then the isotopic vectors for each assembly would properly correspond to the time at that node, and we would avoid overwriting the isotopics at the last node of cycle n without hugely increasing the size of the DB. And since the BOC node doesn't do any depletion calcs anyways, we won't overwrite the isotopics from that side either.
I think this could work even with shuffling taking place at BOC of cycle n+1 because the isotopic vectors live on the blocks, so the shuffling operations when you get to the interactBOC() hook would remove the isotopics associated with assemblies that are shuffled out of the core. If you wanted to keep the isotopics from those removed assemblies, you'd have to switch on trackAssems.
This would require the restart logic to be slightly modified to correctly handle restarts at different time nodes.
Not sure this is the BEST solution, but it seems like some sort of viable option.

Okay, we just had a meeting about this ticket.
A big take-away from the meeting is (in the example above) we want to write the "0,3" time step along with the "EOC" time step to the Database.
The presumed best path forward with this would be to just add "more stuff" to the Database, not remove the "EOC" that is there now. (And don't include both if they are exactly the same time.)

We would benefit from a standardized thing that sets Reactor.p.time

That's an interesting point, all.

This ticket is linked to be closed by #1090 , but it actually was documenting two problems:

Operator should advance time
Writing EOC/EOL to the DB

Only (2) will be closed by the linked PR.
Can we get another ticket opened to track (1)?


High CPU usage for apache + php when transferring large files / sys/poll() returns wrong value

Description
When using apache + php to write a large buffer to the client, or using fpassthru to stream a large file, apache's serving thread will use 100% of a single core. The CPU usage is high regardless of whether the client is on localhost (from a native windows client like google chrome) or another client, on any platform (windows, android, etc). Slow clients simply exacerbate the problem since the file takes longer to download.
Expected results
The expected results is that apache uses low CPU when the amount of traffic being sent over the network is low.
Actual results
High CPU usage throughout the file transfer  (each apache thread serving the client using 100% of its core, even if transferring only at 1Mbps)
Windows build:
Microsoft Windows [Version 10.0.14393]
Steps / All commands required to reproduce the error from a brand new installation
On a clean WSL console, install apache and PHP5:
apt install apache2 php5
Then copy the following file (garbage.php) to /var/www/html and make it executable (chmod +x garbage.php) - make sure to rename garbage.php.txt to garbage.php since github doesn't allow php files as in-line uploads.
garbage.php.txt
Now, open a web browser on the windows side (I used google chrome, with network throttling on the tab, using its developer tools as shown below)

Then, on the "throttled" tab, browse to localhost/garbage.php and a file called random.dat will start downloading immediately.
On WSL's bash console, executing top will show the apache thread at 100% cpu for the core as shown below:

While the download itself is proceeding at the rate-limit specified:

Strace of the command
On the WSL host, it can be seen that apache is trying to do a write and failing most of the time due to the buffers being full. The write fails with EAGAIN and calls the poll function. Poll immediately returns with POLLOUT with almost no timeout, but the subsequent write fails again as the buffer is still full.

     0.000164 poll([{fd=12, events=POLLOUT}], 1, 300000) = 1 ([{fd=12, revents=POLLOUT}])
     0.000746 writev(12, [{"\r\n", 2}], 1) = -1 EAGAIN (Resource temporarily unavailable)
     0.000186 poll([{fd=12, events=POLLOUT}], 1, 300000) = 1 ([{fd=12, revents=POLLOUT}])
     0.000000 writev(12, [{"\r\n", 2}], 1) = -1 EAGAIN (Resource temporarily unavailable)

The exact same configuration / process running natively on a linux host runs as follows:
     0.251424 writev(12, [{"\256\34\31"..., 522751}], 1) = 65520
     0.000266 writev(12, [{"\33\2705\"..., 457231}], 1) = -1 EAGAIN (Resource temporarily unavailable)
     0.000230 poll([{fd=12, events=POLLOUT}], 1, 300000) = 1 ([{fd=12, revents=POLLOUT}])
     0.251215 writev(12, [{"\33\2705\"..., 457231}], 1) = 65520
     0.000267 writev(12, [{"'b\247KC\"..., 391711}], 1) = -1 EAGAIN (Resource temporarily unavailable)
     0.000175 poll([{fd=12, events=POLLOUT}], 1, 300000) = 1 ([{fd=12, revents=POLLOUT}])

(The writev's buffer was truncated to help on the screen capture here)
As it can be seen, On linux,  there are two subsequent writev calls, the first one suceeding to write 65520 bytes to the TCP stack and the immediate next failing due to EAGAIN. Then poll blocks for 250msec, returns with POLLOUT and the next write suceeds.
On the WSL process, the writev fails, poll is called and returns IMMEDIATELY with POLLOUT, in theory indicating that new writes could be done, but the next write call fails again.
The only successfull writev calls on WSL are the following:
     0.000501 writev(12, [{"\r\n", 2}], 1) = -1 EAGAIN (Resource temporarily unavailable)
     0.000000 poll([{fd=12, events=POLLOUT}], 1, 300000) = 1 ([{fd=12, revents=POLLOUT}])
     0.000000 writev(12, [{"\r\n", 2}], 1) = -1 EAGAIN (Resource temporarily unavailable)
     0.000501 poll([{fd=12, events=POLLOUT}], 1, 300000) = 1 ([{fd=12, revents=POLLOUT}])
     0.006016 writev(12, [{"\r\n", 2}], 1) = 2
     0.000000 gettimeofday({1482786017, 198322}, NULL) = 0
     0.000503 write(2, "[Mon Dec 26 18:00:17.198322 2016] [:error] [pid 966] [client ::1:24086] after flush\n", 84) = 84
     0.000000 gettimeofday({1482786017, 198825}, NULL) = 0
     0.000000 write(2, "[Mon Dec 26 18:00:17.198825 2016] [:error] [pid 966] [client ::1:24086] Before echo\n", 84) = 84
     0.000500 writev(12, [{"ffffc\r\n", 7}, {"PH:\36\r;\244\321\324]3X<\313\234\364\255\v\\;\r\251\334\267\235;\317K(\265\247\rC+M\2S\206\353|\t\271\367\321\277\0002\320x8\215\276\30\266\357e0\251d\204m\177\21V\354\336\327\17\203x(\7q\32+\364x\216\247A\301Q\371\\\211%\207\207\0338\316[[\21{s\303\330\243"..., 1048572}], 2) = 1048579
     0.001281 gettimeofday({1482786017, 200851}, NULL) = 0
     0.000305 write(2, "[Mon Dec 26 18:00:17.200851 2016] [:error] [pid 966] [client ::1:24086] after fpassthru\n", 88) = 88
     0.000000 gettimeofday({1482786017, 201414}, NULL) = 0
     0.000503 write(2, "[Mon Dec 26 18:00:17.201414 2016] [:error] [pid 966] [client ::1:24086] Buffer at 0\n", 84) = 84
     0.000000 gettimeofday({1482786017, 201414}, NULL) = 0
     0.000500 write(2, "[Mon Dec 26 18:00:17.201414 2016] [:error] [pid 966] [client ::1:24086] after obflush\n", 86) = 86
     0.000000 writev(12, [{"\r\n", 2}], 1) = -1 EAGAIN (Resource temporarily unavailable)
     0.000746 poll([{fd=12, events=POLLOUT}], 1, 300000) = 1 ([{fd=12, revents=POLLOUT}])
     0.000149 writev(12, [{"\r\n", 2}], 1) = -1 EAGAIN (Resource temporarily unavailable)
     0.000201 poll([{fd=12, events=POLLOUT}], 1, 300000) = 1 ([{fd=12, revents=POLLOUT}])
     0.000158 writev(12, [{"\r\n", 2}], 1) = -1 EAGAIN (Resource temporarily unavailable)

Where the whole 1Megabyte buffer is written out. The additional write / gettimeofday  are for debug messages inside the garbage.php file.
The following section includes the same part of the calls for the linux host:
     0.000149 poll([{fd=12, events=POLLOUT}], 1, 300000) = 1 ([{fd=12, revents=POLLOUT}])
     0.245204 writev(12, [{"\26F\272\4!\364X\240\363\213\225T\212-\27\3\207\n\36\23\266\253\331R\323\216\315M\265\302WE@\200\346$i\37\n6\277\236c\"h\250\254;\2310\21\271u|\317s\371\205\0072P9\303\347l\27Pd\330\201\201\361\320\256tY\21\314\247S|`iP\354\250B\270#\203\317K\305\334\221r\364D\234"..., 129631}], 1) = 66780
     0.000277 writev(12<EMAIL_ADDRESS>62851}], 1) = -1 EAGAIN (Resource temporarily unavailable)
     0.000178 poll([{fd=12, events=POLLOUT}], 1, 300000) = 1 ([{fd=12, revents=POLLOUT}])
     0.252087 writev(12<EMAIL_ADDRESS>62851}], 1) = 62851
     0.000321 write(2, "[Mon Dec 26 15:57:20.901142 2016] [:error] [pid 21498] [client <IP_ADDRESS>:24075] after fpassthru"..., 100) = 100
     0.000224 write(2, "[Mon Dec 26 15:57:20.901384 2016] [:error] [pid 21498] [client <IP_ADDRESS>:24075] Buffer at 0\n", 96) = 96
     0.000189 write(2, "[Mon Dec 26 15:57:20.901573 2016] [:error] [pid 21498] [client <IP_ADDRESS>:24075] after obflush\n", 98) = 98
     0.000179 writev(12, [{"\r\n", 2}], 1) = 2
     0.000177 write(2, "[Mon Dec 26 15:57:20.901930 2016] [:error] [pid 21498] [client <IP_ADDRESS>:24075] after flush\n", 96) = 96
     0.000241 write(2, "[Mon Dec 26 15:57:20.902171 2016] [:error] [pid 21498] [client <IP_ADDRESS>:24075] Before echo\n", 96) = 96
     0.000729 writev(12, [{"ffffc\r\n", 7}, {"\3312x\245D\3666a\26\303\247(k\230\223{\354\n\211\23 \237\301<@5\253\304u\213\216g9*=)?tG\346h\217Q\22`\255$\16\246\364&\204z_\22\267\206\342:\354\347\r\356\307\314N\0203\377\254\257UK\345\316j\322\206\33T\376%\277<\314 \22c\330\343\37\204S\302e!\256\302\265"..., 1048572}], 2) = 1407
     0.000232 writev(12, [{"\335\334\252\305\264\354p\316\302a\355\24\217\235{\230\r\365\352VM\246\355\340\353\213[y\355j\3\307\220\253[\265o\234\333E4\352\266\362\26n`6\266\1X\23-\335&\376\261\216a}\321\375fn\353GJ\330\360\35U\241\376\336\360\375\272\216\375\376\236mU}\371;\366\263\271\35;#\215Pu\355<\217w"..., 1047172}], 1) = -1 EAGAIN (Resource temporarily unavailable)
     0.000172 poll([{fd=12, events=POLLOUT}], 1, 300000) = 1 ([{fd=12, revents=POLLOUT}])

If additional files are needed, please let me know. The issue is extremely straightforward to reproduce and happens every single time.
So far, it seems that the call to poll is returning immediately indicating that the buffer is ready to be written (the POLLOUT value) while it should be blocking/timing out. On linux we see that the call to poll blocks for roughly 220msecs, which is the time needed for the ~64Kbytes to be transmitted to the client at the 2Mbps rate limit applied by chrome.

Hi @garci66 -- thanks for posting this detailed bug report!  For what it's worth, this sounds kind of similar to some other network issues that have been reported, some of which have been fixed in Insider builds and some of which have fixes pending.  @sunilmut FYI.

I saw similr reports but, so far, none that seemed related to poll() failing. Regardless, I'll launch a vm with an insider track and see if I can repro on it.

Looking into more detail, indeed, this seems closely related to #616 / #610  / #1025
Seems like the fix is inbound but not yet on a available on an insiders image.

@garci66 - Thank you for the detailed and clear bug report, this is very helpful. I will give your repro a shot today and see if the epoll issue is resolved.

Thanks! I asume that this is not on any of the insiders' builds yet no?

@garci66 - Correct, the fixes @aseering mentioned should be in an upcoming insiders build.
Could you provide me with the steps you took to launch the web server?  I'm having trouble getting garbage.php to display.

Make sure that php5 is installed, not just apache.  apt install php5.
Otherwise I don't have any special permissions on the php file:

I just tried with the php file marked as +x and also with regular persmissions and was fine.
Just be sure that php5 is installed and enabled as a module in apache:

make sure the php file indeed has the php extension and not .php.txt. Also restart apache as follows:
sudo /etc/init.d/apache2 restart
once running ou can make sure the php5 module is loaded in apache as follows: sudo apache2ctl -M and then look for php5 in the output:

Ah I think I see what the issue was.  Php5 isn't in the default packages in 16.04, once I followed these instructions I got things working: http://askubuntu.com/questions/756181/installing-php-5-6-on-xenial-16-04.
Unfortunately I'm still seeing the issue that you describe, poll returning that the socket file descriptor is writable but the write failing with EAGAIN because the buffer is full.  I will sync up with @sunilmut who owns this area and see if he has any ideas for a fix.

Thanks! Good to know... too bad it's not yet fixed though... :( But great to see the work you guys are doing with WSL!

Sunil and I took a closer look at this and this issue is fixed internally.  The fix should be available in an upcoming Windows Insider build.

Thanks @benhillis for brining this to my notice. To be precise, this is a duplicate of #1025, a fix for which should be available in an upcoming (mostly, next) insider build. Thanks @garci66 for the post and the detailed repro steps. Very useful (made it very easy to repro)!

This should be fixed in 15002. Please validate and let us know if the issue persists.

Thanks everyone. I'll wait for the upcoming build and validate on my test
VM
On Jan 9, 2017 17:33, "Sunil Muthuswamy"<EMAIL_ADDRESS>wrote:

This should be fixed in 15002
https://msdn.microsoft.com/en-us/commandline/wsl/release_notes#build-15002.
Please validate and let us know if the issue persists.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/BashOnWindows/issues/1540#issuecomment-271399291,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKFd2HS0ONMqXDP9HwIdGkP45nTGUQcgks5rQpmFgaJpZM4LV7lO
.

It's working great. Thanks!


Re-invite event

For such cases like update display name on re-invite, would be useful to have such event.

I agree. Knowing that you received a re-invite would be ideal. Currently it will emit hold unhold regardless of whether you were actually put on hold or not, so that should get fixed.
Session 479 is the code in question.


Plan-to-Action Graph Bug Fix

This pull request is in response to Issue #211.
To test whether 2 actions can be run in parallel, we (1) test whether each action is executable given the current state and (2) check whether the effects of one action will contradict the requirements of the other. This is good, but there is a problem in the current approach.
In the current approach, we check whether the "at end" effects of one action will contradict any of the conditions of the other action. However, @roveri-marco provided an example of a valid plan where two actions could be run in parallel in which an "at end" effect of one action contradicted an "at start" condition of the other. Logically, this makes sense. To test whether 2 actions can run in parallel, we should only need to check for contradictions between the "at start" effects and the "at start" and "over all" conditions. This PR fixes this bug
When working on the above bug, another bug was found in the prune_backwards function of BTBuilder. In this case, the superfluous parent nodes were not being correctly removed from the input arc set. This PR also fixes that bug.

Thanks @jjzapf
I will merge this now. @roveri-marco , may you check that plans are correctly carried out with your examples.
Thank you!!


Image Resizer does not work for PNGs?

Microsoft PowerToys version
0.64.1
Installation method
PowerToys auto-update
Running as admin
No
Area(s) with issue?
Image Resizer
Steps to reproduce
Everything is installed correctly. So far I have only used Image Resizer on JPEG images. To do this, I simply right-click on an image, select "Größe von Bildern ändern" (Resize Images) and choose my preset. Today I wanted to resize a PNG. I right click on the PNG image (I tried it on several files) and the "Größe von Bildern ändern" (I am using the German version) item is not in the context menu at all. I looked at PowerToys settings and nowhere did I find a special function or activation to resize for PNGs. Is it not possible to resize PNGs with Image Resizer at all?
BTW: It works fine with JPG, TIFF, GIF, BMP and so on. But not with PNG.
✔ Expected Behavior
I expected that in the context menu of PNG images there would also be the possibility to adjust the image via Image Resizer
❌ Actual Behavior
There is no entry in the context menu for resizing PNG images
Other Software
No response

Strange, it should work... CC @bricelam ?

@Jay-o-Way But it does not. Just tried it out again. No context menu entry to resize PNGs, but for JPG, BMP, TIFF etc.

Works for me. You may have installed another program that changed the way PNG files are registered...

Strangely enough, the problem was fixed by the update to version 0.65.0, now it works. Sure that it was not a problem of PowerToys and the problem was specifically fixed?


[BEAM-362] Move InMemoryTimerInternals to runners-core

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[x] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[x] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[x] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[x] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

R: @jkff (I'll grab a committer later, but your contributions are thing affected)
The only substantive aspect of this change is the move of the timer internals directly into ProcessFn. I think this is right or at least the right compromise for many reasons.

TimerInternals is really runner-facing; we don't want that interface in the SDK.
Changes to TimerInternals incur worker compatibility concerns, so getting it into runners-core is a win. (I have to change it soon, so I am trying to make my life easier)
DoFnTester doesn't actually support timers at all, so it didn't make sense for them to be in there.
When DoFnTester does support timers, it is trivial to make its own priority queues, and it will also want to offer greater insight via a richer TestingTimerInternals sort of implementation, which needs not implement the same interface, etc.

OK, LGTM.


definition of ms is incorrect

If anyone wants an easy PR, the ms libdef should be changed match the API as described in the docs:

If a number is supplied to ms, a string with a unit is returned.
If a string that contains the number is supplied, it returns it as a number (e.g.: it returns 100 for '100').
If you pass a string with a number and a valid unit, the number of equivalent ms is returned.

Would be something like this:
  declare module.exports: {
    (val: string, options?: Options): number;
    (val: number, options?: Options): string;
  };

This breaking my code builds. I'd be happy to submit a PR.

Closed since fixed.


Document JSON-escaping in "=" syntax

In = syntax,

double quotes (")
back slashes (\)
non-ascii characters

are escaped in json.dumps:
$ http -v httpbin.org/post                                      \
    dquote='\"'                                                 \
    multi-line='line 1\nline 2'                                 \
    non-ascii=あ                                                \
    unicodes='\u3053\u3093\u306b\u3061\u306f\u4e16\u754c'       \
    ;
POST /post HTTP/1.1
...
User-Agent: HTTPie/1.0.3

{
    "dquote": "\\\"",
    "multi-line": "line 1\\nline 2"
    "non-ascii": "あ",
                 ^^^^ actually "\u3042" (not utf-8 representation 0xe38182)
    "unicodes": "\\u3053\\u3093\\u306b\\u3061\\u306f\\u4e16\\u754c",
}

HTTP/1.1 200 OK
...

This behavior should be documented, shouldn't it?
It's also notable that the escaping can be avoided with :=:
$ http -v httpbin.org/post                                   \
    dquote:='"\""'                                           \
    multi-line:='"line 1\nline 2"'                           \
    non-ascii:='"あ"'                                        \
    unicodes:='"\u3053\u3093\u306b\u3061\u306f\u4e16\u754c"' \
    ;
POST /post HTTP/1.1
...
User-Agent: HTTPie/1.0.3

{
    "dquote": "\"",
    "multi-line": "line 1\nline 2",
    "non-ascii": "あ",
                 ^^^^ actually "\u3042" (#814)
    "unicodes": "こんにちは世界"
                ^^^^^^^^^^^^^^^^
                 actually "\u3053\u3093\u306b\u3061\u306f\u4e16\u754c"
}

HTTP/1.1 200 OK
...

(Note that non-ascii characters can't avoid escaping, see #814)

I found a solution by using :=:
$ http -v httpbin.org/post foo:='"bar\nbaz"'
POST /post HTTP/1.1
...
User-Agent: HTTPie/1.0.3

{
    "foo": "bar\nbaz"
}

HTTP/1.1 200 OK
...

I keep this open to create a pull request related to this.

Good

What tasks remain in this issue?
If the documentation needs to be updated, where does it need to be updated?

Hi. I have not seen this issue in 3 years and things seem to have changed. Please wait a moment while I update it.

The description was not well written and was difficult to understand, sorry. I've updated it.
And now I have changed my mind, this is an intuitive specification, no document needed.
I'm closing this issue, thank you for looking it over!


MacOS VSCode keypress to get accent print double character (again)

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

VS Code Version: 1.73.0 and 1.74-insiders
OS Version: macOS 13.0 (Ventura)

Steps to Reproduce:

Open any file.
At the beginning of a word (but not at the beginning of a line, it must be just after a whitespace), press and hold a key to open the pop-up of accented characters.
Select an accented character (using either a number, the arrows, or the mouse). Then the unaccented character is printed first, followed by the accented character.

This is exactly the bug described in these issues (from 2017) :
https://github.com/microsoft/vscode/issues/32339
https://github.com/microsoft/vscode/issues/32985
https://github.com/microsoft/vscode/issues/33888
Except that this time the bug does not happen, unless the character is preceded by a whitespace.

Also happens to me
Chip: Apple M1 Pro
macOS: Ventura 13.0 (22A380)

Version: 1.73.1 (Universal)
Commit:<PHONE_NUMBER>f055b99068d3688932416f2346dd3b
Date: 2022-11-09T02:08:38.961Z (2 days ago)
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.1.0
Sandboxed: No

git bisect points to ffe90c3580f7bb4a4884292ad305939d9f6677b5 . FYI @Tyriar I will revert for now.


New routes with POST body params

Hey guys, couple of thoughts here

I'm using mocha to run the unit tests that have already been set up.  Is it normal for 11 of them to fail?
I have updated the wormhole-sdk.  I can successfully send transactions using these new routes
I will create a PR for wormhole-sdk in the morning.  I'm running on fumes right now 😄

I know you guys are looking towards a refactor, so if you want to accomplish this another way, let me know.
Thanks.

I forgot to mention the swagger documentation.  If I could get a quick rundown on that, I can generate it as well.

Great stuff, @sambengtson! I especially like the payload size limit. Didn't know we could specify it that easily.
As I mentioned in the chat room, this repo will be undergoing a major refactor soon. We'll use this PR at that time.

@gitcash send 0.0045 BCH to @sambengtson
Thanks, Sam!

Hey sambengtson, user christroutner tipped you 4500 bits in Bitcoin Cash ( ~ $1.9845 ).
Click here to claim it!
You can also add the "thumbs down" reaction to christroutner's comment above to prevent future tips.

Awesome thanks!

ขอดึงกลับนะครับพอดีระบบการทำงานและออฟฟิตผมรวมทั้งบุคลากรควรต้องถึงเวลาขยายเพิ่มแล้วหล่ะ
ขอบคัณครับ

Closing this PR. We've converted several endpoints to POST or PUT in the V2 refactor and will be taking it live shortly after the new year (2018 -> 2019).


⚠ Bofrost.lu has degraded performance

In 44aacfb, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2003 ms

Resolved: Bofrost.lu performance has improved in 03ca128 after 6 minutes.


Over training of model

Hey, I couldn't help but notice that you ran the model for 2000 ephochs, not an issue, but when you check the ehocs the accuracy reach 98 % and then dropped and then increased to 100% that, indicates that your model started to overfit, I wouldn't mind if you ran few test to check whether your model can run other words than food

Also you mentioned you that just run the notebook, but we can't because you have some dataset folder, which we don't have
Try to use someone else for your project demo, that would indicate that your model, can handle test cases too

Inform me, if your model works, I would love to collab with you, as I'm working on something simialr

I appreciate the concern and to be very honest I am very happy that you want to collaborate with me, but I made this project during my masters' thesis, and a lot of time has passed and I am a Machine Learning Engineer now, working full time at a company and I don't have a lot of time to fulfill user requests based on their own presumed misconceptions.
Yes I made some small mistakes and yes there are a lot of new versions of dependencies that conflict the user code of that time that might not work on dependencies newer or older than the versions used.
But other than that I have explained about the dataset used in a similar issue.
Now coming to resolving your issues:

"Also you mentioned you that just run the notebook, but we can't because you have some dataset folder, which we don't have"
If you properly check the code, you will find a section:

signs = ['cat','food','help']

parent_folder = 'MP_Data'

if not os.path.exists(parent_folder):
    os.mkdir(parent_folder)
    for sign in signs:
        sign_folder = os.path.join(parent_folder, sign)
        os.mkdir(sign_folder)
        for i in range(30):
            subfolder = os.path.join(sign_folder, str(i))
            os.mkdir(subfolder)

You see, that I check if a directory named MP_Data exists. If it does not, I create one anyway using os.mkdir(), so it is inevitable that you and I will have the same directories for dataset training.
2. "I wouldn't mind if you ran few test to check whether your model can run other words than food"
If you check the repository properly you will see that I do run the model more than once for the video which do have words other than "food" and the model worked absolutely amazing combining two different models to perfect a single task without creating much pressure on the system.
3. "Try to use someone else for your project demo, that would indicate that your model, can handle test cases too"
Once again, as you understand that I am already extremely busy with my corporate schedule and am unable to commit myself truly to the opensource community, and you are free to run the test cases yourself by forking the repo.
P.S. This is not a proper way to create and issue and order someone to do something and "notify" you for your own personal benefit. I sincerely believe that this is your first time and I am letting this one go and I also believe that you have a lot of scope for personal growth in this area.
Now let's move on to the motivational part. To be very honest, this repository has almost infinite scope for improvements. For example, I did not create a proper documentation about how to use the code, I did not explain much about how each and every line works, I did not consider all the types of cases where different types of dependencies of different versions would be used by different users and so on. And I have absolutely no time to contribute to the opensource community unless I am on holidays (which hardly happens). And the fact that you want to collaborate with me is great, but I cannot guarantee that I will be able to commit myself to this as much because I am a Machine Learning Engineer as well as a Machine Learning Lead now leading teams of people who have about 20+ years of experience who work under me, and the depth I know now is nothing compared to the knowledge I used to have before.
To sum up, if want to contribute to this project and make proper documentation and give test cases, you are more than open to do so. You just have to fork the repo, and make changes to your own branch by creating one and creating a pull request. If done properly, I will make sure there is nothing stopping you to contribute to the open source too. I believe I have made you motivated enough to code and contribute.
Happy Coding.


Adding cluster name to error message when a view in a chain does not …

…exist in the stack.

:+1:

:1:


Refs #25854 -- Completed a RequestContext docs example.

https://code.djangoproject.com/ticket/25854

Might be worth storing the Template instance in a more meaningful variable name while you're at it. Otherwise LGTM.


SqlLite in-memory database to retain while app is running

I need to use sqllite in-memory database while the app is running, right now it closes the connection after each call and the database is lost. This is useful for testing, but not so useful when one needs to have persistent sqllite in-memory database.
If I use in-memory connection string for SQLLite:
options.UseSqlite("Data Source=:memory:");

Then my init code fails:
public class InitDatabase: IInitDatabase {
    private readonly ApplicationDbContext db;
    public InitDatabase(ApplicationDbContext _db) {
        db = _db;
    }
    public void Init() {
        db.Database.EnsureCreated();
        db.Add(new ApplicationUser {
            Email =<EMAIL_ADDRESS>            UserName = "test"
        });
        db.SaveChanges();
    }
}

public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) {
    // ...
    app.ApplicationServices.GetService<IInitDatabase>().Init();
}

According to other issue #4922 it closes the connection to database after EnsureCreated and then the memory is empty again.
My code works correctly with filebased SQLLite like this:
options.UseSqlite("Data Source=some.db");

Looks like a dupe of #4922

@ajcvickers sorry about that, thing is "sqllite memory" gives no open issues! Weird fulltext search.

@bricelam I reopened my issue #5086 and renamed it to mean what I meant: I want to have in-memory SqlLite database to persist while the app is running.

I reopen this, since what I want is a bit different: to persist in-memory database while app is running.

Found a solution to persistent in-memory SqlLite database, it was simple after all:

public class Startup
{
	private SqliteConnection inMemorySqlite;

	public void ConfigureServices(IServiceCollection services)
	{
		inMemorySqlite = new SqliteConnection("Data Source=:memory:");

		// ...
		services.AddDbContext<ApplicationDbContext>(options => {
			options.UseSqlite(inMemorySqlite);
		});
	}
}

_sqliteConnection.Open(); is needed when data-source is "in-memory".


Function calling support would be awesome.

Feature Description
I think the documentation on this will paint a better picture than I possibly can, linked at the bottom.
Problem it Solves
Having function calling support baked in would make life a lot easier (afaik, theres no workaround available that allows us to use function calling with your library as of today).
Proposed Solution
Add ChatCompletionRequest.functions parameter, include it in the payload sent to OpenAI.
 Thanks for the quick response, looking forward to experimenting with it! :)


Add functions to check if Bluetooth is off and to turn it on

See question asked in this forum thread: http://evothings.com/forum/viewtopic.php?f=8&t=1886&p=4640

At least Android has this already:
https://github.com/evothings/cordova-ble/blob/55456d4db2a54a57fed64e231f2f993699ca4e1c/src/android/BLE.java#L123
But it looks like iOS doesn't:
https://github.com/evothings/cordova-ble/blob/55456d4db2a54a57fed64e231f2f993699ca4e1c/src/ios/EVOBLE.m#L1457

On iOS, if Bluetooth is turned off, a popup menu is displayed when the app starts. The menu has an option for opening the Settings app, where Bluetooth can be turned on. This is the behaviour on iOS. Closing this issue.


Triggering event on elements inside a slot throws an exception

While trying to trigger an even inside a component's slot, we encounter an exception.
Please find part of the code below.
Component
<template>

    <slot name="input">
    </slot>

</template>

Wrapper option
{
    slots: {
        input: '<input />',
    },
}

Test
wrapper.find("input").trigger("input")

The stack is not very useful
TypeError: Cannot read property '_withTask' of undefined
    at remove$2 ([...]/Input.spec.ts:11:346754)
    at updateListeners ([...]/Input.spec.ts:11:91651)
    at Array.updateDOMListeners ([...]/Input.spec.ts:11:347728)
    at patchVnode ([...]/Input.spec.ts:11:285527)
    at VueComponent.patch [as __patch__] ([...]/Input.spec.ts:11:297113)
    at VueComponent.Vue._update ([...]/Input.spec.ts:11:121921)
    at VueComponent.update ([...]/Input.spec.ts:11:1114851)
    at [...]/Input.spec.ts:11:1115051
    at Array.forEach (<anonymous>)
    at VueComponent.update ([...]/Input.spec.ts:11:1114931)

Thanks for the bug report.
I can't reproduce this using the code you posted. Can you post a minimal reproduction?

I get the same error, if i reference a method 'bar' which is not defined in the 'methods' object of the vue component.
Template
<template>

<button id="foo" @click="bar">Edit</button>
<input type="text" />

</template>

If you try to do something like
wrapper.find("input").trigger("input")

it will fail with the error message above.

I got the same error using functional component and the render function.
After debugging, I saw that this occur when they are an an undefined event or an nullable event in the component:
export default {
  functional: true,
  render (createElement) {
    return createElement('input', {
      on: {
        input: null,
        change: undefined
      }
    })
  }
}

Hope this will help to fix the issue


i sent by mistake BTC to my electroncash wallet

Today i sent by mistake 0,4 BTC from my bitmex exchange acct under my name to my newly created elentroncash acct ..
what can be done?
how can i recover it?
as said above, both accounts are owned by myself.
Cevay

yes, create a new Electrum (not Electron Cash) wallet www.electrum.org and use the same seed when you create your wallet.


Can't process response from llamacpp server

I have nvim/llm working with ollama, which uses llm-ls-x86_64-unknown-linux-gnu-0.5.3.
I tried to switch the config to use OpenAI API to connect to llamacpp server,
because this does support my AMD GPU, which ollama does not.
I can see in Wireshark that the request is sent and the llamacppserver send back a successful response.
However I don' get any completion in nvim, which is probably caused by llm-ls processing the response.
I get this error in nvim: [LLM] serde json error: data did not match any variant of untagged enum OpenAIAPIResponse
request:
{
  "model": "models/codellama-7b.Q4_K_M.gguf",
  "options": {
    "temperature": 0.2,
    "top_p": 0.95
  },
  "parameters": {
    "max_new_tokens": 60,
    "temperature": 0.2,
    "top_p": 0.95
  },
  "prompt": "<PRE> #include <stdio.h>\n\nfloat multiply(float a, float b)\n{\n     <SUF>\n}\n\nint main(int argc, char *argv[])\n{\n    return 0;\n}\n\n\n <MID>",
  "stream": false
}

response:
{
  "content": "return a * b; <EOT>",
  "id_slot": 0,
  "stop": true,
  "model": "models/codellama-7b.Q4_K_M.gguf",
  "tokens_predicted": 6,
  "tokens_evaluated": 54,
  "generation_settings": {
    "n_ctx": 512,
    "n_predict": -1,
    "model": "models/codellama-7b.Q4_K_M.gguf",
    "seed":<PHONE_NUMBER>,
    "temperature": 0.800000011920929,
    "dynatemp_range": 0,
    "dynatemp_exponent": 1,
    "top_k": 40,
    "top_p": 0.949999988079071,
    "min_p": 0.05000000074505806,
    "tfs_z": 1,
    "typical_p": 1,
    "repeat_last_n": 64,
    "repeat_penalty": 1,
    "presence_penalty": 0,
    "frequency_penalty": 0,
    "penalty_prompt_tokens": [],
    "use_penalty_prompt_tokens": false,
    "mirostat": 0,
    "mirostat_tau": 5,
    "mirostat_eta": 0.10000000149011612,
    "penalize_nl": false,
    "stop": [],
    "n_keep": 0,
    "n_discard": 0,
    "ignore_eos": false,
    "stream": false,
    "logit_bias": [],
    "n_probs": 0,
    "min_keep": 0,
    "grammar": "",
    "samplers": [
      "top_k",
      "tfs_z",
      "typical_p",
      "top_p",
      "min_p",
      "temperature"
    ]
  },
  "prompt": "<PRE> #include <stdio.h>\n\nfloat multiply(float a, float b)\n{\n     <SUF>\n}\n\nint main(int argc, char *argv[])\n{\n    return 0;\n}\n\n\n <MID>",
  "truncated": false,
  "stopped_eos": true,
  "stopped_word": false,
  "stopped_limit": false,
  "stopping_word": "",
  "tokens_cached": 59,
  "timings": {
    "prompt_n": 54,
    "prompt_ms": 601.562,
    "prompt_per_token_ms": 11.140037037037038,
    "prompt_per_second": 89.76630837719138,
    "predicted_n": 6,
    "predicted_ms": 315.451,
    "predicted_per_token_ms": 52.57516666666667,
    "predicted_per_second": 19.020386684461293
  }
}

I hope you can fix that or tell me what I did wrong if its my fault.

Hi @gergap, thank you for taking the time to detail the issue.
llm-ls expects the response to look like the following:
#[derive(Debug, Deserialize)]
struct OpenAIGeneration {
    choices: Vec<OpenAIGenerationChoice>,
}

#[derive(Debug, Deserialize)]
struct OpenAIGenerationChoice {
    text: String,
}

Which in your case would mean:
[
  {
    "text": "return a * b; <EOT>"
  }
]

Do you know what endpoint was called to get a request? In the meantime, you can use the llamacpp backend which was added in 0.5.3.

Thanks, got it working with the llamacpp backend.
The endpoint was v1/completions, with llamacpp it is now just completions.


AbiExample could not find log in the list of imported crates

I got this error in vscode
solana_frozen_abi_macro
proc_macro AbiExample
failed to resolve: could not find `log` in the list of imported crates
could not find `log` in the list of imported cratesrustc[E0433](https://doc.rust-lang.org/error-index.html#E0433)
conflicting implementations of trait `solana_frozen_abi::abi_example::AbiExample` for type `program::vote::authorized_voters::AuthorizedVoters`
conflicting implementation in crate `solana_frozen_abi`:
- impl<T> AbiExample for T;rustc[E0119](https://doc.rust-lang.org/error-index.html#E0119)

and also this error while build solana-client
fox:solana-client katopz$ cargo build
   Compiling rand v0.7.3
   Compiling zeroize v1.3.0
   Compiling sha2 v0.9.9
   Compiling borsh v0.9.3
   Compiling curve25519-dalek v3.2.1
   Compiling libsecp256k1 v0.6.0
   Compiling ed25519-dalek v1.0.1
   Compiling ed25519-dalek-bip32 v0.2.0
   Compiling solana-program v1.11.0
   Compiling solana-sdk v1.11.0
   Compiling solana-extra-wasm v1.11.0-alpha (/Users/katopz/git/katopz/solana-playground/wasm/utils/solana-extra)
error[E0433]: failed to resolve: could not find `log` in the list of imported crates
 --> utils/solana-extra/src/program/vote/authorized_voters.rs:7:72
  |
7 | #[derive(Debug, Default, Serialize, Deserialize, PartialEq, Eq, Clone, AbiExample)]
  |                                                                        ^^^^^^^^^^ could not find `log` in the list of imported crates
  |
  = note: this error originates in the derive macro `AbiExample` (in Nightly builds, run with -Z macro-backtrace for more info)

not sure what i miss, anyway what's rust version you have there?

The crates were meant to compile to wasm32-unknown-unknown so in order to build them you need
cargo build --target wasm32-unknown-unknown --release

or to get the full pkg
wasm-pack build

Might be good idea to make it compile with default target to make docs.rs builds successful though.

Oh, I surely miss that target . Thanks, btw after use
cargo build --target wasm32-unknown-unknown --release

I still stuck at same error.
And for
wasm-pack build

I got this error
Error: crate-type must be cdylib to compile to wasm32-unknown-unknown. Add the following to your Cargo.toml file:

[lib]
crate-type = ["cdylib", "rlib"]

Maybe only me 🤔

I wasn't able to reproduce the error with rustc 1.61.0 and updated now to 1.62.0 with no problems.
cargo build --target wasm32-unknown-unknown --release

The crate is used as a replacement for solana-client so it's a helper crate, which means it's not useful on it's own. Can you try to build solana-cli-wasm which uses the solana-client-wasm crate and see if you have the same error?
[lib]
crate-type = ["cdylib", "rlib"]

I didn't add this to solana-client because this creates .wasm build for solana-client which is not useful.

One easy fix would be to add the log crate to solana-extra-wasm. Let me know if it works for you, happy to accept pr if it fixes it.

i'm on rustc 1.62.0-nightly (e1b71feb5 2022-05-03)
Same error for solana-cli-wasm

Add log = "0.4" didn't help

I think something wrong with my setup or my mac (never happen with other crates before). I will try with other setup and report back later.
BTW, nothing rush here so no worry!. Anyway I will leave this issue open in case someone hit the same wall.
Thanks for your assist!

Good news is that I was able to reproduce the exact error with your version

And after adding log:

removed log crate(shouldn't matter for wasm builds).
rustup override set stable
cargo clean
cargo build --target wasm32-unknown-unknown --release

and it compiles, at least for me. Specific version I'm using is rustc 1.62.0 (a8314ef7d 2022-06-27)

Aww snap!  Working now, I can't remember why i'm on nightly 🤔
Thanks for your time. I owe you once! 🦀


Make onionize button suggested

http://stackoverflow.com/questions/34053262/gtk-how-to-style-a-button-in-headerbar
Though there is no bindings for this in gotk3.

Won't do GTK anymore.


Document app.setName()

I guess it was implemented in https://github.com/atom/electron/commit/5670ee7693dc4f3cb6bb95131752852693b71eec.

Thanks for adding this :memo: :+1:

Thank you for merging too! I'm always helped by this doc.


Transforms on quantized or sequential scales?

There’s no equivalent to d3.scaleLog or d3.scalePow for a quantize or sequential scale, but sometimes we might still want to apply such a transform on the data as part of the scale.

[x] d3.scaleSequentialSqrt
[x] d3.scaleSequentialPow
[x] d3.scaleSequentialLog
[x] d3.scaleSequentialQuantile
[ ] d3.scaleQuantizeSqrt
[ ] d3.scaleQuantizePow
[ ] d3.scaleQuantizeLog

I think it’d be pretty straightforward to have separate constructors for these:

d3.scaleSequentialPow
d3.scaleSequentialLog
d3.scaleQuantizePow
d3.scaleQuantizeLog

All should be relatively easy to implement, especially if we extract a “loggish” helper (akin to “linearish”) for decorating them with the appropriate tick, tick formatting, and nicing methods.

Mike, have you had any further thoughts on this, or is there a suggested idiomatic workaround? I just found myself in a situation where what I want is exactly a scaleSequentialLog scale.

No thoughts beyond those expressed in earlier comments, sorry.

Related 393b9a5288aba1f5462788bdf0ef8debfd72d42e which implements d3.scaleSequentialQuantile.

@mbostock Need any help on this?

I just added d3.scaleDiverging, which means we might now want d3.scaleDivergingPow, d3.scaleDivergingQuantile, d3.scaleDivergingLog etc.
But better would be to decouple the transforms from the interpolation method, so that we don’t need a different scale implementation for each combination. For example, ideally d3.scaleLinear, d3.scaleLog and d3.scalePow could be subsumed by a d3.scaleQuantitative; this would default to a linear scale, and you could specify a transform (and presumably an inverse transform) to achieve the desired non-linear behavior. But along with the transform you’d also need a nicing strategy and a tick strategy that is specific to the transform… but in theory you could pick and choose which strategies you wanted, and we could leave d3.scaleLog as convenience factories for common configurations.
I need to think about this some more.


Backup ansible

Since this is build as well as backup it could install ansible 2.10 and clone the infrastructure repo

Ok, I'll add all that when I do the next bit - adding in the history mailer and the user grouper.


basic setup

I am new here, want to know how to run code first time. So I can start development.

Welcome! If you mean HAXcms there's documentation here -- https://haxtheweb.org/documentation-1/haxcms/installation
ddev (https://www.ddev.com/) is what we recommend to get working locally on building new sites. For more advanced site creation methods we have hax11ty (https://github.com/elmsln/hax11ty) if your looking to go the purely static route.
Any questions feel free to join us at https://bit.ly/haxslack


Failed to decrypt

When I do "gopass show test" it drops me straight to Error: Failed to decrypt. If I do "pass show test" FIRST I will get prompt to enter my passphrase then do "gopass show test" it will show the entry. It seems like gopass is somehow not kicking off the prompt for passphrase.
gopass 1.3.1 (8284376f1795ce9f871c8ec47e217f2112a43d30) go1.8 linux amd64
CentOS Linux release 7.3.1611 (Core)
A little update. It will show the data for "info". But I had to "prep" it with 'pass show test' (so I could put in my passphrase). But I find it odd it still say "You need a passphrase to unlock the secret key for".
[jimb0@local ~]$ gopass show Foo/Bar/foobar/console/info
You need a passphrase to unlock the secret key for
user: "Jim"
4096-bit RSA key, ID 9999999, created 2017-08-21 (main key ID 9999999)
123
gopass 1.3.1 (8284376) go1.8 linux amd64
CentOS Linux release 7.3.1611 (Core)
DEBUG on
When doing command below does not PROMPT me for passphrase.
jimb0@local ~]$ gopass show Foo/Bar/foobar/console/root
[DEBUG] Loaded config from /home/jimb0/.config/gopass/config.yml: &{AskForMore:false AutoImport:true AutoSync:true ClipTimeout:45 Debug:false FsckFunc: ImportFunc: Mounts:map[Ascension:/home/jimb0/.password-store-Foo] NoColor:false NoPager:false NoConfirm:false Path:/home/jimb0/.password-store SafeContent:false Version:1.3.1}
[DEBUG] gpg.Decrypt: /usr/bin/gpg2 [/usr/bin/gpg2 --quiet --yes --compress-algo=none --no-encrypt-to --no-auto-check-trustdb --decrypt /home/jimb0/.password-store-Foo/Bar/foobar/console/root.gpg]
You need a passphrase to unlock the secret key for
user: "Jim "
4096-bit RSA key, ID 9999999, created 2017-08-21 (main key ID 9999999))
Error: Failed to decrypt
gopass 1.3.1 (8284376) go1.8 linux amd64
CentOS Linux release 7.3.1611 (Core)
gpg2 --version
gpg (GnuPG) 2.0.22
libgcrypt 1.5.3
Copyright (C) 2013 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.

I reset everything. rm .password-store*. Seems to be working correctly. I think the problem I had is I had some "old" pass "data" that overlay from gopass. Only issue is  #279 after I did a "clean wipe".


#5 add forEach method

Codecov Report

Merging #8 into v1.0.0 will increase coverage by 0.88%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           v1.0.0       #8      +/-   ##
==========================================
+ Coverage      80%   80.88%   +0.88%
==========================================
  Files           8        9       +1
  Lines          65       68       +3
==========================================
+ Hits           52       55       +3
  Misses         13       13

Impacted Files
Coverage Δ

collection/each.go
100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f001b66...2512aa3. Read the comment docs.


Can't implicitly assign subclass of specialized generic type to variable of type of subclass

class A<T> { }

class B extends A<int> { }

void test<T>(A<T> foo) {
  if (foo is B) {
    final B fooCast = foo;
  }
}

void main() {
  test(new B());
}

Analyzer:
  error • A value of type 'A<T>' can't be assigned to a variable of type 'B' at test.dart:7:23 • invalid_assignment

Runtime with --preview-dart-2:
test.dart:7:23: Error: A value of type '#libnull::A<#libnull::test::T>' can't be assigned to a variable of type '#libnull::B'.
Try changing the type of the left hand side, or casting the right hand side to '#libnull::B'.
    final B fooCast = foo;
                      ^
test.dart:7:23: Error: A value of type '#libnull::A<#libnull::test::T>' can't be assigned to a variable of type '#libnull::B'.
Try changing the type of the left hand side, or casting the right hand side to '#libnull::B'.
    final B fooCast = foo;

Interesting. I tried the following:
class A<T> { }

class B extends A<int> { }

void test<T extends int>(A<T> foo) {
  final fooCast = foo as A<int>;
  if (fooCast is B) {
    final B fooCast2 = fooCast;
  }
}

void main() {
  test(new B());
}

... which gets farther, at least with the analyzer (it just marks as as an unnecessary cast) but there are no warnings or errors, just that hint.

In the original example, if (foo is B) {...} does not promote foo, because B is not a subtype of A<T> (it's a subtype of A<T> for some T, but it should be a subtype for all T for that subtype relation to hold). So the initialization expression for fooCast is simply of an unrelated type, which is an error.
One might come up with some tricky extra rules for assignability that would allow us to "downcast and then upcast" or "upcast and then downcast" (as long as "one of them is a short cast" ;-), so we might then allow Iterable<int> --> Iterable<num> --> List<num> or A<Null> --> A<int> --> B. But I'm not convinced that the added convenience will be so helpful that it pays for the added complexity. (It's not necessarily good that it's a little bit easier to write the code if it gets a lot harder to understand it.)
But A<T> --> A<int> --> B isn't even covered by this kind of rule, because A<T> and A<int> are unrelated, none is a subtype of the other.
So I think the given situation justifies some more verbosity, e.g., as in @matanlurey's version.
We ought to fix the problem with the "unnecessary cast" hint, though, because it does flag some casts which aren't unnecessary.

This would also be fixed by allowing type intersections (or whatever it is that we call the ability for the analyzer to simultaneously believe that a variable implements two unrelated interfaces). I guess I've filed bugs about that before.

This would also be fixed by allowing type intersections

Right, we can always promote to a subtype if we have a variable x of type T and check if (x is S) {...} and then simply check the body of that if-statement under the assumption that both x is T and x is S are true. (We may not even need to introduce an explicit notion of intersection types like S & T in order to do that).
However, that's a separate proposal.
@Hixie, I'll close this issue with 'working as intended'; please create separate 'area-language' issues as needed on the relevant language design issues that came up. We already have an issue on union types, and they almost inevitably carry intersection types along with them (and vice versa), but there might be other things that I overlooked.


Fix --use-local-bundle argument parsing

Description of changes:
There was a bug where it was using arg[3] but in one case should have used arg[4]. Fixed, factored out the parsing step to its own function, then wrote tests for it, since clearly we can get this wrong. :)
Testing:

How is this change tested? new unit tests! woo

Is this a refactor change?

Checklist

[ ] Each commit message has a non-empty body, explaining why the change was made
[ ] Methods or procedures are documented
[ ] Regression or unit tests are included, or existing tests cover the modified code
[ ] My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

On the long run, do you think it is still worth to manually parse the args instead of using a more stable library?

I think the threshold is 'if we have to care about more than 1 argument'. I think we still benefit a lot from having very few deps in this proxy binary.

For reference,
clap = { version = "4.0.29", default-features = false, features = ["std"] }

gives
$ cargo build
   Compiling os_str_bytes v6.4.1
   Compiling bitflags v1.3.2
   Compiling clap_lex v0.3.0
   Compiling clap v4.0.29

as the only deps and adds 3.5 seconds to build time on my laptop. So yeah, as soon as there's any more complexity to this, probably switch to (non-derive-based) clap is not super high-cost.


Run algorithm and scoring jobs when queued.

As soon as the status is changed to queued, these jobs will be scheduled to run.

@banesullivan I've based this on your dev-ui branch.


Rewrite tee to conform to nightly build.

The utility needed a substantial rewrite due to library changes and lifetime issues. I also needed to implement the MultiWriter struct since it was no longer available.

Thanks!


Add settings file for each server to set staging hostname

This needs to be set in order for 2-site publishing/sharing logic to work.
@rosskarchner

@kurtw I'll be in touch.


[BEAM-9178] Support all ZetaSQL TIMESTAMP functions

This PR adds support of all ZetaSQL (BigQuery Standard SQL) TIMESTAMP functions to BeamSQL:

CURRENT_TIMESTAMP
EXTRACT (extracting DATE and WEEK not supported)
STRING
TIMESTAMP (constructing TIMESTAMP from DATE or DATETIME not supported)
TIMESTAMP_ADD
TIMESTAMP_SUB
TIMESTAMP_DIFF
TIMESTAMP_TRUNC (truncating WEEK not supported)
FORMAT_TIMESTAMP
PARSE_TIMESTAMP
TIMESTAMP_SECONDS and TIMESTAMP_MILLIS (TIMESTAMP_MICROS not supported)
UNIX_SECONDS and UNIX_MILLIS (UNIX_MICROS not supported)
TIMESTAMP_FROM_UNIX_SECONDS and TIMESTAMP_FROM_UNIX_MILLIS (TIMESTAMP_FROM_UNIX_MICROS not supported)

(Exception: the known precision and timezone issue)
r: @apilloud @kennknowles
cc: @amaliujia @TheNeuralBit
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---

---
---

Java

Python

---

---
---

XLang
---
---
---

---
---
---

Pre-Commit Tests Status (on master branch)

---
Java
Python
Go
Website

Non-portable

Portable
---

---
---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

Friendly ping.

I'm guessing you didn't mean to create a merge commit here?

@apilloud Could you help running precommit tests and merge this PR?

Hi Jenkins, I'd like some tests please.

test this please

Run JavaPortabilityApiJava11 PreCommit

Run PreCommit_Java_Examples_Dataflow_Java11 PreCommit

The failing java precommits are due to #10787 modifying the seed job. Ignoring.

LGTM


When the selected language is not English, the page where the password is incorrectly returned http://<IP_ADDRESS>:8888/login is blank

When the selected language is not English, the page where the password is incorrectly returned http://<IP_ADDRESS>:8888/login is blank instead of http://<IP_ADDRESS>:8888/login/?error=Invalid Password
appengine\src\com\google\appinventor\client\explorer\youngandroid\GalleryList.java
// Add panels to main tabPanel
appTabs.add(appRecent, "Recent");
appTabs.add(appTutorial,"Tutorials");
appTabs.add(appFeatured, "Featured");
appTabs.add(appPopular, "Popular");
appTabs.add(appSearch, "Search");
appTabs.selectTab(0);
appTabs.addStyleName("gallery-app-tabs");
galleryGUI.add(appTabs);
Did not consider other languages

Fixed by #2434


Started to introduce more typing

I'd appreciate your feedback and thoughts about this first batch of changes/tries to improve the typing of the code in general. There is still a lot that needs to be done. Sometimes it is hard to guess the right type of the variables

These typings are super useful! Thank you!!


Who in their right mind thinks that letting a 3rd party GitHub action read a GPG private key capable of publishing to Maven Central is a good idea?
https://github.com/libgdx/libgdx/blob/master/.github/workflows/build-publish.yml#L370
What in the actual fuck, folks? Who gave PokeMMO that key? Why was I not informed?  Congratulations.

After a quick check of the action's v3 sources, the action appears to be OK. It does not depend on 3rd party libraries other than GH @acrion/core. If you are using one of the signing keys, you MUST talk to me first.

After discussion on Discord, it was decided we audit the use of the private key and pin the GHA. This leaves the issue of anyone with write access to this repo having a way to compromise the key. This is not great, but that's what was decided.

To solve the write access issue, the workflow dir will be designated to only be writable by the admin team.


feat: Test various handwritten fonts

Preview - just a preview for #2945

[x] Select of all suggested fonts
[ ] Load a predefined scene with bunch of text (maybe the test.excalidraw)
[ ] Apply the selected font to all elements

This is just an experiment to choose the font.. it won't be merged.

Now if you change the font in the dorpdown, double-clicking the text element and clicking out of it will update the font!

font now renders when you pick a font


added stroke size field on line config

Hi do you have any update related to this PR?

hey will be starting to review PRs starting this week. Sorry have been keeing busy!

THank you for doing it!


Fix service.type: LoadBalancer

Changes to dshackle Helm chart to fix functionality when service.type: LoadBalancer:

Adding missing dshackle.httpPort to template
Adding annotations to Service

Hi @barnabasbusa @skylenet What do you think about these changes?

please run make docs.

closing in favor of: #302


English level is quite low...

This issue has been extracted from the issue list on:https://ies-svn.jrc.ec.europa.eu/issues/2685
Comment
English level is quite low
Proposed Change
Review all English text

Proposed Resolution
This is addressed in the resolution of several other issues with label type:ED


Throws error with<EMAIL_ADDRESS>

After updating stylelint to v7.7.0 I see this error:

In this version stylelint has exposed its formatters through documented API (see https://github.com/stylelint/stylelint/pull/2190/files). Do you think this could be the issue?

+<EMAIL_ADDRESS>published! Thanks for reporting this and thanks @jeddy3 for the suggestion about the public API!


How to achieve single hostname with BOTH https and http path

What would you like to be added:
Documentation or example about confiuring single hostname with BOTH https and http path.
e.g. https://www.example.com/, http://www.example.com/foo
Why this is needed:
How to achieve single hostname with BOTH https and http path, e.g.:
"/" with https tcp443
"/plaintext" with http tcp80
Something like:
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: https-redirect
spec:
  parentRefs:
  - name: gateway-all
    namespace: default
    sectionName: http
  hostnames:
  - "www.example.com"
  rules:
  - filters:
    - type: RequestRedirect
      requestRedirect:
        scheme: https
        port: 443
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: http-only
spec:
  parentRefs:
  - name: gateway-all
    namespace: default
    sectionName: https
  hostnames:
    - "www.example.com"
  rules:
    - matches:
        - path:
            type: PathPrefix
            value: /plaintext
      filters:
        - type: RequestRedirect
          requestRedirect:
            scheme: http
            port: 80

Hey @e33ivanyauwai, I think I'm having trouble understanding the redirects in your example. If you're attaching a Route exclusively to an HTTP listener, why would you need to redirect to 80 + HTTP?

Thanks for your reply @robscott, our case is that we have a public website with https://example.com, but we also have some API endpoints with http that was feed to a legacy system, we cannot change the code for the legacy system.
I used Nginx Ingress Controller with the below before (with annotation to bypass some path from https), now I migrate to Gateway but it seems I cannot find the documentation about this.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: project_name-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
  rules:
  - http:
      paths:
      - path: /
        backend:
          serviceName: project_name
          servicePort: 80

/remove-lifecycle stale

/remove-lifecycle stale

Hi @e33ivanyauwai ,
I think the solution involves:

Using multiple HTTPRoute resources to handle HTTPS and HTTP traffic separately.
Leveraging Gateway listeners to differentiate traffic based on protocols (TCP/443 for HTTPS, TCP/80 for HTTP).
Defining path-specific routing rules and filters in the HTTPRoute resources.

Proposed implementation:-

Gateway Configuration: Define a Gateway with listeners for both HTTP and HTTPS.

apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
metadata:
  name: example-gateway
  namespace: default
spec:
  gatewayClassName: my-gateway-class
  listeners:
    - name: https
      protocol: HTTPS
      port: 443
      hostname: "www.example.com"
      tls:
        mode: Terminate
        certificateRefs:
          - name: example-cert
    - name: http
      protocol: HTTP
      port: 80
      hostname: "www.example.com"

HTTPS Routing: Create an HTTPRoute to handle HTTPS traffic for /.

apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
  name: https-route
  namespace: default
spec:
  parentRefs:
    - name: example-gateway
      sectionName: https
  hostnames:
    - "www.example.com"
  rules:
    - matches:
        - path:
            type: PathPrefix
            value: /
      backendRefs:
        - name: https-backend-service
          port: 443

HTTP Routing: Create a separate HTTPRoute to handle HTTP traffic for /api.

apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
  name: http-route
  namespace: default
spec:
  parentRefs:
    - name: example-gateway
      sectionName: http
  hostnames:
    - "www.example.com"
  rules:
    - matches:
        - path:
            type: PathPrefix
            value: /api
      backendRefs:
        - name: http-backend-service
          port: 80

Additional Considerations:
TLS Termination: The tls section in the HTTPS listener configuration indicates that the Gateway will handle TLS termination. This means the Gateway will decrypt incoming HTTPS traffic before forwarding it to the backend service.

Heu @e33ivanyauwai , do give reviews on the approach and proposed change.


[tools] A tool to create an iOS App Clip integrated with Flutter

Use case
It requires many steps in order to create an iOS app clip that's integrated with Flutter:
https://docs.flutter.dev/development/platform-integration/ios/ios-app-clip
It would be great if we can have a command line tool to automate this process.
The scope can be potentially expanded to other extensions, such as "share extension"

xref: https://github.com/flutter/flutter/issues/107482#issuecomment-1324485582


It's not working with latest svelte kit , date : 30-01-2021

Looks like it just worked for me on a new project. Can you provide more information?

Looks like it just worked for me on a new project. Can you provide more information?

I followed the instructions but styles are not being applied.
This is the code github link

I followed the instructions but styles are not being applied.
This is the code github link

I'm really sorry this is happening. Please put tailwindcss(), after autoprefixer, in the plugins array in the postcss.config.js file and it should work.

I'm really sorry this is happening. Please put tailwindcss(), after autoprefixer, in the plugins array in the postcss.config.js file and it should work.

It's working now. Thanks for quick response!!

It's working now. Thanks for quick response!!

Closing to keep all discussion / investigation in #4

Closing to keep all discussion / investigation in #4

It also doesn't work for me. After following the instructions in the README I ended up with this in postcss.config.cjs:
module.exports = {
	plugins: [
		// Some plugins, like postcss-nested, need to run before Tailwind

		tailwindcss("./tailwind.config.cjs"),

		// But others, like autoprefixer, need to run after

		autoprefixer,

		!dev && cssnano({
			preset: "default",
		}),
	],
};

But I had the same problem as OP, that the styles from within Counter.svelte were not being applied. @babichjacob I tried your suggestion:

I'm really sorry this is happening. Please put tailwindcss(), after autoprefixer, in the plugins array in the postcss.config.js file and it should work.

Well I don't have a postcss.config.js file, but I do have a postcss.config.cjs file, so I assume you meant the latter one. Anyway, I tried that, but it made no difference.

It also doesn't work for me. After following the instructions in the README I ended up with this in postcss.config.cjs:
module.exports = {
	plugins: [
		// Some plugins, like postcss-nested, need to run before Tailwind

		tailwindcss("./tailwind.config.cjs"),

		// But others, like autoprefixer, need to run after

		autoprefixer,

		!dev && cssnano({
			preset: "default",
		}),
	],
};

But I had the same problem as OP, that the styles from within Counter.svelte were not being applied. @babichjacob I tried your suggestion:

I'm really sorry this is happening. Please put tailwindcss(), after autoprefixer, in the plugins array in the postcss.config.js file and it should work.

Well I don't have a postcss.config.js file, but I do have a postcss.config.cjs file, so I assume you meant the latter one. Anyway, I tried that, but it made no difference.

@Evertt This is something different. I just made #7 for this.


Consider including Automation

It would be nice to have Automation added to this page. Several customers have asked about the difference between Automation and services presented here recently.
Also, a couple other things that could really make this doc useful would be to have a single table comparing different aspects of all the solutions presented (instead of just various side-by-side comparisons of two services), and having a decision tree like the one at this link. It's sort of odd that you can get to Functions on that decision tree, but not to any of the other services presented here.
https://docs.microsoft.com/en-us/azure/architecture/guide/technology-choices/compute-decision-tree

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

ID: 82ee9751-961d-7109-63d6-813b1862c632
Version Independent ID: 583d1b2f-9c1a-3580-9d14-37bb551eaf44
Content: Integration and automation platform options in Azure
Content Source: articles/azure-functions/functions-compare-logic-apps-ms-flow-webjobs.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

Hi @dcbrown16 Thanks for reaching out. We will review and update as appropriate.

@dcbrown16 I have assigned this to content author for further review and update as appropriate.


Building options object in a $timeout

When using the ui-tinymce directive inside another directive, the attr is undefined on the first digest cycle. Building the Options object in a $timeout ensures that the attrs have had time to be updated before we try to use them.

I don't think this is the right fix - I believe the problem may have been the unnecessary priority set on the directive, which I have removed.
Can you try the latest from master? I believe this is no longer an issue.
I will happily reopen this and investigate if the change did not fix this issue.

Sorry it took so long for me to check this out. Yes, it's fixed in 0.0.6. However, trying to install any later version and the TinyMCE editors on our site stop working. The model no longer seems connected to TinyMCE instance. Changes in one don't persist to the other. Presumably something changed, but I don't have an enormous amount of time to investigate at present. I'm leaving it at 0.0.6 for now and will follow up later, probably when we decide we can upgrade past Angular 1.2 (still have to support IE8 for a little longer).


Rework frameback initialization for IE compatibility

Working across Chrome, FF, Safari and IE now.
Much simpler, too, which is nice.  Pretty close to my initial stab last year,
which wound up having trouble in FF, but seems to work now? :fingers_crossed:

👍


Does not validate the scanned cards correctly

Hi,
I have integrated card.io in my app and tried scanning cards, master and visa cards are not getting verified correctly. I always get a message invalid card details.
It works fine with the iOS version. I am able to add the same card on iOS app but not on android.

We have the app on the store. below is the link to the app
https://play.google.com/store/apps/details?id=com.gohash.android.hero
When we scan a visa card, it does nothing. It scans all the other cards correctly now

If I scan my visa card and enter the expiry and security code. The card
does not get validated. The screen just stays there and there is no error
message as well. If I scan my master card or amex , they get validated and
added successfully
On Feb 10, 2016 21:43, "Jeff Brateman"<EMAIL_ADDRESS>wrote:

Can you explain the exact problem, and/or provide screenshots? I
appreciate providing the app, but we don't have any non-expired test cards.
—
Reply to this email directly or view it on GitHub
https://github.com/card-io/card.io-Android-SDK/issues/114#issuecomment-182451874
.

Yes, the app exhibits that behaviour. Not sure why only that particular
card does like that.
I have tried with other cards like mastercard, Amex and they work fine.
On Tue, Feb 16, 2016 at 9:00 PM, Jeff Brateman<EMAIL_ADDRESS>wrote:

Does the sample app exhibit the same behavior? This is the first I've
heard of something like this, and I would be a bit more concerned if others
had reported it.
—
Reply to this email directly or view it on GitHub
https://github.com/card-io/card.io-Android-SDK/issues/114#issuecomment-184729443
.

--
Thanks&Regards,
Nikhil Veesamshetty
Account Manager,
GoHashInclude.


Chinese characters in the file name are replaced by "-" when stored in the server

Issue Summary
When uploading files with Chinese Characters via File card, audio card or video card, the name of the files stored in server has Chinese characters replace by "-".
It might not be an big issue, but it is not convenient to manage the media files on the server, with all those "-"s.

Steps to Reproduce

Upload an audio file whose name has Chinese characters
The file stored on the server, but the name of the file has the Chinese characters replaced by "-" when checking it via SSH login into the server.

Ghost Version
4.32.3
Node.js Version
14.18.3
How did you install Ghost?
Manually install via Ghost CLI
Database type
MySQL 8
Browser & OS version
No response
Relevant log / error output
No response
Code of Conduct

[X] I agree to be friendly and polite to people in this repository

Please can you provide an example file or filename that we can use to reproduce?


Repeating Characters

In a chance.string is there an option to ensure that there are never any repeating characters in the output?

nope, not at current, that would be a nice addition!

So the problem I have so far is that I don't get the total 16 characters specified in the params of chanceString when there are dupes. Example below:
      function uniqueArray(array) {
          return array.filter(function(itm, i, T) {
              return T.indexOf(itm) == i;
          });
      }
      var noUnique = uniqueArray(chanceString.split('')).join('')
      console.log("Pass: " + chanceString); //0B!@+-lHBJ0ZNFuG
      console.log("Uniq: " + noUnique);     //0B!@+-lHJZNFuG

Incidentally, I am bugging you so much because when I found chance.js I realized it was the perfect solution to improving my stateless password generating app https://github.com/spencerthayer/Passcloud. So I'm rebuilding it entirely around chance.js.

Any thoughts on how to do this?

Hey @spencerthayer apologies on the long response here! And very cool to hear about using it for the password generation.
So yes there are a couple ways to accomplish this. First, we should probably add a feature to the string() method which would enable no repeats. (will add it shortly!)
However, before that exists, one way to accomplish what you want with what exists today would be to use the unique method to generate N unique characters, then join them together as a string.
For example:
function uniqueString(len) {
  return chance.unique(chance.character, len).join('');
}
// Will generate len unique characters and join them together as a string

Note, this is a bit more aggressive than you're actually looking for as it ensures no characters are duplicated throughout the whole string, not just next to each other, but it should work.
Will add the "no repeat" flag to string() in the near future though because that seems very useful!

This is exactly what I am looking for. Something that generates unique strings throughout the password. However, when I give it a pool it seems to cause a problem.
function uniqueString(len) {
            return chanceHash.unique(
                chance.character({ pool: "abcdef%^&" }), len
            ).join('');
        }

RangeError: Chance: The first argument must be a function. chance.min.js:1:721

Yes @spencerthayer that is because chance.unique expects a function as its first argument and you supplied a string (chance.character() with a pool will return a single character as a string).
Instead, to call it with a known pool, you would do this:
// Return a string of all unique characters, selected from the provided pool
function uniqueString(len) {
    return chance.unique(chance.character, len, { pool: "abcdef%^&" }).join('')
}
// then call it
> uniqueString(6)
"dc%^e&"

Note in the above implementation, since the pool is only 9 characters long, that is the maximum length of the string you could generate with all unique characters from that pool. Chance will throw a RangeError if you try to provide a larger number than the function could generate.
Also worth noting I just realized the docs for chance.unique() don't adequately convey that any params you'd like to pass to the called function come at the end so I'll fix that.

Dude! Thank you so much! This script now produces super strong passwords when I provide a poolString like abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*_-=+~()[]{};:'",.<>?/|¡¢£¤¥¦§¨©ª®°±µ¿`. But more importantly, the user can select the characters they want programmatically and never get a repeating character.
if (passType == "password") {
        function uniqueString(len) {
            return chance.unique(chance.character, len, { pool: poolString }).join('')
        }
        domainPassword = uniqueString(charLength);
    }

I do look forward to seeing what you do with String and maybe making it more efficient but this is totally closed in my book.


Force save a notebook?

When do the notebooks are indeed saved?
I don't understand when the file is written on disk. I've lost changes many times due to that.
Can't we add a button in the main toolbar to force save the current notebook?

Adding idea: it will be nice if we warn user if there's a change in editor.


Controller.Request.ContentType not working for apk files

Uploading an apk file gives a ContentType of blank

Correct content type should be:
application/vnd.android.package-archive

Disregard this was not Revel's issue


Cannot read property '_parallelBabel' of null

Hi, I am trying to use the package with CSS Less and keep getting this error:
Build Error (broccoli-persistent-filter:Babel > [Babel: ember-font-awesome]) in ember-font-awesome/components/fa-icon/component.js

Cannot read property '_parallelBabel' of null

I followed the less setup in the readme
I'm not sure if it's a package version issue, or if some parallel Babel feature doesn't work with the library. I'm not sure what it is.
Here's the projects dependency versions:
"devDependencies": {
  "ember-cli-less": "^1.5.5",
  "ember-font-awesome": "^4.0.0-rc.4",
  "ember-cli-babel": "^6.16.0","ember-cli": "~3.2.0",
}

Thank you for your help.

It was a dependency conflict. I ran npm update and everything is working now. Please disregard. Thanks.


I want to delete it, how can I do it?

And if I want to delete it, how can I do it ?

To delete the presets you just delete the presets in the folder (or the folder directly to delete everything).
The folder can be located in:

$HOME/.var/app/com.github.wwmm.easyeffects/config/easyeffects
$HOME/.config/easyeffects
The first is for Flatpak installations and the second is for APT/native installations

Does this process also delete the application that comes with Easy Effect ?

No, this just deletes all the settings and presets of EasyEffects. Think of it like performing a "factory reset".
Thus the next time you start EasyEffects you'll see it like it was freshly installed.

I did exactly what you said but nothing changed, I still have a cow symbol in my menu.

A "cow" symbol? I don't know what that is I'm sorry.
This is the effect that is obtained by deleting the aforementioned folder, as you can see all the presets and settings are deleted accordingly.

When I loaded your presets, an icon like this started to appear on the menu :

This icon comes back even when I reinstall easyeffect.

Ah okay! Well that's weird, this repo contains just a bunch of presets, no apps are installed, so it should have appeared even before.
Anyway those are plugins needed by EasyEffects, they appear if you installed it through native installation (e.g. APT, AUR, etc.) while if you use Flatpak they do not appear in the app menu.
I'm not sure if you can uninstall them though as they should be a dependency of EasyEffects itself...


simplify traits

This is a not 100% working change to explore some of the proposed changes from #177.

Thanks for the review.

I would recommend the enum proposal from https://github.com/hyperium/h3/issues/177 B2 (replace Error with Close enum).

I will continue to work on this and implement #177 B2.
I Think this are my next tasks:

[ ] Fix the failing tests
[ ] Implement #177 B2
[ ] Make sure everything is well Documented
[ ] Make WebTransport work with all the changes

@Ruben2424 Is this PR in a state where it's ready for review?

@Ruben2424 Is this PR in a state where it's ready for review?

@dongcarl you can review the changes if you want. But there is still some work left to improve the error types.
I probably have time to continue on this next week.

I think i will not continue on this as one big pr. Instead I probably will split them up into multiple smaller ones which are easier to review.