docker issues

I'm not sure if it's OK if I list all docker issues here or better having them in separated issues.
I'm also not sure, if they are LXD problems or something in docker. But all of them come out in LXD (unprivileged) container.

Distribution: Ubuntu 16.04 (host & guest)
The output of "lxc info" or if that fails:

lxc info
apicompat: 0
auth: trusted
environment:
addresses:

<IP_ADDRESS>:8443
<IP_ADDRESS>:8443
architectures:
x86_64
i686
certificate: |
[...]
certificatefingerprint: 76d234347524b42545469a791f8414c7138a2fa2033ed999c3a8078141ae2b00
driver: lxc
driverversion: 2.0.3
kernel: Linux
kernelarchitecture: x86_64
kernelversion: 4.4.0-21-generic
server: lxd
serverpid: 4291
serverversion: 2.0.3
storage: zfs
storageversion: "5"
config:
core.https_address: '[::]'
core.trust_password: true
storage.zfs_pool_name: tank/lxd
public: false

Issue description

User cannot be changed via su in docker:

root@miko:~# docker run --rm -ti ubuntu
root@22b8ae247eff:/# adduser --shell /bin/bash --home /home/miko --gecos AA --disabled-password foo
Adding user `foo' ...
Adding new group `foo' (1000) ...
Adding new user `foo' (1000) with group `foo' ...
Creating home directory `/home/miko' ...
Copying files from `/etc/skel' ...
root@22b8ae247eff:/# su - foo
Unable to cd to '/home/miko'
root@22b8ae247eff:/#

apache cannot start

root@9bddfc56bf1a:/usr/local/apache2# apachectl -X
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using <IP_ADDRESS>. Set the 'ServerName' directive globally to suppress this message
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using <IP_ADDRESS>. Set the 'ServerName' directive globally to suppress this message
libgcc_s.so.1 must be installed for pthread_cancel to work
Aborted (core dumped)

I also experienced problem with mattermost, mysql and mongodb, however, cannot give you a detailed report at the moment.
As far as I remember it is an issue with volume mapping.

i'm also running into issues running latest stable lxc (2.2) and latest stable docker 1.12.1 version info, i've tried different storage drivers on docker, haven't yet tried to intersect other storage drivers on lxd (its unclear what lxd init actually supports or if dir is actually an overlay). afaics all of @hallyn's patches for docker made it upstream.
  driver: lxc
  driverversion: 2.0.4
  kernel: Linux
  kernelarchitecture: x86_64
  kernelversion: 4.4.0-31-generic
  server: lxd
  serverpid: 17246
  serverversion: "2.2"
  storage: dir
  storageversion: ""

by default docker will run if told to explicitly not oom score adjust, but afaics none of the storage drivers but vfs will even start
btrfs
root@node-1:~# dockerd --storage-driver=btrfs --oom-score-adjust=0
INFO[0000] libcontainerd: new containerd process, pid: 817
WARN[0000] containerd: low RLIMIT_NOFILE changing to max  current=1024 max=65536
ERRO[0001] AppArmor enabled on system but the docker-default profile could not be loaded.
FATA[0001] Error starting daemon: error initializing graphdriver: prerequisites for driver not satisfied (wrong filesystem?)

aufs
root@node-1:~# dockerd --storage-driver=aufs --oom-score-adjust=0
INFO[0000] libcontainerd: new containerd process, pid: 836
WARN[0000] containerd: low RLIMIT_NOFILE changing to max  current=1024 max=65536
ERRO[0001] AppArmor enabled on system but the docker-default profile could not be loaded.
FATA[0001] Error starting daemon: error initializing graphdriver: driver not supported

overlayfs2
root@node-1:~# dockerd --storage-driver=overlay2 --oom-score-adjust=0
INFO[0000] libcontainerd: new containerd process, pid: 857
WARN[0000] containerd: low RLIMIT_NOFILE changing to max  current=1024 max=65536
ERRO[0001] AppArmor enabled on system but the docker-default profile could not be loaded.
ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
FATA[0001] Error starting daemon: error initializing graphdriver: driver not supported

so running with vfs works (although this docker driver has loads of known issues)
root@node-1:~# dockerd --oom-score-adjust=0
INFO[0000] libcontainerd: new containerd process, pid: 894
WARN[0000] containerd: low RLIMIT_NOFILE changing to max  current=1024 max=65536
ERRO[0001] AppArmor enabled on system but the docker-default profile could not be loaded.
ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
INFO[0001] Graph migration to content-addressability took 0.00 seconds
WARN[0001] Your kernel does not support swap memory limit.
INFO[0001] Loading containers: start.
WARN[0001] Running modprobe bridge br_netfilter failed with message: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-31-generic/modules.dep.bin'
modprobe: WARNING: Module bridge not found in directory /lib/modules/4.4.0-31-generic
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-31-generic/modules.dep.bin'
modprobe: WARNING: Module br_netfilter not found in directory /lib/modules/4.4.0-31-generic
, error: exit status 1
WARN[0001] Running modprobe nf_nat failed with message: `modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-31-generic/modules.dep.bin'
modprobe: WARNING: Module nf_nat not found in directory /lib/modules/4.4.0-31-generic`, error: exit status 1
WARN[0001] Running modprobe xt_conntrack failed with message: `modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-31-generic/modules.dep.bin'
modprobe: WARNING: Module xt_conntrack not found in directory /lib/modules/4.4.0-31-generic`, error: exit status 1
INFO[0001] Firewalld running: false
WARN[0001] Could not load necessary modules for IPSEC rules: Running modprobe xfrm_user failed with message: `modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-31-generic/modules.dep.bin'
modprobe: WARNING: Module xfrm_user not found in directory /lib/modules/4.4.0-31-generic`, error: exit status 1
INFO[0001] Default bridge (docker0) is assigned with an IP address <IP_ADDRESS>/16. Daemon option --bip can be used to set a preferred IP address

INFO[0001] Loading containers: done.
INFO[0001] Daemon has completed initialization
INFO[0001] Docker daemon                                 commit=23cf638 graphdriver=vfs version=1.12.1
INFO[0001] API listen on /var/run/docker.sock

but trying to run an image will then fail, with this on the client
root@node-1:~# docker run joshix/caddy
Unable to find image 'joshix/caddy:latest' locally
latest: Pulling from joshix/caddy

c367ae4f1784: Extracting [==================================================>] 4.886 MB/4.886 MB
docker: failed to register layer: ApplyLayer exit status 1 stdout:  stderr: permission denied.
See 'docker run --help'.

and this on the server
ERRO[0009] Handler for POST /v1.24/containers/create returned error: No such image: joshix/caddy:latest
ERRO[0010] Error trying v2 registry: failed to register layer: ApplyLayer exit status 1 stdout:  stderr: permission denied
ERRO[0010] Attempting next endpoint for pull after error: failed to register layer: ApplyLayer exit status 1 stdout:  stderr: permission denied

basically failing to stack the runtime layer

a little bit closer to working with docker 1.12.1 missing bit was setting both
lxc config set node-1 security.nesting true
lxc config set node-1 security.privileged true

switched out zfs on lxd storage and aufs for docker
dockerd --oom-score-adjust=0 --storage-driver=aufs
running containers now errors with in ability to apply apparmor profile
# docker run joshix/caddy
Unable to find image 'joshix/caddy:latest' locally
latest: Pulling from joshix/caddy

c367ae4f1784: Pull complete
Digest: sha256:17b83863ac097c481258ed163195b544ea17271b0b2ba5497a81401fda72d79f
Status: Downloaded newer image for joshix/caddy:latest
docker: Error response from daemon: oci runtime error: apparmor failed to apply profile: permission denied.

@kapilt do you have the docker profile applied to your container? that profile includes a device entry that's supposed to take care of that very issue (by masking apparmor inside the container).
You may also want to try the docker 1.12 build from Ubuntu which includes all the needed patches for Docker to work inside LXD (with the docker profile applied):

Download:

https://launchpad.net/ubuntu/+source/docker.io/1.12.1-0ubuntu10/+build/10759488/+files/docker.io_1.12.1-0ubuntu10_amd64.deb
https://launchpad.net/ubuntu/+source/runc/1.0.0~rc1-0ubuntu1/+build/10666130/+files/runc_1.0.0~rc1-0ubuntu1_amd64.deb
https://launchpad.net/ubuntu/+source/containerd/0.2.3-0ubuntu1/+build/10666152/+files/containerd_0.2.3-0ubuntu1_amd64.deb

