Update docker version to download

duplicate of #488. The plan is to use 1.13.0-rc1

Few other notes:
In section 2. Install Docker
When docker zip file is downloaded and added to the path, it is ignored because there is another one installed under windows.
PS C:\> $env:path += ";c:\program files\docker"
PS C:\> where.exe docker
C:\Windows\System32\docker.exe
c:\program files\docker\docker.exe
PS C:\> docker --version
Docker version 1.12.0-dev, build 8e92415
PS C:\> & 'C:\Program Files\docker\docker.exe' --version
Docker version 1.14.0-dev, build 2b680b1

Section 3. Install Base Container Images
It does not work
PS C:\> docker pull microsoft/nanoserver
Using default tag: latest
latest: Pulling from microsoft/nanoserver
5496abde368a: Retrying in 20 seconds
482ab31872a2: Retrying in 20 seconds
Using default tag: latest
latest: Pulling from microsoft/nanoserver
5496abde368a: Downloading
482ab31872a2: Downloading
unknown blob
PS C:\> docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
PS C:\> docker run -it microsoft/nanoserver cmd
Unable to find image 'microsoft/nanoserver:latest' locally
latest: Pulling from microsoft/nanoserver
5496abde368a: Downloading
482ab31872a2: Downloading
C:\WINDOWS\system32\docker.exe: unknown blob.
See 'C:\WINDOWS\system32\docker.exe run --help'.
PS C:\>

@omidkrad Interesting, how does docker.exe appear in Windows directory? Which version do you have there, which platform you are working with (eg. Win10 + Docker for Windows ...).
I haven't seen that the docker.exe is in Windows directory.

@StefanScherer I'm using Windows 10 (Version 1607 build 14393.447) I had Containers in Windows Features installed. I think C:\Windows\System32\docker.exe comes from there.

@omidkrad I can't reproduce that as I often rebuild a Windows 10 machine with these steps. There is no docker installation built-in with these two Windows features.
What is the version of that file?
c:\Windows\system32\docker.exe --version

Is there a dockerd.exe as well?
You should remove both from the windows directory.

Version is 1.12.0-dev. There was a dockerd.exe too and I removed both of them. Then removed and reinstalled Containers feature again and they didn't come back. So I'm not sure where they came from.
After restarting Windows now I'm getting another weird error:
PS C:\> Start-Service docker
PS C:\> Get-Service docker

Status   Name               DisplayName
------   ----               -----------
Running  docker             Docker Daemon

PS C:\> docker pull microsoft/nanoserver
Using default tag: latest
Warning: failed to get default registry endpoint from daemon (error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.26/info: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.). Using system default: https://index.docker.io/v1/
error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.26/images/create?fromImage=microsoft%2Fnanoserver&tag=latest: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.


Documentation mistake

Hey
in documentation there is option excluded_fields, which should be exclude_fields.

https://github.com/a2lix/TranslationFormBundle/blob/8680c6a11d37de91d4081910bd3b87ae4848bb7d/Form/Type/TranslationsType.php#L75
The code says it is "excluded_fields". So there is no mistake in docs.
Closing. Feel free to ping me to reopen if this is still relevant.

There is indeed a mistake on the 2.x branch https://github.com/a2lix/TranslationFormBundle/blob/2.x/Form/Type/TranslationsType.php#L72
it is exclude_fields. Reopening


src: FreeBSD 13.3

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Is your feature request related to a problem? Please describe.
13.2 will be outdated pretty quickly as 13.3 is scheduled for March 2024: https://www.freebsd.org/releases/13.3R/schedule/
Describe the solution you like
Test 13.3 and move to it if it looks good. Early indication would say this is not going to cause regressions, but we never know.
Describe alternatives you considered
14.0 is not on our radar. We will wait for 14.1 which is still roughly a year away.
Additional context
N/A

Colin seems to want to wrap it up by end of February according to his comments on Twitter when announcing RC3.
Will we have a snapshots/13.3 branch then to test 13.3 + php8.3 + python 3.11 before pushing it to 24.1.x ?
Unsure about the rest, but python 3.11 should bring in a noticeable performance bump overall.

https://freebsdfoundation.org/blog/a-sneak-peek-simd-enhanced-string-functions-for-amd64/
Is there any possibility of backporting this to 13.3?
As I've seen it's being backported to 14.1


Skip SLSC Switch reservation group system test if old SLSC version is installed

[x] This contribution adheres to CONTRIBUTING.md.

What does this Pull Request accomplish?
Skip SLSC Switch reservation group system test if SLSC <20.0.1 is installed

Duplicate logic from SLSC Switch Messaging Library
Intentionally Pass the test as a no-op when SLSC 20.0.1+ is not installed

Why should this Pull Request be merged?
Currently, this system test is running and failing on older test runs.
What testing has been done?
Pulled down the branch on the test system with SLSC 19.5 installed. Confirmed the test passes.

[ ] We only need to check for the Windows name, since this test runs on the host.


Ability to specify API Group when editing roles via the Rancher UI

What kind of request is this (question/bug/enhancement/feature request):
Enhancement
Steps to reproduce (least amount of steps as possible):
When creating and editing Cluster and Project roles in the Rancher UI it is not possible to specify an API Group for a rule. Similarly, if you create a rule with an API Group via the API, the API Group does not display in the rule when viewed via the UI. User would like the API Group shown in the UI and the ability to edit the API Group for a rule via the UI also.
Environment information

Rancher v2.2.8

FYI we have added it in 2.3.0 https://github.com/rancher/rancher/issues/16254

Thanks @loganhz I did have a search, but had missed that. Closing this.


WIP: add cloudevents clients

refer to https://github.com/open-cluster-management-io/enhancements/pull/97

/assign @qiujian16

/assign @morvencao

/cc @clyang82 @yanmxa

I think should also add a README in the client/cloudevents to describe how the client can be used.

I will open a new pr to add the README after we introduced the work part

Looks good to me~

/unhold


Generate provenance statement during publish

https://docs.npmjs.com/generating-provenance-statements

Done for a while now


Optimize the "Stop Container" step

Having issue with Tasks?
Stop Container
Agent Version and Platform
Version of your agent? 2.140.2 - self-hosted agent
OS of the machine running the agent? Linux
VSTS Type and Version
MS Teams internal VisualStudio.com account
What's not working?
Issue 1:
Currently, on VSTS Hosted pools and in some cases on self hosted pools, the stop/delete of the container and network is taking a lot of time - up to 4 min. There are no services running in our containers that could cause that. The issues might be related to the way how the containers are 1st stopped and then deleted.
Suggested Solution:
A better approach would be not to stop the container at all, but to forcefully delete it using
docker rm -f <container name>
That would save time.
Also ensure that the VSTS hosted agents are configured to use "overlay2" as storage driver.
Issue 2:
Currently if a build is canceled, sometimes the "Stop Container" step is not executed. This leaves the containers on the host running, which makes subsequent builds fail as the "Initialize Container" task is always trying to create a container with the same name. It also leaves the networks hanging and polluting the host.
Suggested Solution:

Always create a container with unique name. i.e. <build definition name>-<build ID>.
Ensure the "Stop Container" task always runs.
Provide an optional feature via yaml flag to prune all exited containers and networks:

Flag name: prune [OPTIONS: true/false]
Capability: Default to false. If true, set the docker commands in the "Stop Container" to:
docker container prune --force
docker network prune --force
Above will ensure all containers and networks are pruned - especially useful on self hosted agents.

Issue 3:
Container memory limit cant be set on VSTS Linux hosted pools.
options: '--memory=<some vaule>GB'
Suggested Solution:

Append cgroup_enable=memory swapaccount=1 at the end of the  GRUB_CMDLINE_LINUX_DEFAULT variable in /etc/default/grub.
Add cgroup_enable=memory swapaccount=1 to GRUB_CMDLINE_LINUX variable in /etc/default/grub.

Code:
#!/usr/bin/env bash

# string that needs to be appended to the grub file
append_grub_string='"cgroup_enable=memory swapaccount=1"'

# grub file path
grub_file_path=/etc/default/grub

# get the existing value for the key GRUB_CMDLINE_LINUX_DEFAULT
find_grub_key=$(grep -Po "(?<=^GRUB_CMDLINE_LINUX_DEFAULT).*" $grub_file_path)

# remove trailing characters
current_val=`echo -n $find_grub_key | tail -c +2 | head -c -1`

# append the string
modified_val=$current_val" "`echo -n $append_grub_string | tail -c +2`

# write back to the file
sudo sed -i "s/^\(GRUB\_CMDLINE\_LINUX\s*=\s*\).*\$/\1$append_grub_string/" $grub_file_path
sudo sed -i "s/^\(GRUB\_CMDLINE\_LINUX\_DEFAULT\s*=\s*\).*\$/\1$modified_val/" $grub_file_path

# update the grub settings
sudo update-grub

Restart the agent.

Agent and Worker's Diagnostic Logs
Issue 1 logs:
2018-10-19T21:46:05.0386291Z Stop container: <container name>
2018-10-19T21:46:05.0414147Z ##[command]/usr/bin/docker stop 47056ff4fcb009e6eacfa6f7da53e2a1e78e1ad38d384564eadb68d63fcf42f4
2018-10-19T21:46:18.3155340Z 47056ff4fcb009e6eacfa6f7da53e2a1e78e1ad38d384564eadb68d63fcf42f4
2018-10-19T21:46:18.3657328Z ##[command]/usr/bin/docker rm 47056ff4fcb009e6eacfa6f7da53e2a1e78e1ad38d384564eadb68d63fcf42f4
2018-10-19T21:48:46.8033693Z 47056ff4fcb009e6eacfa6f7da53e2a1e78e1ad38d384564eadb68d63fcf42f4
2018-10-19T21:48:46.8646500Z ##[command]/usr/bin/docker network rm vsts_network_1d62381110144052b5af11cfe5be0fe4
2018-10-19T21:49:38.6991090Z vsts_network_1d62381110144052b5af11cfe5be0fe4

Issue 2 logs:
2018-10-19T20:18:53.7228256Z Error response from daemon: Conflict. The container name "/<image name>" is already in use by container "f23f672c625e501274abd2dbaec73d24678de505169cf7e3b5148b4d54013dd3". You have to remove (or rename) that container to be able to reuse that name.

2018-10-19T20:18:53.7949213Z ##[error]Exit code 1 returned from process: file name '/usr/bin/docker', arguments 'create --name <image name> --network=vsts_network_556dd542f3c9439e89f007d3a5e65ecd -v /var/run/docker.sock:/var/run/docker.sock --cpus=3   -v "/usr/local/vsts-agent/2":"/__w/2" -v "/usr/local/vsts-agent/_temp":"/__w/_temp" -v "/usr/local/vsts-agent/_tool":"/__t" -v "/usr/local/vsts-agent/_tasks":"/__w/_tasks" -v "/usr/local/vsts-agent-install/externals":"/__a/externals":ro -v "/usr/local/vsts-agent/.taskkey":"/__w/.taskkey" <image name> "/__a/externals/node/bin/node" -e "setInterval(function(){}, 24 * 60 * 60 * 1000);"'.

Issue 3 logs:
2018-10-19T20:13:04.4098974Z WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
FYI: @TingluoHuang

