Don't include sibling files that have a filename starting with the directory name

I have a directory called "References" and an (unlinked) file called "References.md" on the same level as the directory. When I execute "find unlinked files" on the directory, the output includes "References.md" despite the file not being under the directoy.
The same problem occurs when the directory is e.g. just called "Ref". Also if I have a directory called "Ref" and a sibling directory called "References", searching for unlinked files in "Ref" also includes unlinked files in "References".

Should be fixed in the new version.

Thanks a lot :)


BTDF build is getting failed, Error SQLLib80.dll is not found

BTDF build is getting failed in our testing enviornment, after window patch, by giving following error:-
D : \Program Files (x86)\IBM\Client Access\Shared\SQLLib80.dll is not found
This work item was migrated from CodePlex
CodePlex work item ID: '11064'
Vote count: '1'

[tfabraham@2/29/2016]
Sorry, but IBM Client Access software is not related to the Deployment Framework, so I cannot support it.

[UnknownUser@2/29/2016]


feat(profile): Fill out profile

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?


Do you have any plans for rfcn or light head rcnn?

Will you support rfcn or light head rcnn?

R-FCN is in our release plan but not urgent. Contributions are welcome for other variants.


Build before starting.

I think it makes sense to build before starting. Some more work incoming.

Thanks merging!


Download 2018

Hey,
I was not able to download the PDFs for 2018. Always results in ~100 byte-ish files.
python download_proceedings.py ../database/proceedings/2018.json ../database/pdfs
Can you reproduce this?

hum that's odd ... but I wonder, do we still need to? the PDFs have been successfully cloned from the URL that the organizers had tweeted out, and they also made it back in the conference website upload http://github.com/ismir/ismir2018

No, I think this is obsolete with the new file structure.


Use default timeout and retransmission values for the NFS mount.

Description
When an NFS primary storage pool is created, Libvirt mounts the pool with the default NFS configurations (that can be customized by ADMINS via /etc/nfsmount.conf)
This would be a typical mounted NFS pool:
~# mount -v | grep <pool_path>
<pool_addr>:/<pool_path> on /mnt/a58cd909-77b7-3c48-b355-f9aeddf1a215 type nfs4 (rw,nosuid,nodev,noexec,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=<clientAddress>,local_lock=none,addr=<pool_addr>)

However, in case the pool is umounted (for whatever reason) kvmheartbeat.sh remounts with timeo=133 and retrans=10:
~# mount -v | grep <pool_path>
<pool_addr>:/<pool_path> on /mnt/a58cd909-77b7-3c48-b355-f9aeddf1a215 type nfs4 (rw,relatime,sync,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,soft,noac,proto=tcp,timeo=133,retrans=10,sec=sys,clientaddr=<clientAddress>,local_lock=none,a
ddr=<pool_addr>)

This PR aims at removing the hard-coded values to make sure that kvmheartbeat.sh "re-mounts" the partitions accordingly to the expected parameters.
Note that if one wants to have a different timeout than the default of 600, it would be possible to achieve it by setting config: /etc/nfsmount.conf
[ NFSMount_Global_Options ]
timeo=1800

With this PR, then it would work fine either with the Libvirt mount and kvmheartbeat.sh "re-mount".
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[X] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[X] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

umount primary storage
wait for kvmheartbeat.sh to mount it back
check that there is no longer the hardcoded parameters and the pool NFS timeout and retransmission values respect the default value (or the one set by ADMINs)

@blueorangutan package

@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 2674

@blueorangutan test

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests


Just started happening - 500 error returned on API requests

Describe the bug
A 500 internal server error is being returned to me using the below call:
https://api.pirateweather.net/forecast/[redacted key]/-33.90,18.51
It was first noticed on our app at 06:38 UTC today.
Expected behavior
When calling the api, I should receive a payload with weather forecasts.
Actual behavior
Instead, I receive a 500 internal server error.
This is still happening now. I have tested with a couple of other locations (not extensively) with the same result.
API Endpoint
Production
Location
South Africa
Other details
No response
Troubleshooting steps

[X] I have searched this repository and Home Assistant Repository to see if the issue has already been reported.
[X] I have read through the API documentation before opening this issue.
[X] I have written an informative title.

Same for me since yesterday evening

There was some downtime yesterday evening which was fixed but looks like it went down again overnight. Will ping @alexander0042 to look into this ASAP.

Everything is back up and running again. Below is what @alexander0042 posted in another issue:

Really sorry for this! Bug in a config file took down both production backends. It's fixed now, so should be working again


Nnguide

We have implemented the ICCV23 paper "Nearest Neighbor Guidance for Out-of-Distribution Detection" (NNGuide) and appended it to the README File methods list.
In order to show the best performance of NNGuide which is dependent to the backbone architecture, we added the files for loading torchvision library's RegNet.
In addition, we added the post-processor and configuration file for NNGuide.
NNGuide depends on random samples of training dataset using them as bank sets, so we changed the shuffle argument in training data loader in "eval_ood_imagenet.py" to True.
By running NNGuide with the default config file(which we committed), results are shown as below.
OOD ::
nnguide.csv

FSOOD:
nnguide.csv
Reference : Park, Jaewoo, Yoon Gyo Jung, and Andrew Beng Jin Teoh. "Nearest Neighbor Guidance for Out-of-Distribution Detection." Proceedings of the IEEE/CVF International Conference on Computer Vision. 2023.

Hi @jungyg congrats on your ICCV paper, and thank you for these detailed considerations of integrating NNGuide into OpenOOD, which significantly reduce our burden 👍 We will take a brief overview of your commits asap.

The NNGuide entry has been added to ImageNet-1K (standard and full-spectrum) leaderboard. Check it here.

Thank you very much for your quick process!

How to start NNGuide?
Is there a script? https://github.com/Jingkang50/OpenOOD/tree/main/scripts/ood

@jS5t3r From the commits of this pull request, it seems the authors of NNGuide only enables the usage via https://github.com/Jingkang50/OpenOOD/blob/main/scripts/eval_ood_imagenet.py, where you can specify the post-processor to be nnguide.

@zjysteven no result folder iscreated, how to fix this?


How to generate shared link?

How to get generated share link from file was uploaded?

you can right-click on your uploaded file and choose share. Change "restricted"  to "everyone with the link".


Solving environment: failed with initial frozen solve. Retrying with flexible solve.

I run conda install -c conda-forge accimage
I get
PackagesNotFoundError: The following packages are not available from current channels:

accimage

Current channels:

https://conda.anaconda.org/conda-forge/osx-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org

and use the search bar at the top of the page.

The same problem. Cannot install.

I was able to install accimage into a fresh python 3.7 and 3.8 environment.

Does having a fresh python environment is a must?
Because I have python 3.7.0 and cant install it
[image: Mailtrack]
https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&
Sender
notified by
Mailtrack
https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&
13/06/20,
16:15:04
On Thu, 11 Jun 2020 at 22:21, Will Price<EMAIL_ADDRESS>wrote:

I was able to install accimage into a fresh python 3.7 and 3.8 environment.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pytorch/accimage/issues/27#issuecomment-642933916,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEIBF43Y46DPC2FDJIUCWGLRWFDFPANCNFSM4NYTT2QQ
.

Did you solve this problem? I have the same problem and cannot install accimage @farshidrayhan

I'm having the same issue

I'm having the same issue with python 3.9


selectionDirection missing from HTMLInputElement

TypeScript Version:
1.8.7
Code
var input = document.createElement('input');
var dir = input.selectionDirection;
input.setSelectionRange(0, 0, 'none');

Expected behavior:
selectionDirection property would be accessible for HTMLInputElements and I would be able to set selectionDirection propety using setSelectionRange.
Actual behavior:
Lines 2 and 3 of the above code give the errors:

Property 'selectionDirection' does not exist on type 'HTMLInputElement'.
Supplied parameters do not match any signature of call target.

These are handled through the lib generator for TypeScript: Microsoft/TSJS-lib-generator.

I tried to create a PR on there, but I couldn't find what files to edit.

From https://github.com/Microsoft/TSJS-lib-generator#contribution-guidelines

For common changes, it is sufficient to change the json files. There are three json files that are used to alter the file generation: addedTypes.json, overridingTypes.json, and removedTypes.json. The format of each file can be inferred from their existing content.

you will need to update overridingTypes.json

The selectionDirection property had already been implemented in TSJS-Repo.
Maybe, This change will adopt to TS later.


Change code carryover behavior in Skillmap

Change the Skillmap code carryover behavior from “Last Connected” to “Last Coded”
The Last Connected behavior (which is what we do today) carries over code from the last connected skillmap node.  This is problematic for optional skillmap branches, since a student could choose to start a branch from a non-connected node in the skillmap and lose their progress.
Last Coded behavior would carry over code from the last completed tutorial.  This allows for more freedom for students to start optional tutorials at any point in the skillmap without losing their progress.  Notes:

Optional branches must truly be optional and have no dependencies or opportunities for conflict with other nodes in the Skillmap
Disconnected nodes (not on the same Skillmap Learning Path) will not get code carryover

Restarting a tutorial in the skillmap

Start Fresh – starts with the template code from that node (loses all previous work)
Keep Code – keeps all previous code

Also, include a preview/snapshot of the user code in the Keep Code dialog box to help users understand what code is being carried over.

We implemented "Replace my code"


K8s 118: Apply the CRDs before applying the CR

Description
Changes proposed in this pull request:

With k8s 1.18 we cannot apply CRDs and CR together in the same file. So change the behavior to apply first the CRD and then the CR

Related issue(s)

https://github.com/kyma-project/kyma/issues/8360

Related PR for CLI: https://github.com/kyma-project/cli/pull/485
Related PR on Prow: https://github.com/kyma-project/test-infra/pull/2517

@Szymongib I had to remove the extraction part since i did not wanted to send merged yaml file anymore from the cli. I have moved that part in to deployInstaller function definition.


Fix memory corruption that can arise from Array.copy_to

This is based heavily on stefandd's work from
https://github.com/ponylang/ponyc/pull/4173
Closes #4174

Action linting failure is expected. The linter doesn't know about macos-14 yet.


Add awareness for cursor position in selection-related behaviors across desktop platforms

My recollection from working on Gecko macOS text selection many years ago is that desktop platforms have different expected behaviors around how keyboard text selection interacts with existing selections, especially mouse-based. In particular: if you select some text, then shift-left-arrow or shift-right-arrow, what happens? Does it matter if the text was selected from left to right or right to left with the mouse?
We should audit this behavior on each desktop platform in a native text field, then make sure the framework handling matches on each platform.

