Is there a way to store descriptive info with OpenMM forces?

Previously, Christopher Bayly had requested that we track parameter ID numbers (serial numbers, basically) and parent IDs in the SMIRFF format, i.e. his original mockup had something like this:
[#6X4]-[#6X4]    parBond  (1.526, 310.0) parNum b001 {CT-CT from frcmod.Frosst_AlkEthOH}
[#6X4]-[#1]      parBond  (1.090, 340.0) parNum b002 {CT-H_ from frcmod.Frosst_AlkEthOH}
[#6X4]-[O&X2&H1] parBond  (1.410, 320.0) parNum b003 {CT-OH from frcmod.Frosst_AlkEthOH}
[#6X4]-[O&X2&H0] parBond  (1.370, 320.0) parNum b004 {CT-OS from frcmod.Frosst_AlkEthOH}
[#8X2]-[#1]      parBond  (0.960, 553.0) parNum b005 {OH-HO from frcmod.Frosst_AlkEthOH}

# angles
[a,A]-[#6X4]-[a,A]   parAng (109.50, 50.0) parNum a001 {consensus matches all X-Csp3-X}
[#1]-[#6X4]-[#1]     parAng (109.50, 35.0) parNum a002 {H1-CT-H1 from frcmod.Frosst_AlkEthOH}
[#6X4]-[#6X4]-[#6X4] parAng (109.50, 40.0) parNum a003 {CT-CT-CT from frcmod.Frosst_AlkEthOH}
[#8X2]-[#6X4]-[#8X2] parAng (109.50, 70.0) parNum a004 {O_-CT-O_ from frcmod.Frosst_AlkEthOH}
[#6X4]-[#8X2]-[#1]   parAng (108.50, 55.0) parNum a005 {CT-OH-HO from frcmod.Frosst_AlkEthOH}
[#6X4]-[#8X2]-[#6X4] parAng (109.50, 60.0) parNum a006 {CT-OS-CT from frcmod.Frosst_AlkEthOH}

# torsions
[a,A]-[#6X4]-[#6X4]-[a,A]   parTor ( (9, 1.40, 0.0, 3) ) parNum t0001 {X -CT-CT-X from frcmod.Frosst_AlkEthOH}
...

And he subsequently added a request for tracking also parent_id for each parameter.
This can trivially be added to the SMIRFF XML format by just adding new tags parameter_id and parent_id or some such, HOWEVER, this info also won't be retained or used in any way. What would be ideal would be to be able to track it internally in OpenMM, i.e. a Force for a specified torsion would be tagged with its parameter number at least. This would greatly aid debugging like the work I did recently where I'd encounter a force/energy inconsistency between two different setups of the same system and I'd need to track down why it was there. Currently, if I get a differing forces applied to a set of atoms in an OpenMM system/simulation, I have access to the atom numbers, the force term, and the parameters applied, but there is no mechanism to tell where the parameters came from so I have to figure this out by inference.
So, my question is this: Is there a mechanism to store descriptive info to an OpenMM Force term, such as a parameter_id corresponding to the parameters used for that force? I've been looking at the docs and as far as I can tell the answer is "no", but I figured it was worth asking.
If the answer is "no", then presumably if we do add parameter_id to the XML files we can only use this while parsing the files but then we'll lose it thereafter, unless we do something which creates some sort of a lookup table of which force terms came from which parameters...
There's not a huge functional importance to this at present, though it likely will continue to be something that would be helpful in debugging in the future.

So, my question is this: Is there a mechanism to store descriptive info
to an OpenMM Force term,

Nope.
We can certainly create a mechanism to track this information in an object
that mirrors System and its Force objects, but it would be critical to
first understand how you want to use this information. Can you come up with
specific ways you would want to access and use this information, and how
you would dream up coding with that mechanism available?

Just to be clear, this is very low priority:

We can certainly create a mechanism to track this information in an object
that mirrors System and its Force objects, but it would be critical to
first understand how you want to use this information. Can you come up with
specific ways you would want to access and use this information, and how
you would dream up coding with that mechanism available?

The two most immediate examples would be things like here https://github.com/choderalab/openmoltools/blob/master/openmoltools/system_checker.py#L254 and here https://github.com/open-forcefield-group/smarty/blob/master/smarty/forcefield_utils.py#L189 where one would print not just what torsions are different or are found, but what parameter IDs the values came from. i.e., in addition to:
i0, i1, i2, i3, per, phase, k0 = force.getTorsionParameters(k)

having
param_id = force.getTorsionID(k)

for a subsequent print of param_id.
I'm not stuck on that specific implementation of course, but right now there is no way to recover the origin of the specific parameters.
(This would have saved me HOURS in debugging the AlkEthOH energies; right now there is no way to backtrack from knowing that a specific torsion has a different energy in some system to figuring out what parameter specified that energy. This gets increasingly more nontrivial the more parameters there are in a SMIRFF file given the hierarchical nature of it. For AlkEthOH, I could handle the hierarchy by hand by just starting at the bottom and working my way up through SMIRKS matches until I found one which matched the set of atoms in question, but for larger parameter files this would quickly become impossible.)
I realize these examples are only in the context of "checking to see whether energies which should match actually do match", which is only something we're doing temporarily. Still, as soon as we are doing sampling over SMIRKS while parameterizing to data, we're probably going to run into situations where we want to know which SMIRKS pattern and parameters are responsible for a particular property we're measuring (a bond distance, for example) so being able to work backwards from the force terms to figure out which lines/parameter IDs from the SMIRFF parameter set were responsible for those parameters/force terms will be very helpful.

The answer to this was "no", so #82 added a structure to easily query which parameters would be used by a specific molecule.


AccentColor deprecation needs link to migration guide

We have a nice migration guide for the AccentColor change, but it's not linked in the API itself:
https://flutter.dev/docs/release/breaking-changes/theme-data-accent-properties#migration-guide

In this case, we include a brief warning ("'accentColor' is deprecated and shouldn't be used. Use colorScheme.secondary instead. This feature was deprecated after v2.3.0-0.1.pre..") but there's no help for a user to know how to use colorScheme, and it turns out to be pretty intricate.
I had to go off and Google to find the solution, and I think it could and should be a lot easier for us to walk users through this kind of breakage.

I had to go off and Google to find the solution

I also have to go to Google to see when 2.3.0-0.1.pre was released, so I know this is a recent change or not. I wish the guideline was "version - date" instead of version, so people can see and have time to react (e.g., oh, this was deprecated 10 months ago, I should hurry in replacing it! vs oh, this was deprecated last week, I can wait a bit more).


Ticket/2.7.x/5362

This doesn't resolve the underlying issue, but it sets path=false if the
user provide a server setting for filebucket, so users no longer need
to use this work around:
filebucket { 'remote':
  server => 'puppet',
  path => false, #no longer required.
}

The documentation on the type have been updated, but there are other
places where this should also be updated.

I would generally prefer to get to the underlying problem, not work around it like this.  Did you identify that fixing the core of the issue was a substantially bigger, or more risky, effort than this targetted change?

Fixing the underlying problem requires checking the file resource type behavior which is beyond what I intended for a quick hack-a-thon pull request.

Sure.  I can appreciate that, but I am not going to accept the change because of it without that background checking.  Do you think you can do that?  If not, I am going to have to reject the change, which I really don't want to do.  I just want to make sure we are not rearranging deck chairs while the iceberg looms...


feat(Examples): Firmware update through HCI for MAX32655

Description
Write a firmware update example: update the firmware through HCI
Add HCI command to be used during the update: erase, update, sysreset

/clang-format-run

Also rename the project BLE_HCI_DFU


About the background color

In color map the (0,0,0) means black, can you tell me how to express the color of your background in colour map？

(0,0,0) corresponds to the background class.


Add additional directives

Add if-else and show directive like in Vue. This is to simplify commonly used patterns. So this
html`<div style_display=${hook.$show(val => val ? 'block' : 'none')}>Hello, World</div>`

can be simplified with show directive to this
html`<div :show=${hook.$show}>Hello, World</div>`

Also, I suggest using colon (:) as prefix for directives to signify that they are not normal attributes. Directives are declared as attributes but shouldn't show as such when the element is rendered. For example, the previous example if hook.show = false should be rendered as

Hello, World

This means that text, html, and children should also use colon since they are directives.

Some directives inspired by Vue and Svelte:

:text sets the textContent
:html sets the innerHTML
:children sets the children
:show sets the display as described above
class:name to toggle a specific class name
style:property which is currently style_property
:ref which accepts an object

Other current directives might be converted to the colon syntax later such as is-list and key


[Bug]: Unable to view full link diagnosis when OB version is 43x

ODC version
odc431
OB version
ob43x
What happened?

What did you expect to happen?
Full link diagnosis should be able to view
How can we reproduce it (as minimally and precisely as possible)?
Execute SQL on version ob43x, click on execution profile, and click on full link diagnosis
Anything else we need to know?
No response

Fixed In Commit 48b0a9c5867f163404fe6f4e9dff480c9c247272
------
畅晚
Fri Jul 12 17:33:57 2024 +0800

Full link diagnosis still cannot be viewed

pass


No module named 'models.cifar10.resnet_OAT'

from models.cifar10.resnet_OAT import ResNet34OAT
ModuleNotFoundError: No module named 'models.cifar10.resnet_OAT'
the current corresponding file is resnet_CAT?

Traceback (most recent call last):
File "OAT.py", line 20, in
from attacks.pgd import PGD
ModuleNotFoundError: No module named 'attacks'

Thanks for your interest in our work! The issues are fixed in the latest commit.

Thanks for your interest in our work! The issues are fixed in the latest commit.


Separate ESP from ofApp (GUI)

In the preparation of a command line program, I would like to reuse as much as possible from ESP.
Currently the cli program has been reusing TrainingDataManager and constructing the pipeline manually (https://github.com/damellis/ESP/blob/master/Xcode/ESP/src/cli.cpp#L22). Ideally, I think we should be able to pull off the same user code and run it here.
The biggest problem right now is the entangled dependencies of openFrameworks.
I am using external function (see https://github.com/damellis/ESP/commit/f954bc1d57e2a2cbd9e6799e91da6f3e5df2dc1e) right now. Suggestions welcome.

Duplicate of #205.


[examples] FrictionalContact_GlobalFrictionalContact3D* are failing

See for instance http://cdash-bipop.inrialpes.fr/viewTest.php?onlyfailed&buildid=17076

Fix by commit 417d3b1


Option to stop the diff at the first return / MWCC fix

Relevant here: https://decomp.me/scratch/wi3NU where some stuff is inlined, but the compiler isn't omitting the inlined functions' code, so the diff gets nasty. We should provide an option to stop at the first return mnemonic or turn on --disassemble for the gc_wii platform

MWCC has no problem inserting several blrs regardless of version, I was wrong. But this hack would still be useful for cases like the above.
I found that asm-differ requires a tweak to make --stop-jr-ra work for PPC (by checking for blr as well), but that can easily be submitted upstream.


Do not generate pretranslations for segments with target text

The NMT engine incorrectly generates pretranslations for segments that already have target text. This is unnecessary and inefficient.

Here is the relevant comment on the PR that made the change. Even though the comment was resolved, the change was not reverted.


Roberta: what does Preprocess Step do?

In many fine-tuning Roberta examples, first, the text gets encoded into tokens and converted into binary format.  Then run another script called preprocess which needed a given dictionary. What is this step for?

what do you mean by remapping?

@myleott, If we generate encoder.json, vocab.bpe for a new language, how can we generate the dict.txt file?
Thank you.

@sl-victormazzeo  any luck?

@myleott  what's the purpose to remap BPE id with a fairseq dictionary?


Figure out whether relative URLs are supposed to be allowed in calls

Right now, we do allow them, and we convert them to absolute URLs in the calling page, but I'm realizing that I'm actually not sure whether it's supposed to work that way.

It looks like Chrome currently does the same thing we do.


Update filename in S3

The capture id as the file name has no file extension. And will not be recognized by Amazon S3.
This can be prevented by using file name instead.

Thanks @daannijkamp  for the request, merged.


Subscription Support

Is your feature request related to a problem? Please describe.
I have a requirement for a stitching library that also supports subscriptions.
Describe the solution you'd like
I would like to see this library updated to support subscriptions.
Describe alternatives you've considered
Braid and Lilo do not support subscriptions. I have started reviewing the code base to try and understand how to effectively implement the subscriptions, though, it looks like it may take considerable work to my untrained eye.

@Survival1sm Thanks for creating the issue. We have been discussing about adding the subscription support but not able to get to it since we don't have an immediate usecase and resourcing constraints.
Let us know if you want to contribute this and we will be happy to guide/assist you with the process. This library heavily relies on graphql-java and might be good to start with subscription in that library.  You can also look at the @defer directive PR to get an idea on how we are thinking about async graphql

Hi , I would like to know the update of this feature request if possible. Can you please let me know if you plan on extending the support for subscriptions in the near future since we are also considering using graphql-orchestrator library to support federation in a API manager.


return values reported backwards

Not sure if this is an actual issue but it seems unintuitive

This should be fixed, can you confirm?


System tests fail on CI

Trying to land a change that IMHO is unrelated to account credentials. Maybe those got broken when we switched to our usual environment variables?
> Running step: decrypt-service-account-credentials
Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt

This PR:
https://github.com/googleapis/cloud-trace-nodejs/pull/858
This CI run:
https://circleci.com/gh/googleapis/cloud-trace-nodejs/5755?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

@kjin  Can you have a look? I don't know who landed the env variable changes, I only see your closed PR. Thanks!

Ah, you'll have to rebase on top of #861 after it lands because I already changed the CircleCI decryption env vars (to show that system tests still pass).


Syntax highlighting lost for plpgsql function

Hi,
just installed dbeaver 6.2.3 on Linux. The actual code in a plgsql functions appears as a comment now:

Would be great to have syntax highlighting back for the actual code of functions.
Thanks in advance
Daniel

Duplicate.
Fixed in scope of #7050


10.6 Homemenu not supported

Using 10.6 SysNAND with a9lh and AuReiNAND's NTR builds, BootNTR fails with an "unknown Home Menu" error.

I could have sworn I was using the latest BootNTR build, updating fixed this.


Revert "Add GP-relative relocations"

This reverts commit d49e48097bcad410e7e6d96ebf9d94d6d41dc9c0.
Both the ePIC and FDPIC ABIs are expected to define relocation types which can be used for both PC-relative and GP-relative data, and are expected to define relaxations to optimize access to both types of data. Explicit, compiler-generated relocations using GP are only useful in cases where an object is known at compile time to be local and present in the GP-relative segment.  The relaxations will result in GP-relative accesses, but the relocations involved will be linker internal and need not have allocated standard numbers.

LGTM but I would like to merge this until https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/405 update :)
cc. @luismarques

Sounds reasonable.

I am now working on ARM FDPIC for LLVM+Clang to get some experience. Yes, I am more convinced we should remove relocation types for direct GP-relative addressing:)

Should I merge this, then?


New Thrift, new errors

Via Go kit.
# github.com/openzipkin/zipkin-go-opentracing/thrift/gen-go/scribe
../../openzipkin/zipkin-go-opentracing/thrift/gen-go/scribe/scribe.go:282:14: not enough arguments in call to oprot.Flush
	have ()
	want (context.Context)
../../openzipkin/zipkin-go-opentracing/thrift/gen-go/scribe/scribe.go:299:16: not enough arguments in call to oprot.Flush
	have ()
	want (context.Context)
../../openzipkin/zipkin-go-opentracing/thrift/gen-go/scribe/scribe.go:312:16: not enough arguments in call to oprot.Flush
	have ()
	want (context.Context)
../../openzipkin/zipkin-go-opentracing/thrift/gen-go/scribe/scribe.go:326:24: not enough arguments in call to oprot.Flush
	have ()
	want (context.Context)

haha this is bas' favorite part of the project I think!


Request : Open Graph Drawing Framework (OGDF)

Boost.Graph is overkill and so complicated than what it has to be. This library is way better library for graph and stuff.
http://www.ogdf.net/
https://github.com/ogdf/ogdf

Looks very nice but sadly it has GNU license. Are there other alternatives with a more permissive license?

@Fleischner I will provide a port file for this library. Is there any policy against using GNU licensed libraries in vcpkg? Because that would be a deal breaker for me.
BTW, as far as I know, there is another one called LEMON, but I prefer ogdf.

No, sorry for the confusion. GNU is absolutly fine for vcpkg. (By the way I'm only a user too. so I can't decide)

The PR has been merged. So close it.


No such module 'RswiftResources' error in R.generated

The error appears after the Xcode generate the file R.generated
I'm using Xcode 14.1
What I already tried:

delete derivate data
use Xcode 14.2
reset package caches
update to latest package versions

Did you add the RswiftLibrary framework to your target?

Select your target, on the tab "General", in the section "Frameworks, Libraries, and Embeded Content", click "+" and add RswiftLibrary

Ok...
Actually the project is using a fork of R.swift, that fork (from that thread) was being used because it supports SwiftUI.
My theory: as we are installing Rswift with brew, and now the version installed by brew (7.2.4) is not compatible with the fork.
Do you think that it's possible that scenario?
If so, could you enable installing the version 6.0.0 by homebrew? I don't now if it's possible, but if so that would be perfect because the team can continue working in the new features and plaining the migration to the original Rswift package.
Sth like 'brew install<EMAIL_ADDRESS>...

Right, you can't use the version 6 library with version 7 executable.
The new R.swift 7 has support for SwiftUI.
If you want to continue using R.swift 6, you'll need to install the excutable via homebrew. I'm not sure how that works exactly, but from some quick searching online, it appears to be possible.
You can also use one of the other installation methods or download the release directly.

Sure, there is a manually methods described there, thanks!!
After using the version 6.0.0, by the manually method, I could validate that the problem was with the conflict between the fork and the current Rswift version.
Thanks Tom!


Change Pagination position

Hello,
I'm trying to change/add to the pagination position for List Views.
This could, possibly, be a feature request. However, I do also see that "Bootstrap Table" implements this, I'm just not smart enough to figure out how to incorporate and utilize it.

I meant to include a link to "Bootstrap Table":
https://examples.bootstrap-table.com/#options/pagination-v-align.html


Order History redirects if user isn't logged in

Pre-Flight checklist

[X] Testing

[X] Code is tested
[X] Changes have been manually tested

What are the relevant tickets?
#673
What's this PR do?
Adds a http status code check when loading the order history. It will now redirect to the sign in page if the code that's returned is an error code.
How should this be manually tested?
Navigate to /orders/history/ as a user that isn't logged in. You should be redirected to the sign in page.
Navigate to the order history page after logging in. You should see the order history as per normal.

Closing - this was taken care of more effectively in https://github.com/mitodl/mitxonline/pull/681


tf.nn.Softmax() crashes if tensor is not two-dimensional

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu 16.04 "nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04" docker image and nvidia-docker
TensorFlow installed from (source or binary): binary (conda install tensorflow-gpu)
TensorFlow version (use command below): 1.10
Python version: 3.5
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: cuda 9.2, CuDNN 7.2.1
GPU model and memory: GeForce GTX 1080 Ti, 11264 MB

Describe the current behavior
I'm working on image segmentation, with 5 classes. After computing logits, I want to compute softmax activations :
probabilities = tf.nn.softmax(logits)
with logits of shape [-1,586,586,5], which shouldn't be a problem since softmax internally reshapes it to a 2D tensor. However, I get the following error.

Check failed: NDIMS == dims() (2 vs. 4)Asking for tensor of 2 dimensions from a tensor of 4 dimensions

I cannot reproduce the issue outside of docker on ubuntu18.04 and tensorflow 1.11, everything works as expected. This happens at inference time, using a frozen model.
Describe the expected behavior
tensor should be reshaped internally and crash should't occur.
Quick fix
 flat_logits = tf.reshape(logits,shape=[-1,n_classes])
 probabilities = tf.nn.softmax(flat_logits)
Reshaping the tensor myself prevents the crash from happening.

@vincentleon Could you post an example code for reproducing the problem?

@vincentleon In order to expedite the trouble-shooting process, please provide a code snippet to reproduce the issue reported here.  If this is no longer an issue, feel free to close.


Server Error 500 at Signup

After finishing the 2 initial typescript tasks, I get a reproduceable "Looks like there was a server error! (500)". After this I cannot access the main page until clearing my browser storage.

I have the same issue with both python and clojure

Same problem with javascript

The Same with PHP

Same problem with javascript

same for javascript now

Same problem with Java

the same problem with java

Same

Same issue here with Java.

Same problem with JavaScript

Same problem with Java (both on safari and chrome)

Wow, not sure what happened but clearly this just started. Looking into it now.

This should be fixed now.


[DEV-7286] 4.24.7 > Inclusive Quantile Legend Opt In

Problem
Equal Number Interval (Opt In) counties were showing as blank counties/states (black on the map) because the max value was calculated using -1 instead of a decimal value (non inclusive value). Now the scaling accounts for decimal values. There is a storybook page created in this PR. It doesn't seem to respond well and I can't figure out why (file size maybe), so it might be best to test with the example file.
Changes

Used coveUpdateWorker to default the roundToPlace value to zero if its undefined on equal number.
Updated the domain and breaks values to be inclusive of decimals if equal number opt in is used.
Sets initial state roundToPlace value to zero for new maps being generated.

Test Steps

Create a county map
Under the legend panel choose "Equal Number Opt In"
Under Columns > Data Column > Adjust the round to value to be inclusive for the data.

@joshlacey @mpallansch

@adamdoe I don't think we should add 85k lines of mock data.

Thanks @joshlacey, updates are on the last commit.

@adamdoe do we need the new json config in two places? could one import from the other?

@joshlacey - I removed the duplicate in favor of the mock data in storybook.


A problem occurred configuring project ':react-native-gradle-plugin'.

Description
A problem occurred configuring project ':react-native-gradle-plugin'.

Could not create service of type OutputFilesRepository using ExecutionGradleServices.createOutputFilesRepository().
java.io.FileNotFoundException:

Version
0.71
Output of npx react-native info
System:
OS: macOS 12.1
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 78.09 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.15.1 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.13.2 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: <IP_ADDRESS> - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.1 => 0.70.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
npx react-native run-android
Snack, code example, screenshot, or link to a repository

Can you copy the build output instead of screenshotting it? It makes really hard for us to interact with it.
I would suggest you wipe your node_modules and do yarn install again. It seems there is a .lock file which is preventing Gradle from running.

I am running a brand new project with following configuration but there is no such issue for me -
System:
OS: macOS 12.3
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 771.60 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 16.13.2 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.1.2 - /usr/local/bin/npm
Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7935034
Xcode: 13.3/13E113 - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.1 => 0.70.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Same
 npx expo run:android
› Skipping dev server
› Building app...
Configuration on demand is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':react-native-gradle-plugin'.
> Could not determine the dependencies of null.
   > Could not resolve all dependencies for configuration ':react-native-gradle-plugin:classpath'.
      > Could not create service of type OutputFilesRepository using ExecutionGradleServices.createOutputFilesRepository().
         > Cannot list files in /projects/reactNative/apps/AwesomeProject/atol/node_modules/react-native-gradle-plugin/.gradle/buildOutputCleanup

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
Error: /projects/reactNative/apps/AwesomeProject/atol/android/gradlew exited with non-zero code: 1
Error: /projects/reactNative/apps/AwesomeProject/atol/android/gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/projects/reactNative/apps/AwesomeProject/atol/node_modules/@expo/cli/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
    at Object.onceWrapper (node:events:628:26)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1098:16)
    at ChildProcess._handle.onexit (node:internal/child_process:304:5)
    ...
    at Object.spawnAsync [as default] (/projects/reactNative/apps/AwesomeProject/atol/node_modules/@expo/cli/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
    at spawnGradleAsync (/projects/reactNative/apps/AwesomeProject/atol/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:72:46)
    at Object.assembleAsync (/projects/reactNative/apps/AwesomeProject/atol/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:52:18)
    at runAndroidAsync (/projects/reactNative/apps/AwesomeProject/atol/node_modules/@expo/cli/build/src/run/android/runAndroidAsync.js:31:24)

@githubjeka
Could you try the suggested workaroudn I mentioned:

I would suggest you wipe your node_modules and do yarn install again. It seems there is a .lock file which is preventing Gradle from running.

This looks like a transient issue or an unreleased lockfile

Tried many cases.
Delete: android, package.lock, node_modules. After run yarn add expo , yarn install, and npx expo run:android
Does not help.
Something with my dev environment, so far as it was success building a few hours ago. I was fixing a problem in my native component and at some point I did not understand why I encountered this problem.

Everything has worked for me since morning. Android Studio was reloading.
The problem disappeared just as it appeared. What reasons and what I did to fix it, I do not understand.

Closing as the issue is actually resolved


Autoplay attribute breaks functionality

Hello, I love this polyfill, we will use it in production! So many thanks for the work put on this.
The only problem that I have is this:
<video class="introPage-backVideo introPage-fadeable" ng-class="{'introPage-fadedOut': vm.playingOnboarding}" src="videos/loop.mp4" autoplay muted loop playsinline></video>
$backVideo = $('.introPage-backVideo')
backVideoDOMElement = $backVideo.get(0) as HTMLMediaElement
window.makeVideoPlayableInline(backVideoDOMElement, false)
in this case the video still goes automatically to full-screen typical native video behavior in ios8 and 9
if i remove the autoplay and instead use:
$backVideo = $('.introPage-backVideo')
backVideoDOMElement = $backVideo.get(0) as HTMLMediaElement
window.makeVideoPlayableInline(backVideoDOMElement, false)
backVideoDOMElement.play()
it works like a charm.
so somehow 'autoplay' as html attribute has to be replaced by '.play()' on dom element.
Any clues?

Sorry if I was not clear, that is correct: Video tag with autoplay attribute goes fullscreen automatically.
I reproduce this in Xcode simulator iOS 8.4 / iPhone 5.

It looks like the same issue as https://github.com/bfred-it/iphone-inline-video/issues/59#issuecomment-232718210
I might have to document this issue but it only seems to happen with these big frameworks (Angular/Meteor) and I don't really have time to figure out why

The pause button can not show when playing inline. @fregante


Added sorting implementations.

Added Insertion, Selection and Quicksort implementations. Renamed Mergesort  to MergeSort and changed nmethod name and declaration to fit the new sorting interface. Added a new sorting interface for all sortring implementations. Changed to non-static methods.

Hey! I've already implemented the sorting tests! Take a look and give me feedback!

Done! :+1:

Correted the things you've said! Check it now please!

Thanks to contribute to #3 !!!


NOISSUE - Fix dates not being init properly on save, change path construction, replace UUID with ULID for group ID

What does this do?

Fix created_at and updated_at not being saved properly
Change the way that path is constructed, instead of the name of the group being used group id will be used

things=# select name, id, path from thing_groups;
  name   |             id             |                         path
---------+----------------------------+-------------------------------------------------------
 group13 | 01ESM3GW5VD6VSQ2YYDPCDQHXH | 01ESM3GW5VD6VSQ2YYDPCDQHXH
 group13 | 01ESM3H75DCYQPWHYZS8BAT733 | 01ESM3GW5VD6VSQ2YYDPCDQHXH.01ESM3H75DCYQPWHYZS8BAT733

Name of the group can be changed
Name of the group is not unique

Codecov Report

Merging #1300 (a945508) into master (8aadc0f) will increase coverage by 0.17%.
The diff coverage is 21.73%.

@@            Coverage Diff             @@
##           master    #1300      +/-   ##
==========================================
+ Coverage   64.66%   64.84%   +0.17%
==========================================
  Files         117      117
  Lines        8027     8007      -20
==========================================
+ Hits         5191     5192       +1
+ Misses       2381     2360      -21
  Partials      455      455

Impacted Files
Coverage Δ

authn/service.go
80.32% <ø> (ø)

things/postgres/groups.go
0.00% <0.00%> (ø)

twins/service.go
69.38% <ø> (ø)

things/service.go
54.54% <25.00%> (+0.25%)
:arrow_up:

things/postgres/init.go
95.23% <100.00%> (ø)

Continue to review full report at Codecov.

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


DocParser Inference

Is there an inference code to pass my own input document using your pre-trained model and get the detected tables output?
Thank you.

Hi,
You should be able to just pass an image to the detector component, e.g.:
#init entity detector
sample_img = skimage.io.imread(sample_img_path)
entity_predictions = entity_detector.predict(sample_img)
entity_detector.save_predictions_to_file(entity_predictions, output_dir, sample_img_name)

Where is the detector component? And where should I add this code?  where is the entity_detector comes from, I can't find this py file.
Could you give a more specific guidance of how to use the pertained model?
Thanks a lot!

Where is the detector component? And where should I add this code?  where is the entity_detector comes from, I can't find this py file.
Could you give a more specific guidance of how to use the pertained model?
Thanks a lot!


Feature request: SASS

Please add a SASS/SCSS version too.
A big community of people prefer using SASS now. It would be really helpful.

Conversation rolled into #1147


Improve Azure documentation

We are trying to setup CCF for our Azure account. After having complete the documentation we didn't get any result:
| Service      | kilowatt hours    | metric tons CO2e Emissions| Cost
| Total        | 0.00              | 0.000000               | $0.00

After debugging a bit, it seems no subscriptions are attached to newly registered Azure application. You have to follow the following process to do it: https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal#assign-a-role-to-the-application
What do you think about:

Improving the documentation by mentioning this;
Log a warning or return an error when no subscriptions are returned here (I vote for an error, as when the credentials are wrong):
https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/blob/84ce75ea0efbd259bfe736b2a512424bec5cb2e7/packages/app/src/AzureAccount.ts#L47

I am willing to implement this changes if ok for you.

@ericksod Thanks for your answer, here is a PR https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/pull/330 changing the documentation and emitting a warning when no subscription are returned.
Regarding issue assignment & project state, I don't have enough permission to do it.


Allow ability to process all records or a single date range of records.

Right now all records for the month are processed every run.  Need to fix that.

Taken care of by #5


Collections mapping under SpringBoot 2.0

Hi,
In a quite simple case, using onetomany <-> manytoone link between two beens, i did'nt found any way to make system populate the OneToMany reverse map. Using SpringBoot 2.0, Selma 1.0, hibernate 5.2.10 and PostgreSQL, Lombok generating getters and setters, a call to the generated getter for the onetomany field always return a null pointer.
In other case, using repository to retrieve a user fails to map the onetomany link with that error:
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role.
Here come a part of the code for tests:
Child:
@Entity
@Table(name = "Cards")
@Data
@Builder
public class Card {
...
@ManyToOne(cascade = {CascadeType.DETACH, CascadeType.MERGE,
CascadeType.PERSIST, CascadeType.REFRESH},
fetch = FetchType.LAZY)
private User consumedByUser;
}
Parent:
@Entity
@Table(name = "Users")
@Data
@Builder
public class User {
...
@OneToMany(mappedBy = "consumedByUser", cascade = {CascadeType.DETACH,
CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH},
fetch = FetchType.LAZY)
private Collection cardConsumedByUserLinks;
}
The test:
@Test
public void testUserLoading() {
final String userFirstName = "test first name";
final String userLastName = "test last name";
UserDto userDto = UserDto.builder().firstName(userFirstName)
.lastName(userLastName)
.build();
User userStored = userRepository.save(mapper.asUser(userDto));
CardDto cardDto = CardDto.builder()
    .consumedByUser(userDto)
    .build();
Card card = cardRepository.save(mapper.asCard(cardDto));
Assert.assertNotNull(card);

Optional<User> userLoadOpt = userRepository
    .findUserById(userStored.getId());
Assert.assertNotNull(userLoadOpt.get());
// Error 1: lazy failure
userDto = mapper.asUserDto(userLoadOpt.get());

Optional<User> cons = userRepository.findUserAsCardConsumer(card);
Assert.assertNotNull(cons.get());

// Error 2: without reloading user from DataBase, the next test fails with enpty map
// whereas a SQL request successfully retrieve the link between objects.
Assert.assertNotNull(userDto.getCardConsumedByUserLinks());

}
As mentionned,
Thanks for help in advance
Nicolas from Wedoogift

Any update on this issue ?

Hello,
Sorry to be late. The onetomany problems mainly come from hibernate/lombok. While lombok generates a toString method which reference entity methods which try to retrieve information from database. In comparable cases selma generates a class which uses methods like collection.size() or collection.isEmpty() and out of db session, it will fail in hibernate context with a proxy exception.
I don't think there is a solution since collections methods automatically access database instead of local values.
Thank you for your attention.


[BUG] incompatible with Skyrim AE GOG 1.6.1179

Describe the bug
No library is installed for Skyrim AE GOG 1.6.1179
To Reproduce
Steps to reproduce the behavior:

Download FSMP 2.2.1 from Nexus
Install the mod
No library version will be available to choose and therefore none will be installed.
Archive does not contain the library for 1179 build

Expected behavior
Mod install and works correctly.
Desktop:

OS: Windows 11

** FSMP**

Installed version: 2.2.1
CUDA: No_CUDA
AVX: AVX2

SKSE

installed version 2.2.6

Skyrim

1.6.1179

get the test version for GOG 1197 on the FSMP discord here https://discord.gg/J7HKKnTv

Didn't work


[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc knative-sandbox/eventing-writers
/assign knative-sandbox/eventing-writers
Produced by: knative-sandbox/knobots/actions/update-deps
Details:
bumping knative.dev/eventing b8cb60c...bd37622:
  > bd37622 Update community files (# 6546)
  > 7097458 Fix error bodyofMessage in executeRequest not read (# 6521)
  > fec7920 upgrade to latest dependencies (# 6525)
  > b9a8451 Properly export trace for duplicated "finished" event (# 6536)
  > 754b997 :dizzy: Do not use v1b1 from Cronjobs (# 6537)
  > 3a69d31 :passport_control: Fixing securityContext issues: (# 6533)
  > 54174e3 Remove strict check in scorer plugins and respect maxskew, requeue when no pods available rather than fail Scheduler (# 6524)
  > 645fd88 Knative port broker redelivery test to rekt (# 6522)
bumping knative.dev/serving d6ab464...bf0e590:
  > bf0e590 Update net-kourier nightly (# 13340)
  > c18d504 Update community files (# 13339)
  > 8a11681 Update net-kourier nightly (# 13336)
  > 243fad9 Update net-istio nightly (# 13334)
  > 4ac8668 Update net-kourier nightly (# 13335)
  > ed3515c Fix: Raise the reconciliation timeout from 10 to 30s. (# 13323)
  > 6b1972b upgrade to latest dependencies (# 13330)
  > 2befffb Update net-istio nightly (# 13328)
  > 2332731 upgrade to latest dependencies (# 13326)
  > 3f03f22 upgrade to latest dependencies (# 13324)
  > dadd0b6 Update net-istio nightly (# 13312)
  > 9a2028a Update net-gateway-api nightly (# 13311)
  > d1af2ab Update net-contour nightly (# 13313)
  > 81b75a5 Update net-kourier nightly (# 13314)
  > dc8d797 update kapp module name in e2e tests (# 13315)
bumping knative.dev/pkg 5f66ecf...6d71868:
  > 6d71868 Update community files (# 2600)
  > d1d5c84 Define a global for `reconciler.DefaultTimeout`. (# 2597)
  > df29e2a Avoid second lister fetch during finalizer reconciliation. (# 2596)
bumping knative.dev/hack d1317b0...6887217:
  > 6887217 Update community files (# 232)
  > 9b76387 output certificate as well (# 229)

/lgtm
/approve


Add the possibility in checkvars.py that a list of variables can be omitted.

The possibility in checkvars.py to omit a list of variables is convenient for the maintainer of the pre basic and basic ignored and identified missing files during the identification process. It allows to work on different lists for identification at the same time.
A file list-of-omitted-variables.xlsx will be added in the resources directory, which has to be empty (only the header) in the repository, and can be manually changed for temporary use.

Done.


perform static linking

Fixes: https://github.com/lrills/helm-unittest/issues/41

Tested in alpine and work as a charm! Thanks!


net: http: client: Timeout the req only if receiving nothing

If we receive some data from the server but not actual data, then return 0 from http_client_req() like we used to do earlier before the commit 28a46c0f60aba41f7f0d099a93dfad80436a6d97

It gets worse -- Even my original PR had a mistake 🤦
Check it out:
https://github.com/zephyrproject-rtos/zephyr/issues/42988
After that PR, if the HTTP server closes the TLS socket mid-way through transmission, it will result in HTTP status 0 (which was not the original behavior, I believe).
So now that makes three commits with unintentional changes to how http_client handles unexpected FINACK 😅
I am working on a PR of my own which should rectify all of this. But it does raise the question:
What should we do if the HTTP server raises finack after sending a partial (rather than NULL) HTTP response? I'm thinking this should surely result in an error, right? NULL response was already an obscure behavior - I cannot think of any good reason for an invalid response to be sent.
To be fair, to even do this you'd have to essentially hijack the TLS socket of your HTTP server, or the server would have to crash, or some other extremely unexpected thing would have to happen, making this edge case extremely rare.
I'll proceed under the assumption that returning an error is reasonable in that case

Closing this in favor of https://github.com/zephyrproject-rtos/zephyr/pull/70911


[ Minor ] Fix SfCarousel pagination

SfCarousel pagination is not working properly, testing on storybook I'm getting:
(1-4) -> (5-8) -> (8-3) -> (1-4)
The correct would be:
(1-4) -> (5-8) -> (1-4)
I think we have to hard set the glide index with:
move.direction = '='
move.steps = newIndex

@przspa can you take care of it? I can do it if you prefer.

Actually, I think it's a glide bug, but we can deal with it by forcing the index instead of just using side moves.

@leomp12 I will fix this bug

Great, thanks!


Fixed spelling

Pull Request Test Coverage Report for Build 637

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 76.005%

Totals

Change from base Build 634:
0.0%

Covered Lines:
5445

Relevant Lines:
7164

💛  - Coveralls


3D Spacing not written to TIFF

SimpleITK does not write the spacing information for the 3rd dimension when writing to .tif files.  Reopening the saved image in SimpleITK shows the right spacing for first and second dimensions, but not the third.  Minimum example:
import SimpleITK as sitk
import numpy as np

some_path = './Img.tif'

img = sitk.GetImageFromArray(np.random.rand(5, 5, 5))
img.SetSpacing([2, 2, 2])
cast_img = sitk.Cast(img, sitk.sitkFloat32)
sitk.WriteImage(cast_img, some_path)

test = sitk.ReadImage(some_path)
test_spacing = test.GetSpacing()

test_spacing will give an output of [2, 2, 1] in this case.
Is this intended behavior/an artifact of tif writing or a genuine bug?

This issue is dependent on ITK. When it is fixed there it will be fixed in ITK.


devtoolsFormatters object formatter extension?

Has anyone considered writing (or has anyone already written) a custom object formatter for Chrome devtools in combination with deeplearn.js? This would make it possible to view Array2D data structures visually as the matrices that they represent mathematically.

This is a really cool idea, I haven't heard of anyone working on this.
This would be a phenomenal contribution if anyone's up for it.


Better result for PixelArt scaling

Hi, Developers,
For common image, currently Waifu2x is still the best compared to other algorithm. But, if we want to scale a pixel art picture, Waifu2x tends to resulting jagged picture for the result. The following is the example:

The picture above is the original version. When I scaled it 3 times, the result is like this:

The left picture is Waifu2x and the right picture is xBR. We can see that Waifu2x produce sharper result, but unfortunately it cannot detect the edge well, so we see jagged lines at the edge of the picture. In this case xBR show better result for edge detection.
I hope there will be solution for this.
Thanks.

waifu2x is a machine learning based upscaler. It requires input and ideal output pairs for training. In the case of pixel art, it is difficult to make it. I can make it from pixel art upscalers like xBR or https://johanneskopf.de/publications/pixelart/ , but it would be better to use them directly.

I can use pixel art scaling algorithm like xBR directly, but from the results above, I learnt that Waifu2x still produce better result as it seems in the picture's line on pants and line on white shirt. The only thing that it lacks is edge detection to avoid jagged lines. I try to combine the result manually and the result seems good enough:

While not tailored for pixel art, I find that it still produces pretty good results. In this particular case, it seems your issue is related to lack of support for alpha channel. If you fill the background with white, it detects outer edges correctly. Here's the (amazing) result that I got that way:

Here's the (amazing) result that I got that way:

Wow, it just so amazing. It seems your result is what I am looking for.
I tried your method using http://waifu2x.udp.jp/, but the result still similar with mine above nor as good as you.
How you got that result?

It seems like using denoising. It will be more smooth edges but it is a side effect.

Yes, I selected artwork style and highest noise reduction every time.
It's not perfect, as you can see some details are lost (like the leftmost vertical line in each leg), but its intuition in the details that it kept was very good.
I'm sure it could produce even better results if the network were trained specifically for pixel art with proper input-output pairs.
My suggestion would be to make the output picture in each pair by taking a high-resolution manga picture, reducing it to 16 colors without dithering and shrinking the resulting picture by a factor of 8 or more without color constraints. For the input picture, just reduce the input picture to the same set of 16 colors as before, without dithering. I wished I could do it myself, but my programming skills are very limited. :(

I think it is very difficult to make pixel art from illustrations or photo.
The generated input image must have the same rules as actual pixel art. That is not possible with a generic image resizing algorithm.

It's not quite ideal, but I'm pretty sure it's close enough. At the very least, it will always detect rigged edges and make them smooth, which is the main point.
Also, the rules true for pixel art have to be very similar to the ones I mentioned, or else our eyes wouldn't be able to interpret such images correctly.

hmm, here is my current opinion.
art/photo have antialiasing and color gradient on its own, so it is difficult to reduce color properly.
For two-color manga(no screen tone), good results may be obtained, but that data can not be used to convert colored pixel art.
One possibility is to convert from 3DCG to pixel art. In the 3D model with simple materials and no antialiasing, we do not have to consider color reduction algorithm and we can draw proper edges.
For example, mozuya's work: https://www.youtube.com/watch?v=XU_3ZxkDO7U
However, it is a hard work to generate various types of training data in that way.
Another possibility is to choose training data from danbooru's "oekaki" tag. These  images are not antialiased, It might be little easier to convert to pixel art, I think.
well, anyway, that is a troublesome task. if someone release a library or dataset, I will use it.

Here's an example of what I mean. I'll use this picture as a starting point:

First I reduce color without dithering. I think anything over 8 colors would usually be too much, so let's say I use just five basic colors this time: red, blue, green, white and black. Here is the result:

Next I convert the picture back to RGB (i.e. no color limit) and shrink it by a factor of 8:

This will be used as the output picture in a training pair. Note that it's perfectly anti-aliased.
For the input picture, I reduce color again without dithering to get an aliased picture. I use the same set of five colors as before. This is what I get:

So there you have it. With enough training, the neural network will learn how to turn an aliased picture (pixel art) into an anti-aliased one, which then can be enlarged with your waifu2x algorithm.

This is almost exactly what I meant: https://imgur.com/gallery/YDbBZ

This is an artifact of the pre-upscaling filter used in Waifu2x, if I'm not mistaken. Using a transposed convolution instead of a fixed bilinear/bicubic filter could make extremely-low resolution cases easier for the network.

In this example you can see that the effective "blur" for the 4x4 pixel image upscaled to 8x8 occupies a large portion of the resulting image, thus making the NN believe that it is part of the image, while the 64x64 upscaled to 128x128 is much more easily resolvable.

As a workaround, it is possible to pass the original image through a xBRZ filter, downscaling it using bicubic/bilinear, and then applying Waifu2x. This is equivalent of doing a pixel-art pre-smoothing step to make the image less jagged.
This is what I obtained. Very promising!

I'm kind of disappointed that nobody has trained a neural net for pixel art upscaling yet. No reason why it shouldn't work, and it would be very useful for indie adventure game developers.

I think the problem is because nobody provide proper training materials yet.
I don't know how useful it will be, but maybe something like this DevinatArt gallery can be used for starting point, because it contains low res and hi res pixel art to be compared:
https://omegachaino.deviantart.com/art/Street-of-Rage-2-Axel-Pixel-upgrade-634629192
Or maybe we can use sprite from old version of King of Fighters game and compare it with latest version of King of Fighters game. Most sprites and fighting styles don't change much, the only different just the resolution.

I think the problem is because nobody provide proper training materials yet.

As I mentioned before, input-output pairs for training are very easy to create from any image database.

I don't know how useful it will be, but maybe something like this DevinatArt gallery can be used for starting point, because it contains low res and hi res pixel art to be compared:
https://omegachaino.deviantart.com/art/Street-of-Rage-2-Axel-Pixel-upgrade-634629192

It will be very hard to get enough such pairs, and it's not what I'm looking for anyway. I like the lack of detail of pixel art, I just don't like seeing the pixels. So I'd love to have a tool for generating bigger, anti-aliased versions of pixel art images without adding extra detail. Something like xBR but more accurate.

The problem is not that training such a network is hard. There's new network structures that are extremely simple, fast to train and are better than what Waifu2x was originally based upon. You could basically implement one yourself in a few dozen lines in Torch or Caffe and train it in a few hours on a modern GPU. But making an portable version that does not require Linux or the deep learning libraries is somewhat complicated.

Until there's a good amount of demand for what you need, or if you are willing to give your own time and develop a NN-based pixel art upscaler, I am afraid that we will not see one in the near future.

mitaki28 has released a pixel art upscaler.
https://github.com/mitaki28/pixel-art-upscaler
It seems to be using Nearest Neighbor to create training data.

Thanks, looking good! (Although the demo is quite buggy.)

This is the result I got from it:

Here is an idea: make an ML-based pixel framer and downscaler, and then feed the results into Waifu2x, and then reverse the procedures using the same pixel grid to upscale

Yet another way:

xBRz 2x upscale -> waifu2x-chainer -> lanczos 2x downscale

2x

3x

Alpha channel is fine.
Command for this example:
./waifu2x.py -i "$input" -s 2 -T 8 -t -a 3 -n 0 -m noise_scale -c rgb -o "$output"

P.S. Maybe training VGG7/ResNet10 with xBRz instead of bicubic/lanczos can produce good results for pixelart?
Patch for waifu2x chainer:
--- a/waifu2x.py
+++ b/waifu2x.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
 from __future__ import division
 import argparse
 import os
@@ -5,8 +6,9 @@ import time

 import chainer
 import numpy as np
-from PIL import Image
+from PIL import Image, ImageOps, ImageFilter
 import six
+import xbrz

 from lib import iproc
 from lib import reconstruct
@@ -32,6 +34,9 @@ def denoise_image(cfg, src, model):

 def upscale_image(cfg, src, scale_model, alpha_model=None):
+    src = xbrz.scale_pillow(src.convert('RGBA'), 2).convert('RGBA')
+    #src = src.resize((int(src.size[0] / 2), int(src.size[1] / 2)), Image.LANCZOS)
+
     dst, alpha = split_alpha(src, scale_model)
     for i in range(int(np.ceil(np.log2(cfg.scale_ratio)))):
         six.print_('2.0x scaling...', end=' ', flush=True)
@@ -51,6 +56,7 @@ def upscale_image(cfg, src, scale_model, alpha_model=None):
             alpha = reconstruct.image(
                 alpha, alpha_model, cfg.block_size, cfg.batch_size)
         six.print_('OK')
+
     dst_w = int(np.round(src.size[0] * cfg.scale_ratio))
     dst_h = int(np.round(src.size[1] * cfg.scale_ratio))
     if dst_w != dst.size[0] or dst_h != dst.size[1]:
@@ -61,6 +67,7 @@ def upscale_image(cfg, src, scale_model, alpha_model=None):
         if alpha.size[0] != dst_w or alpha.size[1] != dst_h:
             alpha = alpha.resize((dst_w, dst_h), Image.LANCZOS)
         dst.putalpha(alpha)
+    dst = dst.resize((int(dst_w / 2), int(dst_h / 2)), Image.LANCZOS)
     return dst

@@ -94,7 +101,7 @@ def load_models(cfg):
         if os.path.exists(model_path):
             models['noise_scale'] = srcnn.archs[cfg.arch](ch)
             chainer.serializers.load_npz(model_path, models['noise_scale'])
-            alpha_model_name = 'anime_style_scale_{}.npz'.format(cfg.color)
+            alpha_model_name = 'anime_style_noise3_scale_{}.npz'.format(cfg.color)
             alpha_model_path = os.path.join(model_dir, alpha_model_name)
             models['alpha'] = srcnn.archs[cfg.arch](ch)
             chainer.serializers.load_npz(alpha_model_path, models['alpha'])

https://github.com/WuZongWei6/Pixelization can convert images into natural looking pixel art.
I think this model has the ability to generate better paired data than before.
However, it is non-commercial license.


Added multiple model prompt formats to llama_cpp chat streaming.

This adds multiple prompt formats to the llama_cpp chat model to support models other than Llama2 running locally.

Thanks for the review @giladgd - @nigel-daniels should we wait a bit then?

@jacoblee93 as I understood it this would only work if I was using the session.prompt() method but in order to get hold of a generator function I was calling the context.evaluate() and bypass the session. It's the session which applies the different wrapper types.
@giladgd do you have any thoughts on a better way to do this using the session?
Afaik If I use the context directly then there is no point in waiting.

@giladgd looks like a good workaround, it will also ensure the Wrappers get used so this module can remain better aligned with node-llama-cpp. Thanks!

Given the previous comments about the upcoming update in a couple of weeks and the restructure happening in the Langchain.JS main branch I'll close this PR and rebase on main when the 'node-llama-cpp' updates are out.


Moving requirement to handle flake8 issue to the CI instead of the requirements.txt

already fixed

already fixed

@tomersa - this is not fixed, you kept the importlib_metadata in requirements.txt instead of upgrading flake8 as we did in gProfiler. Please revert the change done here and instead upgrade flake8

I've checked it using a temp PR and all the CI tests passed:
https://github.com/Granulate/granulate-utils/pull/90/checks

Fixed in https://github.com/Granulate/granulate-utils/pull/92


Asset share commons1.6.8 with AEM6.4 facing error in Download assets

Describe the bug
Assetshare commons with AEM download assets getting error as "Context Hub is not defined".
Environment

AEM Version: 6.4
Asset Share Commons Version: 1.6.8
Author, Publish or both: both

To Reproduce
Steps to reproduce the behavior:

Login to AEM instance.
Open the site page.
Click on download for any assets.
Getting error message while clicking on download "ContextHub is not defined."

Expected behavior
The asset should be downloaded.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Hi @assetshare2018, the Download and cart functionality relies on ContextHub to store the asset paths, this is configured at the page properties level as part of the cloud services, i.e: https://github.com/Adobe-Marketing-Cloud/asset-share-commons/blob/develop/ui.content/src/main/content/jcr_root/content/asset-share-commons/en/.content.xml#L6
Do you see any 404s in the network activity? Any other console messages?
Also, do you see this error using the sample content pages, i.e: /content/asset-share-commons/en/light.html? Or is this using custom pages?

@assetshare2018 have you made sure to apply the ContextHub configuration @godanny86 notes above, to your asset share Sites tree?

@assetshare2018 are you still experiencing this issue or have you figured it out?

closing due to inactivity - please reopen w requested details if you havent figured it out.

We had the same problem and it had to do with needing to change the sling resource type on the contexthub for 6.4 per this article: https://forums.adobe.com/thread/2590816

Thanks for the info!


Don't Merge! PR real time test for target branch full build

Docs Build status updates of commit 2b89305:
:clock10: Full build: the average full build time is 5 min(s) 56 sec(s), this is based on the last 707 build(s) for this repository.

Docs Build status updates of commit 2b89305:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

docs-ref-conceptual/testing.md
:bulb:Suggestion
View (azure-cli-latest) View (azure-cli-2017-03-09-profile) View (azure-cli-2018-03-01-hybrid)
Details

docs-ref-conceptual/testing.md

[Suggestion] Missing attribute: title. Add a title string to show in search engine results. NOTE: This Suggestion will be elevated to a Warning on 9/1/2019.
[Suggestion] Missing attribute: title. Add a title string to show in search engine results. NOTE: This Suggestion will be elevated to a Warning on 9/1/2019.
[Suggestion] Missing attribute: title. Add a title string to show in search engine results. NOTE: This Suggestion will be elevated to a Warning on 9/1/2019.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Support for YumShare Solo

Hello, thank you for the great integration! It's very easy to setup and works really well. I do wonder if you can add support for the YumShare Solo feeder that Petkit just recently released:
https://petkit.com/products/yumshare-solo-with-camera
I just bought one on Black Friday but it doesn't show up as one of the my devices when I configure this integration. My Eversweet Solo 2 and cats showed up without any issue so I know the integration is configured correctly. If you need any help getting the API data for the device, please let me know how to collect the necessary information.
Thanks again for building this helpful integration!

Thanks for the support! You aren't mistaken, the feeder isn't supported yet - work is currently in progress for the dual hopper version of the Yum share, but I'll work on getting the solo supported as well. Once I have more time, I'll need to sniff out the communication for the solo to get it integrated.

Just so I don't get your hopes up, I have to break it to you that the yumshare camera won't be supported due to how they deliver the video stream. PETKIT uses the Agora platform to deliver live streams, which isn't supported by Home Assistant camera entities.

one more thing, the video clips can also be downloaded from the cloud directly (up to 1~2 days) even without subscriptions, the encryption method of the video files is quite easy to be decrypted. However, the live stream, i believe petkit uses tencent xp2p technology, and its pks canbe extracted from the protcols. However, it definetly need more work to make it work without the petkit app.
Another,,,,,,, the petkit feeders use Ingenic T31 chips, which means we can flash the openipc firmware into these machines, but there will another bunch of work to make the wifi & ble chips to work.  And I am not good at it.

Hello,
is there any update on the Yumshare Solo support? Would be great to get this supported. Video isn’t highly required, the normal sensors and triggering feeding would be absolutely enough for me.

Hi !
What's new about this feeder support ? I got one, i can help...

I‘ve got a dual hopper now. So anything new?

I've try the version from @xswxm and it work very well. Did you work on it from this last .zip version ?
What do you plan for DS4h support @RobertD502 ? Any help wanted to work on some feature ?

I would be willing to contribute / sponsor someone to get the yum dual hopper working

I would be willing to contribute / sponsor someone to get the yum dual hopper working

Dual hopper is being worked on at the moment. Check out the discord development channel where I just shared an update.

@RobertD502为什么不直接修改 petkitaio 模块并将其直接合并到此集成中。因为某些设备类型，如 d4sh（与 d4s 相同，在中国名称不同），不包含在 petkitaio 模块中。而且，我相信大多数设备共享相同的协议并具有相似的 json 结构。
这是我修改后的版本，增加了对 d4sh 设备和中文翻译的支持 。petkit.zip

你好，d4sh是solo那个型号的吗?

Hopefully is supported soon! 🥳🥳🤓

I moved to https://github.com/Jezza34000/home-assistant-petkit and currently working with him on supporting the Litterbox ULTRA too.


SB-SAT fixation dataset

          @prassepaul, can we also look into SBSAT fixation dataset?

Originally posted by @SiQube in https://github.com/aeye-lab/pymovements/issues/575#issuecomment-1733860466
see here: (github)[https://www.github.com:ahnchive/sb-sat]

resolved via #771


Recent changes breaking simplewing function

A recent commit to geometry.jl is causing the simplewing function to break. The linearsections function was renamed to linear_sections, but the call was not changed in simplewing or export linearsections.

@taylormcd

Just pushed to the master branch the fix for this.  Note, however, that some of the inputs to simplewing have changed as a result of #5 .  Also, just as a warning, I'm currently focused pretty heavily on developing this package, so expect more breaking changes in the near future.


Authentication issue when transfering a component

What happened:
Transfering a component version returns unable to add artifact: failed to push: failed to authorize: failed to fetch oauth token: unexpected status: 405 Method Not Allowed exit status 1
This is not happening every time, so there seems to be some inconsistency there.
flux output:
⋊> ~/g/s/g/o/MPAS on bootstrap-component ⨯ FLUX_VERSION=v2.0.0-rc.5 GITHUB_TOKEN=xxx GITHUB_USERNAME=souleb make release-bootstrap-component
go run ./cmd/release-bootstrap-component/main.go --flux-version v2.0.0-rc.5 --repository-url ghcr.io/souleb/mpas-bootstrap-component \
        --username souleb
We are going to package the bootstrap component and ship it as an OCM component.

INFO[0001] adding resource blob                          logger=ocm resource=flux
INFO[0001] adding resource blob                          logger=ocm resource=ocm-config
INFO[0001] transferring version                          history= logger=ocm version="\"github.com/souleb/flux:v2.0.0-rc.5\""
transferring version "github.com/souleb/flux:v2.0.0-rc.5"...
INFO[0003]   transferring resources                      history= logger=ocm version="\"github.com/souleb/flux:v2.0.0-rc.5\""
...resource 0...
INFO[0003] adding resource blob                          logger=ocm resource=flux
...resource 1...
INFO[0003] adding resource blob                          logger=ocm resource=ocm-config
...resource 2(fluxcd/source-controller:v1.0.0-rc.5)...
INFO[0004] adding resource blob                          logger=ocm resource=source-controller
Failed to transfer component:  github.com/souleb/flux:v2.0.0-rc.5: transferring resource 2: unable to add blob (component github.com/souleb/flux:v2.0.0-rc.5 resource source-controller): unable to add blob (OCI repository component-descriptors/github.com/souleb/flux): failed to push: unexpected status: 405 Method Not Allowed
exit status 1
make: *** [release-bootstrap-component] Error 1

What you expected to happen:
I would expect this to have consistent behaviour, it should keep failing it it fails once.
How to reproduce it (as minimally and precisely as possible):
use https://github.com/open-component-model/MPAS/pull/48 and run
FLUX_VERSION=v2.0.0-rc.5 GITHUB_TOKEN=xxx GITHUB_USERNAME=xxx make release-bootstrap-component

Anything else we need to know:
The way we setup credentials is based on https://github.com/open-component-model/ocm/blob/main/examples/lib/cred2/example.go
Environment:
mac os

it seems that removing standard.ResourcesByValue from
handler, err := standard.New(
  standard.Recursive(true),
standard.ResourcesByValue(true),
  standard.Overwrite(true),
  standard.Resolver(target))

solved it.

It still fails intermittently:
INFO[0001] adding resource blob                          logger=ocm resource=flux
INFO[0001] adding resource blob                          logger=ocm resource=ocm-config
INFO[0001] transferring version                          history= logger=ocm version="\"github.com/souleb/flux:v2.0.0-rc.5\""
transferring version "github.com/souleb/flux:v2.0.0-rc.5"...
Failed to transfer component:  github.com/souleb/flux:v2.0.0-rc.5: creating target version: failed to authorize: failed to fetch oauth token: unexpected status: 405 Method Not Allowed
exit status 1
make: *** [release-bootstrap-component] Error 1


JAVA-1373: Encode flags in Prepare request for Protocol V5+

I'm 👍 on this (can't review because I created the PR). I tested against Tyler's branch for CASSANDRA-10145.
I agree we should merge ASAP to guarantee protocol compatibility once 10145 is merged, JAVA-1350 can wait a bit more.

Just remembered one possible consideration.  If someone is on 3.10 and tries using the beta flag, if this PR is merged, prepared statements won't work.  On the other hand, i'm not really concerned about that.  I'd rather we stay ahead of changes instead of intentionally lagging behind to try to work with released cassandra versions w/ beta.   The beta flag is more for development than anything else at this point right?

I'd rather we stay ahead of changes instead of intentionally lagging behind

Agreed, this falls under the "things can break when in beta" rule.


repoVersion always updated + added in Increment Version Number workflow

We have a multi project repository which has the following state:
repoVersion = 23.0

App 1:

app.json ==> 23.0

App 2:

app.json ==> 23.0

App 3:

app.json ==> 23.0

The repoVersion property is not configured on project level, only on repo level.
We want to update the repoVersion only when there's a new major release.
Suppose we need to release a new feature in App 3 which relies on a change in App 1, we would like to update only the version numbers of those apps affected by the change.
So for example, our desired result would be:

App 1:

app.json ==> 23.1

App 2:

app.json ==> 23.0 (no changes done)

App 2:

app.json ==> 23.1

But, when we use the Increment Version Number workflow, to achieve the above scenario, the following happens:
repoVersion = 23.0

App 1:

repoVersion (new): 23.1
app.json ==> 23.1

App 3:

repoVersion (new): 23.1
app.json ==> 23.1

So the repoVersion is added to the affected projects, something we don't want since it was already configured on repo level.
Also, any chance we could get a parameter to define if we want to update the repoVersion or not?

The RepoVersion is actually a project version and it covers all apps in a specific project.
But, we will discuss whether we can make this better.


Images not loading

Outside help is welcome.
My index.html images are not loading even though the file path is correct...

Also, do you want help creating the Github Pages?

Yes please  I have set it up but I have had to move my index.html to the root which may of messed up the website

Add me to the contributors and I'll see.


ARROW-16590: [C++] Consolidate files dealing with row-major storage

13218

 Quality gate: Failed
28 Issues

 4 Vulnerabilities
 24 Code issues

Details

 Quality gate: Failed
142 Issues

 16 Vulnerabilities
 126 Code issues

Details


Lab2 Bubble sort and bonus Insertion sort

Fixes #233
Review of colleague's PR #239
Changes proposed in this PR:

build bubble sort solution
build insertion sort solution
build test cases for bubble and insertion sorts

Codecov Report

Merging #252 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #252   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          11     12    +1
  Lines         174    213   +39
=====================================
+ Hits          174    213   +39

Impacted Files
Coverage Δ

02_bubble/pfannerj/main.go
100% <100%> (ø)

Continue to review full report at Codecov.

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

@willshen8 please give this another look


More complex alt list handling and exclusions

First of all, this isn't ready for merging yet, I need to read over it again, add more docu and test it. That being said, it's probably far enough to at least get some thoughts regarding the approach in general.
BanStick seems to have been built around Devoteds single account policy. While it supports more than one account per player, it's handling of player association groups is not powerful enough to deal with the situation that multi accounting servers bring with them.
For example:
Player A plays on IP1, Player B plays on IP1 and IP2, Player C plays on IP2.
It's likely that Player A and C are the same person or at least ip sharing in a way that should be trackable. In the current system they do not have a share though and there is no direct way to find their connection, likely it would go unnoticed forever.
The solution here is to do a recursive lookup through shares to retrieves not only direct shares, but also transitive ones to create alt groups. Basically we're doing graph theory here, players are nodes and shares are edges. To determine alt groups, we are finding the biggest fully connected subgraph containing a given player. An additional config option allows limiting both bans and the account number limitation not only based on shares, but these transitive alt groups.
In an ideal world we'd be done here, but sadly we have to deal with players who use each others account/computer/VPN and get all mixed up in ways they shouldnt be.
Banstick already offers pardoning shares to combat this, but when dealing with situations where we have to assign n different accounts to m players each, pardoned shares are too weak of a concept to solve this problem, especially because new ones may be created in the future, for example when people play in the same house on dynamic ips.
To deal with this, I decided to introduce the concept of exclusions, which are like the opposite of a share. They contain 2 players and specify an edge in the graph, which will be assumed nonexistent when trying to find the alt group subgraph. To create an exclusion, a share between the two players doesnt even have to exist yet though.
Admins are supposed to simply give a list of accounts which make up a real player via command and BanStick will create exclusions to cut all of those accounts out of the alt group they are currently in and create their own little pocket.
As you might have already noticed, the usage and kind of the thought behind it is heavily inspired by MiscLog's approach.

Any updates on this pull?

@Maxopoly New thoughts or ideas on this? Moved on?

This probably works now, at least it did when I messed around with it locally. Follow up to it might be needed, but I probably wont know what to fix until it actually runs on Civclassic prod.

from https://www.reddit.com/r/civclassics/comments/8tyaml/changelog_for_6262018/ sounds like this PR is confirmed working? If so, great work man!

It was more like a live test, hold on for a bit before merging until I hear back whether everything works as intended.

Any updates on this Max? Good to merge? Has fixes?

Supposedly it's working, so yeah it's probably fine to merge.

still looks great. I will try to get to merging it soon.

ok to build

Build finished.

ok to build

build this please

test this please


New Entry for BlaBlaCar

Article on BlaBlaCar Databases Reliability Engineers (DBRE) team’s experience with increase operational coverage with Skills Matrices.

Hi @wseemaqa, thanks for the PR. Can you please fix the markdown lint error?

Hi @wseemaqa please fix the failing markdown lint error.


Two modes: Basic and Advanced

The table editor should provide two modes:
BASIC:

no pagination
no validation
adding, deleting and updating rows directly via the HTML table

ADVANCED:

pagination
validation
adding and updating records via a new screen (currently adding records is already implemented this way).

Implemented


one way data flow problem?

Version
2.5.16
Reproduction link
https://codepen.io/maxorhd/pen/ZoMvaj?editors=1111
Steps to reproduce
pass props to a component and try to recover it as follows
props: ['testProps'],
data:  () => ({
    test: this.testProps //test is undefined but testProps is not undefined
})

What is expected?
variable to not be undefined
What is actually happening?
variable is undefined

this works
props: ['testProps'],
data: function () {
  return {
    test: this.testProps //test is = this.testProps
  }
}

also works
props: ['testProps'],
data() {
  return {
    test: this.testProps //test is = this.testProps
  }
}

this does not work
props: ['testProps'],
data:  () => ({
    props: this.testProps //props is undefined but this.testProps is not undefined
})

is this expected? I'm not sure about this

An arrow function expression has a shorter syntax than a function expression and does not have its own this

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions

There's a note in the Vue.js docs about this as well.

Don’t use arrow functions on an options property or callback, such as created: () => console.log(this.a) or vm.$watch('a', newValue => this.myMethod()). Since arrow functions are bound to the parent context, this will not be the Vue instance as you’d expect, often resulting in errors such as Uncaught TypeError: Cannot read property of undefined or Uncaught TypeError: this.myMethod is not a function.

https://vuejs.org/v2/guide/instance.html#Instance-Lifecycle-Hooks

so used to use arrow function that i forgot its basic. Shame, thank you guys

@diego-lipinski-de-castro you can use arrow functions in data definition, but you have to access component's data from the first argument passed to the function
data: vm => ({
  props: vm.testProps,
})

it's also in the docs :P https://vuejs.org/v2/api/#data


[Extensions] Kanvas: Collaborator's initial design layout lands components outside of viewport

Current Behavior
When a collaborator joins an existing design session, the initial rendering of the components in the design is such that the component layout is consistently out of view (outside of viewport). In other words, no components, are visible to the user joining a collaborative session.
Desired Behavior
Initial component layout should be fit to the collaborator's viewport.

Contributor Guides and Handbook

📚 Meshery Build and Release Strategy
🎨 UI Design For Meshery Extensions Figma in Figma (open invite)
📚 Meshery Extensibility Providers
⌨ Meshery API Docs
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

@leecalcote , i want to work on it, please assign .

Thanks for volunteering. Help not want on this one.


Possible Support for Arm64 or Arm?

So fantastic!! I really love this library!
But I am curious why you didn't support the arm architecture.
Is it similar to x86 (arm) and x64 (aarch64) or is there anything I do not consider?

The library currently does not support ARM because I am not really familiar enough with the ARM platform to be confident that the way I am exploiting undefined behavior works also on ARM. For example, for double I am using a specific qNaN bit pattern because I am pretty confident that nothing in today's x86 or x64 ecosystem (AMD/Intel CPUs, usual compilers, usual operating systems) exploits the freedom in the NaNs allowed by the IEEE754 standard. But I have no idea whether that is also true for ARM in general, or never, or only for specific ARM based systems. After all, the ARM world is much more diverse, so attempting to exploit undefined behavior without actually causing problems becomes much more difficult. Similar for the other tricks that I am using (bools and pointers, at the moment).
One thing that would of course be possible is to remove the parts that rely on undefined behavior when not compiling for x86/x64. This boils down to not using SentinelForExploitingUnusedBits, MemcpyAndCmpFlagManipulator and maybe InplaceDecompositionViaMemPtr in the implementation. All of the remaining code is conforming to the C++ standard. However, that would mean that e.g. tiny::optional<double> uses an additional bool again. So there would be no advantage over std::optional<double>, defeating one of the goals of the library. But the second feature, allowing to specify a sentinel (e.g. tiny::optional<int, -1>) and thereby not requiring the additional bool would still work. Not really sure if this alone would warrant the work.
Currently, I am not planning on supporting ARM one way or the other. But of course, the library is open source, so anyone with the necessary knowledge is welcome to do so 😉

Got it, Thanks a lot!


Inserted 80 Users for Testing Purposes

Inserted 80 Users for Testing Purposes
Description
This PR adds 80 users to the users table in the database for testing purposes. The following changes have been made:

Roles Assignment:

Assigned the ROLE_ADMIN to the first 5 users.
Assigned the ROLE_CLIENT to the next 20 users.
Assigned the ROLE_FREELANCER to the next 55 users (starting from user 26).

SQL Modifications:

Created a SQL script to assign roles based on user ranking:

First 5 users receive ROLE_ADMIN.
Next 20 users receive ROLE_CLIENT.
Remaining users receive ROLE_FREELANCER.

Testing:
These users are intended for testing purposes only, allowing us to verify that role assignment and permission handling are working as expected.

SQL Commands Used
-- Insert roles into user_roles for the first 25 users
WITH ranked_users AS (
    SELECT id,
           ROW_NUMBER() OVER (ORDER BY id) AS rn
    FROM users
)
INSERT INTO user_roles (user_id, role_id)
SELECT u.id, r.id
FROM ranked_users u
JOIN roles r ON (
        (u.rn <= 5 AND r.name = 'ROLE_ADMIN') OR
        (u.rn > 5 AND u.rn <= 25 AND r.name = 'ROLE_CLIENT')
    )
WHERE u.rn <= 25;

-- Assign 'freelancer' role starting from user 26
INSERT INTO user_roles (user_id, role_id)
SELECT u.id, r.id
FROM users u
CROSS JOIN roles r
WHERE r.name = 'ROLE_FREELANCER'
AND u.id >= 26;

Notes

These changes will help ensure that role management is properly tested.
The users inserted are for internal testing purposes only and will not affect production data.
Roles have been assigned as follows:

First 5 users: ROLE_ADMIN
Next 20 users: ROLE_CLIENT
Users starting from 26: ROLE_FREELANCER

The SQL script handles the assignment of roles based on user ranking and ID.

closes #30

Passwords are not encrypted. I get Encoded password does not look like BCrypt and Bad credentials when trying to log in with these credentials. The passwords must be encoded in the database.
Request body:
{
  "email"<EMAIL_ADDRESS>  "password": "password123"
}

Response body:
{
    "status": "UNAUTHORIZED",
    "success": false,
    "data": null,
    "error": "Invalid username or password"
}

I’ve updated the PR to replace plaintext passwords with hashed versions.


R support

Are you aware of example code / documentation / R package for reading cooler files into R? Better to ask before I go down this rabbit hole.

Hi,
with HiCExplorer we provide the conversion of cool files to GInteractions which can be used with R. See https://hicexplorer.readthedocs.io/en/latest/content/HiCExport.html for more information.
Best,
Joachim

So the hic_matrix.h5 written by HiCExplorer is in the cooler format? I just spent 2m looking at the documentation, but I don't see this.  Or is it because hicConvertFormat supports both you own format and cooler files?
But thanks for the pointer. This is useful, although it would be great to parse the files directly and not make an intermediate output.
I am also interested in exporting data from R into cooler.

h5 and cool are two different formats but HiCExplorers hicConvertFormat supports both and a few others: https://hicexplorer.readthedocs.io/en/latest/content/tools/hicConvertFormat.html#hicconvertformat
A direct import of cool to R is not know to me, but I guess @nvictus knows more.

I explored this a bit here:
https://github.com/dozmorovlab/HiCcompare/issues/7
https://github.com/dozmorovlab/HiCcompare/issues/9
Which I think resulted in a simple function they added to the package:
https://github.com/dozmorovlab/HiCcompare/blob/master/R/cooler2bedpe.R
This i infinitely less flexible than the Python API, but can help you get started at least.

We have pretty flexible tools for interacting with HDF5 files in R so it
should not be crazy complicated to write a flexible parser and exporter.
Having said that, I am obviously looking to avoid doing it :)
Joachim: thanks for the pointer. My confusion is that h5 is a common file
ending for HDF5 files in general and Cooler is just a specific HDF5 schema,
so it is a bit weird to think of "h5" as a "format'. But I say this as an
outsider to Hi-C file formats.
On Tue, Oct 22, 2019 at 11:50 AM Ilya Flyamer<EMAIL_ADDRESS>wrote:

I think @nvictus https://github.com/nvictus has also started writing
something more useful?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mirnylab/cooler/issues/175?email_source=notifications&email_token=ABF2DH6L53EU2EMFI4HEU4LQP4OOBA5CNFSM4JDRQFY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB6HXEY#issuecomment-545029011,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABF2DH2NWQ35UX666IQIYZDQP4OOBANCNFSM4JDRQFYQ
.

--
Best,
Kasper

I'm sure it's possible, but I'm not an R person, so it took a while even to
get to that point! Hope it helps, anyway.
On Tue, Oct 22, 2019, 17:02 Kasper Daniel Hansen<EMAIL_ADDRESS>wrote:

We have pretty flexible tools for interacting with HDF5 files in R so it
should not be crazy complicated to write a flexible parser and exporter.
Having said that, I am obviously looking to avoid doing it :)
Joachim: thanks for the pointer. My confusion is that h5 is a common file
ending for HDF5 files in general and Cooler is just a specific HDF5 schema,
so it is a bit weird to think of "h5" as a "format'. But I say this as an
outsider to Hi-C file formats.
On Tue, Oct 22, 2019 at 11:50 AM Ilya Flyamer<EMAIL_ADDRESS>wrote:

I think @nvictus https://github.com/nvictus has also started writing
something more useful?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/mirnylab/cooler/issues/175?email_source=notifications&email_token=ABF2DH6L53EU2EMFI4HEU4LQP4OOBA5CNFSM4JDRQFY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB6HXEY#issuecomment-545029011
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ABF2DH2NWQ35UX666IQIYZDQP4OOBANCNFSM4JDRQFYQ
.

--
Best,
Kasper
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mirnylab/cooler/issues/175?email_source=notifications&email_token=AAWCZOUOM6M3YSYYSAGB5LTQP4PYHA5CNFSM4JDRQFY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB6I7BA#issuecomment-545034116,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWCZORHCQBDTJ7FVJHGHTTQP4PYHANCNFSM4JDRQFYQ
.

I can share some proof-of-concept R code I wrote a while ago (pushing the limits of my R abilities and navigating the R ecosystem).
https://gist.github.com/nvictus/460a6014a075156713fea5e09bdf3498
It's got:

Functions for reading the tables and annotating pixels.
Doing 2D range querying in controllable chunks. That's the challenging part.

There may still be limitations and it needs tests, but I think it is only missing code to translate genomic ranges into bin ID extents to cover all read functionality. There is nothing for writing yet. But the hdf5r interface seems to work well.
I don't have the bandwidth to build this out much more myself, but I'm certainly happy to assist anyone interested in working on a cooler R package. :)
I hope it's helpful!

Thanks. We're trying to accumulate energy for a cooler package
On Thu, Oct 24, 2019 at 9:03 PM Nezar Abdennur<EMAIL_ADDRESS>wrote:

I can share some proof-of-concept R code I wrote a while ago (pushing the
limits of my R abilities and navigating the R ecosystem).
https://gist.github.com/nvictus/460a6014a075156713fea5e09bdf3498
It's got:

Functions for reading the tables and annotating pixels.
Doing 2D range querying in controllable chunks. That's the
challenging part.

There may still be limitations and it needs tests, but I think it is only
missing code to translate genomic ranges into bin ID extents to cover all
read functionality. There is nothing for writing yet. But the hdf5r
interface seems to work well.
I don't have the bandwidth to build this out much more myself, but I'm
certainly happy to assist anyone interested in working on a cooler R
package. :)
I hope it's helpful!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mirnylab/cooler/issues/175?email_source=notifications&email_token=ABF2DH3GUQMDZCK5H3DFEMTQQJAX3A5CNFSM4JDRQFY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECG3QRI#issuecomment-546158661,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABF2DH3ZNAVEA4TE4DEQ3FDQQJAX3ANCNFSM4JDRQFYQ
.

--
Best,
Kasper


Microk8s in permanent failed state on reboot ( raspberry pi 4, affects single and multi node cluster )

Running on a raspberry pi 4, ubuntu 20.04 LTS fresh install. When rebooting there is a possibility of a permanent failed state. When this happens this message will appear: microk8s is not running. Use microk8s inspect for a deeper inspection.
Running: microk8s inspect shows no errors
Running: microk8s start or microk8s stop; microk8s start will not solve the issues
Running: microk8s reset will also not solve the issue
Running microk8s stop before the reboot seems to help, but still fails on some snap update
Rebooting will also not solve the issue
This issue seems to happen at random. I can reboot once, or twice with no failed state. Once I get a failed state there is no way to recover unless microk8's is re-installed

Hi @horvatic, could you share an inspection tarball?

Hi @horvatic, could you share an inspection tarball?

I reinstalled my microk8's so let me attempt to trigger a failed state.

@ktsakalozos
Here are three tarballs from two different nodes:
[Possible Non Cluster Node: inspection-report-20210426_173310.tar.gz](https://github.com/ubuntu/microk8s/files/6379025
Node Is Cluster And Reboot: inspection-report-20210426_174255.tar.gz
Node in Cluster: inspection-report-20210426_173935.tar.gz
/inspection-report-20210426_173310.tar.gz)
NOTE: Node one did come back online after a few mins

Another ball from another node:
I uninstalled my current setup. Deleted my snap/microk8's folder. Then reinstalled. Once reinstalled I made sure it was working, and rebooted. Once rebooted I have a failed state. NOTE: ha was setup, but the issue also happens when ha is not setup
inspection-report-20210426_181428.tar.gz

Looking at the logs of the containerd (journalctl -u snap.microk8s.daemon-containerd) I see this:
Apr 26 17:40:42 cedar microk8s.daemon-containerd[2141]: ++ date -r /proc/1 +%s
Apr 26 17:40:42 cedar microk8s.daemon-containerd[2138]: + boot_time=1
Apr 26 17:40:42 cedar microk8s.daemon-containerd[2138]: + echo 'Last time service started was<PHONE_NUMBER> and the host booted at 1'
Apr 26 17:40:42 cedar microk8s.daemon-containerd[2138]: Last time service started was<PHONE_NUMBER> and the host booted at 1

Could you confirm that date -r /proc/1 +%s returns 1?

What info will that tell us? Is it just a issue with ceder, as I attached redwood and another one

When containerd starts it tries to recover any running containers. It does so by looking at the containers state kept in /var/snap/microks/common/run/containerd. After a reboot there are no containers running so we need to clear any pre-existing container state. To find out when the machine booted we check the update date of process 1. In your case it seems date -r /proc/1 +%s reports that process 1 was created on time 1. Maybe getting the boot time from process 1 is not safe or it might be an issue with RPi. Either way we need to fix this.

Ah I see, do you want me to run the command on all my nodes: redwood, cesder, and willow?

I am fairly certain you will get 1 if you call date -r /proc/1 +%s.
Maybe this line [1] needs to be updated with a better way to detect the boot time. Is there anything special about your setup kernel/hardware/distribution? I need to reproduce this.
[1] https://github.com/ubuntu/microk8s/blob/master/microk8s-resources/actions/common/utils.sh#L683

Here are the results
horvatic@redwood:~$ date -r /proc/1 +%s
1

horvatic@cedar:~$ date -r /proc/1 +%s
1

horvatic@willow:~$ date -r /proc/1 +%s
1

I also did about five reboots to confirm these number are correct, and checked the status of microk8's each time. If it was not running I was run start, then check the status.
It looks like if you need restarting and run start it will come back online about 2/5 times

@ktsakalozos My setup is
3 raspberry pis, 4 GB of ram, 64 GB SD, Ubuntu 20.04 LTS. Using wired connection. Nothing else is installed expected microk8s

@horvatic, referenced in this issue you will find a PR with a fix. As soon as the PR gets merged it should be on 1.21/edge within the day. A build of the .snap file is available now as an artifact in [1]. Any feedback would be appreciated.
As a mitigation for now you can either:

clean the containerd state  rm /var/snap/microk8s/common/run/containerd/*  when the machine boots, or
move the containerd state to a tmpfs location. This can be done by editing  /var/snap/microk8s/current/args/containerd and setting --state /run/containerd.

[1] https://github.com/ubuntu/microk8s/pull/2207/checks?check_run_id=2442807158

@ktsakalozos ill install the microk8s.snap package tonight, and test it out. Will post results once testing is done!

I am having this error:
error: cannot install snap file: snap "microk8s" supported architectures (amd64) are incompatible with this system (arm64)
Can you link me the arm build?
Install using: sudo snap install --dangerous --classic microk8s.snap

I am having this error:
error: cannot install snap file: snap "microk8s" supported architectures (amd64) are incompatible with this system (arm64)

Unfortunately you need an ARM64 build and the github action produces a AMD64 snap.

@ktsakalozos I will be unable to test until an arm build is produced. Should I just wait until the edge release?

@horvatic just merged the fix. We should have an arm64 within the day.

@ktsakalozos kk i'll test it tomorrow at 5 pm CST and report the results

@ktsakalozos All tested
Restarted 3 times, and all times microk8's started on reboot successfully!
NOTE: There is a delay of about 10 secs if you reboot. So if immediately run microk8's status after a reboot it will show microk8's isn't running. If this issue get logged again the user may just need to wait 10 secs or so. I do not count this as a bug, as it takes time to start up the services.


as row sum grows, it slows down obviously...

There is For loop in every SetCellValue, so as row sum grows, it slows down obviously...

As you said, in order to ensure the compatibility of some complex patterns currently(charts, table, formula, pivot and etc.), Excelize do a lot of checks, that will be impacted on performance, generates large files will be very slow. Reference performance figures on the wiki.

I have an excel with around 150,000 rows and it is very very slow (does not finish even in 15-20mins). Is this normal? Is there a tuning we can make to disable the checks like mentioned in the wiki?
I think it's good to disable all checks and leave it to the user when desired.

@cemremengu you can try https://github.com/tealeg/xlsx, and it fast.


Python version 3.9 and Open3D version 0.9.0 are not compatible.

Hi，Thanks for your wonderful work！

When I try to follow the instructions in the README to set up the environment, I am unable to install the Open3D library and encounter error messages：
Encountered problems while solving:
  - package open3d-<IP_ADDRESS>-py27_0 requires python >=2.7,<2.8.0a0, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ open3d 0.9.0  is installable with the potential options
│  ├─ open3d <IP_ADDRESS> would require
│  │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│  ├─ open3d <IP_ADDRESS> would require
│  │  └─ python >=2.7,<2.8.0a0 , which can be installed;
│  ├─ open3d <IP_ADDRESS> would require
│  │  └─ python >=3.6,<3.7.0a0 , which can be installed;
│  └─ open3d <IP_ADDRESS> would require
│     └─ python >=3.5,<3.6.0a0 , which can be installed;
└─ pin-1 is not installable because it requires
   └─ python 3.9.* , which conflicts with any installable versions previously reported.

bash: __vsc_prompt_cmd_original: command not found

Maybe you can install a higher version of open3d to fix it. Or try the latest one using pip install open3d

Thanks!!!! I've solved the problem by installing the version of 0.18.0


Added --force option to import subcommand

We need to import ever-changing models from partners and REC4 models repo - these models keep updating (usually adding stuff) while keeping the same versions/@ID. When importing them, we want to override the existing models in dtmi repo.
This PR adds 'import --force' option (disabled by default)

Hi @msterin
Thanks for your contribution.
I'll let @digimaun to review the PR.
From my side, I think it's reasonable to include a force option, (disabled by default).
I'd love to learn more about your experience using DTDL, and your REC4 models repo.
Would you be able to spend 20 minutes with me to discuss more about your use cases? you can reach out to rmpablos at microsoft dot com
Thanks,
Rido

Hi @msterin
...
Thanks, Rido

Hi RIdo - thanks for the comment. Replied in email.
-- Mark

Had a couple minor comments -- lets also increment the tool version to 1.0.0-beta.8. Thank you.
https://github.com/Azure/iot-plugandplay-models-tools/blob/dev/clients/dotnet/Microsoft.IoT.ModelsRepository.CommandLine/src/Microsoft.IoT.ModelsRepository.CommandLine.csproj#L10

Hi @digimaun- thanks for the review. All comments addressed.
I may be jumped the gun - also fixed additional references to old(er) beta versions. Please take a look, hopefully was a right thing to do
--- Mark

Had a couple minor comments -- lets also increment the tool version to 1.0.0-beta.8. Thank you.
https://github.com/Azure/iot-plugandplay-models-tools/blob/dev/clients/dotnet/Microsoft.IoT.ModelsRepository.CommandLine/src/Microsoft.IoT.ModelsRepository.CommandLine.csproj#L10

Hi @digimaun - thanks for the review. All comments addressed.
I may be jumped the gun - also fixed additional references to old(er) beta versions. Please take a look, hopefully was a right thing to do
--- Mark

That's OK, we'll take the changes in dev ....thank you for pursing them.