Then:
root@ubuntu:~# dpkg -i *.deb
Selecting previously unselected package containerd.
(Reading database ... 25534 files and directories currently installed.)
Preparing to unpack containerd_0.2.3-0ubuntu1_amd64.deb ...
Unpacking containerd (0.2.3-0ubuntu1) ...
Preparing to unpack docker.io_1.12.1-0ubuntu10_amd64.deb ...
Unpacking docker.io (1.12.1-0ubuntu10) over (1.12.1-0ubuntu10) ...
Selecting previously unselected package runc.
Preparing to unpack runc_1.0.0~rc1-0ubuntu1_amd64.deb ...
Unpacking runc (1.0.0~rc1-0ubuntu1) ...
Setting up runc (1.0.0~rc1-0ubuntu1) ...
Setting up containerd (0.2.3-0ubuntu1) ...
Setting up docker.io (1.12.1-0ubuntu10) ...
Adding group `docker' (GID 116) ...
Done.
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu8) ...
Processing triggers for man-db (2.7.5-1) ...
root@ubuntu:~# ls
containerd_0.2.3-0ubuntu1_amd64.deb  docker.io_1.12.1-0ubuntu10_amd64.deb  runc_1.0.0~rc1-0ubuntu1_amd64.deb
root@ubuntu:~# docker run joshix/caddy
docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
See 'docker run --help'.
root@ubuntu:~# cat /var/log/^C
root@ubuntu:~# systemctl -a | grep docker
  docker.service                               loaded    inactive   dead      Docker Application Container Engine
  docker.socket                                loaded    inactive   dead      Docker Socket for the API
root@ubuntu:~# systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: https://docs.docker.com
root@ubuntu:~# systemctl start docker.socket
root@ubuntu:~# systemctl -a | grep docker
  docker.service                               loaded    inactive   dead      Docker Application Container Engine
  docker.socket                                loaded    active     listening Docker Socket for the API
root@ubuntu:~# docker run joshix/caddy
Unable to find image 'joshix/caddy:latest' locally
latest: Pulling from joshix/caddy
c367ae4f1784: Pull complete
Digest: sha256:17b83863ac097c481258ed163195b544ea17271b0b2ba5497a81401fda72d79f
Status: Downloaded newer image for joshix/caddy:latest
Activating privacy features... done.
http://:2015

The above is inside a clean Ubuntu 16.04 unprivileged container, launched with:
lxc launch ubuntu:x docker -p default -p docker

@mwhudson any idea why I had to manually start docker.socket? ^

No. I've never had to do that. Any clues in the journal?

@stgraber thanks! using the distro packages for 1.12.1 everything worked out of the box as unprivileged.

@tomposmiko did you make any progress on this issue?
Your initial report indeed sounds like something going wrong with overlayfs/aufs on top of your zfs backed container. It seems unlikely to be something LXD can do anything about as it's not related to any of our security policies...
Might be interesting to make sure your kernel is up to date, your LXD too and maybe try it inside an Ubuntu 16.10 (ubuntu-daily:16.10) container to see if Docker 1.12 somehow changes that.


Provide a way to know when a strategy is fully finished

Library Affected:
workbox-strategies
While exploring a possible solution to #1857 I discovered that our caching strategies do not provide a mechanism for observing when the cache write finishes. Similarly, the StaleWhileRevalidate strategy (which makes both a cache read and a network request) does not provide a way to know when the network request has finished.
In all of these strategies we're using event.waitUntil() to keep the service worker alive until all work is done, but that information isn't exposed to users of the strategies, so there's no way to observe when a strategy is actually "done".
In the case of precaching, this is fairly important, so any solution to #1857 is probably dependent on solving this issue first.
A straight-forward solution (but also a breaking change) would be to return an object in the form of {response, done} rather than just returning a Response. Alternatively, to avoid a breaking change we could add a new property to the object passed to makeRequest() that gets resolved once all waiting is done.
(The first option seem cleaner, so my preference would be to time this with the next major release, since I don't think many people are manually using makeRequest() at the moment)

If this is something that was just done internally and affected the makeRequest() return value, and didn't affect the public handlerCallback interface, the first option sounds fine to me.

@philipwalton would you also consider adding a way of knowing the outcome of the initial cache read when using StaleWhileRevalidate as explained in #2010 ?

This appears to be a duplicate of https://github.com/GoogleChrome/workbox/issues/2115; closing this in favor of that.


Add incremental reveal to slides

Is there a way to do incremental reveal in slides?
If not, maybe something could be added?  Pandoc does this a couple of ways.
In lists:
 - item1
 > - item2 reveal
 > - item3 reveal

for in-slide reveals
### Slide with a pause

content before the pause

. . .

content after the pause

Been thinking about it for a while, but currently your only option is to make each transition its own slide.
Keeping this open to see if anyone has ideas for what something like this could look like. I'm not 100% into a special list syntax.

The . . . syntax is perhaps sufficient. Any line with only . . . and/or surrounding whitespace indicates a pause.
 - item
 . . .
 - item 2
 . . .
 - item 3

It's easy parse and is minimally invasive. It's also visually easy to spot and edit.
It also lends itself to some animation specifications via CSS classes.
 - item
 . . .fade
 - item 2
 . . .swoosh-left
- item 3

Also maybe , , , instead of '. . .`  since commas usually indicate a pause in sentences.

Even more obvious
- item 1
/* pause */
- item 2

I am personally against it, as it adds a rather non-obvious syntax to Markdown. One of the best features of cleaver is it's simplicity. However, as always... PR welcome!

What about just a class specification on the slide itself? Bullet lists for that slide would then be increamental. Doesn't require a change to the current slide syntax and covers the common case of progressive reveal of lists. (I can do a pull request once we agree on the method).

How would you specify the class on the slide?
What if we, instead, gave the opportunity to arbitrarily control slide navigation from "client" JS?
I guess that would be a "cleaner" solution, in that this could be made a separate plugin of sorts.
What I'm proposing:

Markdown should not be affected in any way. Determining whether a slide should have "incremental list" behaviour should be separate. This adheres to the principle that content and presentation must be separate. So, for example, in your script you could have a match parameter that you fed a string or Regex. If a given slide matches, the behaviour applies.
When going back/forward, any "plugins" would be given a chance to be notified and either abort or continue with the operation. Then, it would be this plugin's responsibility to actually show/hide the elements when going back/forward.

This would amount to keeping the code of cleaver itself clean, while enabling all sorts of crazy functionality to be "installed".
Thoughts, @mike-ward @jdan ?

Cleaver currently supports adding classes to sldes.
Example:
-- my-slide-class

My proposal exploits a mechanism already in place.

Ah, nice! Sorry I didn't know that.
That's great, because then it would be as simple as having something that, given a slide has a class, wrap the backward and forward calls.
var onIncrementalSlide = function (slide, resolve, reject) {
  if (slide.anythingElseToShow) {
    showNext()
    reject()
  }
  else {
    resolve()
  }
}
Cleaver.onSlideForward('incremental', onIncrementalSlide)
Cleaver.onSlideBackward('incremental', onIncrementalSlide)

What do you think about something like that?

Even better would be to have Cleaver emit events on the slide which bubble up and are handled by the root.
If anyone wants to capture those events and stop the propagation, that's simple and pure JS.

I think I'm understanding your code. Not familar with the Cleaver code, but it looks like the forward/back logic takes a promise given your example. Of course, the tricky part is the showNext() method. Thoughts on that implementation? Internal tracking or hang something off the DOM?

I'm not familiar with the Cleaver code either, so I was hoping you would correct me, actually :joy:.
If you can wait until the weekend, I can give a look at the code and propose/implement a solid change. Otherwise, try your hand at it and let's see what happens :)
The important thing for me is that we don't build any "arbitrary magic classes" into cleaver, but we build support for "arbitrarily controlling slides", and then an "incremental plugin" would be trivial to pull off.

I'm buried in my own open source projects. I was thinking of a more immediate solution. A plugin architecture may be more too much for me at this time.

For an immediate solution, simply hack on navigate :)
https://github.com/jdan/cleaver/blob/master/resources/script.js#L13

No, no, no. Must concentrate on own projects. Do not be distracted by shiny :sparkles: new project  :smile:

Same here :joy:


Add support for publishing releases on all tags (do not enforce v prefix)

As for now, the actions only run on tags that satisfies following regex *-?v[0-9]+*. I'd like to create tags without the leading v as it does not follow the semantic versioning^0. Could you please consider adding support for it?

This is already in flight with #346
🐱

This is in 0.2.0-prerelease.6 (docs), and 0.2.0 should be out by end of week.


Support internal pocketbase-images

For docker-internal pocketbase-installations without a public domain some kind of proxy would be useful to avoid missing images.

Hello @tamaskan! I don't say no, but at the same time I don't have any plans for shipping integrated proxy.
However, if you have some experience configuring Caddy, Nginx, or any other solution to work this way, I would be more than eager to discuss how to expand the documentation with the necessary steps and configurations.

The app will now proxy PocketBase API calls (including fetching the images) through /internal route: #48


Missing File with latest install (Microsoft.AzureIntegrationMigration.Runner, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null)