Related note: @robert-ancell noticed that the base and extent reported by the framework doesn't seem to be different for left-to-right vs right-to-left selection, which may be an issue for getting correct behavior everywhere.

Tl;dr: All native platforms agree on this behavior, but Flutter behaves differently and needs to be updated.
The pivot point is the edge of the selection that remains fixed during the shift/arrow operations before any reversal.  Here is an example of each on Mac:

Pivot point left
Pivot point right

For a selection in the middle of the text made with a mouse in the given direction, the behavior is given when holding shift and using the arrow keys.

Flutter
OSX 10.15.7 TextEdit
Windows 10 Home Notepad
Ubuntu 20.04.1 LTS TextEditor

Left to right
Pivot point right
Pivot point right
Pivot point right
Pivot point right

Right to left
Pivot point right
Pivot point left
Pivot point left
Pivot point left

Is there anything else I'm missing that I should try?  Otherwise it seems that Flutter just needs to adjust its behavior to match all the other platforms (no need to adjust per-platform).
I confirmed that Flutter's TextSelection has its base set to the lowest point and extent set to the highest, regardless of the direction of the selection.  So indeed, TextSelection does not currently have the information we need to change the pivot point unfortunately.
Here is where we are swapping base and extent to be in ascending order in the codebase:
https://github.com/flutter/flutter/blob/b372c52b2f428c477cb0cdcff9a299ac633b279d/packages/flutter/lib/src/rendering/editable.dart#L1854-L1857

Here's a (WIP) PR to match the native behavior: https://github.com/flutter/flutter/pull/71756
If that doesn't seem to totally break everything, I'll try to move forward with it next week.

Other mouse selection modes like double click followed by keyboard selection adjustment would be good to try. I'm pretty sure there are (were?) at least some edge cases where Windows and macOS disagree about whether to expand or contract selection.
But matching for the simple case would definitely be a good start and could be done first, with edge cases handle later if necessary.

Thanks, I was able to find a bunch of differences!
Here's what happens after double clicking to select:

Flutter
OSX 10.15.7 TextEdit
Windows 10 Home Notepad
Ubuntu 20.04.1 LTS TextEditor

double click
Pivot point left
Decided on first arrow key so that selection is expanded
Pivot point left (space selected on double click too)
Pivot point right

And here's what happens when using word and line modifier keys when moving the selection (like option and command, respectively, on Mac).  The vertical bars indicate selection cursors.  Originally, I'm selecting word wo|rd| word with the mouse in the indicated direction.

  We'll have a lot more platform-specific work to do to get this all 100% correct.

Sorry, this shouldn't have been closed since https://github.com/flutter/flutter/pull/71756 only fixes the first problem mentioned (https://github.com/flutter/flutter/issues/57679#issuecomment-739095036) and not the other problems I found in https://github.com/flutter/flutter/issues/57679#issuecomment-742848741.

/cc @csells, who did some of this in Q3.

/cc @csells, who did some of this in Q3.

@justinmc We think this may be done --- can you confirm and close if corrrect? Thanks!

PR https://github.com/flutter/flutter/pull/71756 fixed the main problem, but the issue kind of expanded in scope when I went through all of the inconsistencies on all the different platforms in https://github.com/flutter/flutter/issues/57679#issuecomment-742848741.
I say let's keep this open until I can match all of the behavior in the table in that comment.  Or I can always move that to a separate issue if you think that's better.

Good call.  I've updated the table in https://github.com/flutter/flutter/issues/57679#issuecomment-742848741 to match the current behavior.  https://github.com/flutter/flutter/pull/75032 will fix some of these and I will update the table again when it's merged.

I've updated the table of behaviors at https://github.com/flutter/flutter/issues/57679#issuecomment-742848741 now that https://github.com/flutter/flutter/pull/75032 has been merged.  It looks like it actually fixed a few of them, but there are still some differences that need to be manually tweaked.

I've created this issue to track Windows inconsistencies: https://github.com/flutter/flutter/issues/78572.
This PR will fix all Mac problems here and will close this issue: https://github.com/flutter/flutter/pull/78573.


Manually manage the GIL with Cython

I suspect that the performance of the ThreadPoolExecutor would substantially increase if we strategically placed cython with nogil calls.

https://cython.readthedocs.io/en/latest/src/userguide/parallelism.html
https://stackoverflow.com/questions/49047255/cython-nogil-with-threadpoolexecutor-not-giving-speedups
https://stackoverflow.com/questions/56537989/usage-of-threadpoolexecutor-in-conjunction-with-cythons-nogil

I think this would improve Cubed’s single-machine performance. There are drawbacks to process based parallelism, for example. Namely, there is a high cost to inter-process communication (IPC).

Memory views for shared memory: https://docs.cython.org/en/latest/src/userguide/memoryviews.html

Another approach is free-threaded Python, which is just ramping up (but is going to take some time):

Free-threaded CPython is ready to experiment with!
py-free-threading.github.io

TIL! I didn’t realize threaded Python was coming so soon! Thanks for the pointers.
The Cython tricks may be useful in the near-term for younger versions of Python.


Expo 50 Build failed on android

Bug
When building with expo/eas (eas build --platform android), I get the following error. Could it be a conflict with one of my other libraries than Expo 50 and React Native 0.73.6?
* Where:
Script '/home/expo/workingdir/build/node_modules/expo-modules-core/android/ExpoModulesCorePlugin.gradle' line: 40
* What went wrong:
A problem occurred evaluating project ':react-native-image-colors'.
>
Failed to apply plugin class 'KotlinExpoModulesCorePlugin'.
   >
Could not find method android() for arguments [KotlinExpoModulesCorePlugin$_apply_closure4@4e775278] on project ':react-native-image-colors' of type org.gradle.api.Project.

Environment info

Library
Version

library
version

-------
-------

react-native-image-colors
2.4.0

expo
^50.0.14

react-native
0.73.6

@expo-google-fonts/abhaya-libre
^0.2.3

@expo-google-fonts/adamina
^0.2.3

@expo-google-fonts/eb-garamond
^0.2.3

@expo-google-fonts/inter
^0.2.3

@jridgewell/gen-mapping
^0.3.5

@react-native-async-storage/async-storage
1.21.0

@react-native-community/netinfo
11.1.0

@react-native-firebase/analytics
^19.1.0

@react-native-firebase/app
^19.3.0

@react-native-firebase/firestore
^19.3.0

@react-native-picker/picker
2.6.1

@react-navigation/bottom-tabs
^6.5.11

@react-navigation/material-top-tabs
^6.6.5

@react-navigation/native
^6.0.10

@react-navigation/stack
^6.2.1

@reduxjs/toolkit
^1.9.7

@stream-io/flat-list-mvcp
^0.10.3

ajv
^8.17.1

axios
^1.6.7

crypto-js
^4.2.0

date-fns
^3.3.1

dotenv
^16.4.5

event-register
^1.0.6

expo-asset
~9.0.2

expo-blur
~12.9.2

expo-build-properties
~0.11.1

expo-checkbox
~2.7.0

expo-constants
~15.4.6

expo-dev-client
~3.3.12

expo-device
~5.9.4

expo-file-system
~16.0.9

expo-font
~11.10.3

expo-google-fonts
^0.0.0

expo-haptics
~12.8.1

expo-image-manipulator
~11.8.0

expo-image-picker
~14.7.1

expo-linear-gradient
~12.7.2

expo-media-library
~15.9.2

expo-notifications
~0.27.8

expo-secure-store
~12.8.1

expo-splash-screen
~0.26.5

expo-status-bar
~1.11.1

expo-system-ui
~2.9.4

firebase
^10.5.2

firebase-admin
^12.0.0

glob
^10.4.2

install
^0.13.0

lodash
^4.17.21

npm
^10.5.2

openai
^4.28.4

react
18.2.0

react-dom
18.2.0

react-native-date-picker
^5.0.7

react-native-dropdown-picker
^5.4.6

react-native-event-listeners
^1.0.7

react-native-fast-image
^8.6.3

react-native-gesture-handler
~2.14.0

react-native-image-picker
^7.1.2

react-native-image-resizer
^1.4.5

react-native-ionicons
^4.6.5

react-native-pager-view
6.2.3

react-native-pell-rich-editor
^1.9.0

react-native-progress
^5.0.1

react-native-reanimated
~3.6.2

react-native-render-html
^6.3.4

react-native-safe-area-context
^4.2.5

react-native-screens
^3.13.1

react-native-svg
^15.3.0

react-native-tab-view
^3.5.2

react-native-vector-icons
^10.0.1

react-native-view-shot
3.8.0

react-native-webview
13.6.4

react-redux
^8.1.3

reanimated-color-picker
^3.0.4

redux
^4.2.1

redux-thunk
^2.4.2

reselect
^5.1.1

rimraf
^5.0.7

stream-chat-expo
^5.32.1

use-debounce
^10.0.3

Steps To Reproduce

npx expo prebuild
eas build --platform android

Describe what you expected to happen:

Successfull build

We have the same issue.
No solution yet sorry :(
Could this be more of an expo issue?

I'm having this problem too, but I'm not using EAS. I'm on Expo@50, trying to build with yarn expo run:android. I get essentially the same error as the OP:
A problem occurred evaluating project ':react-native-image-colors'.
> Failed to apply plugin class 'KotlinExpoModulesCorePlugin'.
   > Could not find method android() for arguments [KotlinExpoModulesCorePlugin$_apply_closure4@2968253f] on project ':react-native-image-colors' of type org.gradle.api.Project.

@admbtlr could you confirm the issue with the example app in this repo? thanks!

@osamaqarem The example app works. The example is on Expo 51, while my app is still on 50, and the only reference to a similar error that I can find anywhere online seems to indicate that upgrading to 51 fixed it:
https://github.com/expo/config-plugins/issues/249
So I guess it's time to upgrade

I see. So the issue may be exclusive to Expo 50. That's unfortunate...

for those facing this issue on sdk 50
I changed my expo version to "expo": "50.0.19"
and it is now working


Runner step seperation

Reworked code so that formaters are happy.
Improved -i behaviour
Added example for changed behaviour

Overall I really like these changes but I think the example needs better explanations and could be in its own PR

Thank you for your comments, the log topic will be reworked soon with a different PR

Thanks again for your time!


Sample data and test data for TNT

Hey @nt-as @raisoman
Would you like a sample of the BIC Facility Codes that would be used in DCSA tracking event messages for this work ? I can provide some sample facilities that are in the dataset in the format you need ?
Let me know would be good to include these as mentioned under the DCSA Information Model Facility Entity.
Let me know happy to assist!

Hi @cmsdroff ,
From my perspective, you are very welcome to add BIC codes to https://github.com/dcsaorg/DCSA-Information-Model/blob/master/datamodel/samples.d/facilities.csv (plus update https://github.com/dcsaorg/DCSA-Information-Model/blob/master/datamodel/testdata.d/07_load_sample_data.sql#L9 to insert that new column into facility_bic_code).
I think that is all that is needed. :)