Issue 1:
Currently, on VSTS Hosted pools and in some cases on self hosted pools, the stop/delete of the container and network is taking a lot of time - up to 4 min. There are no services running in our containers that could cause that. The issues might be related to the way how the containers are 1st stopped and then deleted.
Suggested Solution:
A better approach would be not to stop the container at all, but to forcefully delete it using
docker rm -f
That would save time.
Also ensure that the VSTS hosted agents are configured to use "overlay2" as storage driver.

Base on the log, the most time is wasted at docker rm
docker stop will send SIGTERM and wait for 10 sec before sending SIGKILL to container.
docker rm -f will send SIGKILL first before rm the container, so looks like even we switch to use docker rm -f we will only save about 10 seconds compare the total 2-5 mins.
i would prefer use that 10 sec to give the container a chance to gracefully shutting down.

Issue 2:
Currently if a build is canceled, sometimes the "Stop Container" step is not executed. This leaves the containers on the host running, which makes subsequent builds fail as the "Initialize Container" task is always trying to create a container with the same name. It also leaves the networks hanging and polluting the host.
Suggested Solution:
Always create a container with unique name. i.e. -.
Ensure the "Stop Container" task always runs.
Provide an optional feature via yaml flag to prune all exited containers and networks:
Flag name: prune [OPTIONS: true/false]
Capability: Default to false. If true, set the docker commands in the "Stop Container" to:
docker container prune --force
docker network prune --force
Above will ensure all containers and networks are pruned - especially useful on self hosted agents.

I think docker container prune might not able to fix all the issues, since it only delete stopped container. you might have case where the agent even fail to stop the container and leave it running.
I will start tracking the container that agent created, so we can make sure it get cleaned up.

Issue 3:
Container memory limit cant be set on VSTS Linux hosted pools.
options: '--memory=GB'
Suggested Solution:
Append cgroup_enable=memory swapaccount=1 at the end of the GRUB_CMDLINE_LINUX_DEFAULT variable in /etc/default/grub.
Add cgroup_enable=memory swapaccount=1 to GRUB_CMDLINE_LINUX variable in /etc/default/grub.

Thanks for the information, we will add these to our hosted image generation process.

close this issue since 2.144.0 agent has released to the service with the fix.


Version 0.10 fails to build after cargo upgrade

I have a previously working application that uses vulkano version 0.10 and vulkano-shader-derive version 0.10. After a recent cargo update vulkano fails to build with
error[E0422]: cannot find struct, variant or union type `MirSurfaceCreateInfoKHR` in module `vk`
   --> C:\Users\Michael\.cargo\registry\src\github.com-1ecc6299db9ec823\vulkano-0.10.0\src\swapchain\surface.rs:314:29
    |