Description
[11:51:02 INF] Finding stage runners.
[11:51:02 INF] Searching for IStageRunner in C:\ProgramData\chocolatey\lib\biztalkmigrator\tools\bin.
[11:51:02 INF] Found 1 libraries in C:\ProgramData\chocolatey\lib\biztalkmigrator\tools\bin.
[11:51:02 INF] Scanning...
[11:51:03 DBG] Ignoring library C:\ProgramData\chocolatey\lib\biztalkmigrator\tools\bin\Microsoft.AzureIntegrationMigration.BizTalk.StageRunners.dll due to missing dependencies.
[11:51:03 DBG] System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AzureIntegrationMigration.Runner, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.AzureIntegrationMigration.Runner, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'
---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AzureIntegrationMigration.Runner, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.AzureIntegrationMigration.Runner, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly assemblyContext, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
at Microsoft.AzureIntegrationMigration.Tool.Plugins.PluginAssemblyLoadContext.Load(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at Microsoft.AzureIntegrationMigration.Tool.Plugins.PluginFinder`1.FindPluginAssemblies(String pluginPath, Type[] sharedTypes)
[11:51:03 DBG] No stage runner assemblies found in C:\ProgramData\chocolatey\lib\biztalkmigrator\tools\bin.
[11:51:03 WRN] No stage runner assemblies found.
[11:51:03 INF] Finding model provider.
[11:51:03 INF] Searching for IApplicationModelProvider in C:\ProgramData\chocolatey\lib\biztalkmigrator\tools\bin.
[11:51:03 INF] Found 1 libraries in C:\ProgramData\chocolatey\lib\biztalkmigrator\tools\bin.
[11:51:03 INF] Scanning...
[11:51:04 DBG] Ignoring library C:\ProgramData\chocolatey\lib\biztalkmigrator\tools\bin\Microsoft.AzureIntegrationMigration.BizTalk.StageRunners.dll due to missing dependencies.
[11:51:04 DBG] System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AzureIntegrationMigration.Runner, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.AzureIntegrationMigration.Runner, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'
---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AzureIntegrationMigration.Runner, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.AzureIntegrationMigration.Runner, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly assemblyContext, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
at Microsoft.AzureIntegrationMigration.Tool.Plugins.PluginAssemblyLoadContext.Load(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at Microsoft.AzureIntegrationMigration.Tool.Plugins.PluginFinder`1.FindPluginAssemblies(String pluginPath, Type[] sharedTypes)
[11:51:04 DBG] No model provider assembly found in C:\ProgramData\chocolatey\lib\biztalkmigrator\tools\bin.
[11:51:04 WRN] No model provider assembly found.
[11:51:04 ERR] Failed to build runner: Failed to find a model provider.
[11:51:04 ERR] Full exception details:
System.ApplicationException: Failed to find a model provider.
at Microsoft.AzureIntegrationMigration.Tool.App.b__15_0()
at Microsoft.AzureIntegrationMigration.Runner.Builder.RunnerBuilder.Build()
at Microsoft.AzureIntegrationMigration.Tool.App.BuildRunner()
at Microsoft.AzureIntegrationMigration.Tool.App.RunAsync(CancellationToken token)
[11:51:04 DBG] Hosting stopping
[11:51:04 INF] Application is shutting down...
[11:51:04 DBG] Hosting stopped
Environment and tool versions
Clean install with choco install biztalkmigrator --pre

Thanks @billchesnut, I’ll take a look at this. We are currently trying to get a stable release through the Chocolatey moderation process and have been releasing new versions as part of that process and these changes may have caused this issue.

Hi @billchesnut, I've tried to repro this issue and I am unable to.  Please could you try uninstalling and re-installing the tool?
To uninstall (and uninstall the dependencies) use:
choco uninstall -fx biztalkmigrator
Please also check in the C:\ProgramData\chocolatey\lib directory that the following directories have been deleted after the uninstall:
biztalkmigrator
biztalkmigrator-azure
biztalkmigrator-cli

And then to reinstall:
choco install biztalkmigrator --pre
We'll be able to drop the --pre hopefully soon once the Chocolatey packages have completed going through the manual moderation process.

Thanks, Paul, that worked, the key was the -fx I had tried to uninstall and reinstall

closed

close

Thanks Bill, appreciate you updating the issue with the outcome.


GOG Failed finding games

Describe the bug
GOG Failed finding games
To Reproduce
Steps to reproduce the behavior:

Choose GOG Directory in the settings panel
Click on 'Import Games'
See error

Expected behavior
GOG finding games
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Windows 10 22H2
BoilR Version [<IP_ADDRESS>]

Additional context
Same issue with itch.io games.

Using the GOG Galaxy option it is not finding any game here but using the Mini Galaxy option works (even though it's really a GOG Galaxy folder).
Tested with Bazzite on Flatpak.

@patrick-13x if you scroll down to the very bottom of the settings you should find it.
Just enable it, give it a path and then parse.


Ghost roads in Map

There are more and more ghost roads in the underlaying OSM-Map in web-client.
I had this issue with outdated OSM-Tools such as with the current version of OSMConvert bundeled with most LinuxDistris which cannot handle the new big Node/Waynumbers. Probably the variable-definitions run out off bounds.
Best regards an thanks a lot for your great work
Christian, openandromaps.org
https://brouter.de/brouter-web/#map=14/48.5213/15.4821/standard,Waymarked_Trails-Cycling

These are remainders of yesterday's vandalism wave in caches of tile.openstreetmap.org, see:

UPDATE (13.06.2024): Wave of vandalism
The "OSM Standard tile layer" looks wrong (white lines, abusive comments etc.)

I don't see those specific ones you posted, but that depends on the CDN cache and server we're assigned to. Just for my own interest, I would like to test if I can reproduce yours, so if you know how to get the HTTP headers for an example tile request from the dev tools network tab (F12), could you please post the x-served-by and x-tilerender response headers (don't mind if not)?

Hallo Norbert,
The remainders of Vandalism are already gone - sorry for my post here.


add forwardRef support to addon-info

Issue: closes #4787
What I did

added react-is to dependencies in addon-info.
in both Node and Story checks if the element is forwardRef element and parses accordingly.
add new example of forwardRef component in kitchen sink app.

How to test

Is this testable with Jest or Chromatic screenshots?
Yes.
Does this need a new example in the kitchen sink apps?
Yes.
Does this need an update to the documentation?
Don't think so.

If your answer is yes to any of these, please make sure to include it in your PR.

In docs they mentioned to just use a dislpayName.
Is your solution better ?

@yjcxy12 this is awesome! thank you!

This code throws when the component uses a react hook.
See this issue: https://github.com/storybooks/storybook/issues/6848
I've been able to make some adjustments to make that use-case work, I'll open a PR momentarily. Will you be able to review @yjcxy12
Perhaps a solution based on displayName would be better indeed @igor-dv


Unable to merge or otherwise fix a duplicate variant for a gene

While Cody was adding coordinates for variants he noted that two variants had been created for KRAS, one called 'EXON 1 MUTATIONS' the other called 'EXON 2 MUTATIONS'.
'EXON 1 MUTATIONS' is a labeling ambiguity and is actually referring to the same mutations as 'EXON 2 MUTATIONS'.
Cody renamed the exon 1 variant to exon 2.  But of course merging is not that simple as these are just names not the actual variant IDs.  Should such a rename have been allowed?  Anyway, to fix this ...
I would like to move this evidence item:
https://civic.genome.wustl.edu/#/events/genes/30/summary/variants/74/summary/evidence/250/summary
From this variant:
https://civic.genome.wustl.edu/#/events/genes/30/summary/variants/74/summary
To this variant:
https://civic.genome.wustl.edu/#/events/genes/30/summary/variants/75/summary
And then delete variant 74.  There are various barriers to doing so.  For one thing, in the admin interface:

It would be helpful if you could filter down to a specific evidence item, in this case 250
If you filter to KRAS, this helps but now you have three evidence items that now say EXON 2 MUTATIONS, two of which are associated with variant 75 and one with variant 74.  But you can't see this in the interface directly.
If I figure out which is associated with variant 74 and edit it I see this:

https://civic.genome.wustl.edu/admin/evidence_items/250/edit

In this view I can not change the evidence item to variant 74 because I only have a drop down list of variant names that are non-unique.  EXON 2 MUTATIONS appears three times in this list.  EXPRESSION appears 9 times.

My next strategy was to attempt to just create an entirely new evidence item that duplicated the content of the one I want to merge and then just associate that with the correct variant 75.  That attempt failed and can be seen here:
https://civic.genome.wustl.edu/admin/evidence_items/530
I guess that is related to the issue @obigriffith reported recently.  This is a reminder to clean up these KRAS mutations when we have a way to do this either in the admin interface or civic-client interface.
In general I think we should talk about how we want to handle duplicate variant names within a gene and across genes.  As a starting point we could disallow the former? There may be places where we want to scope variant queries to within the gene.
Finally, in general in the admin interface I think it would be helpful to display the unique civic database IDs for variants, genes, evidence items, etc.

This is a really good point. It would be really useful to move evidence statements around somehow. It is feasible that variants like the referenced ‘EXON 1 MUTATIONS’ or others like ‘EXON 2 DELETIONS’ could eventually become a variant group as we refine our understanding of the specific lesions in these genes/exons that relate to the clinical action identified.

On Aug 28, 2015, at 7:46 PM, Malachi Griffith<EMAIL_ADDRESS>wrote:
While Cody was adding coordinates for variants he noted that two variants had been created for KRAS, one called 'EXON 1 MUTATIONS' the other called 'EXON 2 MUTATIONS'.
'EXON 1 MUTATIONS' is a labeling ambiguity and is actually referring to the same mutations as 'EXON 2 MUTATIONS'.
Cody renamed the exon 1 variant to exon 2. But of course merging is not that simple as these are just names not the actual variant IDs. Should such a rename have been allowed? Anyway, to fix this ...
I would like to move this evidence item:
https://civic.genome.wustl.edu/#/events/genes/30/summary/variants/74/summary/evidence/250/summary https://civic.genome.wustl.edu/#/events/genes/30/summary/variants/74/summary/evidence/250/summary
From this variant:
https://civic.genome.wustl.edu/#/events/genes/30/summary/variants/74/summary https://civic.genome.wustl.edu/#/events/genes/30/summary/variants/74/summary
To this variant:
https://civic.genome.wustl.edu/#/events/genes/30/summary/variants/75/summary https://civic.genome.wustl.edu/#/events/genes/30/summary/variants/75/summary
And then delete variant 74. There are various barriers to doing so. For one thing, in the admin interface:
It would be helpful if you could filter down to a specific evidence item, in this case 250
If you filter to KRAS, this helps but now you have three evidence items that now say EXON 2 MUTATIONS, two of which are associated with variant 75 and one with variant 74. But you can't see this in the interface directly.
If I figure out which is associated with variant 74 and edit it I see this:
https://civic.genome.wustl.edu/admin/evidence_items/250/edit https://civic.genome.wustl.edu/admin/evidence_items/250/edit
In this view I can not change the evidence item to variant 74 because I only have a drop down list of variant names that are non-unique. EXON 2 MUTATIONS appears three times in this list. EXPRESSION appears 9 times.
My next strategy was to attempt to just create an entirely new evidence item that duplicated the content of the one I want to merge and then just associate that with the correct variant 75. That attempt failed and can be seen here:
https://civic.genome.wustl.edu/admin/evidence_items/530 https://civic.genome.wustl.edu/admin/evidence_items/530
I guess that is related to the issue @obigriffith https://github.com/obigriffith reported recently. This is a reminder to clean up these KRAS mutations when we have a way to do this either in the admin interface or civic-client interface.
In general I think we should talk about how we want to handle duplicate variant names within a gene and across genes. As a starting point we could disallow the former? There may be places where we want to scope variant queries to within the gene.
Finally, in general in the admin interface I think it would be helpful to display the unique civic database IDs for variants, genes, evidence items, etc.
—
Reply to this email directly or view it on GitHub https://github.com/genome/civic-server/issues/88.

We also have this problem of variants that need to be merged here:
https://civic.genome.wustl.edu/#/events/genes/45/summary/variants/123/summary
We have two variants for TP53 that are both R249.  We need to move this evidence item:
https://civic.genome.wustl.edu/#/events/genes/45/summary/variants/123/summary/evidence/399/summary
Onto this variant:
https://civic.genome.wustl.edu/#/events/genes/45/summary/variants/119/summary
And then delete this redundant variant:
https://civic.genome.wustl.edu/#/events/genes/45/summary/variants/123/summary

We have another set of variants to be merged. Cody renamed one of them as it was redundant which I agreed with and accepted the change. In retrospect, I may have jumped the gun since this problem hasn't been resolved. However, just 1 evidence statement needs to be moved over.
https://civic.genome.wustl.edu/#/events/genes/15/summary/variants/188/summary

@kkrysiak that is okay, lets just keep making note of them here until we have a way to complete the merges.  I believe the plan is for @acoffman to create a path for us in the admin interface to do this.

Yeah, I'm working on a general "utilities" page for the admin that lets you guys do tasks that don't fit neatly into the "big table of evidence items/variants/genes" that the other tabs present. Among them are: merging users, merging variants, and pulling in new sources from pubmed.

Another gene with some variants to be cleaned up is EGFR. There are currently "Amplification", "Copy number alteration" and "Increased copy number" as variants, each with 1-2 associated evidence statements.
https://civic.genome.wustl.edu/#/events/genes/19/summary/variants/191/summary/evidence/472/summary

Another variant to tackle here: FGFR3-TACC3 associated with FGFR3 should be FGFR2-TACC3 and associated with FGFR2.
https://civic.genome.wustl.edu/#/events/genes/23/summary/variants/54/summary/evidence/296/summary

I've addressed the KRAS (variant 74), TP53 (variant 123) and CEBPA (variant 188) variants.
We tried to address the FGFR3-TACC3 but problems with the merge led to opening issue #110.
The EGFR variants are being addressed by https://github.com/genome/civic-client/issues/233 unless we choose to rename and merge them as discussed in the issue.
@acoffman, unless you want to re-open this to remind you of additional utilities, for the reasons above, I am closing this issue.

Thanks for resolving this KK.  @acoffman let us know what you think of issue #110


Feature/conluzweb 14

You can try accessing the error page by navigating to the /error path. You have direct access through this link

I have applied all the suggestions made, and the final page for the 401 error can be viewed at this link

Do you think we should also add the 'Contact' button on this page? In my opinion, we could add it to follow the same structure as the other error pages.


Theme management

Hi,
I didnt find any info about that matter besides one question on SO.
I would suppose that it is very common use case for many people:

Install octopress
Install theme, find out that its outdated, install another one, another one -- found my perfect match
commit & deploy

And here I am now. Fortunately i only tried one theme but still there is a lot of unused files in my sass, source/* directories that i dont want. The problem is now i need to look at what has been there before, manually remove files from old theme and hope for the best. Im after 2 hard git resets and frankly im getting a little bit bored by this process.
Is there any way of easily putting every theme files into their respective directories and just put the directory name into _config.yml to help engine find those files? I just cant believe it has to be this bad, slapping files all over the place without even taking into consideration anything that was there before. Maybe old theme should be just copied to _oldtheme or something. You guys are smart, i know you will find out the best way for everybody.
Otherwise i found octopress and jekyll in general very user friendly and well documented projects, so good job guys.
Regards,
Pawel

@pavelloz I know @imathis can explain this far better than I can, but the short version is themes were never intended to be installed like how themes are installed on 2.0. 3.0 has a much better way of supporting themes (so I've heard anyways).

check out brandon's talk at jekyllconf where he explains about the new theme handling in octopress 3.0. It is based on something called octopress-ink

From the latest post on octopress.org

Then there are the themes. I planned to create a system for distributing themes independently from Octopress, but I hadn’t solved it when I released 2.0. Even then, I've come across quite a few websites with Octopress theme galleries. While there are some nice ones, they are all distributed through git and installed with an ill-conceived rake task that was never meant to be used for this. All of this is a constant reminder that many people are spending time building on my mistakes.

Octopress is changing. Version 3 is already out there, but I'm still working on themes, so I can kill off version 2. I'm happy to continue discussion here, but since this is more of a question than an issue, I'm going to close it.

Thank you all for such a quick response.
I didn't know that 3.0 is coming, I should pay more attention to the project blog before asking :)


Check protocols for selector conflicts

Although we have always checked classes to see if their @objc members had the same selectors, it turns out we never did this for protocols. Oops. Keep a table of ObjC selector names for protocols, just as we do for classes, and diagnose any conflicts between them.
Fixes rdar://80990066.

@swift-ci please smoke test

@swift-ci please test source compatibility

@swift-ci please smoke test

Linux failure looks like an infrastructure issue.
@swift-ci please smoke test Linux platform

@swift-ci please test source compatibility

The source compatibility suite failures appear to match e.g. https://ci.swift.org/job/swift-main-source-compat-suite/12/, which was run at the same time, so I think they are unrelated.
There appear to have been no instances of this new warning in the source compatibility suite.


license

What license is this released under please?

Good question! Do you have a preference?

MIT or Apache would be great - thanks

MIT license it is! Check the setup.py for info.


Multiple identical slices in one query are not handled properly

Version
1.27.0
What happened?
Consider this query:
SELECT *
FROM table1 AS t1 JOIN table2 AS t2
ON t1.fk = t2.fk
AND t1.fk IN (sqlc.slice('IDs')) OR t2.fk IN (sqlc.slice('IDs'));

The code which is generated for it have only one line for handling slice:
query = strings.Replace(query, "/*SLICE:IDs*/?", strings.Repeat(",?", len(ids))[1:], 1)

strings.Replace is called with last argument 1, so only one of two slices is handled.
Relevant log output
No response
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
https://play.sqlc.dev/p/69da31c00c3be911650469be15b8b0d12fb5f99d7be81e34e9208471bf0488fe
What operating system are you using?
Windows
What database engines are you using?
SQLite
What type of code are you generating?
Go

The only workaround I found is to name arguments of slices differently, but provide same values twice from the caller:
SELECT *
FROM table1 AS t1 JOIN table2 AS t2
ON t1.fk = t2.fk
AND t1.fk IN (sqlc.slice('IDs1')) OR t2.fk IN (sqlc.slice('IDs2'));


Re-design the database history table.

The current database design is rigid and does not allow future expansion of GUIDs, and currently the way we do comparison is limited to just GUIDs, However the new table design should allow possible alternative comparison as it was mentioned in #69 to allow greater flexibility.
So, with that in mind we have to push back the expected end of month release date, to future date.

Impact on current users:
Our migration is limited to database changes only, it does not allow code execution during the migration as it's limited to regular sql files. If possible we need to investigate alternative means.
Highest impact is having to re-import the current WatchState from old table.

Done


Bug in rpc get_messages with embedded newlines

When the cli simple wallet is started with rpc activated by specifying a port in the command line, most requests work but not get_messages when the Reply-To was used to create a message using the gui wallet (the simple wallet doesn't allow message creation and the gui wallet doesn't seem to have an rpc server). A JSON error is returned.
The problem is that when a message is created with the gui wallet and the option to include a reply-to address in the message, the address plus two newlines is prepended to the message. The JSON response will actually include two newlines rather than \n\n, which is not allowed. This may be a general problem with any message that includes embedded newlines, unless each line is treated as a separate message (I didn't check into this). The JSON serializer is unable to parse the embedded newlines.
To get get_messages working, I just hacked src/Wallet/WalletRpcServer.cpp by inserting the following at line 230 in function bool wallet_rpc_server::on_get_messages()
for (auto it = tx_messages.messages.begin(); it != tx_messages.messages.end(); it++) {
  for (std::string::size_type n = 0; ( ( n = (*it).find("\n", n ) ) != std::string::npos ); ) {
    (*it).replace(n, 1, "\\n");
    n += 2;
  }
}

All this does is replace newlines with \n in each message in the list of messages before they are converted to a JSON response. Now, the RPC get_messages works, which is what I need right now.
Another way to fix this problem would be attach the reply-to address as a separate message, and to also not allow general messages to have embedded newlines but rather split lines into separate messages (each transaction is allowed a list of separate messages). Perhaps the latter rule is already in effect and the problem is only with the way reply-to is handled. I haven't looked at that part of the code.

Closed

Is there a patch for this?


key_parsing_mask_list_align why only one face part is being used?

Hi, I'm trying to understand the code and I'd really appreciate if someone could help me understand how face parts are used.
You are using 5 parts: face, eyes, ears, nose and lips (mouth).
Inside of get_prepare_facemask method you are obtaining key_parsing_mask_list - a list with mask-images of each face part, but there is only one eye out of two (right of left), one lip out of two, one ear out of two. Could you please help me understand why?
Further in code these parts are used as inputs for CLIPEncoder and I wonder why not all parts are used.

This is because most of the time, llava does not distinguish between these paired facial features when describing facial features information (for example, the descriptions of left and right ears are the same). Therefore, we merge the paired facial features descriptions together and retain only one mask among the paired facial features.
In addition, due to the large amount of training data, not all facial features can be obtained. If all facial features components are regarded as input to CLIPEncoder, there will be a large number of redundant None values. Therefore, we only send the retained facial features images to CLIPEncoder.
Of course, you can also try to inject more facial features into the model, and perhaps the ID consistency can be improved. If you have any further ideas, please feel free to ask questions and PR.

I tried to ignore this whole story with segmentation during inference and only used text encoding features without FacialEncoder. The results are pretty good, it is hard to say if it is better or worse, I'd say it is the same.

I tried to ignore this whole story with segmentation during inference and only used text encoding features without FacialEncoder. The results are pretty good, it is hard to say if it is better or worse, I'd say it is the same.

Your observation is precise. In fact, both FaceID and FacialEncoder can maintain ID consistency, and their simultaneous presence ensures more stable ID consistency. For more details, you can refer to the ablation experiments in the paper.
Specifically, our model introduces two types of ID consistency information. One type is FaceID, which is used to maintain the global consistency of the ID structure; however, the extraction of FaceID can be unstable. The other type is FacialEncoder, which enhances the consistency of facial features. According to experimental results on a large-scale dataset, FacialEncoder contributes more consistently to ID maintenance. This means that even when FaceID is removed, the model can still achieve more stable ID consistency with the help of FacialEncoder.
If you have any further thoughts, feel free to share and submit a PR~

Your observation is precise. In fact, both FaceID and FacialEncoder can maintain ID consistency, and their simultaneous presence ensures more stable ID consistency. For more details, you can refer to the ablation experiments in the paper.
Specifically, our model introduces two types of ID consistency information. One type is FaceID, which is used to maintain the global consistency of the ID structure; however, the extraction of FaceID can be unstable. The other type is FacialEncoder, which enhances the consistency of facial features. According to experimental results on a large-scale dataset, FacialEncoder contributes more consistently to ID maintenance. This means that even when FaceID is removed, the model can still achieve more stable ID consistency with the help of FacialEncoder.
If you have any further thoughts, feel free to share and submit a PR.


AKMicrophoneTracker with custom hopSize + AirPods memory corruption

let tracker = AKMicrophoneTracker(hopSize: 1024, peakCount: 10)
tracker.start()
This combined with AirPods results in memory corruption - I believe because the hardware only ever seems to provide 4800 sample size buffers, and the tracker is probably copying them into a 1024 frame size buffer.

The microphone tracker was an old class and it will be deleted from v5.


Create custom not found page

Errors#not_found
Find me in app/views/errors/not_found.html.erb

This project is no longer maintained


[improve][broker] Add broker interceptor conf

Motivation
Make the brokerInterceptors parameter active.
When using helm to update this configuration, it is unable to write to the broker.conf configuration file.
Modifications
add brokerInterceptors/brokerInterceptorsDirectory config.
Verifying this change

[ ] Make sure that the change passes the CI checks.

[ ] Dependencies (add or upgrade a dependency)

[ ] The public API

[ ] The schema

[ ] The default values of configurations

[ ] The threading model

[ ] The binary protocol

[ ] The REST endpoints

[ ] The admin CLI options

[ ] The metrics

[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:

Could you add disableBrokerInterceptors to the config file?

Done.


Camera app reboots the device (12.x issue)

Describe the bug
In random times, when using the camera app, the phone simply reboots. There's no tweaks within the camera or photos app, it occurs when using the camera in lock screen and home screen.
Issue started occuring in 12.1.2 (16C104) and keeps occuring in 12.2 (16E227). Always used the latest u0 releases to date.
To Reproduce
Steps to reproduce the behavior:

Open the camera app
Shoot one or two photos
Open the shoot gallery and return to camera interface

Issue occurs randomly but every singe time it reboots the phone.
Device (please complete the following information):

iOS Version: 12.2 (16E227)
iOS Device: iPhone 5s (N53AP)
unc0ver Version: 3.4.2 (Latest, at this moment)

Place an "x" between the brackets if true:

[X] this is a bug others will be able to reproduce
[X] this issue is present with all tweaks uninstalled(except for default packages) or disabled
[X] this issue is present after a rootfs restore
[X] this issue is present on the latest version of unc0ver

Logs
If applicable, add logs or error messages here.
panic-full-2019-07-30-182414.ips.txt

I've been having the same problems, even with no tweaks after a restore rootfs.
I have a 5s too, ios 12.1.1b3

Have you updated to iOS 12.4? If so, do you still have the camera random reboots with latest uncover + iOS 12.4?

Have you updated to iOS 12.4? If so, do you still have the camera random reboots with latest uncover + iOS 12.4?

Just updated to 12.4 this week and haven't tested the camera, yet. I'll keep an eye on that.

Have you updated to iOS 12.4? If so, do you still have the camera random reboots with latest uncover + iOS 12.4?

Just updated to 12.4 this week and haven't tested the camera, yet. I'll keep an eye on that.

Thanks a lot, if you get a reboot please let me know, I would really appreaciate your help :)


Update the prerequisites documentation

Split list into two: what is needed for building and what is
needed for development only.
Remove g++ from install list.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss<EMAIL_ADDRESS>

LGTM

LGTM

LGTM


Adding support for Corda-Network2 data transfer.

Added certs for network2 in Corda network, and modified Corda_Relay.toml config file.
Modified the way Certs are added in Corda network, so that its no longer hard coded and is configurable without need to re-deploy network.
Added commands like configure-create-all, configure-all, configure-data, and configure-network, which works similar to fabric-cli commands, except that configure-all <list of networks separated by comma> to add all these networks' credentials in Corda-network.

Closing to fix DCO issue first.


[6.1] Cherry-pick two last-minute PRs

This PR cherry-picks two recent PRs that landed in main just after the release/6.1 branch was created.
cc @icanzilb @Kyome22

Explanation: Refactors some code in the benchmark runner for performance and clarity.
Scope: Small refactor; no change to behavior.
Issues: https://github.com/swiftlang/swift-docc/issues/1066
Original PRs: https://github.com/swiftlang/swift-docc/pull/1067
Risk: Very low. The changed code is minor and has equivalent semantics.
Testing: Automated and manual testing has passed.
Reviewers: @d-ronnqvist

Explanation: Updates Package.swift to use URLs ending in .git, for consistency with other first-party Swift packages.
Scope: Minor update to package specification.
Issues: None
Original PRs: https://github.com/swiftlang/swift-docc/pull/1073
Risk: Very low. The change updates URLs to an equivalent URL that resolves to the same dependency.
Testing: Automated testing has passed.
Reviewers: @d-ronnqvist

@swift-ci Please test

@QuietMisdreavus do we still need this PR?

Yes. I was unfortunately OOO right when this was approved, and when i came back the branch was locked for the holiday. Thanks for the reminder; i'll merge this now.


Set env variable to IP address

This extension allows to set env variables dynamicly to the IP address of a Network Interface of the computer.
How it works?

Set the value of your env variable to {{ip|defaultValue}}. The defaultValue will used if the IP address could not be determined. E.g. selected Network Interface is deactivated .
Example for .env:

     host={{ip|localhost}}
     database={{ip|<IP_ADDRESS>}}
     VERSION=1.0

Configure the EnvFile Plugin in normal way
Activate the dynamic IP setting
Choose one of the Network Interface of your Computer.  The IP address is determined later from this interface. Note: If a Network Interface has multiple IP Addresses the first will be used
Add your env file

Thank you for your contribution!
This indeed sounds like a great feature.
I've been thinking about it for a while and I'm a little bit concerned about adding it as a global setting as on the screenshot above, next to "enable substitution" etc. How do you like an idea of adding it as another "env provider type"? Currently "yaml", ".env" and so on are just datasource "plugins" that work with the extension points that EnvFile plugin exposes on its own. Current interface won't be enough for the functionality provided in this PR but I'd be positive on expanding it sufficiently for this. I could imagine table looking like:

Enabled
Type
Name
Sourcee

✅
.env
test.env
File

✅
yaml
vars.yaml
File

✅
IP
host
MyNetworkAdapterName

Thanks for your feedback.
It sounds a great Idea! I like this! I will realise this.

Update: Working on it


Allow to override PKs/FKs on relationships that have been already configured

Consider:
builder.Entity<Category>().Collection(e => e.Products).InverseReference(e => e.Category)
                    .ForeignKey(e => new [] { e.CategoryId, e.CountryId })
                    .PrincipalKey(e => new [] { e.CategoryId, e.CountryId });

builder.Entity<Category>().Collection(e => e.Products).InverseReference(e => e.Category)
                    .ForeignKey(e => e.CategoryId)
                    .PrincipalKey(e => e.CategoryId);

The second configuration will throw currently, because the FK doesn't match the PK specified previously. However doing this might be necessary when configuring a shared model for another provider or another app. This also conflicts with the general guideline of "Last configuration wins".

We agree this is incorrect and should work, but reconfiguring a relationship is not a common case so moving to backlog.


Tutorial notebook: missing "summary.show()" line

In the "notebooks/simple_logging.ipynb notebook, the 2nd to last code cell creates a Visualizer called "summary", but it is never displayed.  The line "summary.show()" should be added to fix this.

Just updated this tutorial and it should now work as described.

OK, thanks.


gedcom2text - panic: runtime error: index out of range

Input
./gedcom2text -gedcom path/to/my.ged
Output
panic: runtime error: index out of range

goroutine 1 [running]:
main.main.func1(0x6b, 0x6a, 0xc00009fb00)
	/home/travis/gopath/src/github.com/elliotchance/gedcom/gedcom2text/main.go:71 +0xfd
sort.insertionSort_func(0xc000091ea0, 0xc0003e3200, 0x64, 0x78)
	/home/travis/.gimme/versions/go1.11.5.linux.amd64/src/sort/zfuncversion.go:12 +0x93
sort.stable_func(0xc000091ea0, 0xc0003e3200, 0xf5)
	/home/travis/.gimme/versions/go1.11.5.linux.amd64/src/sort/zfuncversion.go:167 +0x51
sort.SliceStable(0x1164440, 0xc0003e31e0, 0xc00009fea0)
	/home/travis/.gimme/versions/go1.11.5.linux.amd64/src/sort/slice.go:31 +0x106
main.main()
	/home/travis/gopath/src/github.com/elliotchance/gedcom/gedcom2text/main.go:70 +0x51f

Comments

I've tried this with 35.something and 30.0.0
Why does it say /home/travis?
I've tried it with 2 separate gedcom files (though they might have some overlap - I'm not sure)
Other tools seem to work fine, e.g. ./gedcom2json -gedcom path/to/my.ged

Can you please confirm you get the error with the latest version: v37.0.3?
Are you trying to extract a specific type of information from the GEDCOM?
It includes /home/travis in the stack trace because the binary is created with Travis CI.

Thank you for the quick reply. Here I tried with the latest version v37.0.3 actually (not 35.x), same problem.

I tried the latest version on Mac OS X and on Linux
I also tried v32.something (sorry for the imprecise details, I don't remember exactly).
gedcom2json works fine
Attached is my gedcom file (please remove the .txt file):

my_family.ged.txt
I really hope I can use your software, it looks like it's the best CLI tool out there.

Thank you for providing the GEDCOM, that's what I was going to ask for next. I'll investigate.

Has this repo changed significantly since I filed this ticket? I don't see gedcom2text anymore.

@sarnobat - gedcom2text has been removed because it is not worth maintaining. Instead, you can use gedcom query with CSV output for much more control about how you want text to be output. It also supports other formats and complex filtering.
This query returns the name, birth and death in a 3 column CSV:
gedcom query -format csv -gedcom file.ged '.Individuals | { name: .Name, born: .Birth, death: .Death }'

1881,1958,Edgar Percival Chance
31 Mar 1883,26 Aug 1953,Clinton Frederick Chance
1877,,Susan Chance
1886,,Agnes Elizabeth Heming

@sarnobat does this solution work for you?

Thanks for asking and apologies for not responding, I didn't realize the ticket was left open.
My initial use case doesn't lend itself to row-based data so for now I'm creating my own solution (a fuse file system works well!).
I'd love to learn Golang one day so if I do I'd use your project as a vehicle. Thanks for these amazing tools.


Update python dependencies

Description:

Fix some dependencies to versions that we can use.
Move some dependencies to dev.

Checklist:
You should check all boxes before the PR is ready. If a box does not apply, check it to acknowledge
it.

[x] PRE-COMMIT. You ran pre-commit on all commits, or else, you
ran pre-commit run --all-files at the end.
[x] FRONTEND TYPES. Regenerate the front-ent types if you played with types and routes.
Run cd webapp && yarn types while the back-end is running.
[x] USER CHANGES. The changes are added to CHANGELOG.md and the documentation, if they impact
our users.
[x] DEV CHANGES.

Update the documentation if this PR changes how to develop/launch on the app.
Update the README files and our wiki for any big design decisions, if relevant.
Add unit tests, docstrings, typing and comments for complex sections.

@JosephMarinier @Dref360 can you both review this makes sense to you?

@JosephMarinier - are you ok with me merging as is? Did you want me to change something based on your comments?


Change encapsulation of obfuscatedId() attribute method

Whilst performing static analysis of a Laravel 11 project, I run into the following error:
Access to an undefined property App\Models\Example::$obfuscatedId.

When investigating, I came across this GitHub issue which outlines the same problem.
The outcome was that for Laravel Attributes to be recognised by static analysis, they should be protected methods as intended in the Laravel docs.
As per the Larastan Docs, the PHPDoc needs to also contain the return types of the getter and setter: In this case a string for the getter, and there is no setter, so a never for that.
Thanks for your patience with these PRs over the last 2 days. As far as I can tell, this will be my last.
Really appreciate your taking the time to look over them! 😊

Thanks again, good spot.


Fix Issue 94 Maximum call stack error if dependencies are looping when hidden

Fix of Issue #94 . Fix is to remove processed tasks from recursion looping

@MaTeMaTuK any updates on when this fix will merged?


Indexing all questions in repo's readme

Can we get the feature where after adding the solution to the repo it's internal link is added to an index in the main readme file

hey, thanks for using leethub.
i'm super busy with work these days. feel free to integrate this feature and i'll merge the PR!
closing for now...


Updating gemspec.

I pushed up 492606b which passes the outer content into the inner the render where it'll be a local variable that shadows any attempts at making an inner content variable, lol.
Don't know if I like the pattern, I just wanted to see if it would work, but it seems it doesn't.
<%= render 'account/shared/title', content: content %>

I was trying to see how to update this to look at https://github.com/bullet-train-co/nice_partials/pull/45 to see where this would be at and if 598ffa4 is still needed. But looks like another support gem has a restricted version:
3.1.2 ~/code/bullet-train-co/bullet_train-themes-light/tmp/starter main *= bundle
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies....
Bundler could not find compatible versions for gem "nice_partials":
  In snapshot (Gemfile.lock):
    nice_partials (= 0.1.6)

  In Gemfile:
    bullet_train-super_scaffolding was resolved to 1.0.32, which depends on
      bullet_train was resolved to 1.0.93, which depends on
        nice_partials (~> 0.1)

    bullet_train-themes-light was resolved to 1.0.38, which depends on
      nice_partials (>= 0.1.7)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

So I'll wait until https://github.com/bullet-train-co/nice_partials/pull/45 is merged and new release is cut, then we can see where themes/light/_page.html.erb is at.


fix(padding): remove padding from last table child

cc @aagonzales

@aagonzales have all the tables been updated to accommodate this change?

@tw15egan yeah I changed them in my most recent style tab qa PR


Supports Laravel 6.0

it is possible to start with support for Laravel 6.0 ?

Hello,
I also need support for laravel 6, did anyone qualify?

please add support for laravel 6

All packages are now updated, enjoy!
Thank you for your patience 🙂

Hello @Omranic
it's not functionnal like this, method like "array_forget" are removed.
=> https://laravel.com/docs/6.x/upgrade#helpers

@Yannik-Slym fixed in a new release, double check please..


[FIX] Update month labels to function on firefox

Hi,
I noticed that month labels weren't rendering correctly in Firefox, this is highlighted in issue #144. The problem can be seen by comparing the look of https://svelte-heatmap.netlify.app/ in Firefox and (for example) Google Chrome.
This is a small fix where the g elements are transformed so the labels are visible. The height for the heatmap is also increased so cells are not cropped due to the transform.
Running npm i and npm audit fix also updated the package-lock.json file to remove vunerabilities.

Bumped rollup-plugin svelte to fix a "Package subpath './compiler.js' is not defined by "exports"" error.
The latest commit was done to correct the transform code in my pr (only transforming g and increasing the height of the heatmap by the size of fontSize).


#130341363 Add In-game chat feature

What does this PR do?
This PR integrate a new game chat feature into the application
Description of Task to be completed?
When I am in a game, I can send messages to other users
and view sent and received messages in a public chat window
How should this be manually tested?
Test suite have been written to test the functionality of the chat, execute the test and watch them pass
Any background context you want to provide?
The game chat is only functional when a game is being played
The story is not entirely completed, as there are missing functionality dependent on other service
What are the relevant pivotal tracker stories?
Relevant story:  #130341363 (Users should be able to chat with the group while they are in a game)
Screenshots (if appropriate)
None
Questions:

Coverage remained the same at 100.0% when pulling a22071a99fdaa91cb00ed348a2e876353d0d353a on feature/130341363/in-game-chat into 1e3afa49b9a94727f076e02be3130b9053799fe3 on develop.

Coverage remained the same at 100.0% when pulling f171181b8c7a83de42146b5ece69a34db91160c3 on feature/130341363/in-game-chat into 1e3afa49b9a94727f076e02be3130b9053799fe3 on develop.

Coverage remained the same at 100.0% when pulling 3f8bdd88d95301701f106a332eb983a8114f9344 on feature/130341363/in-game-chat into 1e3afa49b9a94727f076e02be3130b9053799fe3 on develop.

Coverage remained the same at 100.0% when pulling 5c148b57b33e5ae3c46083eebca95e6ff685d1e6 on feature/130341363/in-game-chat into 1e3afa49b9a94727f076e02be3130b9053799fe3 on develop.

Coverage remained the same at 100.0% when pulling 1ca1b58f64812488d951e1412212d3f190194c5a on feature/130341363/in-game-chat into 1e3afa49b9a94727f076e02be3130b9053799fe3 on develop.

Coverage remained the same at 100.0% when pulling a87c71f35bfdfb77bc3154944e82d522f4731cdb on feature/130341363/in-game-chat into 1e3afa49b9a94727f076e02be3130b9053799fe3 on develop.

Coverage remained the same at 100.0% when pulling ccac2183191c06d1a505d73df4266fe34896d458 on feature/130341363/in-game-chat into 1e3afa49b9a94727f076e02be3130b9053799fe3 on develop.

Coverage remained the same at 100.0% when pulling 087d9f1dcf00ddefc6eea795c9ff4043fc487e58 on feature/130341363/in-game-chat into 1e3afa49b9a94727f076e02be3130b9053799fe3 on develop.

Coverage remained the same at 100.0% when pulling 516b267c1646880c957b114db6434b1867d63d40 on feature/130341363/in-game-chat into 1e3afa49b9a94727f076e02be3130b9053799fe3 on develop.

@cyrielo and @andela-abisoye fix this comments and let's merge in!

Coverage remained the same at 100.0% when pulling 903e7ef2e006acfb1e828fb1d48e673e33ff3ff5 on feature/130341363/in-game-chat into 1e3afa49b9a94727f076e02be3130b9053799fe3 on develop.

Coverage remained the same at 100.0% when pulling fd94006fca2933b2425ff3834e2acc7e4ff1fea9 on feature/130341363/in-game-chat into 1e3afa49b9a94727f076e02be3130b9053799fe3 on develop.


i18n(zh-cn): Update editor-setup.mdx

Description (required)
Update editor-setup.mdx
Related issues & labels (optional)

#9240
Suggested label: i18n

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File
Note

zh-cn/editor-setup.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


Losing code syntax highlighting when changing buffer

Let's say I have syntastic enabled and that I open these two files in the same window :

I jump from a file to another by changing the buffer in the window. Sometimes, when syntastic notifies me about syntax errors and after changing the buffer inside the window (I haven't noticed anything else that would trigger that), I lose code syntax highlighting :

When I change the buffer from the .cpp file to the .hpp file, syntastic's window disappears (as if it wouldn't do any syntax check inside .hpp file). Does changing back and forth the buffer inside the same window would kind of confuse syntastic ?
I know that after the bug has appeared, it keeps coming back (after having :set syntax=cpp) each time I go back and forth changing buffers. I've also noticed that disabling syntastic (:SyntasticToggleMode) does solve the issue. However, until I restart vim, reenabling syntastic will make the bug come back. That's a bit odd.
What's happening?

Syntastic has nothing to do with enabling or disabling syntax highlighting (not intentionally anyway).  Does the problem still occurs if you disable all other plugins?  What OS do you have, what version of Vim, and what version of syntastic?
:SyntasticToggleMode doesn't "disable syntastic", it just toggles checking mode between active and passive.  What exactly did you do to run into the problem you're accusing?  Do you have a minimal set of files that can be used to reproduce the problem?  When the problem occurs, is the filetype of the file in cause still correct?

One more thing: do you have autocmds that get triggered when you switch buffers?  If yes, does the problem still occur if you disable them?

OS : Archlinux
Vim version : latest (it's archlinux), Vim 7.4.617
Syntastic version : 3.6.0-14
I have some autocommands

Here's a small video showing the bug.
The bug doesn't happen systematically. While the bug occured more than one time, I haven't been able to reproduce it with or without my other plugins enabled yet just after your posts. I'll give more information after testing more.

Here's a small video showing the bug.

Please try to answer my questions above.  The point is not to convince me you're seeing a problem (I do take your word for it), but to find out what's going on.

Ping.

I haven't work on this yet. I was busy doing something else. I have work to do using. I'll be able to give more detail in a week or two.

For what it's worth: I took a look at your vimrc.  Your problem might be related to these lines.  autocmds are fragile and non-deterministic.  A complete explanation of why these might lead to the behaviour you're seeing is beyond the scope of this tracker, but you can take my word for it that it's a bad idea to mix them with other BufWrites.

I'm sorry, but this vimrc file is really old. I've changed it alot and the BufWrite commands aren't there anymore.

Whatever.  My point still stands: the more autocmds you have (either yours or brought in by plugins), the more trouble you're asking for. :) Setting things like filetype and tabstop doesn't count, but anything more complex than that does.

Any update on this? I'm having the same issue. I'll try disabling the other plugins and see if that fixes the issue. Also, it only happens when I switch to a specific buffer using ":b foo.cpp". I'm running Ubuntu 14.04, vim 7.4.273, syntastic 3.5.0 - 72.

Still waiting for answers to the questions above:

Does the problem still occur if you disable all other plugins?
What exactly did you do to run into the problem you're accusing?
Do you have a minimal set of files that can be used to reproduce the problem?
When the problem occurs, is the filetype of the file in cause still correct?
When the problem occurs, what is the output of :syntax?
Do you have autocmds that get triggered when you switch buffers?
If yyou do have autocmds that get triggered when you switch buffers, does the problem still occur if you disable them?

Ok, please feel free to reopen this when you feel ready to answer the questions above.

I was experiencing this problem and disabling minibufexplorer plugin seems to have resolved this. Sorry for bumping old thread


Max Coins Set To "0" but the bot still keeps buying

So, here is a new issue I just came across that I haven't encountered before. Today, as usual my portfolio was holding 20 coins, the market was is in the red, I didn't want to buy any coins yet incase some sold later during the day assuming the market may swing up. I have many times set the Max Coins setting to 0 not wanting to buy any coins.
Well, I did the same thing today. I went ahead and set the Max Coins: 0 and guess what? It went ahead and immediately purchased 19 more coins and I now have 39 coins
Is there a logical explanation to this?

From the code point of view, Max Coins Set To "0" means that there is no limit to the number of coins purchased, that is, infinity

That is correct, set it to -1 if you do not want it to ever buy.

Will the bot take changes to config.yml when live?

Whenever I make any changes to config or any thing for that matter of fact, I always restart the bot for the changes to take effect
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Angel @.>
Sent: Sunday, August 1, 2021 8:41 AM
To: @.>
Cc: @.>; @.>
Subject: Re: [CyberPunkMetalHead/Binance-volatility-trading-bot] Max Coins Set To "0" but the bot still keeps buying (#200)
Will the bot take changes to config.yml when live?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/CyberPunkMetalHead/Binance-volatility-trading-bot/issues/200#issuecomment-890514099, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUL72BE4LHTGJIJ7US3KFDLT2U6IHANCNFSM47SVFR4Q.


[BUG] Stopping rke-server on ControlPlane node causes other nodes to go NotReady

Rancher Server Setup

Rancher version: v2.8.2

Information about the Cluster

Cluster Type (Local/Downstream): Downstream

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): RKE2

Describe the bug

Stopping rke2-server on a control plane node can cause other nodes to go into a NotReady state.
To Reproduce

Provision split roles RKE2 cluster (3 etcd, 2 controlplane, 3 worker)
systemctl stop rke2-server.service on one of the controlplane nodes
Check status of the nodes after a few seconds to allow connections to fail
If other nodes did not change, start it back up and try another node

Result
Agents continue to use loadbalancer connection to previous controlplane node, however apiserver is not running causing nodes to go NotReady
Expected Result

Agents do not go NotReady.
Screenshots

Additional context

https://github.com/rancher/rke2/issues/5614
https://github.com/k3s-io/k3s/issues/9910
SURE-7881

Moving to test as issue can be tested with the following versions of RKE2/K3s:

v1.28.9+k3s1
v1.27.13+k3s1
v1.28.9+rke2r1
v1.27.13+rke2r1

Closing this as this is RKE2 standalone issue tracked in https://github.com/rancher/rke2/issues/5614


Invoke deactivation callback when using Tornado StackContext

Found a small memory leak where a Flask server was lazily instantiating sync TChannel to make outbound request. The TChannel instance starts a new thread and installs a periodic callback to advertise to Hyperbahn. That periodic callback is being installed in the context of a tracing span stored in the StackContext, so the stack context is preserved forever, holding onto the span.

lgtm

Makes sense. :ship:


fix(validator): support json api header

The author should do the following, if applicable

[x] Add tests
[x] Run tests
[x] bun run format:fix && bun run lint:fix to format the code

specs: https://jsonapi.org/format/

All tests have passed


Ensure Reproducibility and Deploy the App

rubric={mechanics: 30}

[x] Deploy the app using Render and include the link on the GitHub repo where the user can find it easily (README.md or about section).

[x] Add in the README.md a reference section to the dataset you are using.

Implemented with https://github.com/J99thoms/Super-Smash-Dashboard/commit/37c0a2df9f1085c4fab9b54409f244adbaf53cd7 and https://github.com/J99thoms/Super-Smash-Dashboard/commit/becb4ece8a19ce347fa7a0ed96c174f0c5f86e1d.


Fixed #36: Added a new action for building documentation on PR.

Codecov Report

Merging #38 (7c1f2e9) into main (5e93db8) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #38   +/-   ##
=======================================
  Coverage   95.89%   95.89%
=======================================
  Files          19       19
  Lines         756      756
=======================================
  Hits          725      725
  Misses         31       31

Continue to review full report at Codecov.

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


Wide runes console fix

All drivers are rendering well on the Windows Terminal for wide runes.
Fixes #1673

What do I need to fix in the Character Map Scenario to fix it now that you've done this?

I almost already have the Character Map also corrected on Windows Terminal but for that I will submit a pull request to the NStack repo, before it is really possible. I am just trying to deal with some different behaviors between WindowsDriver and CursesDriver.

I almost already have the Character Map also corrected on Windows Terminal but for that I will submit a pull request to the NStack repo, before it is really possible. I am just trying to deal with some different behaviors between WindowsDriver and CursesDriver.

Should I wait to approve this PR until that's done? Or are they really separate issues?

When I have this PR ready it can be approved even before the PR that I will submit to the NStack is approved, but the necessary corrections can only be visible after the correction is merged in the NStack and published to Nuget.

I hope @migueldeicaza could merge my pr https://github.com/migueldeicaza/NStack/pull/57 to this working better.

I'll check it out soon!

@tig you need rerun the actions because it's a false fail build.


Add permissions for users to modify their own data

A form will be added in #409 for users to be able to modify their own data. They should also be able to do that for their password resets. Currently, there is no easy way to grant a user permission to modify their own user, since there will be no UI to create permissions, only to create groups and associate them with permissions, and the default permissions associated to users are for all users.
Modify the user creation process so that, when a user is created:

Permissions are created for that specific user
Read/write groups are created for that specific user
That user is added to those same two groups

Addressed in #434


Improve EvaluationRunner

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (751e498) to head (161b91c).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #219   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           81        81
  Lines         1940      1943    +3
  Branches       181       181
=========================================
+ Hits          1940      1943    +3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


during wit add-pkg $FOO_PATH or wit add-pkg foo getting some error

following is the code which i got by comand mentioned in the subject of the issue, because of this it couldn't add package in the wit-workspace.json:
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/shraddha/wit/lib/wit/main.py", line 11, in
main()
File "/home/shraddha/wit/lib/wit/main.py", line 129, in main
add_pkg(ws, args)
File "/home/shraddha/wit/lib/wit/main.py", line 196, in add_pkg
ws.add_dependency(args.repo)
File "/home/shraddha/wit/lib/wit/workspace.py", line 196, in add_dependency
dep = dependency_from_tag(self.root, tag)
File "/home/shraddha/wit/lib/wit/main.py", line 208, in dependency_from_tag
source = repo.get_remote()
File "/home/shraddha/wit/lib/wit/gitrepo.py", line 139, in get_remote
self._git_check(proc)
File "/home/shraddha/wit/lib/wit/gitrepo.py", line 248, in _git_check
raise GitError(msg)
wit.gitrepo.GitError: Command [git remote get-url origin] exited with non-zero exit status [128]
stdout: []
stderr: [fatal: No such remote 'origin']

Please give or suggest me some solution for this as soon as possible, because I am stuck here since last 4 days.

Resolved. It is working fine, now.


Why running with crontab showing sqlite3.OperationalError: near "(": syntax error

The script works well with command line . But while running with cron it shows the follwing error.
2022-05-08 19:40:02,089: cryptg detected, it will be used for encryption
2022-05-08 19:40:02,596: starting Telegram sync (batch_size=4000, limit=0, wait=5, mode=standard)
2022-05-08 19:40:02,601: Connecting to <IP_ADDRESS>:443/TcpFull...
2022-05-08 19:40:02,606: Connection to <IP_ADDRESS>:443/TcpFull complete!
2022-05-08 19:40:02,688: fetching from last message id=2102 (2022-05-07 00:00:00)
2022-05-08 19:40:02,875: finished. fetched 0 messages. last message = 2022-05-07 00:00:00
2022-05-08 19:40:28,689: building site
Traceback (most recent call last):
File "/usr/local/bin/tg-archive", line 11, in
load_entry_point('tg-archive==0.5.4', 'console_scripts', 'tg-archive')()
File "/usr/local/lib/python3.6/site-packages/tgarchive/init.py", line 150, in main
b.build()
File "/usr/local/lib/python3.6/site-packages/tgarchive/build.py", line 58, in build
for d in self.db.get_dayline(month.date.year, month.date.month, self.config["per_page"]):
File "/usr/local/lib/python3.6/site-packages/tgarchive/db.py", line 128, in get_dayline
""", (limit, "{}{:02d}".format(year, month)))
sqlite3.OperationalError: near "(": syntax error

Possibly related:

https://stackoverflow.com/questions/18053707/python-code-don-t-work-when-launched-by-cron/18053780
https://serverfault.com/questions/1080369/script-backups-sqlite-database-when-ran-as-a-cron-the-db-and-names-are-mangled

Please share your crontab entry.

Thank you for your quick response ... Here is the cron
#!/bin/bash
cd /home/user/public_html/tg/
/usr/local/bin/tg-archive --sync
echo 'sync'
sleep 25
/usr/local/bin/tg-archive --build
echo 'build'
exec bash

hm, the script looks fine. Please check the links I shared above. Maybe you'll have to execute the cron with the appropriate user. Not sure why it's throwing a syntax error though.

Ok i am checking with above links. The script is running with user root

How can i declare local db full path in cron?

/usr/local/bin/tg-archive --data=/home/your-path/data.sqlite --sync

Tried everything not working . Any one have working script for cron.

Hey,
got following working in Debain 10.
As I don't have added tg-archive to user paths, I need to set the path to the binary in the script to make it working from cron.
You have to add the paths to the directories containing the tg-archive data in the script. So this script can sync all of your channels with one cron entry.
However there is a bug with downloading media files, which the script does not yet cover. I'm currently testing the solution on my maschine, unfortunately the channel contains very big files and so it needs some time. If it works I will paste it in issue #52
Btw. python logging posts everything to stderr, if you want a logfile you need to configure the crontab entry like following:
0       6       *       *       *       /some/path/poll_telegram_channels.sh >> /some/path/cron_tg_archiver.log 2>&1

#!/bin/bash

# Setting up absolute path as cron can't find program ...
tg_archiver_bin='/usr/local/bin/tg-archive'

# Declaring empty array and adding values one by one for better readability.
tg_archive_paths=()

# Add paths one by one. Don't use ~ as this doesn't work in script!
tg_archive_paths+=("/home/tg-archive/first_channel")
tg_archive_paths+=("/home/tg-archive/second_channel")

# Iterate over each directory, poll new messages and build new html pages
for tg_archive_path in ${tg_archive_paths[@]}
do
        echo "Updating directory '$tg_archive_path' ..."

        # Switching to directory as tg-archive doesn't work well with parameterized call ...
        cd "$tg_archive_path"
        if [[ $? -ne 0 ]]
        then
                echo -e "ERROR: Directory does not exist, skipping this one!\n"
                continue
        fi

        # Getting new messages
        $tg_archiver_bin --sync

        if [[ $? -ne 0 ]]
        then
                echo -e "ERROR: Telegram sync on '$tg_archive_path' failed!\n"
                continue
        fi

        # Building HTML content
        $tg_archiver_bin --build
        if [[ $? -ne 0 ]]
        then
                echo -e "ERROR: Page build on '$tg_archive_path' failed!\n"
                continue
        fi

        echo -e "Updated directory '$tg_archive_path'.\n"
done

Thanks for your response ..
Unfortunately it is not working .It shows the following
Updating directory '/home/directory/ch' ...
2022-05-21 22:29:02,281: cryptg detected, it will be used for encryption
2022-05-21 22:29:02,671: starting Telegram sync (batch_size=2000, limit=0, wait=5, mode=standard)
2022-05-21 22:29:02,674: Connecting to <IP_ADDRESS>:443/TcpFull...
2022-05-21 22:29:02,677: Connection to <IP_ADDRESS>:443/TcpFull complete!
2022-05-21 22:29:02,723: fetching from last message id=2159 (2022-05-21 00:00:00)
2022-05-21 22:29:03,048: finished. fetched 0 messages. last message = 2022-05-21 00:00:00
2022-05-21 22:29:03,740: building site
Traceback (most recent call last):
File "/usr/local/bin/tg-archive", line 11, in
load_entry_point('tg-archive==0.5.4', 'console_scripts', 'tg-archive')()
File "/usr/local/lib/python3.6/site-packages/tgarchive/init.py", line 150, in main
b.build()
File "/usr/local/lib/python3.6/site-packages/tgarchive/build.py", line 58, in build
for d in self.db.get_dayline(month.date.year, month.date.month, self.config["per_page"]):
File "/usr/local/lib/python3.6/site-packages/tgarchive/db.py", line 128, in get_dayline
""", (limit, "{}{:02d}".format(year, month)))
sqlite3.OperationalError: near "(": syntax error
ERROR: Page build on '/home/directory/ch' failed!

Tested with Centos 7

Does your sync work if you start it outside of cron?

Yes. The original comment said:

The script works well with command line . But while running with cron it shows the follwing error.

I had some issues when I've installed the application via pip. After cloning the repository from git and installing it, it worked fine for me. Maybe you want to give this a try?

Still.... Any solution?
On Fri, 26 Aug, 2022, 10:50 am Kailash Nadh, @.***>
wrote:

Closed #58 https://github.com/knadh/tg-archive/issues/58 as completed.
—
Reply to this email directly, view it on GitHub
https://github.com/knadh/tg-archive/issues/58#event-7264662615, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOIAY65FQCZFYLNPJ2RBO5LV3BHYBANCNFSM5VL7WFEA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Add c - addresses first part of #82

Addresses first part of #82

Actually, it was due to the script used to generate the syntax file
https://github.com/randy3k/R-Box/blob/8bb15bc921505395e22107029dd05b33be149774/syntax.R#L20


make an initial README

@rorymurdock this is for you :)

document all the current keys
document that right now you can only manage nudge via the json, currently located at /Library/Preferences/com.github.macadmins.Nudge.json and you can find a full example within the xcode project
Add a note about -demo mode and how to invoke it
Note that this is ** not ready for production use**
Maybe add a blurb how you can build the app

Also note that you don't have to specify all the keys. The following could be used as an example.
{
    "optionalFeatures": {
        "iconDarkPath": "/anywhere/logoDark.png",
        "iconLightPath": "/anywhere/logoLight.png",
        "informationButtonPath": "https://github.com/macadmins/Nudge",
        "randomDelay": false,
        "screenShotDarkPath": "/anywhere/screenShotDark.png",
        "screenShotLightPath": "/anywhere/screenShotLight.png"
    },
    "osVersionRequirements": [
        {
            "majorUpgradeAppPath": "/Applications/Install macOS Big Sur.app",
            "requiredInstallationDate": "2021-02-13T00:00:00Z",
            "requiredMinimumOSVersion": "11.2.1",
            "targetedOSVersions": [
                "11.0",
                "11.0.1",
                "11.1",
                "11.2"
            ]
        }
    ],
    "userInterface": {
        "updateElements": {
            "mainContentHeader": "A security update is required on your machine.",
            "mainContentText": "A fully up-to-date device is required to ensure that we can adequately protect your computer.\n\nIf you do not update your computer, you may lose access to some items necessary for your day-to-day tasks including Wi-Fi.\n\nTo begin the update, simply click on the button below and follow the provided steps.",
            "mainHeader": "macOS Update Available",
            "subHeader": "A friendly reminder from your Client Platform Engineering (CPE) team"
        }
    }
}

Also Xcode 12.4 is recommended.

an initial README is available as is a detailed wiki with all the preferences: https://github.com/macadmins/nudge/wiki


Add resolve package to snowpack direct dependencies

Uses of the resolve package are sometimes getting bundled into snowpack, but this isn't listed as a direct dependency.
This is a common package, so I suspect for most users it is resolvable. However, for new projects (e.g. the minimal create-snowpack-app using snowpack v3.0.12) this is isn't getting installed, causing a module not found error when running snowpack.
You can see in snowpack v3.0.12 there is a require("resolve") on line 1<EMAIL_ADDRESS>It's not there in v3.0.11 (and this version of snowpack doesn't error<EMAIL_ADDRESS>Looks like it was previously being installed along with esinstall. This might have been intermittent since c566aa10d78564cfdf41577c5ce46cc5b97517ef ?
Changes
Adds a direct dependency on resolve to the snowpack package.
Testing
Steps to reproduce:

Run npx create-snowpack-app broken-resolve --template @snowpack/app-template-minimal
Install packages (including snowpack v3.0.12)
Run snowpack dev and see that snowpack is failing with a MODULE_NOT_FOUND error.
Install resolve
Run snowpack dev and see that the error has been addressed.

Error message:
$ snowpack dev
node:internal/modules/cjs/loader:928
  throw err;
  ^

Error: Cannot find module 'resolve'
Require stack:
- /.../broken-resolve/node_modules/snowpack/lib/index.js
- /.../broken-resolve/node_modules/snowpack/index.bin.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
    at Function.Module._load (node:internal/modules/cjs/loader:769:27)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/.../broken-resolve/node_modules/snowpack/lib/index.js:1:192)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:973:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:997:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/.../broken-resolve/node_modules/snowpack/lib/index.js',
    '/.../broken-resolve/node_modules/snowpack/index.bin.js'
  ]
}