Dispatch does not work with artifactory image registry

Bug Report
When the image registry is configured to point to an artifactory image registry, functions cannot be created.
time="2018-05-11T10:51:45Z" level=error msg="Driver error when creating a FaaS function: Error building image for function 'e8aa7160-11b2-449a-ab81-5a93a3d5ab9b': failed to pull image 'symphony-docker-local.jfrog.io/docker-local/dispatch-test/b31e30ba-2f9e-43cd-882a-09e086c48c25:latest': Error response from daemon: Get https://symphony-docker-local.jfrog.io/v2/docker-local/dispatch-test/b31e30ba-2f9e-43cd-882a-09e086c48c25/manifests/latest: unknown: Authentication is required"

Expected behavior

Current behavior

Steps to reproduce

Impact

[ ] Low - Annoyance, but does not impact business or functionality
[x] Medium - Issue can be worked around, but is causing pain
[ ] High - Blocker

Possible solution

Your Environment

Dispatch CLI version (or git commit):
Dispatch Chart version (or image[s] tag):
Operating System and version:
Kubernetes version (and distribution):
Etc (any other useful environmental information):

This looks like a trivial lack of registry secret provisioning.
To prepare the namespace:
https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-secret-in-the-cluster-that-holds-your-authorization-token
and then for each pod (deployment/job/statefulset):
https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-pod-that-uses-your-secret

Thanks, it's not quite that simple :).  We need to propagate this through our install.  Also, the FaaS needs to support image pull secrets (openfaas does).  Lastly, because of changes in this format between k8s 1.8 and 1.9, things don't always "just work".

Should have a patch very soon though


Glitches (Diamond problem)

Hi!
I was wondering, how nanostores handles cases with tricky dependencies, so i wrote a few tests to see, if nanostores is glitch-prone
Effector & Reatom tests were used as a reference:

Reatom tests
Effector tests

Nanostores tests for glitches and diamond problem - https://codesandbox.io/s/nanostores-glitches-2w42k?file=/src/nanostores.test.js
Comparison with Rx, MobX & Effector:
https://codesandbox.io/s/effector-comparison-forked-0bri6?file=/src/index.test.js (based on this sandbox)

And i found a few issues:

Only Rx & Nanostores are recalculating whole chain over and over again - for each update there is 3 triggers of "displayName" store subscribers - which is, obviously, bad for library performance, especially if stores combinations are getting more complicated

nanostores triggers subscribers at the end of the chain with intermediate, inconsistent values.
It happens, because nanostores doesn't wait for calculations in other branch to finish and proceeds to update store

As a result - store value becomes not convergent until second branch calculations are done - and store subscribers are triggered with invalid value too, so this inconvergence will be spreading further
It, probably, will not be a big problem for React - since nanostores/react uses React's batchedUpdates function internally, so if inconvergent value is followed by convergent one - React will take only last and the correct one
But it will be the problem for all other subscribers without such batching mechanism - including other nanostores
Expected behavior:
I think that detecting if Store value is convergent (and that calculations cycle is over) should not be the problem of store consumers - and library must handle these cases internally (like MobX, Effector and Reatom do)

I do not have a solution for this problem yet, but it will be better to cover this case.
It is not a high priority task for now, since the main use case of Nano Stores (in contrast with RX) is to have big stores, not small atomic reactive steps.
Ideas to solve the problem are welcome.

I don't see how big stores would help with glitches 😕
User is allowed to combine nanostores regardless of their size - so diamond problem will come very soon anyway.
And it doesn't matter if it due to explicit (via few createDerived's) or implicit connection (like React component that listens to StoreOne and calls update to StoreTwo from useEffect)

Ideas to solve the problem are welcome

I'm not a big specialist in building state-managers, but it seems that all (known to me) glitch-less state-managers have some sort of internal mechanism to schedule computations (effector, Reatom's store, MobX) - i don't see an easy way to implement such mechanism into nanostores, but it, probably, still needs one

Also i updated first sandbox with a few tests on how nanostores behave, if store subscribers list is beign mutated during computations of these subscribers.
I borrowed these tests from Redux codebase (from here and below)
These tests show that nanostores allows to mutate store subscribers list during their reaction to store update - which is bad and can lead to crazy reactive bugs that are hard to catch.
This is the very reason why Redux creates shallow copy of subscribers array on every dispatch - and implementing the same fix seems possible with current nanostores design
This fix will not make nanostores glitch-less, but, at least, will solve some of the possible problems

diamond problem will come very soon anyway.

With big stores it will come later, because you do not need to have long chains of derived stores.
At least, I do not see these stores in my upcoming projects.
It is still a problem and I will think for solution.

Seems like we need to backport subscribers cloning from Nano Events to fix the problems on changing listeners in the middle of reaction.
I will do it later.

I started to swallow copy the listeners array https://github.com/nanostores/nanostores/commit/242d2b123ba4ccb7f11687fae40f70a3878b8bcc
And added note about diamond problem  https://github.com/nanostores/nanostores/commit/e5cfc5a8841c350b8a225fa908d25dd4095f4950
For now, I am closing the issue, since I do not know about the solution for Nano Stores design.
But if somebody will have an idea, please open an issue.

Seems like we have a solution https://github.com/nanostores/nanostores/pull/58


Recurring Events showing all at once despite dates

Hi Milan.
Thanks for the plugin.
I'm having a little bit of trouble with it at the moment.
Recurring Events Disabled
If I have recurringEvents set to false, the upcoming events show chronologically except any recurring events that we're past the initial event of, don't get shown.

Recurring Events Enabled
If I have recurringEvents enabled, it returns 6 events that are all out of whack (dates not ordered) that are the recurring events of an event that was started in the past. Note none of the other events from today on are showing because these recurring ones are taking up the slots.

So it seems like both versions of the flag may be slightly broken (definitely the recurringEvents: true; one).
Thanks

Hi @JamesMcFall,
In case of the recurringEvents option, someone else had a similar problem and made a pull request that solves it. Could you please get a new version of the library in the dist folder to check whether it does the work for you?


Updated the int codes

Signed-off-by: sayantan1413<EMAIL_ADDRESS>Description
The int code for the ErrEmptyConfigCode           = "11300" which looks a bit odd. So to maintain a constant difference in the intcode, so all the other int codes are updated accordingly.
This PR fixes #
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Oof... I had to delete some error codes and rather than updating the others manually, I force renumbered. I didn't realize this was in there and got fixed as well. Sorry @sayantan1413 :sweat:

Oh Okay @DelusionalOptimist no issues i will close it.

Thanks for understanding @sayantan1413, I might have something regarding error codes utility for you to work on though : )


multi_inventory.py: Ensure boolean groups exist

For each boolean variable name in clone_groups, convert values to boolean and ensure both an oo_NAME_True and oo_NAME_False group exist, inserting a placeholder if necessary to prevent Ansible from discarding empty groups in a dynamic inventory.
This way playbooks can safely reference oo_NAME_True or oo_NAME_False groups without having to supply a default empty list.
So for example:
   intersect(groups['oo_provision_True'])

is now safe, whereas before one would need:
   intersect(groups['oo_provision_True'] | default([]))

I think maybe we don't need the placeholder for empty groups after all, now that I'm retesting.  I can't reproduce the original failure with an empty group in the inventory.
I removed the placeholder bit and left the rest.  I suggest merging this first and if it turns out Ansible does skip empty inventory groups, I'll do another PR.


Build Binaries improvements

The workflow to build binaries currently:

Is triggered manually
Builds the binaries and commits them back to this repo in the dist folder
Only build for Windows and Linux (MacOS intel and MacOS Apple silicon are not included yet due to lack of GitHub public runners)

The binaries only need to be build just prior to each new release.

The workflow should remain as a manual trigger
Committing the binaries back to this repo has a few drawbacks:
a) Large files in the Git history
b) Causes new commits and an update to the history so others need to do a git fetch and git pull. This can get messy and is not a good user experience.