314 |             let infos = vk::MirSurfaceCreateInfoKHR {
    |                             ^^^^^^^^^^^^^^^^^^^^^^^ did you mean `XcbSurfaceCreateInfoKHR`?

error[E0425]: cannot find value `STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR` in module `vk`
   --> C:\Users\Michael\.cargo\registry\src\github.com-1ecc6299db9ec823\vulkano-0.10.0\src\swapchain\surface.rs:315:28
    |
315 |                 sType: vk::STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR,
    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR`?

    Building [====================================================>  ] 123/127: vulkano

Might be related to issue #1108 .

Oh oops, I published a breaking change to vk-sys as a minor change. Maybe I should have a separate changelog for vk-sys so this doesnt happen again.

I cant yank vk-sys 0.3.4 because I don't have access. @tomaka
In the meantime you can manually set to 0.3.3in your Cargo.lock

I cant yank vk-sys 0.3.4 because I don't have access. @tomaka

Done!

@tomaka
Oh no, this broke 0.11
When https://github.com/vulkano-rs/vulkano/pull/1115 is merged  can you you yank 0.11.0?

@tomaka
I think you forgot to yank v0.11.0.

@tomaka 0.11.0 still needs to be yanked

@rukai Done!


vim.ui.select telescope: complete hang on focus loss

Describe the bug
when using vim.ui.select with the telescope backend, if you focus out of the telescope window (switch to any another window), telescope will close. However at that point the dressing vim.ui.select implementation is completely hung and no vim.ui.select will open again until neovim is restarted.
System information

OS: linux
Neovim version: 0.10.0
Is this related to a specific vim.ui.select backend? If so, which one? Telescope
Dressing config:

    require('dressing').setup({
      input = {
        -- ESC won't close the modal, ability to use vim keys
        insert_only = false,
        get_config = function(opts)
          if opts.kind == 'center_win' then
            return {
              relative = 'editor',
            }
          end
        end
      },
      select = {
        get_config = function(opts)
          -- https://github.com/stevearc/dressing.nvim/issues/22#issuecomment-1067211863
          -- for codeaction, we want null-ls to be last
          -- https://github.com/jose-elias-alvarez/null-ls.nvim/issues/630
          -- for eslint, it's offering me options like "disable eslint rule" which
          -- are almost never what I want, and they appear before the more useful options
          -- from the LSP
          if opts.kind == 'codeaction' then
            return {
              telescope = {
                -- sorter = require'telescope.sorters'.Sorter:new {
                --   scoring_function = function(_, _, line)
                --     local order = tonumber(string.match(line, "^[%d]+"))
                --     if string.find(line, escape_pattern('null-ls')) then
                --       return order+100
                --     else
                --       return order
                --     end
                --   end,
                -- },
                cache_picker = false,
                -- copied from the telescope dropdown theme
                sorting_strategy = "ascending",
                layout_strategy = "center",
                layout_config = {
                  preview_cutoff = 1, -- Preview should always show (unless previewer = false)
                  width = 80,
                  height = 15,
                },
                borderchars = {
                  prompt = { "─", "│", " ", "│", "╭", "╮", "│", "│" },
                  results = { "─", "│", "─", "│", "├", "┤", "╯", "╰" },
                  preview = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
                },
              }
            }
          end
        end,
      },
    })

To Reproduce
Steps to reproduce the behavior:

:lua vim.ui.select({"a", "b"}, {prompt="pick one"}, function(choice) print(choice) end)
escape if you're in insert mode
:1 wincmd w to switch to another window, or any other way to switch to another window than the telescope window. When switching, telescope (dressing) closes
try again => :lua vim.ui.select({"a", "b"}, {prompt="pick one"}, function(choice) print(choice) end)

From now on, vim.ui.select won't open again.
Additional context
I'm pretty certain that the issue is that callback(nil, nil) should be called when telescope is closed, but telescope does not tell us when it gets closed due to focus loss (as opposed for instance of the user explicitly closing telescope). I tried to find a way to get notified somehow when telescope gets closed in such situations, but couldn't do it.

Hmm I realised this is a duplicate of #150


I would like to join

As a CS142 TA I use the help queue a lot and would be interested in improving things for myself and future TAs. I would mostly prefer to work with the database management and business logic, but can contribute anywhere needed. My contributions would likely be most valuable in backend, as I am far less familiar with frontend development.
-Derek Anderson

Hey Derek,
I'd be pleased as punch to have you on the Q2 team! Sorry for the delay in responding to your interest (the last week has been hectic for me). I'll pick up the conversation in discord, but figured it might be good to send a ping here.


PS Code error on a WDAC page

There is an error in the PS commands under the section 'Convert your WDAC policy XML to binary'
$WDACPolicyXMLFile = $env:USERPROFILE"\Desktop\MyWDACPolicy.xml" should be $WDACPolicyXMLFile = $env:USERPROFILE+"\Desktop\MyWDACPolicy.xml"

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

ID: 47b5e396-a7d4-af3c-fde2-5b8374d0ad27
Version Independent ID: 9ea74c2f-76d4-9735-ac2b-cc38e1bd00f6
Content: Deploying Windows Defender Application Control (WDAC) policies
Content Source: windows/security/threat-protection/windows-defender-application-control/windows-defender-application-control-deployment-guide.md
Product: windows-client
Technology: itpro-security
GitHub Login: @jgeurten
Microsoft Alias: jogeurte

Addressed in #7727
https://github.com/MicrosoftDocs/windows-docs-pr/pull/7727

@jgeurten Please help us in resolving this issue. Thanks


First frame will be blank when video is initialized in a stopped state

Very nice and useful plugin! Many tnx for it.
I have some problem when use "start:external" option (the fist frame of the video is not shown when page is loaded. Similar problem I see in your example -  "Video playing on hover".  )

This is fixed via #34 and published to npm as 3.1.1

This somehow resurfaced (in Chrome only) and is also what is currently breaking the build.


Adds wagtail svg support

Updated wagtail version (for wagtailsvg)
Added wagtailsvg package
Changed flat menu item icon to svg
Added svg icon in section and article (footer is basically article, so it will automatically get it)

@dannyparsons kindly check and let me know.


SubItem not getting added to header item

ScreenShot
Example

Problem:

I am using interfaces AbstractExpandableHeaderItem and AbstractSectionableItem to get expandable item  with header .Result returned only header item with no subitem added to it.You can see the screenshot and example.
According to doc, i have added everything it says.
Also AbstractExpandableItem is not working with it.
Expected:
Return Header item with subitems attached and should be able handle expand and collaspe

Hi, i have same issue, any update?


ArrayIndexOutOfBoundsException on Spark on 'pining' tasks

Code that used to work and save data to ES from Spark now, on Spark 1.1.0 and  2.1.0.BUILD-SNAPSHOT results in
14/09/18 21:47:22 ERROR Executor: Exception in task 12.2 in stage 2.0 (TID 7007)
java.lang.ArrayIndexOutOfBoundsException: -1
	at java.util.ArrayList.elementData(ArrayList.java:400)
	at java.util.ArrayList.get(ArrayList.java:413)
	at org.elasticsearch.hadoop.rest.RestService.createWriter(RestService.java:351)
	at org.elasticsearch.hadoop.mr.EsOutputFormat$EsRecordWriter.init(EsOutputFormat.java:173)
	at org.elasticsearch.hadoop.mr.EsOutputFormat$EsRecordWriter.write(EsOutputFormat.java:149)
	at org.apache.spark.rdd.PairRDDFunctions$$anonfun$12.apply(PairRDDFunctions.scala:922)
	at org.apache.spark.rdd.PairRDDFunctions$$anonfun$12.apply(PairRDDFunctions.scala:903)
	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:62)
	at org.apache.spark.scheduler.Task.run(Task.scala:54)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:177)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)

Might be related to #256 or could it be a ES cluster mis-configuration? Looks like  RestService.java#L349 SettingsUtils.discoveredOrDeclaredNodes() returns empty list.
ES configuration looks like
discovery.zen.ping.multicast.enabled = false
discovery.zen.ping.unicast.hosts: ["list", "of", "hosts"]

I'm experiencing this problem with 2.0.2, because b17ebb95e96cff35a4fd6b0 adds this line, which includes the portion nodes.get(currentInstance % nodes.size()), which will lead to the above error when currentInstance is set to NO_TASK_ID (-1).
For reasons that aren't clear to me, this commit is not present in the 2.1.x beta versions, so this problem doesn't manifest there.


Release 0.17.3?

Would it be possible to release a new patch release?
The latest 0.17.2 published brings in 6 unnecessary encoding crates that was fixed back in October last year in  237fe0a9d4f466961ddbf1bf6c5fccb7b2df68b5, but looks like no new release has been made since then.

Definitely feel free to file those sooner, if that's a priority for you. From my point of view, PRs since that date were all non-functional in nature so it wasn't a priority. Anyways, release will be come soon due to #330 .

Thanks!


touchpad scrolling problem

Issue Type: Bug
sometimes touchpad scrolling works teribly bad when I maximize VS Code.
I always have to minimize and remaximize to solve this issue
VS Code version: Code 1.21.1 (79b44aa704ce542d8ca4a3cc44cfca566e7720f1, 2018-03-14T14:46:47.128Z)
OS version: Windows_NT x64 10.0.16299

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)

Memory (System)
7.93GB (2.21GB free)

Process Argv
C:\Program Files\Microsoft VS Code\Code.exe

Screen Reader
no

VM
0%

Extensions (6)

Extension
Author (truncated)
Version

vscode-eslint
dba
1.4.7

bootstrap-4-cdn-snippet
eve
1.0.7

intellij-idea-keybindings
k--
0.2.21

python
ms-
2018.2.1

bootstrap4-vscode
the
4.0.0

JavaScriptSnippets
xab
1.5.0

Reproduces only with extensions

Duplicate of #13612


Update Page “workOngoingAdvice”

Automatically generated by Netlify CMS

Deploy preview for dds-mil ready!
Built with commit 27f4dd3743689003df27baf488f6f11d3d763550
https://deploy-preview-150--dds-mil.netlify.app


DNU because CZPillarDocBuilder is Undeclared in ETPublicationsPlugin>>exportInto:

Hi. Just did setup ecstatic from scratch after a while (maybe since December) and I found this issue when running ecstatic generate on my personal website. May be some change in Pillar and/or Citezen is the cause.
Still didn't investigate... any clue? Can you reproduce with your site @guillep ?
Cheers

On 20 Apr 2016, at 05:53, Martín Dias<EMAIL_ADDRESS>wrote:
Hi. Just did setup ecstatic from scratch after a while (maybe since December) and I found this issue when running ecstatic generate on my personal website. May be some change in Pillar and/or Citezen is the cause.

Probably.
I should check CZ because soemthing strange happened with the build.
if you have a look and find it let me know.

Still didn't investigate... any clue? Can you reproduce with your site @guillep https://github.com/guillep ?
Cheers
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub https://github.com/guillep/ecstatic/issues/6

Stéphane Ducasse
http://stephane.ducasse.free.fr
http://www.synectique.eu / http://www.pharo.org
03 59 35 87 52
Assistant: Julie Jonas
03 59 57 78 50
03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley,
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France

Fixed in master: Upgraded Citezen from 2.2 to 2.6.
https://github.com/guillep/ecstatic/commit/a99032adf1b926872e0a73afacd5f128630bac1e


[WIP] Newsfeed Example App for new documentation site

We're planning to use this example app on the new Relay docs website (we may share more details on the progress there on our blog).
This PR is still a work in progress, and currently contains just the basic scaffolding of the app with some of the components, an initial version of the "server," and some build scripts, etc.
We don't need to review or land this at the moment. I'm adding this here so we can keep track of the progress.

cc @davidmccabe

hmm, looks like wrong pr


Use as template button missing on github repo

I'm not seeing the "use as template" button in this repo.

You can see the template repositories + some usage scenarios here: https://github.com/microsoft/AL-Go#al-go-for-github

https://aka.ms/algopte is for PTEs (has the use as template button)
https://aka.ms/algoappsource is for appsource apps (has the use as template button)


feat(nixos): sddm

very cool theme 0 bias

flake.lock needs to be bumped

This doesn't work for me because of this PR. In fact, this only works for NixOS users that use Qt (which I don't). I had to remove this line to get the theme to work. This tells me that we should remove this line from the metadata file and manage Qt support within the install phase of the catppuccin-sddm package instead (it should be opt in with an option like qt.enable).

This doesn't work for me because of this PR. In fact, this only works for NixOS users that use Qt (which I don't). I had to remove this line to get the theme to work. This tells me that we should remove this line from the metadata file and manage Qt support within the install phase of the catppuccin-sddm package instead (it should be opt in with an option like qt.enable).

This seems like an issue you should take up with the upstream packager (nixpkgs). Since sddm is under the KDE banner so it makes sense for the catppuccin-sddm theme (and its maintainer, me) to ship it with the qt-platform set to 6 by default.


LoRAs with a . (dot) in the name will break export. The same goes for spacebars.

Any lora with a dot in the name or spacebar, beside the .safetensors file extension will break the export. The exported loRA model will be 16 bytes in size.

Using rsplit to split only the last .(dot) and last spacebar solved the issue.
lora_name = lora_name.rsplit(" ", 1)[0]

Using rsplit to split only the last .(dot) and last spacebar solved the issue.
lora_name = lora_name.rsplit(" ", 1)[0]


NPM i results in ENFILE error

Describe the bug
NPM ci results in an error;
To Reproduce
Steps to reproduce the behavior:

run npm i --force on the attacked package.json file (rename the file first - can't upload .json files)
the error occurs (as stated below)

package.json.txt
Expected behavior
I would expect npm to do a clean install based on the provided package.json
Logs
$ npm i --force
npm ERR! code ENFILE
npm ERR! syscall scandir
npm ERR! path <project-path>/node_modules/is-obj
npm ERR! errno -23
npm ERR! ENFILE: file table overflow, scandir '<project-path>/node_modules/is-obj'

Info report
OrbStack info:
  Version: 0.11.3 (110300)
  Commit: f953c63b1cbfe3c2988c97e0b42680600cf0e060 (v0.11.3)

System info:
  macOS: 13.4 (22F66)
  CPU: arm64, 10 cores
  CPU model: Apple M1 Max

Additional info
in container;
$ ulimit -a
real-time non-blocking time  (microseconds, -R) unlimited
core file size              (blocks, -c) 0
data seg size               (kbytes, -d) unlimited
scheduling priority                 (-e) 0
file size                   (blocks, -f) unlimited
pending signals                     (-i) 120120
max locked memory           (kbytes, -l) unlimited
max memory size             (kbytes, -m) unlimited
open files                          (-n) 65536
pipe size                (512 bytes, -p) 8
POSIX message queues         (bytes, -q) 819200
real-time priority                  (-r) 0
stack size                  (kbytes, -s) 8192
cpu time                   (seconds, -t) unlimited
max user processes                  (-u) 120120
virtual memory              (kbytes, -v) unlimited
file locks                          (-x) unlimited

on host;
$ sudo launchctl limit
	cpu         unlimited      unlimited
	filesize    unlimited      unlimited
	data        unlimited      unlimited
	stack       8372224        67092480
	core        0              unlimited
	rss         unlimited      unlimited
	memlock     unlimited      unlimited
	maxproc     10666          16000
	maxfiles    65535          65535

it seems I also have this issue on Docker Desktop. meaning, it does not seem to be an Orbstack specific issue

it seems the container 'copies' some values from the host, below the fix that works for me (on the host that is).
Any limit that is defined in the container does not have the required effect unless the host limit changes accordingly.
however on Mac this is not as straight forward as it is in a Linux container.
too solve this we need to increase the 'open file' limit.

create the following file and add the content defined below.

/Library/LaunchDaemons/limit.maxfiles.plist
(file permissions/ownership are important for this file, it must permission; 0644 for ownership; root:wheel)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>limit.maxfiles</string>
    <key>ProgramArguments</key>
    <array>
      <string>launchctl</string>
      <string>limit</string>
      <string>maxfiles</string>
      <string>524288</string>
      <string>524288</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>ServiceIPC</key>
    <false/>
  </dict>
</plist>

activate the background process/service using;

sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist

it seems this ticket can be closed, answered my own question for anyone else who runs into something similar.

Fixed for the next version, although I was only able to reproduce this by artificially limiting kern.maxfilesperproc, and it's a workaround because I'm pretty sure the bug is actually on Apple's side.
It would never use more than ~220k file descriptors no matter how much I stressed it, and there were still plenty of free slots on the host at that point so it was never an issue without unusually low limits.

Released in v0.15.1.


RequireAdmin passes incorrect $args

When I use RequireAdmin in a preset file it looks like the args array being passed to the elevated instance is empty. I'm guessing $args in this case contains the arguments to the RequireAdmin function, not the arguments to the script. This causes the new, elevated Powershell instance to lose track the desired presets and apply the default tweaks.
Steps to repro:
Create preset.txt with

RequireAdmin
DisableTelemetry
Open a non-elevated cmd or powershell instance.
Run "powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 -preset preset.txt"
Notice default tweaks are being applied.

Thanks for the script. It's super helpful.


missing proxy-mirror.key

I updated this repo to be able to start it (some dependencies do not exist anymore)
..however, when I try ti start it with
    node index.js

I get the following:
Error: ENOENT: no such file or directory, open '/home/davide/Projects/proxy-mirror/cert/proxy-mirror.key'

You can use setup-certificate.sh to generate a certificate key pair used for https resigning.

Thanks!
I just made a pull request (I updated the readme file, plus updated deps)


numeric value in the middle of circle

Hi ,
Thanks for the wonderful plugin.my requirement is a numeric value must come in the middle of the circle and that must be dynamic coming from some database.
can you please tell what to do ?
My code is :
$(document).ready(function() {
  $('#circle').circleProgress({
    value: 0.75,
    size: 80,
    fill: {
      gradient: ["red", "orange"]
    }
  });
});

My code is like this :

The task is very specific for your application and doesn't seem so complex:

@kottenator : thanks alot :)

You're welcome! I hope I've solved your issue. I'm closing this ticket.

Hi ,
I tried all working but still not able to see the value
My code :+1:

I want to ask something ..Can I put this functionality into a canvas ?If yes then how ?
or say my requirement is I need to make a dashboard with these UI features
Imagine I have a white colour box of height=256px  and width=170px and inside that I have this circular plugin which will fetch the value from DB and show to the user.
How to do that ?

Something like this I want

Should I use Canvas ? div ? I am confused ? :(

divs are fine for your need. It's not a problem to have multiple circles on a page.

Hi kottenator,
Is it possible that the data-value property of the Div tag can be dynamically changed ?
say I have input type textbox and a button .On click of that button and taking that value the circle should be redrawn?
If so how to do it with jquery?

If you want to change the circle's value - use el.circleProgress('value', newValue)

can u please give an example :
here is my code :

    <meta charset="utf-8">

<title>Circular progressbar</title>

Over All Score

can u please show with an example ?
Here is my code :

One hint for you: when you want to post some code block on GitHub, read the guide.

Another hint, about my library: el.circleProgress({startAngle: -190}) - the angle is in radians, not degrees, so if you want e.g. 90° - write  el.circleProgress({startAngle: Math.PI / 4})

And here is an example of updating value:
var circle = $('.circle').circleProgress({value: 0.5});

setTimeout(function() {
  circle.circleProgress('value', 0.2);
}, 1000);

Here is another example for you, with textbox.


Clarify purpose of user's email during registration

When a user is creating an account, we should make it clear that the email they give will be displayed publicly. Right now, the prompt just says:
Email:

Also, I don't think there is a check to make sure that emails are unique.

Where are we showing email addresses publicly? Because I don't think we should do that...

Whenever someone runs:
haxelib user ...

To be honest, if this is the only place, we could just change this on the server right now and have it send an empty string instead of the actual email whenever someone runs haxelib user. I just assumed this was there so that people could contact library authors, but I guess if we're gonna allow that, it should probably be made optional anyway.

@Simn So it looks like it should be simple enough to patch this. Old clients are still going to show a "Mail: " line when running haxelib user however. So we can either send null in place of the email address, or something more descriptive so it's clear that it wasn't an error, like maybe (private) or something like that.

Sounds good to me!

Should we also handle this for the legacy server? I know technically it's meant to be left as is, but perhaps it makes sense to change it in this case. Also it might be good for someone who knows more about the website to double check whether the email is not available in any other way. The email seems to be hashed with md5 when getting a list of users for the users page, I'm not sure if that ever ends up getting sent to the client.

The server seems to be still sending the email addresses with haxelib user. Does the server need to be updated manually @andyli?

The development branch here get deployed to https://development-lib.haxe.org/. You may test it with haxelib -R https://development-lib.haxe.org ... first. If everything's alright, merge into master and it will be deployed to https://lib.haxe.org/.

Ah, I see. That is useful to know. This change is really small, and just substitutes the user's email for a "(private)" string. It seems to work:
> haxelib -R https://development-lib.haxe.org user ncannasse
Id: ncannasse
Name: Nicolas Cannasse
Mail: (private)
Libraries:
  format
  dbadmin
  hscript
  ...

However, it seems like there are other unmerged changes in development that are missing from master. Is there anything else that should be checked before it is safe to merge?

However, it seems like there are other unmerged changes in development that are missing from master. Is there anything else that should be checked before it is safe to merge?

My commits that aren't master yet are mostly infra/CI related, shouldn't affect the server code. The other commits are mostly yours - please check with https://development-lib.haxe.org about your changes.

My changes were mostly client changes, so they shouldn't affect the server either. I did refactor and change some shared Data code but there are also more integration tests now which should cover those changes. The only potential problem is that I updated the client documentation in line with the client changes, so until the client update is released, the documentation will not be correct for the current latest release.

For the docs, make sure it mentions in what version the behaviour changed. It's needed anyway because we don't have seperate versioned docs here.

I made #571 to explain these differences in the documentaiton. Hopefully the way it is explained makes sense.

I've merged the doc changes so now it is clear what behaviour is different between versions. We should be ready to update the master branch now, I don't think there's anything else to worry about. I'll wait for the go-ahead, or feel free to do it if you prefer.


Update integration-defender-for-endpoint.md

follow up on case #<PHONE_NUMBER>000492

@bmansheim,
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#ressign: @elSagie
Please close and re-open in internal repo

#please-close


Use correct Flet viewer path when installed from a source package

Fix #495

Not sure where to ask... but what happened to v2.3? Broken again?

Yep, upload to pypi.org was interrupted in the middle, because project exceeded 10 GB of allowed storage there and then...you cannot reuse the same version! :)

Bumped to the next 0.2.4 version 🤷

I mean for the storage...(10GB rememeber?)

Ah, this! I've just deleted old packages on pypi.org. Otherwise, you have to send the official request for the increase. Honestly, I don't see any point to keep old versions of pre 1.x project.


Generator functions are incorrectly coloured in JavaScript

From @joaomoreno on December 14, 2015 13:50

Copied from original issue: Microsoft/vscode#1268

function foo() {}
function *bar() {}

Fixed by #257


File import is broken

Hi,
Trying to create a container fails with this error; The ldif file works if you copy it to root and then run ldapadd manually after logging in.
***  INFO   | 2021-02-22 14:18:59 | Search service in CONTAINER_SERVICE_DIR = /container/service :
***  INFO   | 2021-02-22 14:18:59 | link /container/service/:ssl-tools/startup.sh to /container/run/startup/:ssl-tools
***  INFO   | 2021-02-22 14:18:59 | link /container/service/slapd/startup.sh to /container/run/startup/slapd
***  INFO   | 2021-02-22 14:18:59 | link /container/service/slapd/process.sh to /container/run/process/slapd/run
***  INFO   | 2021-02-22 14:18:59 | Environment files will be proccessed in this order :
Caution: previously defined variables will not be overriden.
/container/environment/99-default/default.yaml
/container/environment/99-default/default.startup.yaml

To see how this files are processed and environment variables values,
run this container with '--loglevel debug'
***  INFO   | 2021-02-22 14:18:59 | Running /container/run/startup/:ssl-tools...
***  INFO   | 2021-02-22 14:18:59 | Running /container/run/startup/slapd...
***  INFO   | 2021-02-22 14:18:59 | openldap user and group adjustments
***  INFO   | 2021-02-22 14:18:59 | get current openldap uid/gid info inside container
***  INFO   | 2021-02-22 14:18:59 | -------------------------------------
***  INFO   | 2021-02-22 14:18:59 | openldap GID/UID
***  INFO   | 2021-02-22 14:18:59 | -------------------------------------
***  INFO   | 2021-02-22 14:18:59 | User uid: 911
***  INFO   | 2021-02-22 14:18:59 | User gid: 911
***  INFO   | 2021-02-22 14:18:59 | uid/gid changed: false
***  INFO   | 2021-02-22 14:18:59 | -------------------------------------
***  INFO   | 2021-02-22 14:18:59 | updating file uid/gid ownership
***  INFO   | 2021-02-22 14:19:00 | Database and config directory are empty...
***  INFO   | 2021-02-22 14:19:00 | Init new ldap server...
  Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.57+dfsg-1~bpo10+1... done.
  Creating initial configuration... done.
  Creating LDAP directory... done.
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
***  INFO   | 2021-02-22 14:19:01 | Start OpenLDAP...
***  INFO   | 2021-02-22 14:19:01 | Waiting for OpenLDAP to start...
***  INFO   | 2021-02-22 14:19:01 | Add bootstrap schemas...
config file testing succeeded
***  INFO   | 2021-02-22 14:19:02 | Add image bootstrap ldif...
***  INFO   | 2021-02-22 14:19:02 | Add custom bootstrap ldif...
***  ERROR  | 2021-02-22 14:19:02 | /container/run/startup/slapd failed with status 68

***  INFO   | 2021-02-22 14:19:02 | Killing all processes...

The build file is
FROM osixia/openldap:latest

RUN mkdir -p /container/service/slapd/assets/config/bootstrap/ldif/custom
COPY ./pix_Db_final.ldif /container/service/slapd/assets/config/bootstrap/ldif/custom/pix_Db_final.ldif

The ldif file  is;
dn: ou=Group,dc=test,dc=org,dc=uk
changetype: add
objectClass: top
objectClass: organizationalUnit
ou: Group

dn: ou=People,dc=test,dc=org,dc=uk
changetype: add
objectClass: top
objectClass: organizationalUnit
ou: People

dn: cn=mainuser,ou=People,dc=test,dc=org,dc=uk
changetype: add
objectClass: posixAccount
objectClass: top
objectClass: inetOrgPerson
gidNumber: 0
uid: mainuser
homeDirectory: /home/mainuser
sn: user
givenName: mainuser
displayName: mainuser
cn: mainuser
uidNumber: 25065
userPassword: {SHA}K9ZODEiZMJE5Lpu93I4vv+wdpMk=
<EMAIL_ADDRESS>dn: cn=usergeneric,ou=People,dc=test,dc=org,dc=uk
changetype: add
objectClass: posixAccount
objectClass: top
objectClass: inetOrgPerson
gidNumber: 0
givenName: generic
sn: user
uid: usergeneric
homeDirectory: /home/usergeneric
uidNumber: 59035
userPassword: {SHA}SCmHw2etfEYO/GkT2cLUHMlkUVw=
cn: usergeneric
mail<EMAIL_ADDRESS>
dn: cn=Admins,ou=Group,dc=test,dc=org,dc=uk
changetype: add
objectClass: groupOfUniqueNames
uniqueMember: cn=mainuser,ou=People,dc=test,dc=org,dc=uk
cn: Admins

dn: cn=Users,ou=Group,dc=test,dc=org,dc=uk
objectClass: groupOfUniqueNames
uniqueMember: cn=mainuser,ou=People,dc=test,dc=org,dc=uk
uniqueMember: cn=usergeneric,ou=People,,dc=test,dc=org,dc=uk
cn: Users

Same here.
I've bootup a clean openldap with this container and added some Organization Units, Posix Group and Users using phpldapadmin.
Saved two dumps of this database. One with  a "slapcat dump" and other with a "ldapsearch dump".
Both failed to be added in a new trying of use a clean container that should restore one of these dumps.
After that I tried remove my top object class and apparently I have success to import it but a new fail where custom dir is busy, and in a new trying anhoter mesage that the file tls-enable.ldif is not readable.
openldap_1  | ***  INFO   | 2021-06-12 19:08:14 | Add image bootstrap ldif...
openldap_1  | ***  INFO   | 2021-06-12 19:08:14 | Add custom bootstrap ldif...
openldap_1  | ***  INFO   | 2021-06-12 19:08:14 | Add TLS config...
openldap_1  | ***  INFO   | 2021-06-12 19:08:14 | Disable replication config...
openldap_1  | ***  INFO   | 2021-06-12 19:08:14 | Stop OpenLDAP...
openldap_1  | ***  INFO   | 2021-06-12 19:08:14 | Configure ldap client TLS configuration...
openldap_1  | ***  INFO   | 2021-06-12 19:08:14 | Remove config files...
openldap_1  | rm: cannot remove '/container/service/slapd/assets/config/bootstrap/ldif/custom': Device or resource busy
openldap_1  | ***  ERROR  | 2021-06-12 19:08:14 | /container/run/startup/slapd failed with status 1
openldap_1  |
openldap_1  | ***  INFO   | 2021-06-12 19:08:14 | Killing all processes...
openldap_openldap_1 exited with code 1

In another trying just running "docker-compose up" again, the message changed to tls-enable.ldif not readable:
openldap_1  | ***  INFO   | 2021-06-12 19:08:46 | Start OpenLDAP...
openldap_1  | ***  INFO   | 2021-06-12 19:08:46 | Waiting for OpenLDAP to start...
openldap_1  | ***  INFO   | 2021-06-12 19:08:46 | Add TLS config...
openldap_1  | sed: can't read /container/service/slapd/assets/config/tls/tls-enable.ldif: No such file or directory
openldap_1  | ***  ERROR  | 2021-06-12 19:08:46 | /container/run/startup/slapd failed with status 2
openldap_1  |
openldap_1  | ***  INFO   | 2021-06-12 19:08:46 | Killing all processes...
openldap_openldap_1 exited with code 1

Had various errors trying to use directory or file volumes for the bootstrap ldif, including the "device or resource busy" for copy or rename. Got past this issue by mounting the bootstrap directory to "/tmp/ldif" and using LDAP_SEED_INTERNAL_LDIF_PATH. For example:
version '2'
services:
   openldap:
      ...
      environment:
         LDAP_SEED_INTERNAL_LDIF_PATH: "/tmp/ldif"
         ...
      volumes:
         - ./data/ldif:/tmp/ldif

@jrk-irt Did you try the --copy-service command?
Seed ldap database with ldif:

Since startup script modifies ldif files, you must add --copy-service argument to entrypoint if you don't want to overwrite them.

Fix docker mounted file problems:

You may have some problems with mounted files on some systems. The startup script try to make some file adjustment and fix files owner and permissions, this can result in multiple errors.

This would also apply to a read-only mounts. So try to use e.g.:
version: '2'
services:
   openldap:
      image: osixia/openldap
      command: --copy-service
      volumes:
         - ./data/ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom:ro

@jrk-irt Did you try the --copy-service command?

Yes, I'm also running with that option and it does help. However, subsequent startups fail.
However, it does work if a docker-compose down is issued before bringing it back up, so I looked in the container after initial startup. The /container/run/service/slapd/assets/config directory no longer exists. The next time the system starts using the same container, and attempts to copy the bootstrap file to /container/run/service/slapd/assets/config/bootstrap/ldif/custom, it fails.

I'm still facing the same issue there is any fix for this?


Icon and line is not showing on Education Section from Mobile

Expected Behavior

It should show like the following

Current Behavior

But it is showing like this

Possible Solution

Don't know if it's intentional or not. If not intentionally then removing the following code from education.css file will fix this issue.
  .education-section .icon {     display: none;   }   .education-section .line {     display: none;   }
Browsers Affected

[x] Chrome Mobile
[ ] Firefox
[ ] Edge
[ ] Safari 11
[ ] Safari 10
[ ] IE 11

Detailed Description

This is by design. Mobile has small screen real state. We should prioritize readability and user experience over decoration.

This is by design. Mobile has less screen real state. We should prioritize readability and user experience over decoration.

Yeah I also though so. Ok bhai then please close this issue thanks.


Fix warning (-Wexpansion-to-defined) in Xcode 9.3

Xcode 9.3 seems to run with -Wexpansion-to-defined by default, which creates a warning in both the Mixpanel target and (due to this happening in headers) in my app target.
I believe this should fix is, but probably if someone more experience in macro expansion trickery could weight in.
Fix is adapted from https://stackoverflow.com/a/44231026

@anderscarling Have you received any feedback about this PR?  I'm encountering the same issue - have you been using this patch successfully?

@wileykestner I've heard nothing - and I've not really used the patch in production builds or anything :/

@anderscarling Thanks for the update - I think we may give it a try in our staging environment.

Hope it works for you! It feels like simple enough a change not to mess anything up - but as I've no real knowledge in the intricate behaviors of C macros I don't want to make any promises. :)

I was just about to open a PR with a fix for this.  I think it can be simplified down to this:
#if defined(MIXPANEL_TVOS) || defined(MIXPANEL_WATCHOS) || defined(MIXPANEL_MACOS)
    #define MIXPANEL_NO_REACHABILITY_SUPPORT 1
    #define MIXPANEL_NO_AUTOMATIC_EVENTS_SUPPORT 1
    #define MIXPANEL_NO_NOTIFICATION_AB_TEST_SUPPORT 1
    #define MIXPANEL_NO_CONNECT_INTEGRATION_SUPPORT 1
#elseif defined(MIXPANEL_WATCHOS) || defined(MIXPANEL_MACOS)
    #define MIXPANEL_NO_UIAPPLICATION_ACCESS 1
#elseif defined(MIXPANEL_WATCHOS)
    #define MIXPANEL_FLUSH_IMMEDIATELY 1
#endif

You don't need to actually define them as zero since not defining them at all has the same effect

And
#if defined(MIXPANEL_TVOS) || defined(MIXPANEL_WATCHOS) || defined(MIXPANEL_MACOS)
    #define MIXPANEL_NO_NETWORK_ACTIVITY_INDICATOR 1
#endif

Now that Xcode 9.3 is released it seems that this should get released soon so we can rid our projects of these warnings

What is the status on getting this released?

@zihejia could you or other maintainers make a release with this change, please? Xcode 9.3 is now live

I pushed new commits where i rebased on latest master, and removed the #else-cases that #defined zero values (as per suggestion from @kdawgwilk).
I didn't pull in the #elseifs from @kdawgwilk though, as I think they would actually block MIXPANEL_NO_UIAPPLICATION_ACCESS and MIXPANEL_FLUSH_IMMEDIATELY from ever being defined.
Travis CI seems to fail for unrelated reason.

@garnett yes, we will be working on this.


CW-169: Creating a user with the ".js" suffix extension causes errors in the loading of the profile page's CSS.

Discussed in https://github.com/codewars/codewars.com/discussions/3091

Originally posted by anabergerr October 26, 2023
When creating my user using .js at the end, I noticed that the CSS of the page doesn't load. This only happens when I use .js.
Here's a screenshot of the page and the link.
https://www.codewars.com/users/ana.js

This has been escalated to engineering (CW-169)


Add :type: in sphinx docs, even if we don't have anything to say?

:type: is required as part of the sphinx doc style:

A pair of :param: and :type: directive options must be used for each parameter we wish to document.

Encountered during #1453

Wanted to raise this as its own issue -- Does this seem reasonable? Or is there a reason just to do :param:?

argh: If we add :type parameter:, without anything else, then sphinx stops showing type information, and I really don't think we want to spend more time trying to keep things in sync.


Does not launch from ntfs-3g mounted partition

podman/docker on Ubuntu 22.04. Does look like perms issue:
bash-5.1$ touch /opt/resolve/logs/test.txt
touch: setting times of '/opt/resolve/logs/test.txt': Permission denied

Permissions seem fine:
...
drwxrwxr-x 1 resolve gary  152 Feb  4 15:06  logs
...

...so, I suspect it could be that the filesystem where my resolve folder is on the host could be the issue: ntfs-3g.
EDIT:
I moved everything to ~/resolve/, which is an ext4 filesystem, (after deleting what was in resolve/mounts/) and also tried Docker -- with success:
$ RESOLVE_RC_PATH=./resolve.rc ./resolve.sh
Running:   ./resolve.rc
./env-set.sh: line 11: ./resolve.rc: No such file or directory
non-network local connections being added to access control list
------------------------------------------------------------------------------
No "container-machine-id" file found for this container.
Creating new one derived from host machine-id (cd12b4c5318d4f3c87a8bdffc2deceda)...
This container's machine-id file can now be found at /home/gary/resolve/mounts/container-machine-id and may be replaced if needed.
The container's /etc/machine-id  : 63f5f8237a527730a494e8549b5d244d
The network driver setting is          : --network=none
Bind-mounted directories of interest   :
  CONTAINER (CentOS 8)                  -> HOST (Ubuntu)
  ----------------------------------------------------------------------------
  /home/resolve                         -> /home/gary/resolve/mounts/resolve-home
  /opt/resolve/logs                     -> /home/gary/resolve/mounts/logs
  /opt/resolve/configs                  -> /home/gary/resolve/mounts/configs
  /opt/resolve/easyDCP                  -> /home/gary/resolve/mounts/easyDCP
  /opt/resolve/.license                 -> /home/gary/resolve/mounts/license
  /opt/resolve/'Resolve Disk Database'  -> /home/gary/resolve/mounts/database
  /var/BlackmagicDesign/DaVinci Resolve -> /home/gary/resolve/mounts/BlackmagicDesign
  /opt/resolve/Media                    -> /home/gary/resolve/mounts/Media
ActCCMessage Already in Table: Code= c005, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c006, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c007, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= 2282, Mode=  0, Level=  0, CmdKey= 8, Option= 0
PnlMsgActionStringAdapter Already in Table: Code= 615e, Mode=  0, Level=  0, CmdKey= -1, Option= 0
log4cxx: No appender could be found for logger (BtCommon).
log4cxx: Please initialize the log4cxx system properly.
QSocketNotifier: Can only be used with threads started with QThread
<IP_ADDRESS>6 Linux/Clang x86_64
Main thread starts: BD7A16C0
0x7ff5bd7a16c0 | Undefined            | INFO  | 2023-02-04 15:40:46,426 | --------------------------------------------------------------------------------
0x7ff5bd7a16c0 | Undefined            | INFO  | 2023-02-04 15:40:46,426 | Loaded log config from /home/resolve/.local/share/DaVinciResolve/configs/log-conf.xml
0x7ff5bd7a16c0 | Undefined            | INFO  | 2023-02-04 15:40:46,426 | --------------------------------------------------------------------------------
FusionScript Server [471] Started
Host 'Fusion' [1] Added

Podman also works. This project is impressive.
EDIT2:
I switched the filesystem used for that partition from ntfs-3g (or auto, in Ubuntu's Disk manager) to ntfs3 and Resolve launches as expected.
$ uname -r
5.15.0-60-generic

Hoping that the new ntfs3 driver proves reliable as I still need to dual-boot Win10 occasionally.

Huh-- haven't tried it with ntfs, only ext4.   I wasn't even aware of any differnce  etween ntfs-3g vs ntfs3 and came up with this:

What’s the difference between original kernel NTFS support, NTFS-3G and NTFS3 by Paragon?
Original Kernel level support for NTFS was contributed into a Linux Kernel back in 2001 and is very limited in functionality, especially write-support. Till now, NTFS-3G was the de facto way to enable NTFS in Linux. However, NTFS-3G is a filesystem in userspace (FUSE). The main drawback of this implementation is performance. On the contrary, NTFS3 is a kernel NTFS implementation, which offers much faster performance than FUSE based implementations. | Original Kernel level support for NTFS was contributed into a Linux Kernel back in 2001 and is very limited in functionality, especially write-support. Till now, NTFS-3G was the de facto way to enable NTFS in Linux. However, NTFS-3G is a filesystem in userspace (FUSE). The main drawback of this implementation is performance. On the contrary, NTFS3 is a kernel NTFS implementation, which offers much faster performance than FUSE based implementations.
Original Kernel level support for NTFS was contributed into a Linux Kernel back in 2001 and is very limited in functionality, especially write-support. Till now, NTFS-3G was the de facto way to enable NTFS in Linux. However, NTFS-3G is a filesystem in userspace (FUSE). The main drawback of this implementation is performance. On the contrary, NTFS3 is a kernel NTFS implementation, which offers much faster performance than FUSE based implementations.

Looks from this that NTFS-3G wouldn't really be expected to perform well as opposed to NFTS3 because of the FUSE implementation.
Side-question re this:

log4cxx: No appender could be found for logger (BtCommon).
log4cxx: Please initialize the log4cxx system properly.

Do you happen to know if the logger is working as shown here:

/opt/resolve/logs                     -> /home/gary/resolve/mounts/logs

That is, are you able to see the rollinglog.txt files there?  I don't get that warning.
Thanks for the kind words re the project.  If you have any thoughts or contributions, please let us know!

Also looking for anyone to try RESOLVE_BUILD_X264_ENCODER_PLUGIN=1 ...  I've had great success with this software CPU-based encoder, but giving it a little more time before building it becomes the default.

/opt/resolve/logs -> /home/gary/resolve/mounts/logs

That is, are you able to see the rollinglog.txt files there? I don't get that warning.

I did the install on another [older laptop] and observed 64 lines in that text file. Didn't get past activation without the dongle. I'll check the workstation install when I get back to the office tomorrow.

Also looking for anyone to try RESOLVE_BUILD_X264_ENCODER_PLUGIN=1 ... I've had great success with this software CPU-based encoder, but giving it a little more time before building it becomes the default.

No errors observed when rebuilding the container with that flag set. When restarting resolve (``) the rollinglog.txt file increased to 122 lines...
rollinglog.txt
This is on an HP ZBook 15 G5 with Nvidia P2000 -- so maybe just an install tester for Resolve. (I did not bother to fetch the dongle for this.)

Well, this is a little embarrassing. I simplified the mount options for the ntfs partition, like so:
/dev/disk/by-uuid/... /mnt/production auto defaults 0 0
and Resolve starts. In addition the "log4cxx" messages are no longer present.

Oh great!  Thanks for reporting back..


Fix mod.rs identification + issue with path attribute

@declantsien would you be able to check out this branch & see if it handles the crate you were having issues with? I've added tests/test machinery matching the cases you provided (thanks for those!), fixed up the issue w/ non-path attributes & changed up the mod.rs detection logic.

Tested on rust crate syn.
Two issues,

the path needs to be canonicalized
failed to handle toplevel module [path]

I thought I already fixed these in #7
/home/declan/src/syn/benches/../tests/macros/../debug/gen.rs
/home/declan/src/syn/benches/../tests/macros/mod.rs
/home/declan/src/syn/benches/../tests/repo/mod.rs
/home/declan/src/syn/benches/../tests/repo/progress.rs
/home/declan/src/syn/benches/../tests/macros/../debug/mod.rs
/home/declan/src/syn/benches/file.rs
/home/declan/src/syn/benches/../tests/macros/../debug/mod.rs
/home/declan/src/syn/benches/../tests/macros/../debug/gen.rs
/home/declan/src/syn/benches/../tests/repo/progress.rs
/home/declan/src/syn/benches/../tests/repo/mod.rs
/home/declan/src/syn/benches/rust.rs
/home/declan/src/syn/benches/../tests/macros/mod.rs
/home/declan/src/syn/build.rs
/home/declan/src/syn/dev/main.rs
/home/declan/src/syn/dev/parse.rs
/home/declan/src/syn/examples/dump-syntax/src/main.rs
/home/declan/src/syn/examples/heapsize/example/src/main.rs
/home/declan/src/syn/examples/heapsize/heapsize/src/lib.rs
/home/declan/src/syn/examples/heapsize/heapsize_derive/src/lib.rs
/home/declan/src/syn/examples/lazy-static/example/src/main.rs
/home/declan/src/syn/examples/lazy-static/lazy-static/src/lib.rs
/home/declan/src/syn/examples/trace-var/example/src/main.rs
/home/declan/src/syn/examples/trace-var/trace-var/src/lib.rs
Error: ModuleNotFound((Module { parts: ["discouraged"], path: Some("discouraged.rs") }, "/home/declan/src/syn/src/parse.rs"))

Thanks for the additional test cases - really very appreciated!

I thought I already fixed these in https://github.com/dcchut/cargo-files/pull/7

yeah - looking at #7 made me realize that the existing Module structure wasn't fit for purpose - for example, the following test case couldn't be represented properly using the old structure:
#[path = "folder"]
mod a {
  #[path = "can.rs"]
  mod b; // look for folder/can.rs relative to the source file's directory
}

After writing down a Module structure that could capture situations like this, everything else pretty much flowed through:

The special handling for #[path] attributes on non-inline mods
The handling of #[path] attributes on inline mods
The resolution of inline/nested mods
The difference in resolution between mod.rs-like files and non-mod.rs-like files.


Explicit control of compiled function scope

Currently there is no public API to control the scope of a compiled function; functions compiled from C code always exist in the global scope. Explicit scope control would be useful e.g. to:

Implement a scope for CommonJS modules without resorting to a function wrapper as is currently done.
NetSurf identified: https://html.spec.whatwg.org/#getting-the-current-value-of-the-event-handler

The internal representation scopes is based on internal objects with internal properties. It'd be nice to provide the scope support without exposing these internal structures as they might need to change moving forward. On the other hand, just allowing (advanced) user code to deal with the scope objects an their internal properties directly would minimize the API impact.

Maybe I'm just not using my imagination here, but I don't see how the concept of (Ecmascript) scope makes sense in a C context.  Do you mean just running a function with a different global object, or something else?

In some situations one needs to be able to write functions which have a scope, e.g. for CommonJS require() for which the current workaround is to create a temporary function wrapper. It'd be nicer if that wrapper wasn't necessary. Another example is that browser binding.


feat: 支持透视表明细表单元格虚线&分割线虚线(#2400)

👀 PR includes

✨ Feature

[x] New feature

🎨 Enhance

[ ] Code style optimization
[ ] Refactoring
[ ] Change the UI
[ ] Improve the performance
[ ] Type optimization

🐛 Bugfix

[ ] Solve the issue and close #2400

🔧 Chore

[ ] Test case
[x] Docs / demos update
[ ] CI / workflow
[ ] Release version
[ ] Other ()

📝 Description

支持透视表明细表单元格的虚线，以及分割线的虚线
🖼 Screenshot

Before
After

❌
✅

🔗 Related issue link

https://github.com/antvis/S2/issues/2400

🔍 Self-Check before the merge

[ ] Add or update relevant docs.
[ ] Add or update relevant demos.
[ ] Add or update test case.
[ ] Add or update relevant TypeScript definitions.

:tada: This PR is included in version @antv/s2-v1.52.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Use HttpClientFactory for calling external HTTP services

https://github.com/zhukovdm/smartwalk/blob/1f09d789e668311639e1cd780e98244c161ff991/app/backend/SmartWalk.Infrastructure/RoutingEngine/Osrm/Fetchers/OsrmFetcherBase.cs#L28
HttpClient has a connection pool and is IDisposable (quite a surprise).

https://www.stevejgordon.co.uk/introduction-to-httpclientfactory-aspnetcore

The current implementation is, in fact, really bad. It allocates new HttpClient for every request. Perhaps, handler itself shall be stateful and Transient.


Open Source Project name
VineJS
What is your project?
VineJS is a highly performant and type-safe validation library for Node.js.
Version
1.0
Date
June 16th, 2023
Description of breaking changes
Nil
GitHub Repo
https://github.com/vinejs/vine
Website
https://vinejs.dev/
Link to changelog
https://github.com/vinejs/vine/releases
Social media
https://twitter.com/AmanVirk1/status/1669575264328732675
Anything else to add?
No response

Open Source Project name
VineJS
What is your project?
VineJS is a highly performant and type-safe validation library for Node.js.
Version
1.0
Date
June 16th, 2023
Description of breaking changes
Nil
GitHub Repo
https://github.com/vinejs/vine
Website
https://vinejs.dev/
Link to changelog
https://github.com/vinejs/vine/releases
Social media
https://twitter.com/AmanVirk1/status/1669575264328732675
Anything else to add?
No response

https://github.com/github/release-radar/issues/175#issue-1761652992

Thanks so much for submitting! We loved your project and it was featured in our Spring Release Radar edition which is a round up of projects submitted between March and July. We hope you enjoyed some promo and we wish you all the best with the project.

@mishmanners
Thanks a ton for considering VineJS :)


Add arg of GOPROXY in Dockerfile

Signed-off-by: Jiangnan Jia<EMAIL_ADDRESS>
Describe what this PR does / why we need it
Add arg of GOPROXY in Dockerfile, so we can change the goproxy when build image.

ddd


langgraph: fix add_node input schema error

fix: #1331
I used inspect.signature to read the name of the first parameters and determine whether this variable has a type_hint.
And used StopIteration to prevent situations where there are no parameters.
Although in this situation, executing invoke will still result in an error.
If want to catch errors before running the graph, maybe you can check that the number of parameters is not zero?

Regarding first_parameter_name = next(iter(inspect.signature(action).parameters.keys()))
Also can use list() and then check the length before accessing [0].
I'm not sure which one is better.

Thanks, do you want to add a test case?

I plan to add tests using this logic. Do you have any better suggestions?
from typing import TypedDict

from langchain_core.runnables import RunnableConfig
from langgraph.graph import StateGraph

# from libs.langgraph.langgraph.graph.state import StateGraph

class InputState(TypedDict):
    question: str

class OutputState(TypedDict):
    input_state: dict

def foo(state: InputState) -> OutputState:
    return {"input_state": state}

def bar(state, config: RunnableConfig) -> OutputState:
    # The expected `state` result is `InputState`, but received `RunnableConfig`.
    return {"input_state": state}

def baz(state, config) -> OutputState:
    # The expected `state` result is `InputState`, but received `OutputState`.
    return {"input_state": state}

graph = StateGraph(input=InputState, output=OutputState)
graph.add_node(foo)
graph.add_node(bar)
graph.add_node(baz)

graph.set_entry_point(foo.__name__)
graph.add_edge(foo.__name__, bar.__name__)
graph.add_edge(bar.__name__, baz.__name__)
graph.set_finish_point(baz.__name__)

graph = graph.compile()

for v in graph.stream({"question": "foo"}, stream_mode="values"):
    print(v)
    if "input_state" in v:
        assert v["input_state"] == {"question": "foo"}

Thank you @gbaian10  -- going to merge!


Potential fix for potential race condition caused in doClose

This PR contains a potential fix for race conditions caused by separate threads closing a connection while it's still in use. With this change, in our interposition of network close functions, instead of zero'ing out the net object, we only set the active bit to 0. We zero it out on open to reset the state for re-use. This allows for properties of the net object to be consumed safely until the net object is re-used.
Note: If we provide this as a test candidate to fix issues experienced with a v1.1.0 build - we should tag/release it right from this branch which was based on v1.1.0.
Note: Following the change, we manually checked code to see if the net_info_t.active field is respected throughout the code base. We determined that the first commit is probably all we need on this branch. The second commit adds an additional check for the active flag when performing metric counter updates which isn't really necessary but probably doesn't hurt.
This PR is pending feedback from the reporter after we provided them a test candidate.

@abetones This is a good candidate for both the known issues list and change log. This issue exists in all versions of AppScope before 1.2.2. The issue is resolved in 1.2.2.
When might a user see this issue?  If a socket descriptor is closed while data is actively (simultaneously) being sent or received on the same socket descriptor.  This can create a race condition where a socket descriptor is closed before data is sent or received on the same file descriptor.  When this occurs it's possible for appscope to crash the host application.  I hate to say it this way, but most users will have no idea if their processes might do this or not.  We've seen this both in go (during an influxdb stress test that used networking) and in the cribl application running in the cloud.  The common thing in both of these environments: both feature are event-driven architectures.


Fixed Bug where terminal not closing before moving on.

This should fix the following:
https://github.com/manifoldco/promptui/issues/190
https://github.com/manifoldco/promptui/issues/180
This is not a you issue. The library readline has some problems with how they handle their close functionality.
 (Seen in operations.go, std.go, readline.go)
When you call rl.close() it initiates a close on each of those items, but not all of them close in time before the return. (for whatever reason)
Thus causing missed prints to console because the console output is still not released. People have been doing a Println as an alternative, but this would fix it without needing that, and since it's at close and we're dealing with user input it won't cause excessive operation time.

 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.

I was wrong.


Please change redis mode to sentinel

Currently this chart uses redis in cluster mode (1 master and 2 replicas ). Unfortunately, since redis run as a stateful set , if we lose the node where the master is running , we will need manual intervention to recover the master because k8s will not restart the statefulset automatically if it can not connect to the host that was running it. This way netbox will be unavailable until that manual intervention.
Netbox supports redis sentinel since 2.7.5, so it would be nice to change the working mode of this chart to redis sentinel, so the netbox service would be capable of recover itself automatically.
Thanks!

The problem I was facing is that the redis chart used here is old and still has lots of bugs concerning Sentinel.


Evaluate file icons contributions

vscode-icons is a very popular extension. It adds icons to file explorer. Unfortunately it has to use a rather hackish way to implement that. This issue evaluates whether and how we would enable file icon contributions through a regular extension mechanism.
Built-in icons vs icon set contributions
We see different approaches of increasing flexibility:

We design standard file icons for the light and dark themes and add them as to our default icon set. We provide a settings UI to turn on/off icons. No mechanism/API for replacing the icons.

consistent UI

not very innovation friendly

we cannot provide icons for all file types out there

Contribution point for providing a file icon set. We provide a settings UI to configure which file icons set to show. Includes a picker or code completions to browse icon sets.

innovation friendly

cooperate with vscode-icons author Roberto Huertas to migrate to the new contribution point.

Yeoman generator that let you convert existing file icon sets like Seti to a VSCode icon set
Extend an icon set by adding icons for new file suffices.

Conclusion: We would head for level 2 at first. Open question is whether we should provide a default icon set or not. Maybe a VS icon set? We could also start with pointing the user into the market place to install icons set similar to how we now point to the marketplace for themes from the picker.
Workbench theme vs. separate file icons packs.

have file icons as part of workbench theming, like sublime does it

provides a full workbench theme experience, from colors, animations to icon and tab styles.

user might not like that icons are coupled with other theming that might be unwanted

authoring a full theme is non-trivial and time intensive

implementing workbench theming is a lot of work for which we are quite far away from. There are also not that many requests for it.

have file icons contributions separate.

limited but file icons can still be part of a future workbench theming story

more flexible

Conclusion: We want to look at file icon contributions. This is what is most requested. When done thoughtfully will not prevent workbench themes in the future but just be a building block.
2 bit (glyph) vs. Multi color icons

limiting

only one set of icons needed to for both glyph both light and dark theme. Each icon can still have a individual foreground color for the light and dark theme.

glyph icons would play nice with the rest of our UI (see status line)

PNG vs. SVG vs Fonts
While PNG is likely the lowest barrier for users, we need to have a solution for scaling icons.
Fonts are attractive from a performance and scaling standpoint, but not easy to handle by users.
Note, the Atom Seti extension uses fonts and has built some tooling so that fonts can be extended by new icons.

We've added a new contribution point 'iconThemes'. See #10804 for more information


Missing license_version breaks search views

Some images don't have a license_version defined. These are problematic, because we need to know the exact license to link to for attribution purposes. The API always expects the license version to be present and views without it will crash when an incomplete entry is in the results.
We should address this in the data layer, either by filling in the missing data or by culling entries where the full license information is unknown, but in the meantime the API needs to handle the missing data gracefully.
FYI @mathemancer

Related: https://github.com/creativecommons/cccatalog-frontend/issues/299 (still planning to get the correct data from Science Museum).


Integrate other package managers

I think other package managers such as pacman, yay and dnf should be integrated in the installer, to make the install process smooth on non apt linux distros
I've written a basic solution for installing on diffrent OSes with diffrent package managers, you can check it here, if you like it I can try to implement my custom installer in yours

hello. I have already a solution that I will merge to master soon
https://github.com/astavares/bashflix/blob/dev/install.sh

Cool! Keep up with the good work then!


Current status of the project

Hello all,
I currently not happy with the status of the code of this project. It grew too much since my first post. Lots of new features has been added and the add-on, that I particularly don't use, made everything very hard to maintain.
The current code is not clear and hard to change!
I am currently rewriting the whole thing. Yes, from scratch. :)
This means I will not be making any change to the current code, but instead a new code will be pushed very soon.
Thank you for your understanding.

with this config:
sleep_for: 0
verbosity: debug
listen_only: true
tickle_rtl_tcp: false
device_id: 0bda:2838
ha_autodiscovery: true
ha_autodiscovery_topic: homeassistant
base_topic: rtlamr
tls_enabled: true
rtltcp: "-s 2048000"
rtlamr: "-unique=true"
I got this in the Log:
[2023-04-18 16:48:14] Using "/data/options.json" config file
[2023-04-18 16:48:14] Fetching default MQTT configuration from http://supervisor/services/mqtt
[2023-04-18 16:48:14] Starting in LISTEN ONLY Mode...
[2023-04-18 16:48:14] Using "/data/options.json" config file
[2023-04-18 16:48:14] Fetching default MQTT configuration from http://supervisor/services/mqtt
[2023-04-18 16:48:14] Configured MQTT sender:
[2023-04-18 16:48:14]  > hostname => core-mosquitto
[2023-04-18 16:48:14]  > port => 1883
[2023-04-18 16:48:14]  > username => addons
[2023-04-18 16:48:14]  > client_id => rtlamr2mqtt
[2023-04-18 16:48:14]  > base_topic => rtlamr
[2023-04-18 16:48:14]  > availability_topic => rtlamr/status
[2023-04-18 16:48:14]  > tls => None
[2023-04-18 16:48:14] Starting rtl_tcp with /usr/bin/rtl_tcp
[2023-04-18 16:48:16] Starting rtlamr with ['/usr/bin/rtlamr', '-msgtype=all', '-format=json']
[2023-04-18 16:48:16] You should see all utility meters after this line:
[2023-04-18 16:48:16] 16:48:16.166905 decode.go:45: CenterFreq: 912600155
[2023-04-18 16:48:16] 16:48:16.167297 decode.go:46: SampleRate: 2359296
[2023-04-18 16:48:16] 16:48:16.167314 decode.go:47: DataRate: 32768
[2023-04-18 16:48:16] 16:48:16.167325 decode.go:48: ChipLength: 72
[2023-04-18 16:48:16] 16:48:16.167335 decode.go:49: PreambleSymbols: 32
[2023-04-18 16:48:16] 16:48:16.167345 decode.go:50: PreambleLength: 4608
[2023-04-18 16:48:16] 16:48:16.167354 decode.go:51: PacketSymbols: 736
[2023-04-18 16:48:16] 16:48:16.167364 decode.go:52: PacketLength: 105984
[2023-04-18 16:48:16] 16:48:16.167381 decode.go:59: Protocols: r900,scm,scm+,idm
[2023-04-18 16:48:16] 16:48:16.167409 decode.go:60: Preambles:<PHONE_NUMBER>01001100000,0001011010100011,01010101010101010001011010100011,00000000000000001110010101100100
[2023-04-18 16:48:16] 16:48:16.167434 main.go:124: GainCount: 29
[2023-04-18 16:56:14] 16:56:14.895987 main.go:343: Receiver context cancelled.
[2023-04-18 16:56:14] 16:56:14.896634 main.go:320: read tcp <IP_ADDRESS>:41334-><IP_ADDRESS>:1234: i/o timeout
[2023-04-18 16:56:14] io.ReadFull
[2023-04-18 16:56:14] main.(*Receiver).Run.func2
[2023-04-18 16:56:14] 	/go/pkg/mod/github.com/bemasher/rtlamr@v0.9.3/main.go:181
[2023-04-18 16:56:14] runtime.goexit
[2023-04-18 16:56:14] 	/usr/local/go/src/runtime/asm_arm64.s:1172
Looks like it shutdown, what I missing?

Please, don´t hijack this with a question.
Thanks.

Looking forward to an update. Very interested in running this standalone alongside home assistant, not inside of it.

A lot of things has happened in my life and the development is very slow at the moment.
A major rewrite is necessary as the project grew way beyond my initial idea.
Lots of features has been added that I don't have/use and it makes hard for me to develop or keep it.
Also, I am not an ADD-ON user, what it makes a lot more difficult to maintain something I don't use on my current setup.
But I am still trying to keep the project alive. Thank you for all your feedback and support :)


Implement an option in SART to set the threshold of DivideOrZeroOutImageFilter

See this thread for details : https://public.kitware.com/pipermail/rtk-users/2018-February/010575.html
Chao Wu tested this solution and it worked for his data

Fixed by #333


When network is unavailable wallet fails with incorrect error message

Problem
When our betanet was in the process of being reset, the wallet says the account name available but it fails to create an account for it. I have tried with multiple account names, including randomly generated account names. The error message that it gives is:
Username is taken. Try something else.

Expected Behavior
When node is unresponsive the wallet should indicate that and prohibit users from attempting actions on it, instead of giving misinforming error messages.
Steps to reproduce

Reset the network.
Execute env NODE_ENV=betanet near login with near-shell of version 0.24.1;
In the opened wallet enter any available name and try creating the account.

See the recording: https://drive.google.com/open?id=1mRGXDTWXbY9JRzKOJhrTLoXfQly_b7DP

This is an important issue, because transaction may go through anyway, but user won't actually get access to this account.


AVX feature checking in cpu_features.cmake may be faulty

See terminal log below, blank lines and comments added for better readability.
root@dev-compile-1 /root/tmp # cat tmp.cpp
    // code snippet from https://github.com/ClibMouse/ClickHouse/blob/master/cmake/cpu_features.cmake#L111-L118
    #include <immintrin.h>
    int main() {
        auto a = _mm256_insert_epi8(__m256i(), 0, 0);
        (void)a;
        return 0;
    }
root@dev-compile-1 /root/tmp # g++ tmp.cpp -mavx -std=c++11
root@dev-compile-1 /root/tmp # ./a.out
Illegal instruction (core dumped)

root@dev-compile-1 /root/tmp # docker run -it --rm -v $PWD:$PWD -w $PWD clickhouse/binary-builder:latest bash

# Here we entered docker container
root@0d3601c669a9:/root/tmp# rm -rf build && mkdir build && cd build
root@0d3601c669a9:/root/tmp# export CC=`which clang-14`; export CXX=`which clang++-14`
root@0d3601c669a9:/root/tmp/build# cat ../CMakeLists.txt

    cmake_minimum_required(VERSION 3.15)
    project(AVX_Compile_Test LANGUAGES CXX)
    include (CheckCXXSourceCompiles)

    # code snippet from https://github.com/ClibMouse/ClickHouse/blob/master/cmake/cpu_features.cmake#L109-L118
    set (TEST_FLAG "-mavx")
    set (CMAKE_REQUIRED_FLAGS "${TEST_FLAG} -O0")
    check_cxx_source_compiles("
        #include <immintrin.h>
        int main() {
            auto a = _mm256_insert_epi8(__m256i(), 0, 0);
            (void)a;
            return 0;
        }
    " HAVE_AVX)

    if (HAVE_AVX)
        message(STATUS "should not see me on CPUs not supporting AVX instructions, HAVE_AVX=" ${HAVE_AVX})
    endif ()

root@0d3601c669a9:/root/tmp/build# cmake ..
-- The C compiler identification is Clang 14.0.6
-- The CXX compiler identification is Clang 14.0.6
-- The ASM compiler identification is Clang
-- Found assembler: /usr/bin/clang-14
-- Check for working C compiler: /usr/bin/clang-14
-- Check for working C compiler: /usr/bin/clang-14 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++-14
-- Check for working CXX compiler: /usr/bin/clang++-14 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_AVX
-- Performing Test HAVE_AVX - Success
-- should not see me on CPUs not supporting AVX instructions, HAVE_AVX=1
-- Configuring done
-- Generating done
-- Build files have been written to: /root/tmp/build

moved to https://github.com/ClickHouse/ClickHouse/issues/40307


Add the avatar image to the vcard

maybe something like this will work:
// Add image
builder.AppendLine("PHOTO;ENCODING=BASE64;TYPE=JPEG:");
builder.AppendLine(Convert.ToBase64String(Image));
builder.AppendLine(string.Empty);

if you are using C#.. There is an awesome nuget package called VCard which helps you to create VCards easily..
You can just give the image url and it will give you the proper VCard with the image in it..
Here is the link for the package..
Link : https://www.nuget.org/packages/VCard/
Or you can search for Card in VS manage nuget packages tab and install the package in the 3rd result..

Hi @Satvik-web,
I saw your package and got the idea from there. Unfortunately, here we are using plain JavaScript to generate the vcard.
So, this might not work in our case.

Thank a lot @kirkone for checking out my package..
I actually thought you were using C#.. I wish GitHub has an option to specify the language..
Anyway, nice to see you..

I wish GitHub has an option to specify the language.

at least there is this one the start page:
See at the bottom right.


await controller.analyzeImage(image.path) always returns false

I had the same problem: LOADING a QR code image from an gallery, I couldn't recognize it, the analyzeImage method always returned false
on "Redmi 5A mobile" , my env
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.3, on macOS 11.6.3 20G415 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc5)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] Connected device (4 available)
[✓] HTTP Host Availability

code  from https://github.com/imboy-pub/imboy-flutter/blob/dev/lib/page/scanner/scanner_view.dart

  MobileScannerController controller = MobileScannerController(
    // torchEnabled: false, // 是否 打开灯
    formats: [BarcodeFormat.all],
    // formats: [BarcodeFormat.qrCode],
    // facing: CameraFacing.front,
  );

---

                      IconButton(
                        color: Colors.white,
                        icon: const Icon(Icons.image),
                        iconSize: 32.0,
                        onPressed: () async {
                          isStarted = true;
                          final ImagePicker _picker = ImagePicker();
                          // Pick an image
                          final XFile? image = await _picker.pickImage(
                            source: ImageSource.gallery,
                          );
                          if (image == null) {
                            return;
                          }
                          bool res = await controller.analyzeImage(image.path);
                          debugPrint(">>> on barcode $res ${image.path}");
                          if (res) {
                            if (!mounted) return;
                            ScaffoldMessenger.of(context).showSnackBar(
                              const SnackBar(
                                content: Text('Barcode found!'),
                                backgroundColor: Colors.green,
                              ),
                            );
                          } else {
                            if (!mounted) return;
                            ScaffoldMessenger.of(context).showSnackBar(
                              const SnackBar(
                                content: Text('No barcode found!'),
                                backgroundColor: Colors.red,
                              ),
                            );
                          }
                        },
                      ),

Facing the same issue, any solution?

https://github.com/imboy-pub/imboy-flutter/blob/dev/lib/page/scanner/scanner_view.dart

I think this is a compatibility problem, I have no good solution, I ignore this problem, do other functions to go

I'm still having this problem.


Post drt antenna

Depends on #563 for OR update

@donn Thoughts on:

Having the step in the classical flow
The additional variable DRT_ANTENNA_MARGIN


RandomCrop?

Hi,
I tried ffcv with VGG16 on CIFAR10 (I used the example from the library) but I got an important drop of accuracy (-20%).
The main difference, I think, is that before I was using torchvision.transforms.RandomCrop(32, padding=4) but this line doesn't seem to work with ffcv, and I didn't find an equivalent in the ffcv transforms.
Is there a way to fix this issue (ideally using an ffcv optimized version of RandomCrop, but if not possible then being able to use the torchvision version would be nice)?
Here is my previous code, without ffcv (accuracy after 10 epochs: 89%):
def load_data(data_dir, batch_size, num_workers, **kwargs):

    # load training data
    transform_train = transforms.Compose([
        transforms.RandomCrop(32, padding=4),
        transforms.RandomHorizontalFlip(),
        transforms.ToTensor(),
        transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)),
    ])
    transform_test = transforms.Compose([
        transforms.ToTensor(),
        transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)),
    ])
    trainset = datasets.CIFAR10(root=data_dir, train=True, download=True,
                                            transform=transform_train)
    train_loader = torch.utils.data.DataLoader(trainset, batch_size=batch_size, shuffle=True, num_workers=num_workers)
    testset = datasets.CIFAR10(root=data_dir, train=False, download=True, transform=transform_test)
    val_loader = torch.utils.data.DataLoader(testset, batch_size=batch_size, shuffle=False, num_workers=num_workers)

    return train_loader, val_loader

And here is the new code I use with ffcv (accuracy after 10 epochs: 71%).
Note that I tried various combinations of transforms, I tried without quantization, and I also tried to reproduce the combination in the example, but I never got a better accuracy than 71%:
def load_data(data_dir, batch_size, num_workers, **kwargs):

    # 1. create dataset
    my_datasets = {
        'train': datasets.CIFAR10(data_dir, train=True, download=True),
        'test': datasets.CIFAR10(data_dir, train=False, download=True)
        }

    cache_dir = 'cache/'
    if not os.path.exists(cache_dir):
        os.makedirs(cache_dir)
    paths = {
        'train': os.path.join(cache_dir, 'cifar10_train.beton'),
        'test': os.path.join(cache_dir, 'cifar10_test.beton')
        }

    for (name, ds) in my_datasets.items():
        writer = DatasetWriter(paths[name], {
            'image': RGBImageField(),
            'label': IntField()
        })
        writer.from_indexed_dataset(ds)

    # 2. create transformations pipeline
    import numpy as np

    CIFAR_MEAN = np.array([0.4914, 0.4822, 0.4465]) * 255
    CIFAR_STD = np.array([0.2023, 0.1994, 0.2010]) * 255

    loaders = {}
    for name in ['train', 'test']:
        label_pipeline: List[Operation] = [IntDecoder(), ToTensor(), ToDevice('cuda:0'), Squeeze()]
        image_pipeline: List[Operation] = [SimpleRGBImageDecoder()]
        if name == 'train':
            image_pipeline.extend([
                # transforms.RandomCrop(32, padding=4), # <= THIS GAVE AN ERROR
                RandomHorizontalFlip(),
                RandomTranslate(padding=2),
            ])

        image_pipeline.extend([
            ToTensor(),
            ToDevice('cuda:0', non_blocking=True),
            ToTorchImage(),
            NormalizeImage(CIFAR_MEAN, CIFAR_STD, np.float16)
        ])
        ordering = OrderOption.RANDOM if name == 'train' else OrderOption.SEQUENTIAL
        loaders[name] = Loader(paths[name], batch_size=batch_size, num_workers=num_workers,
                               order=ordering, drop_last=(name == 'train'),
                               pipelines={'image': image_pipeline, 'label': label_pipeline})

    return loaders['train'], loaders['test']

Hello, you should take a look at our ImageNet example. it has an example of random cropping. Feel free to re-open if you have a specific issue!

Are you talking about the RandomResizedCropRGBImageDecoder class?
If yes, then I already tried it but it didn't improve the accuracy. I only got 38%. Here is the code I used:
        # ...
        if name == 'train':
            image_pipeline: List[Operation] = [
                RandomResizedCropRGBImageDecoder((32,32)),
                RandomHorizontalFlip()
            ]
        else:
            image_pipeline: List[Operation] = [SimpleRGBImageDecoder()]

        image_pipeline.extend([
            ToTensor(),
            ToDevice('cuda:0', non_blocking=True),
            ToTorchImage(),
            # Convert(torch.float32),
            NormalizeImage(CIFAR_MEAN, CIFAR_STD, np.float16)
        ])
        ordering = OrderOption.RANDOM if name == 'train' else OrderOption.SEQUENTIAL
        loaders[name] = Loader(paths[name], batch_size=batch_size, num_workers=num_workers,
                               order=ordering, drop_last=(name == 'train'),
                               pipelines={'image': image_pipeline, 'label': label_pipeline})

    return loaders['train'], loaders['test']

My assumption is that it's due to the "resize", which doesn't exist in torchvision.transforms.RandomCrop so the behavior is different.
To be sure that the difference is caused by the crop operation, I tried to remove everything except RandomHorizontalFlip and normalization. Then I added the crop.
Without ffcv, both gave around 89%
With ffcv, I got ~82% with crop, ~88% without it. Also, the accuracy between 2 runs is much less stable than without ffcv (10% difference sometimes, here I reported the best results).
I also noticed another weird behavior, should I open a separate issue for that? During the training, I save the best checkpoints. Then, at the end of the training, I load the model from this checkpoint and I check the accuracy again.
Without ffcv, the validation accuracy from the loaded model is exactly the same as the best accuracy during the training (which makes sense since I loaded the model that gave this accuracy during the training). But with ffcv, the accuracy of the loaded model is really bad (and doesn't correspond to any accuracy of the training).
The code is exactly the same in both cases, except for the data loading (and the use of GradScaler and autocast when using quantization, but I get this issue even without quantization).

You need to specify your aspect and ratio in your RandomResizedCropRGBImageDecoder.  Just take a look at the images generated by your pipeline and the problem should be obvious.
CIFAR images are 32x32, What is the goal that you are trying to achieve with your cropping ?
About the model saving, you should create a new issue. Make sure you have a reproducible example though. I can't see how FFCV could screw the loading/saving of the weights of your model since it doesn't even receive a reference on the model at any time, so it seems impossible for it to change the behavior there.


Duplicate createViewState in PasswordManagementWebflowConfigurer

In current trunk (and 5.0.x) there seems to be a duplicate call of createViewState in line 57,58.
createViewState(flow, "casAccountDisabledView", "casAccountDisabledView");
As all other states are created only once, I believe this is a typo.

Thank you very much for the report. This is fixed in trunk. If you want to backport this to 5.0.x that would be great!


chore: release v1.0.0

2024-11-06
Changes

Packages with breaking changes:

There are no breaking changes in this release.

Packages with other changes:

envied - v1.0.0
envied_generator - v1.0.0

envied - v1.0.0

FEAT: add support for custom seed when using Random during the obfuscation. (#116)

envied_generator - v1.0.0

FEAT: add support for custom seed when using Random during the obfuscation. (#116)

@petercinibulk could you throw an eye on this? I decided to push out v1.0.0 since the package seems to be stable / mature enough 🤓

@techouse Thanks for putting this together!


Cannot find module '../node_modules/pako/lib/deflate.js'

I am using node-plantuml inside my project and I installed the dependencies with<EMAIL_ADDRESS>All downloaded packages now reside inside the node_modules directory of my project.
This seems to be a problem for plantuml-encoder because it expects to have its own node_modules folder (which it doesn't have now).
Error: Cannot find module '../node_modules/pako/lib/deflate.js'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/tmp/pikturr/node_modules/plantuml-encoder/lib/plantuml-encoder.js:3:19)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)

Could you please have a look at this?
Thanks, Peter

Sorry for my late reply.
Thanks for brining this to my attention. This is an error on my part. I shouldn't have used a relative path from plantuml-encoder, but instead have used a relative path from pako.
I'll release a fix soon.

Fixed in 1.2.2 release