Docs
Bug fix only. Thanks! 😄

Thanks for the fix! We committed a fix separately this morning when we realized what went wrong, so this can be closed.


Search for activity by ID (key)

Update the API to allow searching filtering by ID (key query param).
Parameters can be combined into one filter in the query (e.g. api/activity?key=5881028&participants=1 will match the same activity as api/activity?key=5881028, but api/activity?key=5881028&participants=2 will not find anything). As a result, adding the parameter to Bored.now as a keyword argument is sensible.

Fixed by #12


Added .dsql file detection

.dsql is used by Microsoft's Parallel Data Warehouse. For lack of a corporate branding, a little bit of google search yielded a lean towards purple. So here it is as light-purple. Anyway - the focus is on differentiation from the standard sql icon rather than a specific colour.

Cheers!


Update plugin.yml

don't see much change in 408 so there shouldn't be any problem?

yes it should works


python312Packages.griffe: 0.42.1 -> 0.42.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.griffe is: Signatures for entire Python programs
meta.homepage for python312Packages.griffe is: https://github.com/mkdocstrings/griffe
meta.changelog for python312Packages.griffe is: https://github.com/mkdocstrings/griffe/blob/0.42.2/CHANGELOG.md
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.42.2 with grep in /nix/store/4bidmlx7s2qyid4v58d584w9xg6pg9yp-python3.12-griffe-0.42.2
found 0.42.2 in filename of file in /nix/store/4bidmlx7s2qyid4v58d584w9xg6pg9yp-python3.12-griffe-0.42.2

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