PyInstaller and nuitka (an alternative I've investigated) only build for the architecture on which the build command is executed. Therefore it is anticipated that until GitHub offers public runners for all common architectures, we'll need to spin up other VMs to run the build process (outside of GitHub) which will (probably) mean this process is somewhat manual.
Proposed Solution

Binaries should be built manually
Binaries should be pushed to an S3 bucket (or similar "off site" storage)
Binaries should NOT be added to the Git history
Binaries should be (manually?) downloaded and attached to each release
Future work: We should investigate a way to automate this build and attach binaries to each release in an automated way.

Windows and Linux binaries are built by the (manually triggered) workflow. The workflow pushes to S3.
Mac binary (universal binary) are built locally and pushed to S3.
All binaries are manually downloaded from S3, deleted and uploaded to the release.


A doubt

Good job!
I'm also interested in these two paper ("Automatic Portrait Segmentation for Image Stylization" and "Deep Automatic Portrait Matting"). But I'm not sure whether the method of matting proposed in these two paper are same. Could you tell me your opinion?

The second paper（denoted as eccv16）uses the first paper（denoted as eg16）'s network as inputs of trimap. But in eccv16, the author uses three d×d×d×d tensors to predict, while in eg16 he uses softmax to directly predict. This should be the main difference. I implemented eccv16 but the three tensors are too large that i can train it on my device.

I agree with you. The three tensors correspond to foreground, background and unknown pixels. Thanks.

The diag matrices of F/B and the Laplace matrix key of eccv16, but they are too large and it has limited contribution to the community.


docker images not available

I tried to run the docker-compose script:

Error: image naver/pinpoint-hbase not found

@olafgeibig docker-compose.yml file points to images which are created during mvn docker:build phase.
If you just want to give a try pinpoint you may check my docker images: https://hub.docker.com/r/dawidmalina and docker-compose.yml from https://github.com/dawidmalina/docker-pinpoint
But if you want to try development branch you should build pinpoint by yourself and then build local images.

Thanks Dawid Malina's yml is working for me, except that I can't create accounts and alerts. Probably because MySQL is missing from his docker-compose?

@olafgeibig
Hi Olaf, alerts are not fully implemented, we just have the interface exposed as it ties in with the user system and everyone's user system is different. (We do have a plan to add LDAP support in I think)
There's a guide on how to implement alarm so that it works with your own user system.

Please reopen the issue if you have more questions.


Data Science with Python : Heart Failure Prediction

Description
Welcome to the 'DSWP' Team, good to see you here.
With this issue, readers will get introduced to the core information about 'Heart Failure Prediction' along with sample code completely in an effective way.
To get assigned to this issue, add your serial numbers mentioned in the spreadsheet of "Data Science with Python", the approach one would follow and the choice you prefer (Documentation, Audio, Video). You can go with all three or any number of options you're interested to work on.
If you had referred any resources, add them up in "DS Resources". Similarly, if you had used datasets, include them in "DS Datasets".
Domain: Machine Learning
Mentors Assigned: Yash Goel / Jivitesh Jain
Points to Note :
The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include the issue number along with it.
Changes should be made inside the Datascience_With_Python/ directory & Datascience_With_Python branch.
Follow Contributing Guidelines & Code of Conduct before start Contributing.
This issue is only for 'GWOC' contributors of the 'DSWP' domain.
All the best. Enjoy your journey ahead. 😎
Domain
Data Science with Python
Type of Contribution
Audio, Video, Documentation
Code of Conduct

[ ] I will follow Contributing Guidelines & Code of conduct of this project.

/assign

I didn't get one thing that I  comment first then why you didn't  assign me for documention.
@prathimacode-hub

Its because issue was created on contributors request over the thread. @aaryan078

Hello, I am Deepthi M with serial number:172, Batch-5. I would like to do audio on this issue.
My approach: a detailed explanation

Issue assigned to @deepthi1107 for audio contribution


Rename 'Reusing Docker' section for minikube documentation

May make it easier to see the importance of this section
When I first read the documentation I didn't realise that implementing the suggestions in that section enable
you to use local images without publishing them to a repository. Maybe this change will make it easier for other developers to figure that out.

I currently have a request in for help to get the CLA to sign. It wasn't sent to me at signup.

I signed it

@danielmbarlow thank you so much! This is a nice UX catch indeed :-)
/lgtm
/approve


feat: added new Target illustration

Overview

Added a new Target illustration

PR Checklist

[ ] Related to designs: figma
[ ] Related to JIRA ticket: EGG-1013
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change

📬Published Alpha Packages:@codecademy/gamut-icons@4.8.0-alpha.64c269.0@codecademy/gamut-illustrations@0.9.15-alpha.64c269.0@codecademy/gamut-kit@0.3.31-alpha.64c269.0@codecademy/gamut-labs@13.5.8-alpha.64c269.0@codecademy/gamut@31.0.2-alpha.64c269.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://607da451cc29ab00b9c7ec01--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-illustrations@0.9.15-alpha.b6249a.0@codecademy/gamut-kit@0.3.32-alpha.b6249a.0@codecademy/gamut-labs@13.5.9-alpha.b6249a.0@codecademy/gamut@31.0.3-alpha.b6249a.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://607daab46fccfc00aef2ecec--gamut-preview.netlify.appDeploy Logs


Managing convoy command through REST API

Hello,
Is it possible to execute snapshot/backup/restore via REST API ?
Would you be interested by a PR about this feature ?
Thanks a lot
Best regards

I do not represent anyone associated with convoy, but ...
This "feature" already exists.  You can access the complete convoy REST api by sending requests to the /var/run/convoy/convoy.sock socket.  I have created a "node-convoy" project, a library you can use in NodeJS scripts for managing convoy using the API.  Even if you don't use NodeJS, you could look at the source code to see how it works.
See: https://github.com/peebles/node-convoy

@peebles is right, all the API already exists through the local socket.


Use macro SHARED_DIR for /tmp/hyper/shared path

Hi,
This patch creates SHARED_DIR to be used to refer to shared directory  /tmp/hyper/shared.
Carlos

Hello, could you rebase it please?
note: one of the /tmp/hyper/shared is unchanged yet.
(in hyper_setup_container_rootfs())

@laijs fixed hyper_setup_container_rootfs :) and rebase done


Add Datasources Illustration

Description
Added the section with a graph of data sources.
Type of change

[x] New feature (non-breaking change which adds functionality)

Screenshots/Sandbox (if appropriate/relevant):

One thing @hasparus
Those features on the third bullet are not for optimizations(mocking for example) . Extending the capabilities of your schema might be better fit or just removing optimizing can also be better as the older one we have today.

One thing @hasparus Those features on the third bullet are not for optimizations(mocking for example) . Extending the capabilities of your schema might be better fit or just removing optimizing can also be better as the older one we have today.

true. I admit I didn't read that and just copied it from Figma :D


TensorFlow samples

TensorFlow samples

Do you think it is a good idea if we need to tell the users to add/unregister the Graph optimizer for training and running the fashion-mnist model?

I set the DCO check to pass since this PR had contributions from Will and Di, and a signoff by me wasn't appropriate per the check guidance.


Coronation of King Charles III not included in UK bank holidays

Even though the PR that adds the coronation to the UK calendar for 2023 was merged earlier this year, this doesn't seem to work:
>>> from workalendar.europe import UnitedKingdom
>>> from datetime import date
>>>
>>> cal = UnitedKingdom()
>>> cal.holidays(2023)
[(datetime.date(2023, 1, 1), 'New year'), (datetime.date(2023, 1, 2), 'New Year shift'), (datetime.date(2023, 4, 7), 'Good Friday'), (datetime.date(2023, 4, 9), 'Easter Sunday'), (datetime.date(2023, 4, 10), 'Easter Monday'), (datetime.date(2023, 5, 1), 'Early May Bank Holiday'), (datetime.date(2023, 5, 29), 'Spring Bank Holiday'), (datetime.date(2023, 8, 28), 'Late Summer Bank Holiday'), (datetime.date(2023, 12, 25), 'Christmas Day'), (datetime.date(2023, 12, 26), 'Boxing Day')]
>>>
>>> cal.is_working_day(date(2023, 5, 8))
True
>>> cal.is_holiday(date(2023, 5, 8))
False
>>> workalendar.__version__
'17.0.0'

Is this due to the 17.0.0 release not including that change? See #746


adding vulnerability from db doesn't work

running on recent kali with python 3.10, i'm not able to add t o a report a vulnerability from the database because fields are not update.
steps to reproduce:

install following instructions
login to the interface
project -> view on OWASP project -> click on vulnerability
click Add New
click on the dropdown menu labeled Vulnerability Title
select any existent vulnerability and click
now i expected that description, solution, references and CVSS are updated with values from the Vulnerability Database but nothing changes.

Tested with both Chrome and Firefox

I met the same problem with you @theguly,
I tried to write the vulnerability's title again then press mouse outside of the type box, then the data of that vulnerability will be loaded.


Change Region to USA FIX O3DS only

add this to your guide
after downgrade to change region Firmware
open FBI and install FBI.cia ( do not use FBI from hs app )
open FBI.cia and press R,R,L
jump to the bottom by pressing right button until you find CTR-N-XXXX
delete everything the rear there is a letter J
example CTR-N-HA3J
and then Update to the latest version using system setting
the last thing
Legit system format (from system setting) i mean FORMAT it
this will fix notification BUG and SSB,mh series problem...
thansk to jasonal21 for tell me about formatting system

You should message him about this or make a fork, change it, then merge it(or how ever you edit wikis) please don't put it in the issues as it is for issues only.

Opening an issue for this is fine, GitHub doesn't allow pull requests to wikis.
Why is this o3DS only?

because SSB and MH series need to reboot after u launch the game.. CMIIW
if we dont do this ( FORMAT SYSTEM ) it will stuck.. like notification bug... as well

oh yeah.. N3DS need to delete that file too.. CTR JAP system... if not..
it will more worst than O3DS..

"press R,R,L" <- I'm not running an old FBI version, exactly what does this do?

assuming looking at the default state, "R,R" changes it to delete title (install CIA -> delete CIA -> delete title), "L" changes it to NAND.

This has been incorporated into the guide.


New Algorithm By 18BIT0019-Abhishek Raj

Decision Tree Classifier

Place the best attribute of the dataset at the root of the tree.
Split the training set into subsets. Subsets should be made in such a way that each subset
contains data with the same value for an attribute.
Repeat step 1 and step 2 on each subset until you find leaf nodes in all the branches of the
tree

nice done
thanks abhsihek

nice done
thanks abhishek

Please stop copypasting someone's work.


Mime\Image not working?

Not sure why, but the MIME Image handler doesn't appear to be returning the content type:
elazar: https://pbs.twimg.com/media/CEH6guMVIAA2Dur.png
Phergie: [http://gsc.io/u/29]

Here's the curl output for that URL, complete with a Content-Type response header that the MIME Image handler should match against:
$ curl -v https://pbs.twimg.com/media/CEH6guMVIAA2Dur.png
* Connected to pbs.twimg.com (<IP_ADDRESS>) port 443 (#0)
...
> GET /media/CEH6guMVIAA2Dur.png HTTP/1.1
> User-Agent: curl/7.35.0
> Host: pbs.twimg.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Wed, 13 May 2015 22:05:13 GMT
* Server tsa_b is not blacklisted
< Server: tsa_b
< cache-control: max-age=604800, must-revalidate
< content-md5: RBvsENn5ckf5ZD7KrBG5dQ==
< last-modified: Mon, 04 May 2015 01:07:54 GMT
< x-connection-hash: 8dbfb01091c33593e8b07f4f99bc77a4
< x-response-time: 32
< Content-Type: image/png
< Content-Length: 573668
< Accept-Ranges: bytes
< Via: 1.1 varnish
< Age: 2831
< X-Served-By: cache-tw-nyc1-cr1-20-TWNYC1
< X-Cache: HIT
< X-Cache-Hits: 3
< Expires: Thu, 28 May 2015 22:05:13 GMT
< X-Content-Type-Options: nosniff

Plugin configuration:
use WyriHaximus\Phergie\Plugin\Url\Plugin as UrlPlugin;
use WyriHaximus\Phergie\Plugin\Url\Mime as MimeHandlers;
use WyriHaximus\Phergie\Plugin\Url\DefaultUrlHandler;
return [
    'plugins' => [
        new UrlPlugin([
            'handler' => new DefaultUrlHandler(
                '[%url-short%] %composed-title%',
                [
                        new MimeHandlers\Html,
                        new MimeHandlers\Image,
                ]
            ),
        ]),
    ],
];

It seems the format string fed to the DefaultUrlHandler constructor needs to include %image-mime%. It should would be nice if there was some way to make displaying only the page title for HTML documents and only the MIME type for images easy and/or the default behavior.

@elazar Could go for a very basic templating thing ala Twig in there allowing for if, elseif, else, endif

@WyriHaximus How about something like this? %composed-title-or-image-mime%. Check for -or- in the key, split they key on that and replace the placeholder with first constituent key with a non-empty value going from left to right.

@elazar hmm or I could put image-mine into composed-title since that was what it was intended for anyway.. :blush:

... or that. Yeah, do that. :p

There you go :+1:


Implement the same functionality as SSLPersonas

"SSLPersonas shows you how secure a web page is in a very obvious way: It changes the Firefox theme according to the SSL status of a website." - SSLPersonas

https://github.com/ylecuyer/envify/issues/18

I'm conflicted. Last time someone asked me to make functionality for site-specific color, I turned it down and closed the issue with "out of scope" and "wontfix". And then Envify came around, which did exactly that, and I came second in the competition... to Envify. So while I would consider this out of scope, I am hesitant to not add this feature because I don't want to be kicking myself again for missed opportunities.

I accept your decision. Do you want me to close the issue or should it be kept open?

Well that's the problem I don't know what my decision is. Do you really think this fits the purpose of the extension well enough to be included, or do you think it's important enough to rethink the purpose of the extension to fit a broader scope?

https://github.com/SSLPersonas/SSLPersonas/issues/10


Map plotting

Map points draw from the database

Great way of allowing us to pull the data from the database!

Great job making the points show up relative to our database. I'm glad the temporary hardcoded solution is fixed!

BE CAREFUL we need to make sure all finalized categories line up for when Amanda gives us the finalized database. If anything conflicts make sure to check it here especially if they want us to add more categories/handle addresses rather than just coordinates


I think League updated and the injections are not updated

Hey, your work helps me enjoy league more so thank you very much. Letting us access it for free is actually goated bro. TY. I don't know how any of this works and I am just wondering if the thing can be updated because it suddenly does not launch anymore when I press 'Home'.

I experimented around a bit, and it works again. Sorry! I downloaded the one with "_se" on it and used that version.


Add a throwing sound

Currently arguing with dogzero about the sound.
:cl:

add: Throwing now makes a sound.

just from playing the ogg directly it sounds very weird I'd expect more of a swoosh sound
but I haven't played it ingame so maybe it's different


Lint and scrape a JS built-in class

User story
As a JS doc tech writer, I want to have JS docs migrated to markdown as fast as possible, so I can update documentation effectively after MDN docs have been dumped in raw HTML on a GitHub repo (project yari).
Acceptance criteria
A JS built-in class (say BigInt) is linted and scraped successfully from the wiki into stumptown markdown and passes tests for surface structure. The content is fixed upstream in the wiki to allow scraping again at any time. Storing markdown now is not important, but being able to scrape, lint, and store structured markdown at any time going forward is important.
Tasks

[ ] Have content models/page structures for JS class, JS method, JS properties.

[ ] Write a linter that checks if scraped wiki content aligns with content models

[ ] Fix wiki content upstream if necessary

[ ] Successfully scrape a JS class (BigInt) that passes linting tests and that fits into stumptown markdown.

@wbamberg @ddbeck Does this story sound good to you?

This looks reasonable to me. I wrote #2411 to try to draw a line between what you're doing this sprint and my part of it.

Will has written a much more defined and useful epic that we will actually go forward with. That means that this story is now obsolete. Please see https://github.com/mdn/sprints/issues/2517 and sub tasks about how we will proceed.


Support Nacos SD configurations

Nacos provides a set of simple and useful features enabling developers to realize dynamic service discovery, service configuration, service metadata and traffic management. Now it is widely used with 13.3k stars
Its official website: https://nacos.io/en-us/index.html
github: https://github.com/alibaba/nacos

duplicate of #7539 , thanks for showing up iterest!


Statement batching

We should document our support for statement batching and how to read multiple result sets using SqliteDataReader.
See the sample.

https://docs.microsoft.com/en-us/dotnet/standard/data/sqlite/batching


Constructor on type System.ComponentModel.ReferenceConverter not found.

Xamarin
IOS 9.3
Hi,
When i run JsonConvert.DeserializeObject<[Customer Class]> i get the Exception
"Constructor on type 'System.ComponentModel.ReferenceConverter' not found."
Any ideas on what i can do to solve this?

Some problem here.

any update here?

In my case it was occurring at JsonConvert.Serialize(obj) and it was because I had the following property definition in my class
[JsonProperty("AssistantAssociateId")]
public int? AssistantAssociateid { get; set; }

It seems that the issue arises when you set propertyName in JsonProperty similar to the property name. I fixed it by removing JsonProperty
//[JsonProperty("AssistantAssociateId")]
public int? AssistantAssociateId { get; set; }

Newtonsoft.Json supports .NET Standard so it is likely that Xamarin on iOS is missing the ctor from their implementation. I've copied this issue to their project.


Tracing Extension: Default Implementation + More Filtering + Better Readability

Changes

Added #[derive(Default)] (Fixes #249)
Field spans now associate with their parent graphql root span
Added a uuid to the graphql span - closer to how the Logger extension works
Moved query to a seperate event so that the entire query is no longer inlined with each log entry
Field spans log the path similarly to Logger extension
Namespaces spans and events to allow filtering eg. async_graphql::graphql=INFO,async_graphql::query=WARN,async_graphql::field=WARN

Example Output

Note: This example has async_graphql::field=WARN set to remove the field spans.

Thank you very much! 😁

Can it be merged?

Absolutely! Go for it :)


[AutoDiff] Fix all memory leaks in differentiated control flow code.

Memory leaks in differentiated control flow code are caused by two problems:

When building a trampoline block, each active value's adjoint value is retained multiple times because they are visited multiple times.
Some pullback successor blocks do not use adjoint values that are being retained for trampoline, so adjoint values get leaked in those blocks.

This patch fixes it in 2 steps:

Retain adjoint values only once if needed by trampoline blocks regardless of how many trampoline blocks there are.
Release retained adjoint values in all pullback successor blocks that are not using them.

This patch also includes the following NFC changes:

Reduce the nesting of the code that builds trampoline blocks by pulling it out to a separate method.
Reduce test case nesting in test/AutoDiff/leakchecking.swift by adding TestSuite.testWithLeakChecking(_:expectedLeakCount:file:line:_:) and using it locally.

All known memory leaks in AD have now been fixed.
Resolves TF-552.

@swift-ci please test tensorflow


Automated Package Upgrade

:tada: This PR is included in version 7.0.169 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


HttpClientBackend::convertRequest can raise an unexpected exception

Hi,
It seems that HttpClientBackend::convertRequest can raise an unexpected exception if the readTimeout is infinite.
Considering this code:
builder.timeout(JDuration.ofMillis(request.options.readTimeout.toMillis)).build()

that converts readTimeout to milliseconds and the fact that readTimeout has the type scala.concurrent.duration.Duration that can be infinite, the operation readTimeout.toMillis can throw an exception if the duration is Infinite.
It might be worth either to prohibit infinite timeouts and have only FiniteDuration and consider that there might be an exception and handle it gracefully (using monad.fromTry ?).

Thank you!


Version 2.0

Version 2.0 will do:

ES6 Classes with getter/setter/decorators/inhertiance
Models without services

Idea API:
export class Animal : BaseModelFactory {

  // - $diff
  // - $commit
  // - $rollback
  // - $update

  // i wonder if this is even needed w/ getter/setter
  @default
  color(){
    return 'white';
  },

  // i wonder if this should go on the model....
  @mapping
  food(){
    if(this.food === 1) return 'meat';
    if(this.food === 2) return 'bamboo';
  }

}

export class Animal : ServiceModelFactory {
  // - $save
  // - $destroy
}

export class Food { }

function AnimalService($model){
  return $model('animal', {
    actions: {
     getFood: {
        asClass: Food, // if undefined uses asClass def above...this eliminates wrap
        url: '/food'
        }
    },
    asClass: Animal // if not defined, uses base service
  })
}

Notes:

Mapping could probably go away
wrap attribute would go away with passing nothing asClass
Figure out how to do relationships

TODOS towards v2

[ ] Switch to gulp instead of grunt (@amcdnl)
[x] Update current version of model-factory to v1.0.0 (@juristr)
[x] Setup semantic-release & publish to npm (#55) (@juristr)
[x] Add CONTRIBUTING.md with contribution guidelines (@juristr)
[ ] Implement proposed API (@amcdnl)
[ ] API proposal for integrating RxJS (@juristr)
[ ] Port existing tests to new codebase for ES6 to see coverage for existing features (@juristr)
[ ] Upgrade guide from v1.x to v2
[ ] Angular2 support (@amcdnl / @juristr)
[ ] Better docs - http://readme.io/ or https://readthedocs.org/ (@juristr)

I'd propose the following upgrade steps while working towards v2.0 (or 1.0 :wink: )

[ ] upgrade the existing codebase setup to one as used in the angular-systemjs-seed proj, that is with Gulp, ES6 etc.
[ ] create a branch model-factory-es6 (or similar) within which we start developing the new version that takes advantage of new ES6 features. We could start building them against the existing test suite, in order to have a guideline of whether we cover the current features of v0.x (obviously tests need to be adjusted as we introduce breaking changes, but many should run without modifications I guess).
[ ] once we have quite a stable version with the minimal usable feature set implemented, I'd suggest to immediately merge back into master and start releasing incrementally as we proceed (possibly totally automated as described #55 :smile: )

By first upgrading the tooling to Babel, SystemJS and ES6, we introduce the flexibility of being able to continue maintain the ES5 code, but still take advantage of the ES6 modules to more easily split out things into different files. Also migrating back to master from the "es6" branch would be easier afterwards.
Ok, that were my 2 cents. Going to sleep now, tired today :wink:

Wow!  It sounds very cool!

Found out a few new items based on the Angular2 Survey results yesterday: http://angularjs.blogspot.com/2015/09/angular-2-survey-results.html
Angular 2 Data
This library isn’t available yet (which is why it wasn’t in the survey), but is being modeled after Ember Data to provide a higher level interface for your data in Angular 2. Other data libraries may be used in conjunction at lower levels. We talked with the Angular core team about Angular 2 Data on Angular Air.
Given Angular2 will come with a more rich model library, I'm very interested to see what gaps it fills that our library handles.
One other thing, They mentioned a lot of people are using/planning to use RxJS ( This library implements observables, which are objects that model push-based data sources ).  They also mention this will be included in Angular2: 'this is why RxJS is used in the Angular 2 core http module'.  I tried to keep our library light as possible but if most of you are already using this or plan to, it would be VERY interesting to include this in some shape or fashion in v2 release.
Once some of the internals settle down w/ changes, I plan to have Angular2 support in v2 too.

Interesting undo/redo functionality we might want for 2.0 - https://github.com/omnidan/redux-undo

We should use generators like : http://mongorito.com/
"Mongorito is based on ES6 generators, so you will not need to write a single callback (or promise). Enjoy the comfort of writing synchronous code, while retaining the power of Node.js' async nature."
   yield model.save();
   model.doWhatever()

Would like to get feedback to whether people like the event listeners or would prefer 'hooks' on the static instance.  I think pub/sub on the rootsope is kinda frowned on in A1.x

@amcdnl Good idea. We could write it in the Gitter chatroom and/or open up an issue where we ask for it, referencing people where we know they use model-factory (from forks, stars, past issues...). I'll ask internally my devs what they think about it.
Do you have a concrete code sample (past -> proposed) to show. That'd help when asking.

EDIT: Since A2 is getting rid of scope, we should do this instead

@amcdnl yep, I think that fits well, maybe even in a combination with RxJS (as I briefly experimented with here).

Hey all, I was wondering how much work is left on version 2.0? If you're close but need some help, I'd be glad to jump in if I can.

@NewMediaRoc sadly been slammed w/ other projects.  very much still on my todo list, my aim is to make something that works w/ both a1 and a2 but not sure how feasible that is. maybe a similar API is a diff engine under the hood.
I started a branch, feel free to fork and go at it.  The big different is the use of classes and the asClass property. I also broke out all the bundled extras into mixins and broke it out to have a 'base' where it wasn't tied to a http service too. Hit me up on gitter if you wanna chat more!


Open-Xml-SDK cannot load document referencing not installed font when x14ac:knownFonts is present

Description
Open-Xml-SDK will throw an OpenXmlPackageException with the message "The specified package is invalid. The main part is missing." when an excel file references fonts in worksheets that are not present on the system and the tag x14ac:knownFonts is found.
Information

.NET Target: .Net Framework 4.7.1
DocumentFormat.OpenXml Version: 2.8.1 and 2.9.0

Repro
We use Open-XML SDK to produce a file (with lots of data) that we give to 3rd parties scattered around the world. They edit that file and send them back for us to import (using Open-Xml SDK again).
Sometimes we have this error from the exception while loading the document using Open-Xml SDK: The specified package is invalid. The main part is missing.
If I save the file with my own Excel application (Excel 2016) prior to import it, I can import the file fine. So I've decompressed the xlsx files and compared both against each other (the one working and the one not working)
The only thing that was different is the presence of the tag x14ac:knownFonts
https://docs.microsoft.com/en-us/dotnet/api/documentformat.openxml.spreadsheet.fonts.knownfonts?view=openxml-2.8.1 Value of the tag is 1. If I remove the worksheet that uses the fonts found in the styles.xml, I can load the document or if I remove the "knownfonts" tag and let the worksheets that reference those fonts: Open-Xml-SDK can open the file successfully again.
Observed
The excel app that was used to save the excel is the same version than me (2016), but installed in Korean language. Two of the fonts referenced have their name in asian characters so my wild guest is that I don't have those fonts on my system, and with the presence of the knownfonts, it causes Open-Xml to die painfully when trying to load that document.
Expected
I would expect that Open-Xml don't die when loading an excel document with if that tag is found (and fonts that I don't have on my system are referenced in that excel document). Excel do not die from actually: it allow me to open the document resave it (effectively removing that infamous "knownfonts" tag.

Can you share an example of an excel document with this? It definitely shouldn't fail to open.

I will as soon as I clear with Legal here, what and how I can share the excel file.

Awesome. It'll probably be used for a unit test (although we can definitely remove all PII and make it super generic) if that matters for legal purposes.

@the-frank I'm going to close this unless you have a repro we're able to take a look at. Feel free to re-open.

I have the same exception when trying to open word document in a docker container. locally everything works fine

@dlopatin-v can you share a repro?


SSL Support?

I am trying to use a PlanetScale database with my Ruby Lambda, and while I can run it locally and in docker, I get "SSL connection error: unknown error number" when running in Lambda.
  require 'active_record'
  require 'mysql2-lambda'
  require 'mysql2'
  ActiveRecord::Base.establish_connection(
    adapter: 'mysql2',
    database: 'xxx',
    username: 'xxx',
    host: 'xxx',
    password: 'xxx,
    sslverify: true,
    # ssl_mode: :verify_identity,
    # sslca: '/etc/ssl/cert.pem',
  )

    "errorMessage": "SSL connection error: unknown error number",
    "errorType": "Function<ActiveRecord::ConnectionNotEstablished>",
    "stackTrace": [
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/mysql2_adapter.rb:45:in `rescue in new_client'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/mysql2_adapter.rb:39:in `new_client'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/mysql2_adapter.rb:23:in `mysql2_connection'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `public_send'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `new_connection'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:926:in `checkout_new_connection'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:905:in `try_to_checkout_new_connection'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:866:in `acquire_connection'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:588:in `checkout'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:428:in `connection'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:1128:in `retrieve_connection'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_handling.rb:327:in `retrieve_connection'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_handling.rb:283:in `connection'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/model_schema.rb:553:in `load_schema!'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/attributes.rb:250:in `load_schema!'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/model_schema.rb:539:in `block in load_schema'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/model_schema.rb:536:in `synchronize'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/model_schema.rb:536:in `load_schema'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/model_schema.rb:392:in `columns_hash'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/relation/query_methods.rb:1313:in `arel_column'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/relation/calculations.rb:280:in `aggregate_column'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/relation/calculations.rb:299:in `execute_simple_calculation'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/relation/calculations.rb:269:in `perform_calculation'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/relation/calculations.rb:144:in `calculate'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/relation/calculations.rb:51:in `count'",
        "/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/querying.rb:22:in `count'",
        "/var/task/router.rb:8:in `router'"
    ]

Would you mind doing a little research into what this means for the client side?
https://github.com/brianmario/mysql2#ssl-options

but only if your MySQL client library and server
have been compiled with SSL support.

Maybe we need some configure args for in our Dockerfile for the MySQL Connector?

This is still an issue.
```/var/runtime/lib/runtime.rb:99:in <main>' /var/runtime/lib/lambda_handler.rb:26:in call_handler'
/var/task/router.rb:62:in router' /var/task/fn/live_notifications_2nd_chance.rb:4:in live_notifications_2nd_chance'
/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/relation/query_methods.rb:751:in where' /var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/relation/query_methods.rb:756:in where!'
/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/relation/query_methods.rb:1313:in build_where_clause' /var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/relation/predicate_builder.rb:25:in build_from_hash'
/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/relation/predicate_builder.rb:79:in expand_from_hash' /var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/relation/predicate_builder.rb:79:in flat_map'
/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/relation/predicate_builder.rb:79:in each' /var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/relation/predicate_builder.rb:126:in block in expand_from_hash'
/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/relation/predicate_builder.rb:54:in []' /var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/relation/predicate_builder.rb:59:in build'
/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/table_metadata.rb:18:in type' /var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/arel/table.rb:107:in type_for_attribute'
/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/type_caster/map.rb:16:in type_for_attribute' /var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/active_record/model_schema.rb:455:in type_for_attribute'
/var/task/vendor/bundle/ruby/2.7.0/gems/activerecord-7.0.4/lib/…
SSL connection error: unknown error number```

Any updates/fixes exptected on this issue?

This is still an issue

Not able to make any progress when using yum install mariadb-devel and getting a static file. Keep running into a undefined symbol: mysql_server_init error. I recommend you switch to Lambda Containers and do the yum install for mariadb and letting libmysqlclient.so.18 end up in the container's needed location.

Lambda Containers?
What's your recommended way to debug lamby issues? or when you get an issue in prod?I tried running the docker container locally; but I often don't get the same issues I see on my container and once I deploy – and the whole debugging process is pretty slow since I need to deplpoy to test the changes each time.

Here is a good example of how all that works in the latest Lamby Cookiecutter work. https://github.com/customink/lamby-cookiecutter/pull/21

Basically, there is a 1-1 parity now in dev and prod. Same container is used. Hope that helps?


Allow wildcard for package-specific overrides in turbo.json

Describe the feature you'd like to request
I'd like to be able to define a group of packages using a wildcard when defining package-specific overrides in turbo.json.
Describe the solution you'd like
I'd like to be able to use a wildcard when defining package-specific overrides, so say use a Hungarian notation-like naming scheme for my packages, I'd be able to do:
"app-*#build": {
  "dependsOn": [ "somePackage#deploy" ]
}

Describe alternatives you've considered
None

Closing in favor of the older issue https://github.com/vercel/turbo/issues/1053


Attendee window scrollbars

Feedback from 07/23/2016:
Had someone open a PreReg attendee and the window didn't have a scrollbar. All three attendee windows (at-con, pre-reg and search) do have a specific height set, which should trigger scrolling if it doesn't fit on screen (see  #f7d0166d72e991071a4a2194c9244fc53e108069)
Need to look and see if the height needs to be tweaked a little bit, or if that's something browser specific. (I didn't think to notice what browser that was on, but it'd be worth testing on IE and/or Edge, pretty sure it was a Windows machine)
At con it won't really matter, since all the monitors are 1920x1080, but apparently 1376x768 is more common than you'd think.

Potentially fixed with 32340b9 - not able to reproduce it currently. (Removed setSizeFull from the AttendeeDetailForm)


results class for qir-runner simulator

Changes

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

Project coverage is 92.07%.  Consider uploading reports for the commit 2d6cb3f to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
+ Coverage   87.26%   92.07%   +4.81%
==========================================
  Files          20       18       -2
  Lines         887      795      -92
==========================================
- Hits          774      732      -42
+ Misses        113       63      -50

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


Add tform to tps

Submitting PR for first codecov and to get comments:
Has tform().
Took a shot at moving this transform into its own folder... soliciting comments on how I did that.
Test code remains to be written...

I think it's cleaner to have the transform module be put in a directory e.g.
renderapi/
  transform/
    __init__.py (imports * from transform.py, tps.py, etc. for compatibility)
    transform.py (as is, or with e.g. AffineModel instances pulled out)
    thinplatespline.py

I'm not sure this exact setup would avoid circular imports with something like load_leaf_transform, but it would be straightforward to debug that and put things where they belong.

With this reorg, I'm having some trouble with the conditional scipy/numpy import statement in transform.py. I'm not quite sure how that is working, especially in test/test_transform/test_Polynomial_estimation

I'm also wondering if this is a legacy switch, since according to this, svd and LinAlgError are the same between the two:
https://docs.scipy.org/doc/scipy/reference/tutorial/linalg.html#scipy-linalg-vs-numpy-linalg

In my experience, the best backend to use (speed) is MKL, and within a conda environment conda install numpy will give an MKL backend, while pip install numpy will not. It seems like we could get away from scipy entirely?

Where do you see that scipy.linalg.svd and numpy.linalg.svd are the same?  I'm pretty sure this has not been the case since this repo started -- they take completely different inputs.

In the short term, have you tried reloading and checking against renderapi.transform.transform?

This comment led me to believe they are the same:
"scipy.linalg contains all the functions in numpy.linalg. plus some other more advanced ones not contained in numpy.linalg"
but, you're right, scipy seems to have some additional knobs:
scipy.linalg.svd(a, full_matrices=True, compute_uv=True, overwrite_a=False, check_finite=True, lapack_driver='gesdd')
numpy.linalg.svd(a, full_matrices=1, compute_uv=1)
given how render-python is calling svd, these differences are not exploited:
danielk@ibs-danielk-ux1:~/djk_render-python$ grep -rnw './' -e 'svd'
./build/lib/renderapi/transform.py:20:    from scipy.linalg import svd, LinAlgError
./build/lib/renderapi/transform.py:25:    from numpy.linalg import svd
./build/lib/renderapi/transform.py:918:        U, S, V = svd(A)
./build/lib/renderapi/transform.py:1161:        _, s, V = svd(A)
./renderapi/transform/transform.py:20:    from scipy.linalg import svd, LinAlgError
./renderapi/transform/transform.py:25:    from numpy.linalg import svd
./renderapi/transform/transform.py:918:        U, S, V = svd(A)
./renderapi/transform/transform.py:1161:        _, s, V = svd(A)
./test/test_transform.py:151:    assert(renderapi.transform.svd is np.linalg.svd
./test/test_transform.py:152:           if use_numpy else renderapi.transform.svd is scipy.linalg.svd)
./test/test_transform.py:176:    assert(renderapi.transform.svd is scipy.linalg.svd)

re: reloading
I'm not sure what you mean here. I'm trying to address this failure

just a general comment... you should use the all keyword to specify explicitly what import * means

I'm looking at adding inverse_tform() to the TPS. The render/trakem2/jitk inverse doesn't actually seem to work much at all, but, what they have in there is simply a gradient descent solver to brute force out the inverse point. In python, I can do something like this
    def inverse_optfun(self, pt, pt0):
        return self.apply(pt) - pt0

    def inverse_tform(self, points):
        """transform a set of points through the inverse of this transformation
        Parameters
        ----------
        points : numpy.array
            a Nx2 array of x,y points
        Returns
        -------
        numpy.array
            a Nx2 array of x,y points after inverse transformation
        """
        newpts = []
        for p in points:
            npt = root(self.inverse_optfun, p, args=(p,))
            newpts.append(npt.x)
        return np.array(newpts)

but that requires scipy. Is there a way to offload one class function with scipy dependencies to external?
I could also write a numpy-based gradient descent into it, but, ...

I'm not crazy about how slow and brutish this inverse_tform() is, but, ... potentially we could move this method and gradient_descent into the general transform and call it inverse_tform_bruteforce() which should then work with other non-analytic transforms...

I think we should try to maintain a uniform interface... if we come up with a better implementation later that's fine, but the api should be fixed. we probably should move to merge this sooner rather than later and not let it get mission creep.  It already has a re-org and a new tps implementation rolled into one.

it still remains to add fit() and estimate() to ThinPlateSplineTransform but I can come back to that later in a different PR

yeah I think that sounds like a separate PR

@fcollman @djkapner are we ready to merge this PR?

I think so. I'll make an issue to add fit() and estimate() later.


ResourceWarning: unclosed file <_io.BufferedWriter

 Issue by mingdh
Sat Sep 12 09:55:20 2020
Originally opened as https://github.com/codelucas/newspaper/issues/843

There is warning from python,
newspaper/utils.py:238: ResourceWarning: unclosed file <_io.BufferedWriter name='/var/****/.newspaper_scraper/feed_category_cache/4493fab35f9369455967c00969619b802f1a2559'>
pickle.dump(result, open(filepath, "wb"))
it seems that you open file, but not closed.
Is it ok to change the following code?
... and save the cached object for next time
with open(filePath,'wb') as f:
pickle.dump(result, f)

solved in v0.9.0


[CO] readability + comments to draw_GMSH and related functions + save geo file

Thank you for your contribution :)


Added Gradient Background Generator file in the repository

I have added my project which generates RGB colors both randomly and also as per user's choice.

I have contributed this project for HACKTOBERFEST 2022.  Please give it the Hacktoberfest tag.

This project generates the backgrounds live as the user is selecting colors.


[style]: Improving css

What's the style idea?
We need to improve the CSS of the part ( Build for collaboration )
Add screenshots
Add screenshots
Code of Conduct

[ ] I agree to follow this project's Code of Conduct

could you elaborate a little bit? where are you facing this issue?

it seems like this issue has already been raised before. We kindly request you to review the existing issues and, if necessary, create a new one accordingly. https://github.com/priyankarpal/ProjectsHut/issues/378


Consider adding linter information on the DEVELOPMENT.md file

Add to the DEVELOPMENT.md:

What to install
What to run

It could maybe be a pre-commit as well?

Improvements are welcome :)
I think it is important to keep it readable for developers of all levels.

Additionally, I'd like to rename DEVELOPMENT.md to README.dev.md. I don't know if there is a standard name for this file, but I like that README.dev.md is directly next to the regular README.md, and the filename tells you what's in it.

I think DEVELOPMENT.md is widely used. But in the end, it might be better to integrate it into the documentation itself. I like how pandas did this https://pandas.pydata.org/docs/development/contributing.html

Fixed


illumina data to polish

Hi, the manual said the latest version of Racon support illumina reads, but what is the short-read format Racon support? Should I put R1/R2 into one file? or use some specific parameter?
Thanks,
Raymond

Hello guys,
Which mapper would be the recommended one for mapping illumina reads to a raw miniasm assembly? Using bowtie2 with default parameters (I know, not the best idea, but just a first test) I am getting roughly 20% mapping efficiency and only 30% horizontal coverage, so not great.
Any recommendations would be greatly appreaciated.
Kind regards,

Hello,
you can try minimap2 with -x sr option. By raw miniasm assembly you used PacBio/ONT reads right? If so, I would advise polishing with those reads first (if you have decent coverage).
Best regards,
Robert

Thank you rvaser,
That is correct I have a raw assembly obtained from the Flye assembler using 30X coverage of PacBio reads.
The raw assembly should have similar error rates as raw pacbio reads. I have done some initial polishing using the pacbio reads and now I think I can map the illumina reads. I read in Hen Li's minimap2 page that he does not recommend mapping short reads to unpolished pacbio assemblies, but I guess this initially polished assembly should be OK ?
Cheers,

The initially polished assembly should be alright.
Best regards,
Robert

Hi guys,
I ran the last version of Racon with Illumina pair-end reads ( My contigs have already been polished by pilon before). After Racon, 8 breaks have been fixed surprisingly.  I don't understand, does racon also stitch contigs? Isn't it a consensus tool?
Thanks!
Xinwen

Hi Xinwen,
racon does not stitch contigs together, it polishes each of them separately. By breaks you mean what exactly?
Best regards,
Robert

Hi Robert,
After racon, the number of fragments in my fasta file changed from 29 to 21, so I thought racon may fix some breaks by stitching fragments together. That's why I ask.
Then I checked the fragments length in fasta files before and after racon, and found my eight fragments (1000 -1500 bp ) are simply removed by racon instead of stitching to other fragments. Some of my other long contigs got 0-100 bp shorter. Is this the expected behavior of racon?
Thank you!
Best regards,
Xinwen

Hi Xinwen,
racon by default does not output unpolished sequences. You can disable that with the following option
-u, --include-unpolished
    output unpolished target sequences

You can determine which of the outputted sequences are unpolished by checking their headers, i.e. by checking tags RC (number of reads used for polishing) and XC (percentage of windows corrected).
It is quite normal that the length of polished sequences is different (shorter/longer) when compared to original length.
Best regards,
Robert

Hi Robert,
Thank you so much. I checked the headers, they're very helpful.
Best regards,
Xinwen


OpenApi generators for Helidon - JsonNullable issue

Import org.openapitools.jackson.nullable.JsonNullable and related maven dependency are added in server generators even if jsonb is used as a serialization library.
Duplicate imports of this class are found in client generators when jackson is used.

Related to #6505


Type-level display rotation

Hi! Thank you for helping out with SSD1306 development! Please:

[ ] Check that you've added documentation to any new methods
[ ] Rebase from master if you're not already up to date
[ ] Add or modify an example if there are changes to the public API
[ ] Add a CHANGELOG.md entry in the Unreleased section under the appropriate heading (Added, Fixed, Changed, etc)
[ ] Run rustfmt on the project with cargo fmt --all - CI will not pass without this step
[ ] Check that your branch is up to date with master and that CI is passing once the PR is opened

PR description
The removed code from #125, based on top of #125, hence the pile of commits.

Closing this, basically with the same reasoning as here
While I still think this PR was a nice enough solution, this was done for performance only. If anybody needs extra performance, they are allowed to roll their own GraphicsMode, so I believe the added complexity hurts maintainability more here.


Clang Static Analyzer - "dead assignment" warning fixes

Partial fix for #1126

Coverage remained the same at 99.876% when pulling fcdf235714c3ef47113bb93c34484589aac9aeeb on audioscience:analyzer into 4de12414431cb9507ad8c9bcdfa4495e2c046f58 on cpputest:master.

Thanks


How to train SPM in stage2?

Thank you for your excellent work. I have some questions about the training process of SPM.
I encounter a problem when I use the script in train_mixformer.sh to train SPM module.
python tracking/train.py --script mixformer_online --config baseline --save_dir /mysavepath --mode multiple --nproc_per_node 1 --stage1_model /mylatest checkpoint trained in the first stage
But the logs show that it seems that the program has loaded wrong checkpoint because there are so many missing keys
missing keys: ['score_branch.score_token', 'score_branch.score_head.layers.0.weight', 'score_branch.score_head.layers.0.bias', 'score_branch.score_head.layers.1.weight', 'score_branch.score_head.layers.1.bias', 'score_branch.score_head.layers.2.weight', 'score_branch.score_head.layers.2.bias', 'score_branch.proj_q.0.weight', 'score_branch.proj_q.0.bias', 'score_branch.proj_q.1.weight', 'score_branch.proj_q.1.bias', 'score_branch.proj_k.0.weight', 'score_branch.proj_k.0.bias', 'score_branch.proj_k.1.weight', 'score_branch.proj_k.1.bias', 'score_branch.proj_v.0.weight', 'score_branch.proj_v.0.bias', 'score_branch.proj_v.1.weight', 'score_branch.proj_v.1.bias', 'score_branch.proj.0.weight', 'score_branch.proj.0.bias', 'score_branch.proj.1.weight', 'score_branch.proj.1.bias', 'score_branch.norm1.weight', 'score_branch.norm1.bias', 'score_branch.norm2.0.weight', 'score_branch.norm2.0.bias', 'score_branch.norm2.1.weight', 'score_branch.norm2.1.bias'] unexpected keys: [] Loading pretrained mixformer weights done.
I am really confused about how to train the SPM module correctly.
I am appreciate if you can give me some advices.
The whole log shows below:
error logs.txt

It's right, the missing keys are exactly those params that need to be trained

Thank you for your excellent work. I have some questions about the training process of SPM.
I encounter a problem when I use the script in train_mixformer.sh to train SPM module. python tracking/train.py --script mixformer_online --config baseline --save_dir /mysavepath --mode multiple --nproc_per_node 1 --stage1_model /mylatest checkpoint trained in the first stage
But the logs show that it seems that the program has loaded wrong checkpoint because there are so many missing keys
missing keys: ['score_branch.score_token', 'score_branch.score_head.layers.0.weight', 'score_branch.score_head.layers.0.bias', 'score_branch.score_head.layers.1.weight', 'score_branch.score_head.layers.1.bias', 'score_branch.score_head.layers.2.weight', 'score_branch.score_head.layers.2.bias', 'score_branch.proj_q.0.weight', 'score_branch.proj_q.0.bias', 'score_branch.proj_q.1.weight', 'score_branch.proj_q.1.bias', 'score_branch.proj_k.0.weight', 'score_branch.proj_k.0.bias', 'score_branch.proj_k.1.weight', 'score_branch.proj_k.1.bias', 'score_branch.proj_v.0.weight', 'score_branch.proj_v.0.bias', 'score_branch.proj_v.1.weight', 'score_branch.proj_v.1.bias', 'score_branch.proj.0.weight', 'score_branch.proj.0.bias', 'score_branch.proj.1.weight', 'score_branch.proj.1.bias', 'score_branch.norm1.weight', 'score_branch.norm1.bias', 'score_branch.norm2.0.weight', 'score_branch.norm2.0.bias', 'score_branch.norm2.1.weight', 'score_branch.norm2.1.bias'] unexpected keys: [] Loading pretrained mixformer weights done.
I am really confused about how to train the SPM module correctly.
I am appreciate if you can give me some advices.
The whole log shows below:
error logs.txt

The error comes from your incorrect training datasets config 'TRAIN': {'DATASETS_NAME': ['TNL2K_train'], 'DATASETS_RATIO': [1, 1, 1, 1].  It should be 'TRAIN': {'DATASETS_NAME': ['TNL2K_train'], 'DATASETS_RATIO': [1]

Thank you for your advices, it solved.

Can you specify which stage1_model we should select from the uploaded pretrained models on google drive (if available)? Specifically, I would like to fine-tune MixFormer ConvMAE Online Large.
Thank you!

Hello, I would like to fine-tuning at stage 2 MicFormer ConvMAE Online Large, is there pretrained model (after stage 1 training)?


Update default preview server port

Bug/issue #, if applicable:
Close #371
Source: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=http
Thanks @amartini51 for providing the source explanation
Summary
Update default preview server port
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.

[x] Ran the ./bin/test script and it succeeded
[x] Updated documentation if necessary

@swift-ci please test

@swift-ci please test

@swift-ci please test and merge

@swift-ci please test


What is the proper way to use the plugin?

Hi,
I am trying to have the plugin working with OpenIdConnectServer. I must be missing something in the configuration (and probably somewhere else) to set properly the way of doing the login POST to get the authService properly authenticated. It can be seen in the Authorisation.ts file the 2 login methods: login() and loginCustom(). Ideally I would like to use the 1st one but at this moment I am using the 2nd one.
Can you please advise?
Thanks!
aurelia-authentication.zip

Could you perhaps post a snippet of the code (inline or in a gist) in stead of uploading a zip? Also, this kind of question is probably best to ask in our gitter channel :) https://gitter.im/SpoonX/Dev

Thanks Wesley, just done it in https://gist.github.com/oteuan :)

which version of authentication and api you are using?

Hi,
I wasn't using aurelia-api at first as read it was not needed. After, I plugged it in (version 3.0.0-rc4) but as it did not work i reverted it back. I have updated my gist with adding authConfigAureliaApi and the mainAureliaApi files I used at that time for aurelia-api.
Thanks!

ähm, so is it solved?

hahaha
No, it is not. Let me explain myself a bit better. The process went like:

I used the aurelia-authentication plugin so I was using the original files I put in my gist calling the login() method in the authorisation.ts
As it didn't work, I read about aurelia-api and I applied it using the authConfigAureliaApi.ts and the mainAureliaApi.ts instead.
I still was getting a 401 Unauthorized response so i reverted my changes using Aurelia-Api and I put in place my own login method (loginCustom) doing the POST and setting the authService manually.

Hoope this makes sense ;)

@oteuan ah, i forgot. this still valid?

Hi,
No worries.
Yes I am still having this issue. The work-around is what I have at this moment (loginCustom). We are on "aurelia-authentication": "^3.0.0-rc5" at this moment.
Thanks.

should work. only thing might be Content-Type vs eg content-type.
else try again to update aurelia-api and authentication. maybe it magically helps


2308 fix missing discovery results

This fixes several search box anomalies, notably, missing results when one searches for uncommon things like first name.

@aphelionz This is a good starting point for fixing more problems. AFAIK, the results are now correct and the UI poses the remaining problems.

@alvacouch This looks good to me. Should we alert anybody else to review this?

@aphelionz Repurposing cuahsi-dev-1 for performance testing.


Disable cleartext authentication on SMTP

At the moment cleartext authentication via unencrypted SMTP is enabled.
Disable it.

eeek unit testing ;-)