8 package rebuild(s)

First fifty rebuilds by attrpath
griffe
netbox
netbox_3_6
netbox_3_7
python311Packages.griffe
python311Packages.mkdocstrings-python
python312Packages.griffe
python312Packages.mkdocstrings-python

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/4bidmlx7s2qyid4v58d584w9xg6pg9yp-python3.12-griffe-0.42.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python312Packages.griffe https://github.com/r-ryantm/nixpkgs/archive/a2e9ba30c8ab98756d0fb3ffb24a864d638471a3.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/a2e9ba30c8ab98756d0fb3ffb24a864d638471a3#python312Packages.griffe

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/4bidmlx7s2qyid4v58d584w9xg6pg9yp-python3.12-griffe-0.42.2
ls -la /nix/store/4bidmlx7s2qyid4v58d584w9xg6pg9yp-python3.12-griffe-0.42.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

10 packages built:

griffe (python311Packages.griffe)
griffe.dist (python311Packages.griffe.dist)
netbox (netbox_3_7)
netbox_3_6
python311Packages.mkdocstrings-python
python311Packages.mkdocstrings-python.dist
python312Packages.griffe
python312Packages.griffe.dist
python312Packages.mkdocstrings-python
python312Packages.mkdocstrings-python.dist

Maintainer pings
cc @fabaff for testing.

Result of nixpkgs-review pr 304437 run on x86_64-linux 1

9 packages built:

griffe (python311Packages.griffe)
griffe.dist (python311Packages.griffe.dist)
netbox (netbox_3_7)
python311Packages.mkdocstrings-python
python311Packages.mkdocstrings-python.dist
python312Packages.griffe
python312Packages.griffe.dist
python312Packages.mkdocstrings-python
python312Packages.mkdocstrings-python.dist