@sspreitzer could you have a look to the tests and resubmit a PR?
Thank you.

Closing due to inactivity.


JENKINS-43427 Add Git LFS selective fetching support (sparse checkout)

Automatically configure git-lfs selective fetching when sparse checkout is configured.
Negate patterns (leading "!") have to be transformed to lfs.fetchexclude settings.
Commas "," are not supported in lfs.fetchinclude and lfs.fetchexclude. See https://github.com/git-lfs/git-lfs/issues/2264. Therefore git-lfs selective fetching is not used if commas are detected in the sparse checkout configuration.
Resources

https://git-scm.com/docs/gitignore/2.20.1
https://git-scm.com/docs/git-config/2.20.1
https://git-scm.com/docs/git-read-tree/2.20.1
https://github.com/git-lfs/git-lfs/blob/v2.6.1/docs/man/git-lfs-fetch.1.ronn
https://godoc.org/github.com/git-lfs/wildmatch

This supersedes pull request #302 and fixes all found issues. Thanks @tiffloon for the initial effort.

Hi @MarkEWaite, could you have a look at this?
I have one open question: Should selective LFS fetching always be applied automaticly when sparse checkout is configured or should it have to be enabled/disabled explicitly via an extra option in GitLFSPull?

@darxriggs @MarkEWaite any update on this?

@darxriggs I think it should be enabled if sparse checkout is enabled.  No need for a separate configuration setting.
I expect very few users will demand to have sparse checkout with LFS that does not also honor the sparse checkout with LFS.  This is one of those rare cases where I think we can risk compatibility because the previous behavior is inconsistent and the number of users expected to depend on the old inconsistent behavior is quite small.

@MarkEWaite I have not. I was checking on behalf of an infrastructure engineer, so I'm not certain to what extent this has been used/tested.

As quite some time passed and v3.0.0 is released now, I rebased the changes on the master branch.

@MarkEWaite Do you have a rough estimation when you will find the time to review this?

I've added it to the ShortTerm list.  My current goal is to complete the review of the credentials during merge and submodule clean then deliver git client plugin 3.1 and git plugin 4.1 with submodule clean, credentials during merge, and JGit 5.6.0 before end of the calendar year.

For me this one doesn't have a high priority. It's just that it's already open and ready for a very long time from my side.


Use a true-const pattern to initialize non-generic resilient class metadata

This is the last part of rdar://problem/40810002.

Build failed
Swift Test Linux Platform
Git Sha - 87b2891722760d7294bae1ade14318cc00e40c61

@rjmccall I already did the renaming of "InPlace" to "Singleton" on top of this, so I'll address the code review feedback in the next PR.

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test


propagate signals from image itself using tini (not sure if it's correct for busybox but something similar could be done maybe)

https://github.com/krallin/tini
# add sigterm and sigkill listen
RUN apk add --no-cache tini

WORKDIR /app
RUN chown -R node /app

USER node

#then not sure how you run the rest but ...
CMD [ "/sbin/tini", "--", "......entrypoint" ]

@jkone27 while developing on your machine, you can run the container with docker run --init (which will propagate the signals to the container correctly) or stop the container with docker stop or docker kill. in any other environment (swarm, kubernetes etc.), the TERM signal is not relevant afaik and I can't think of any other relevant busybox signals that would need propagation. this is also mentioned in the README - look for the NOTE at the end of the Usage section.
I wouldn't want to add tini to the mix since I think the existing solutions are sufficient.


Autosave is overly ambitious

Issue Summary
If I open a new post and click in the editor, I find myself with a new post with the title "(Untitled)"
Why save a post that doesn't have any content in it? Now I'm cleaning out extra "(Untitled)" drafts whenever I decide I'm not going to write a post after all.
Repro Steps

New Post
Sit for a few seconds
Click in the editor
You've just saved your post!

Specs
Ghost 0.5.3 (Ghost Pro)
Chrome 38

We haven't had any user reported issues with this; closing :)