android:allowBackup conflict

The manifest of this library sets allowBackup to true. This value may conflict with the manifest of app. I think this line can be deleted from the manifest of the library because it is not required.
Error log:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:10:9-36
	is also present at [com.github.ittianyu:BottomNavigationViewEx:1.1.3] AndroidManifest.xml:12:9-35 value=(true).
	Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:8:5-28:19 to override.

Code location:
https://github.com/ittianyu/BottomNavigationViewEx/blob/master/widget/src/main/AndroidManifest.xml#L4

I'm sorry for not replying in time. I had delete it. You could update your lib version to 1.1.4.
Thanks for your feedback.

Thank you for update and the library.


How to integrate HotJar?

Hello,
how can I include the hotjar script? There is no html file, so it is tricky. Could you help me in this issue?
Have a nice day,
Richard

This question is available on Nuxt.js community (#c2336)

just curious: do you need to set HotJar under ssr: false if you're generating nuxt for static use?


Get tests working on Windows, fix issue #11

This is another attempt at fixing #11 (replacing #12) that should also work for Linux builds.
cd635a9 and 502e3ad fix two issues that were preventing bin/test from working on Windows.
1f51489 is TDD - changes the case of the demo sample wheel to Demo so that issue #11 manifests when the tests are run on Windows, so we can test any fix.
343ce30 contains the actual fix. Here we avoid the problem by monkey patching setuptools (again - it was already done for other reasons). We now avoid the call to pkg_resources.normalize_path because on Windows that was lowercasing the path, which makes sense for comparison reasons if we are indeed comparing paths and they can come from different sources with different ideas of the cases used, but not if we're going to later use that path to extract important and case-sensitive information.

Hi @daybarr,

I think wheel.install.WheelFile isn't properly managing its handles and doesn't close the zipfile when it's done with it.

Have you considered opening a bug report with the wheel package?

Have you considered opening a bug report with the wheel package?

It's on my to do list ;) but to be honest, is a lower priority now that I am unblocked and have something working. Hopefully will get back to it.


Allocation Receipts

A quick script that accepts an account file as input, opens up all the relevant data used to build the final allocation and prints an "allocation receipt"
Test Plan
Requires having previously generated all the output data (by running main).
Create an accounts.csv file for the accounts you'd like receipts. Or use the sample one provided here
python -m scripts.allocation_receipts

Should result in output like this:
==========================================
Account
0x1e9abb8087f733ef6ab7a0e834bf0e3164fe36be
------------------------------------------
GNO Holder Details
  mainnet:           2.991
  gnosis chain:      0.000
  total gno:         2.991
  holder allocation: 94.470
------------------------------------------
Trader Details
  eligible volume:   1731
  num trades:        6
  first trade date:  2021-05-17
  last trade date:   2021-12-31
  days between:      228
------------------------------------------
  allocation type:   Primary
  trader allocation: 995.160
==========================================
==========================================
Account
0x262d23a2d916f6cf08e0235315aa51e22d142d0b
------------------------------------------
GNO Holder Details
  mainnet:           5.453
  gnosis chain:      1.952
  total gno:         7.405
  holder allocation: 233.843
------------------------------------------
Trader Details
  eligible volume:   192775
  num trades:        193
  first trade date:  2021-04-09
  last trade date:   2022-01-07
  days between:      273
------------------------------------------
  allocation type:   Primary
  trader allocation: 7961.279
==========================================
==========================================
Account
0xaa92521387df9cf483f0c3e0e6f5424e9998316f
------------------------------------------
GNO Holder Details
  Total GNO balance < 0.1
------------------------------------------
Trader Details
  eligible volume:   51045
  num trades:        1
  first trade date:  2021-11-17
  last trade date:   2021-11-17
  days between:      0Trading Criteria Met
  volume: True
  trades: False
  days:   False
------------------------------------------
  allocation type:   Consolation
  trader allocation: 99.807
==========================================
==========================================
Account
0xbeef4dade5ca40347ed018bf80c6fd244ed44492
------------------------------------------
GNO Holder Details
  Total GNO balance < 0.1
------------------------------------------
Trader Details
  No trading activity prior to snapshot
==========================================
==========================================
Account
0xd9c2624b735c6ded3cd0bb79f04feb038cf73aa9
------------------------------------------
GNO Holder Details
  Total GNO balance < 0.1
------------------------------------------
Trader Details
  No trading activity prior to snapshot
==========================================

I deleted the sample file from the project because I dont think it's worth keeping around.


Add zstd

zstd is a popular and effective compression utility with binaries on GitHub releases.
I'm happy to add this utility and others for us. Is there a template for how to add simple exes from zips listed in GitHub releases and have them auto-update?

Moved to the main repo: https://github.com/lukesampson/scoop/issues/2066


Overlay Default CNI for aks

Preconditions

[X] No need to upgrade Python SDK or the Python SDK is ready.

Related command
az aks create
Resource Provider
na
Description of Feature or Work Requested
Update az aks create -n testcluster -g testgroup  to create a cluster using Azure CNI Overlay as the default when k8s version is 1.30+
Minimum API Version Required
na
Swagger PR link / SDK link
na
Request Example
No response
Target Date
2024-11-18
PM Contact
phwilson
Engineer Contact
tylloyd
Additional context
AKS is moving it's default to Azure CNI Overlay

Thank you for opening this issue, we will look into it.

Closing this. Not needed due to previous change: https://github.com/Azure/azure-cli/pull/29388


#410: Refactor get version and edition

Closes #410.
The problem described in issue #399 is of similar nature to the commands get-version and get-edition. I suggest adjusting #399 to also find a general solution for global tools for these commands in addition to uninstall.
Changes with this PR:

moved logic to get installed version and edition of a tool to LocalToolCommandlet, as the current implementation is only applicable to those.
added placeholder methods to get installed version and edition of a global tool (to be adressed by (adjusted) #399). User now receives an error message for tools that do not support these commands as of now, instead of an exception.
changed get-version of tool that is not installed to match the behavior of get-edition: display configured versions and instructions to install.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
47 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.01%) to 60.407%

Files with Coverage Reduction
New Missed Lines
%

com/devonfw/tools/ide/tool/LocalToolCommandlet.java
9
77.33%

com/devonfw/tools/ide/tool/ToolCommandlet.java
16
73.28%

com/devonfw/tools/ide/tool/GlobalToolCommandlet.java
22
2.22%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
4989

Relevant Lines:
7951

💛  - Coveralls


No documentation on accessing ENV variables from docker-entrypoint_initdb.d

As the name said, i couldn't find a way of accessing env variables from docker.
What i need is to access some var that is defined in docker-compose file over here:
let res = [
'use admin',
db.createUser({
user: 'apUser', // it should be this: ENV_APP_SERVER_USERNAME
pwd: '12345',
roles: [
{
role: 'readWrite',
db: 'dummydb'
}
]
})
];
printjson(res);
This is the content of javascript file that gets copied into docker-entrypoint-inidb.d

Thanks for the link @bchrobot
But what is the purpose of defining users in docker-entrypoint_initdb.d if you can't even access the password through env variables?
How else would one securely set passwords?

ah so with a shell script it is possible. Thanks for the info @tianon Nice! So to convert the JS into a .sh script I would have written:
use admin
db.createUser({
  user:  $ENV_APP_SERVER_USERNAME,
  pwd: $ENV_APP_SERVER_PW,
  roles: [{
    role: 'readWrite',
    db: 'dummydb'
  }]
})

Is that correct? Without the whole printjson thing...

I am quite sure you can just put it in one file and just use bash to insert the variables directly into the js. I don't see this as a necessary addition to the docs.
#!/bin/bash
set -e

mongo <<EOF
use admin
db.createUser({
  user:  '$ENV_APP_SERVER_USERNAME',
  pwd: '$ENV_APP_SERVER_PW',
  roles: [{
    role: 'readWrite',
    db: 'dummydb'
  }]
})
EOF

Thanks @yosifkit
But may I ask why you don't want to put this in the docs? The fact that we had to open an issue to get this information is proof for me that the info is not easily accessable.

No need for shebang, it's sourced.

No need for shebang, it's sourced.

Thanks @x-yuri to point to this location in the code, that's great information.
For short commands, you could also use a pipe instead of a heredoc to send the commands to mongo's stdin:
echo "db.createUser({...})" | mongo admin

Sorry @yosifkit  I am trying your code snippet, however, it does not work. Has this changed?
I have an initDatabase.sh file with the following content:
#!/bin/bash
set -e

mongo <<EOF
use admin
db.createUser({
  user: '$MONGO_ADMIN_USER',
  pwd:  '$MONGO_ADMIN_PASSWORD',
  roles: [{
    role: 'readWrite',
    db: 'dummydb'
  }]
})
EOF

I have in my shell the environment variables defined, but if I run the script it does not go ok, the error is:
Error: couldn't add user: User passwords must not be empty
What am I missing?
Thank you very much in advance and regards.

FWIW, here's my answer on Stack Overflow. Although I'd avoid using Docker Swarm (buggy) and secrets (environment variables are easier to use). Also from a cursory glance at docker-entrypoint.sh, it looks like without MONGO_INITDB_ROOT_USERNAME, MONGO_INITDB_ROOT_PASSWORD authentication is disabled, so no point in creating a user. On the other hand if you do specify the variables, you've got to authenticate first (before creating a user), as I did in my example. Whether it makes sense to create a non-root user if the database is accessed just by one application... I'm not sure.

Thanks @x-yuri Indeed at the end I just placed those variables (INITDB_ROOT_blabla) because as you pointed out, without them, auth is not enabled and I was having issues connecting because of that.

A function named _getEnv was added here. Usage:
_getEnv("MONGO_INITDB_ROOT_USERNAME")

A function named _getEnv was added here. Usage:
_getEnv("MONGO_INITDB_ROOT_USERNAME")

But only since 4.7.0 !

To access env variables from docker-entrypoint-initdb.d
Add env variables to mongo's container either via env_file or environment attributes
  mongo:
    volumes:
      # Add the db-init.js file to the Mongo DB container
      - .PATH_TO_FILE/db-init.js:/docker-entrypoint-initdb.d/db-init.js:ro
    ports:
      - ${MONGO_PORT}:27017
    environment:
      - MONGO_INITDB_DATABASE=
      - MONGO_INITDB_ROOT_USERNAME
      - MONGO_INITDB_ROOT_PASSWORD-
      - MONGO_USER
      - MONGO_PASSWORD

db-init.js content would be:
db.createUser({
  user: process.env.MONGO_USER,
  pwd: process.env.MONGO_PASSWORD,
  roles: [{ role: "readWrite", db: "dummydb" }],
});

Some time ago, I updated my answer.  _getEnv() is undocumented and available for a limited range of versions (around >=4.4, <5 probably). Starting with 6.x you can use process.env. Before that with the help of jq you can achieve pretty much the same result. At least I don't see any issues with it.


Update Final-Visualization.md

If any issues, let me know!

If any issues, let me know!

No issues pa. Good job 🚀


Authentication Error

There seems to be an authentication error when populate.py is executed. The error is displayed below.
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (2059, "Authentication plugin 'caching_sha2_password' cannot be loaded: The specified module could not be found.\r\n")

Fix: Enter the SQL query shown into MySQL.
ALTER USER '[YOURUSERNAME]'@'localhost' IDENTIFIED WITH mysql_native_password BY '[YOURPASSWORD]';

I'll put this into an error FAQ or something.


Configuration for empty VNode not to render to

I have been working on an infinite scroll list plugin for Vue.js 2.1+.
It basically use 'v-if' to implement DOM recycling, meaning that when the list gets long enough,
there will still only be limited DOMs exists so that scrolling performance remains good.
The idea comes from this article Complexities of an Infinite Scroller,
I found it will be useful if the idea can be implemented with Vue, so there comes out this plugin.
So far it works pretty well, with scoped slots, it's highly customizable.
But there is this tiny problem, empty VNode will be rendered to this <!----> html comment string.
This is definitely not a bug, and I found the empty comment string is used for Vue unit test.
However, when developing and inspecting elements, the developer tools panel is full of <!---->s.

Check out the repo and example page.
It seems have no influence on performance, only a little annoying to developers.
So is there any way to get rid of these empty comments?

v-if is usually used for elements in a relatively stable node structure, rendering it to empty comment tags makes vnode lists diffing more efficient as the lists are more "stable", and it avoids some edge cases when elements are not keyed. In your case it doesn't seem to cause any real issue other than small inspection annoyance, so unfortunately I don't think we would change this behavior.
For virtual scrolling lists, it maybe a better idea to use a computed property to return a subset of the items that needs to be rendered, e.g. v-for="item in displayedItems" instead of using a v-if on each item.

Thanks Evan! As you suggested, I removed v-if and added a computed subset property, and now it works smooth and tidy!

Hi,
I ended up on this issue because I also have some vuejs comments inside my div and the CSS selector div:empty { padding:0; } does not work with comments, only if they are inline https://css-tricks.com/almanac/selectors/e/empty/#article-header-id-1
I read Evan's comment and i'll find a workaround, but just to be sure, is there any change since the issue reported here regarding this subject?
Thank you,
Adrian
PS: I love Vue (sound funny)

I have same issue. :empty css selector does not work.

Disappointing that no one (looking at you, @yyx990803) addresses the fact that this makes using the :empty CSS pseudo selector unusable. What's the workaround?

Disappointing that no one (looking at you, @yyx990803) addresses the fact that this makes using the :empty CSS pseudo selector unusable. What's the workaround?

You could just set a class to the parent if none of the elements are shown and check for the class in CSS.
Also please don't necro this issue, it has been closed for over three years.

It's almost 2024, and this issue still exists.

It's almost 2024, and this issue still exists.

Yes. That's because it's largely irrelevant. Even more so than 3 years ago when I last had to tell somebody to not necro this issue that had been inactive and closed for 3 years.
At this point you should be using the official Vue Dev Tools anyway, which allow you to look at all the mounted components and their respective properties and everything.
If you have any new reason to want this functionality, please feel free to open a new issue and reference this one.


GForce GPU layout, some edges very long

Describe the bug
Comparing CPU and GPU results of GForce layout in the same data set
There are some edges very long, and cause graph hard to use
Your Example Website or App
https://stackblitz.com/~/github.com/zhenya-zhu/graph-playground
Steps to Reproduce the Bug or Issue

go to CPU tab
go to GPU tab

Expected behavior
GPU layout do not have very long edges
Screenshots or Videos
GPU:

CPU:

Platform

OS: macOS
Browser: Chrome
Version: 106.0.5249.119 (Official Build) (arm64)

Additional context
No response

This appears to be the same problem we are having: https://github.com/antvis/G6/issues/3424
It affects both Fruchterman and GForce when GPU accelerated (maybe all GPU accelerated layouts?)
When the node and edge count becomes high enough, some edges become very stretched. Most of the time rendering the graph useless.
The only solution we have so far is disabling GPU acceleration, but the time to calculate becomes very long.
We see it happening in M1, M1Pro macs or Windows PCs with Nvidia Graphics, so it's probably not fully related to a specific hardware or OS.

Experiencing this as well on M1. Any timeline for when this will be fixed?


Partial green (added) code text is not appearing

Hi. Some of the green (added) code text isn't appearing.
When I look at it, some parts are missing:

But when I copy and paste it, those missing lines appear:
    .SetCompatibilityVersion(CompatibilityVersion.Version_2_2)
    .ConfigureApiBehaviorOptions(options =>
    {
        options.SuppressConsumesConstraintForFormFileParameters = true;
        options.SuppressInferBindingSourcesForParameters = true;
        options.SuppressModelStateInvalidFilter = true;
        options.SuppressMapClientErrors = true;
        options.SuppressUseValidationProblemDetailsForInvalidModelStateResponses = true;
        options.ClientErrorMapping[404].Link =
            "https://httpstatuses.com/404";
    });

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

ID: b391017f-25e1-d5e1-c4f7-020408ade7b5
Version Independent ID: 263a7b64-2e42-bbfc-c1d3-61680438e1e4
Content: Create web APIs with ASP.NET Core
Content Source: aspnetcore/web-api/index.md
Product: aspnet-core
Technology: aspnetcore-webapi
GitHub Login: @scottaddie
Microsoft Alias: scaddie

Hi ... We have an open issue with the docs engineers to address the broken code blocks. #13143


Add line numbers on all block tokens during parsing (#144)

Here is a partial solution for #144 which records line numbers on all block tokens. The span tokens are still left unlabeled, but at least it's a starting point, and I think the functionality added here is useful by itself.
Open question: should the line_number be a added to repr_attributes, so that it gets included in the output from ASTRenderer?

coverage: 91.125% (+0.04%) from 91.086% when pulling b3eed83b3275bb90c3e135dda20f3b3e68505e4d on anderskaplan:line-numbers-2 into 86f3a2f2d6d6289114403bd637fffdd7b543cd62 on miyuchina:master.

@anderskaplan, thank you, I will try to look at this for the next release.

Finally, I have found time for mistletoe once again. :)
@anderskaplan, I must say "good job" 👍 . Basically, I like it, including the clever way of the new unit test.
Probably just 3 more things be resolved:

Performance - did you run the benchmark test? I guess there should be little to zero difference to the version without line numbers, right?
Optionality - shouldn't we better pass the line_number parameter as the last AND optional (with default value of None) to the constructors of TableRow etc. (even Table?)? This way, we could achieve backwards compatibility for those users who might create (some) tokens without actually parsing a markdown text. Yes, there probably won't be many, but what if there are some out there? :)
Documentation - probably add some notes on this cool feature as a sub-chapter to https://github.com/miyuchina/mistletoe/blob/v1.2.1/dev-guide.md#understanding-the-ast?

Open question: should the line_number be a added to repr_attributes, so that it gets included in the output from ASTRenderer?

Not sure here, but probably yes, it could? :)

Hey @pbodnar, just checking in to say hi. The last weeks have been quite busy with other things but I'll get back to this as soon as I can.

I have updated the documentation, made the line_number parameter optional, and run the benchmark as requested in the review.
The benchmark results have a fairly large variance (5 %CV) from run to run on my machine. But I'm fairly confident that the performance penalty of the line numbers is negligible, because if I compare the mean benchmark with and without line numbers from five runs of each type, then the relative difference is about 0.1%. I.e., far less than the run-to-run variance.
I also added the line_number attribute to repr_attributes, so that the line numbers are included in the output from the ASTRenderer.


Native hook not available on Galaxy M31 (Magisk, Rooted, LSposed)

App Information*
Screenshot of "status" page

**Device Information*
Device: Samsung Galaxy M31
OS: Android 12 (stock, oneui)
Log*
logcat1.txt
Additional context
Tried relay attack on tag mode with a contactless payment card, POS device didnt recognize it as a payment card. All my setup is correct. The only reason should be the native hook.

Exactly the same issue for Samsung Galaxy S20FE, works fine with same setup on other devices

I have checked the status page again and the native hook seemed to be enabled. I restarted the phone and it turned back to the yellow questionmark.

Thanks for reporting! This issue seems a bit mysterious, because the log really has no "fatal" errors. Something Samsung-specific might be going on with the NFC startup that is not "standard". Could you try:

reboot the device
open NFCGate
if the question mark is yellow:

turn off NFC, wait a bit, turn NFC back on
force stop/kill NFCGate, wait a bit, open NFCGate again
check question mark again.  Report back on what happens

In any case, please try to pull the log from boot after this process and attach it.

@balltobi Please attach a boot log so we can try to better understand the issue

Now the native hook seems to be enabled. But I can't emulate a 4 byte UID.
I am trying to use NFCGate in Clone Tag mode and with the emulation on, my phone' UID changes to 4 bytes of 0x00 (00-00-00-00).
BUT there is some hope. It actually can modify my UID like that AND STILL MORE, it successfully emulates a contactless payment card' 7 byte UID perfectly every single time.
So, why can it emulate a 7 byte UID while it can't emulate a 4 byte UID?

Yepi now I see why. Google is kinda dumb. They actually made it impossible to emulate any Mifare Classic 1K type cards. I can emulate a JCOP30 card with a 4 byte uid.

Now the native hook seems to be enabled.

Can you confirm that the native hook now works as expected, with no extra steps required?

They actually made it impossible to emulate any Mifare Classic 1K type cards.

Android no longer offers support for MiFare classic chips, so these cards are not supported

Now the native hook seems to be enabled.

Can you confirm that the native hook now works as expected, with no extra steps required?

They actually made it impossible to emulate any Mifare Classic 1K type cards.

Android no longer offers support for MiFare classic, so these cards are not supported

Nope, when I reboot the phone, native hook went away again.

Did you try the steps I suggested above after rebooting the phone?

Did you try the steps I suggested above after rebooting the phone?

Yes, I did. Even if the native hook is not working, cloning a tag works well.

If cloning works, the native hook must be working as well. Could you please share another log when the cloning is successful? It's possible that the UI is incorrectly displaying the status of the native hook. Your cooperation is greatly appreciated.

I only checked the UID, and it worked. I don't think it emulates only the UID and tag type, am I correct?
If yes, please give me further instructions about saving a log file of NFCGate.

I think cloning only emulates only the UID and tag type, am I correct?

That's correct.

If yes, please give me further instructions about saving a log file of NFCGate.

Just a regular ADB logcat like you shared previously. Thanks!

See #146

See #146

This build version not working today


share influxdb with heapster

Is there a way to share the same influxdb as say heapster? So that all the data is collected in the same sink? this would help with tools like kapacitor and cluster autoscaler.
Environment

Kubernetes version information:
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T19:12:24Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.10", GitCommit:"bebdeb749f1fa3da9e1312c4b08e439c404b3136", GitTreeState:"clean", BuildDate:"2017-11-03T16:31:49Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes cluster kind: Kops

Prometheus has it's own time-series database, you would want to use the tooling around the Prometheus ecosystem, also note that heapster is in the process of being deprecated.
This is unrelated to the Prometheus Operator, it's about usage of Prometheus/Alertmanager.
It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.


Publish plugin to multiple channels

Since adding a new plugin channel to the IDE overrides the default channel, plugin authors have to publish the same builds to multiple channels.
Let's add a way to specify the list of channels used to publish the plugin in addition to the single channel option:
intellij {
  publish {
    username 'zolotov'
    password 'password'
    channel 'eap', 'nightly', 'default'
  }
}

We could use "default" as the name for the default channel (no channel=... parameter in HTTP POST).

You can try 0.2.0-SNAPSHOT, see README to know how to use snapshots


Require Jenkins 2.414.3 or newer

Require Jenkins 2.414.3 or newer
Fixes #6 - Bump json jar version to latest by replacing the jar file dependency on json-lib with a dependency on the JSON API library plugin
Plugin installation statistics show that 85% of all installations of the plugin are already running Jenkins 2.414.3 or newer.  Users that are already running Jenkins 2.414.3 or newer can easily upgrade to this plugin version without upgrading Jenkins core.
SECURITY-3314 strongly suggests that the minimum Jenkins version should be 2.426.3 or newer due to the critical nature of that security issue.  However, rather than risk that this pull request might be rejected because it only covers 72% of all the installations of the plugin, I kept it at 2.414.3.
Upgrades to the most recent version of HTMLUnit so that automated tests continue to run.
Upgrades to the most recent parent pom so that the latest capabilities of the plugin parent pom are available.
Testing done
Confirmed that automated tests pass on my Linux computer with Java 21.
Submitter checklist

[x] Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
[x] Ensure that the pull request title represents the desired changelog entry
[x] Please describe what you did
[x] Link to relevant issues in GitHub or Jira
[x] Link to relevant pull requests, esp. upstream and downstream changes
[x] Ensure you have provided tests - that demonstrates feature works or fixes the issue

@dhavalpateln this needs to be labeled as either enhancement or developer in order to cause a new release to be created.

@dhavalpateln this needs to be labeled as either enhancement or developer in order to cause a new release to be created.

@dhavalpateln Can this be labeled please


Is it possible to add SARSA to the available mechanisms?

Rationale: SARSA is being considered in behavioral neuroscience as a model of some learning circuits in the brain. Expected SARSA is not (yet) used in behavioral neuroscience.
Implementation: SARSA is very much like Expected SARSA, but the learning rule uses the v value of the behavior that is actually selected rather than the expected v value over all possible behaviors. This may mean that the update needs to be calculated one time step later than for other algorithms?

Moved to https://github.com/learningsimulator/learningsimulator/issues/137


Setting default values for a new entry

For example, Species > Taxonomy > Unique Identifier has a default value '-'

Defaults exist in code, in defaultValues.ts. These should be further adjusted, by finding the default values from the old code

Implemented in 1754952b.


Return immediately in /alerts route

We should return immediately in the /alerts route – callers should know that the service accepted the request and (202) and should not be required to await for any additional processing done on the service side.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

-1 of 6 (83.33%)  changed or added relevant lines in 1 file are covered.
2 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.03%) to 93.625%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/routes/alerts/alerts.controller.ts
5
6
83.33%

Files with Coverage Reduction
New Missed Lines
%

src/routes/transactions/entities/tests/human-description.builder.ts
1
90.0%

src/routes/transactions/mappers/common/transaction-info.mapper.ts
1
78.17%

Totals

Change from base Build<PHONE_NUMBER>:
-0.03%

Covered Lines:
6063

Relevant Lines:
6263

💛  - Coveralls


co-tracker git clone failed, can u provide its version or correct git url?

Hi ttaohe,
Thank you for your interest in our work. Actually, it is more recommended to install CoTracker directly using pip:
pip install git+https://github.com/facebookresearch/co-tracker.git@8d364031971f6b3efec945dd15c468a183e58212
In other words, we don't have to git clone CoTracker. But if you still want to browse the code by git clone, please refer to our supported version of CoTracker here and follow these steps:
git clone https://github.com/facebookresearch/co-tracker.git
cd co-tracker
git checkout 8d364031971f6b3efec945dd15c468a183e58212

If you have any other questions, please feel free to let me know.
Guangze


New Version ETA

Hi, can you say when do you plan to publish a new version with updated mime-db? I need mime type for WebAssembly files zeit/serve#303

Hi! I have been working on it and sorry the wasm addition happened in the same release as all the font changes. The font changes look like they are causing some issues which I've been trying to work through with a couple projects before pulling them in here and increasing thr fallout.

👋 Would be great if you could release this soon. Thanks ❤

bumping since I'd need this change too :)

@dougwilson can you release a patch version?

@giuseppeg please see https://github.com/jshttp/mime-types/issues/44#issuecomment-352190061 . I haven't gotten the change to address the font issues, which is blocking this release.

You can add any mapping to this module in addition to the built-in mappings. For example: mime.types['wasm'] = 'application/wasm'

Would it make sense to temporarily add mime.types['wasm'] = 'application/wasm' directly to this package to avoid upgrading mime-db?
I guess all we have to do is initialize this object here, right? I can provide a PR if you want to 👍

No, @philipp-spiess that would be rejected. This module is only designed to be a wrapper to mime-db; it's an extremely slippery slope to start just adding more and more types manually here.

@dougwilson gotcha. I definitely don't want to put pressure on you. I am just wondering whether it'd possible to do two separate releases and get the wasm fix now. After all versions are free :)
Production apps (packages that depend on this package) are affected by the issue (including @zeithq's deployments). ) I don't have context though so I'd just shut up and wait for the fix in case this is not possible.

I'm not sure what the separate releases would be. Releasing a new version will break existing servers, but I guess you get wasm support. Why is that acceptable? WASM was never served for a long time with any type, so nothing has been broken here. You just want to take advantage of something new, and new types come out all the time. Just add the entry to your server code if you want to serve WASM files for the time being. It's just one line.

fair enough, thanks for your patience.

Published version 2.1.18 👍


Update requirements

This simple change will allow gitless to continue to work when you upgrade pygit2 to a newer version.
Tested on Arch Linux and pygit 1.8
Signed-off-by: Piotr Gorski<EMAIL_ADDRESS>

This looks good to me. Thanks for the pull request!
All tests pass using pygit2-1.9.0 on Linux Mint Debian 4 (a derivative of Debian Buster)


Support debugging tests via tooling API

Gradle should provide proper API to execute tests in debug mode.
Context
Currently, the Tooling API offers a TestLauncher to execute tests, but it doesn't offer a debugging capability. Because of that IDEs have to resort to parameterizing the test task with --tests arguments. IntelliJ IDEA along with injecting custom debug parameters (ports) via an init script. The implementation there has a couple of drawbacks that have a negative impact on the perceived performance of Gradle.
Design
TestLauncher should have a withDebugMode(int port, boolean suspend) method. If called, all JVMs executing tests should start with the -agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend ? 'y': 'n'},address=${port} JVM argument.
Test Coverage

If the tests are launched in debug mode then debuggers can be attached to the specified port.
If the port is taken then the execution fails.
If tests are launched in debug mode then all other, debug-related JVM arguments are removed (e.g. -Xdebug, -Xrunjdwp, -agentlib:jdwp, -Xrunjdwp:).
If the test execution is canceled during debugging then the test JVM should shut down.
If the test execution is canceled before the debugger could be attached then the test JVM should shut down.
The test task is never UP-TO-DATE when test debugging is requested.

Future work
Later we can extend the implementation such that if the requested debug port is 0 then Gradle automatically chooses a debug port and sends it back to the client in a progress event.

The clean needs to be called to work around the up-to-date check and force Gradle to re-execute the selected tests.

That's unrelated to debugging though. The IDEA team always wants tests to rerun, no matter if debugging or not. We can probably add this as an option to the test execution TAPI as well and then do upToDateWhen { false } under the hood of that mode is requested.

Looks good overall.

withDebugOptions(int port), that covers the simple use-case

I'd probably add the suspend option to that simple use case

s a next step, we could have a withDebugMode() method that doesn't take an argument and reports the chosen port via a progress event.

Why do we need an extra method for that? Isn't port 0 the way to specify that you want an auto-assigned one?
We also have the unrelated points in the description above (see my previous post), which we should remove, as they are confusing the reader about what the real problem is we want to solve here.

Thanks for the suggestions. I've updated the original description according to your suggestions. I'll proceed with the implementation.

Some IDE-specific thoughts.

having suspend=n does not make much sense, as the user expects the breakpoints to work right away.
As long, as the server=y is used, we need an event, saying that forked jvm is up and waiting for connection. Otherwise, server=n should be used.
If TestLauncher  effectively launches all test tasks passing the test pattern to them, won't it cause all test classes to be checked for up-to-date state? Feels like it can be a performance penalty.
To migrate to TestLauncher API we need some reliable way to obtain test output and to attach it to specific test. How can we do it?

Can we debug also other non-test gradle tasks in the same way? I.e. using the progress tooling debug events.
E.g. the sequence can be looked as following:
StartTaskDebuggingEvent (with debug parameters info) -> StopTaskDebuggingEvent(with debug parameters info)
Note, the target JVM process used for the task running can be the gradle daemon itself.
This can greatly improve/simplify our existing debugging of the gradle applications/tasks/tests/buildscript code.

As long, as the server=y is used, we need an event, saying that forked jvm is up and waiting for connection. Otherwise, server=n should be used.

That's a good point and could get rid of the need for an event, by letting the IDE provide the server part and letting the debugged application connect to it, rather than the other way round.
@nskvortsov @vladsoroka the other points seem unrelated to this particular ticket, but more general issues with the Tooling API. I suggest that you collect them and go through them with Donát in the next sync call, so he knows what other features/improvements we need to make in order to make the Tooling API work well for you.

This issue is the last one delaying 5.6 RC1, right?


(PUP-4821) acceptance test for automatic parameter lookup

Modified existing test to include automatic parameter lookup of
parametrized class

@er0ck As we discussed I modified the existing lookup.rb to include automatic parameter lookup.

looks good!


Lorem lt_LT locale translation

Added Lorem translation for lt_LT locale

Codecov Report

Merging #1886 into master will decrease coverage by 0.94%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1886      +/-   ##
============================================
- Coverage     56.58%   55.63%   -0.95%
  Complexity     2068     2068
============================================
  Files           306      306
  Lines          4851     4851
============================================
- Hits           2745     2699      -46
- Misses         2106     2152      +46

Impacted Files
Coverage Δ
Complexity Δ

src/Faker/Provider/lt_LT/Person.php
20.51% <ø> (ø)
17 <0> (ø)
:arrow_down:

src/Faker/Provider/de_AT/Person.php
0% <0%> (-100%)
1% <0%> (ø)

src/Faker/Provider/en_IN/Person.php
0% <0%> (-100%)
1% <0%> (ø)

src/Faker/Provider/es_VE/Company.php
50% <0%> (-50%)
2% <0%> (ø)

src/Faker/Provider/ne_NP/Person.php
0% <0%> (-50%)
2% <0%> (ø)

src/Faker/Provider/th_TH/Address.php
33.33% <0%> (-33.34%)
3% <0%> (ø)

src/Faker/Provider/pt_PT/Address.php
66.66% <0%> (-33.34%)
3% <0%> (ø)

src/Faker/Provider/cs_CZ/Address.php
66.66% <0%> (-33.34%)
3% <0%> (ø)

src/Faker/Provider/es_ES/Person.php
75% <0%> (-25%)
3% <0%> (ø)

src/Faker/Provider/es_PE/Address.php
75% <0%> (-25%)
4% <0%> (ø)

... and 41 more

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 04c47e3...25100e4. Read the comment docs.


Logstash Integration

I'm interested in adding Logstash into the mix but am having a hard time with the x-pack piece of this deployment. Neither the logstash_system user nor indexes where created. Do you have any insight into how this would be achieved using this method?

Hey @zchef2k, how are you integrating it?  Do you have a link to a fork repository?

This can be ignored. After upgrading elasticsearch and kibana and reinstalling x-pack plugins on all 3 components, monitoring for Logstash appeared. This is more of an issue of versionitis in my deployment than anything.
Nothing to see here, I suppose. Closing.

Glad you got it sorted @zchef2k 👍

For anyone else coming here in the future... this will install Logstash:
#!/bin/bash
sudo ufw disable
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
sudo apt-get install oracle-java9-installer -y < "/dev/null"
sudo chmod 777 /etc/environment
echo "PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/bin/java"" > /etc/environment
echo "JAVA_HOME="/usr/lib/jvm/java-9-oracle/"" >> /etc/environment
sudo chmod 644 /etc/environment
source /etc/environment
sudo su -c "source /etc/environment" root
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
sudo apt-get update
sudo apt-get install logstash apt-transport-https -y < "/dev/null"
sudo systemctl daemon-reload
sudo systemctl enable logstash
sudo systemctl start logstash
exit 0

I foolishly thought Logstash was part of this template when deploying...


FEAT: EmailReceiver Class Implementation

Description of Changes:

New class EmailReceiver that utilizes IMAP protocol to download emails

Type of Changes:

[ ] Documentation (Add Documentation to Existing Code)
[ ] Bug Fix (Non-Breaking Changes Which Fixes an Issue)
[x] New Feature (Non-Breaking Changes Which Adds Functionality)
[ ] Improvement (Non-Breaking Changes Which Improves the Structures, Performance, etc...)
[ ] Breaking Change (Breaking Changes that Would Cause Existing Functionality to NOT Work as Expected)

To-Do or Other Concerns:

(NONE)

CLOSED: Semester is ended


[DATA] Case fatality rate formula is misleading

Which Dataset
Case Fatality Rate is currently calculated as
(Total Deaths) / (Total Positive Cases)
Error Description
The faster the infection rate accelerates the lower the calculated fatality rate, because it takes weeks before new cases results in 1. Fatality  or 2. Recovered.
Hence fatality rate is understated because it is compared against undetermined cases. (Open cases)
Thus the public is led to believe chance of fatality once infected is lower than the true chances of "fatality vs recovery".
Suggested fixes
True Fatality Rate must be expressed as a percentage of closed cases.
i.e.  (Total Deaths) / (Total Deaths + Total Recovered)
Crosscheck: Fatality Rate + Recovery Rate = 100%

Can you provide any literature to assist in this change @Olivyf?
Currently, the rate used is so that you can compare across countries even with the shortcomings. Making the change, we will then have to list as something else, not as case fatality rate. We can rename to Observed Case Fatality Rate if that makes it more clearer.
See

John Hopkins https://coronavirus.jhu.edu/data/mortality
Our world in data https://ourworldindata.org/grapher/coronavirus-cfr
Lancet

For my 2c it  may be worth showing both. Looking at the daily data it seems to me like the recoveries data is the noisiest and without knowing the local processes of reporting this we should not over interpret these rates at a daily level while the epidemic is going on. The formula @Olivyf suggests may be an overestimate because as deaths are likely to be reported faster than recoveries. It would also be useful to show both to address the concern of public perceptions -- rather than reporting one number to show two numbers which show a range may be better in showing the uncertainty in the data.

The reporting of recoveries is slower and erratic so that's why I am concerned. Thanks for your thoughts @shaze

I think keeping consistency with what other people do is paramount and we shouldn't relabel something that other people have used. But I think there is value in having both. I would suggest as the new one "Reported Resolved Case Fatality Rate". A bit klunky I know. And then explaining in the README


Design Tokens support for Framer

Is your feature request related to a problem? Please describe.
Look into collaboration with Framer on Design Tokens.
More information required.
Additional context
Link to the feature requests page on design tokens for Framer
https://www.framer.community/c/requests/support-for-design-tokens

Closing this as this is about the Figma plugin


A subset of a view can get a different .obs than the view itself

Please make sure these conditions are met

[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of anndata.
[ ] (optional) I have confirmed this bug exists on the master branch of anndata.

Report
When a view object is created and its .obs property is modified, my understanding is that the .obs of the view and of its _adata_ref can diverge. A concrete manifestation of this can occur when subsetting the view, in which case the .obs of the subset seems to be extracted from the _adata_ref, hence being different than that of the view. Here is a minimal example.
Code:
import anndata
import numpy as np

a1 = anndata.AnnData(X=np.array([[1, 2, 3], [4, 5, 6]]), obs={'obs_names': ['aa', 'bb'], 'property': [True, True]}, var={'var_names': ['c', 'd', 'e']})
a1 = a1[:, ['c', 'd']]
a1.obs.index = a1.obs.index.map(lambda x: x[-1])
selector = np.array([True, True])

# These should be the same but they are not
print(a1[selector].obs)
print(a1.obs)

Output:
    property
aa      True
bb      True
   property
a      True
b      True

Versions
-----
anndata             0.9.1
numpy               1.22.4
session_info        1.0.0
-----
bottleneck          1.3.5
cloudpickle         2.2.1
cython_runtime      NA
dateutil            2.8.2
debugpy             1.8.0
dill                0.3.6
h5py                3.8.0
importlib_metadata  NA
mpl_toolkits        NA
mpmath              1.3.0
natsort             8.3.1
numexpr             2.8.3
opt_einsum          v3.3.0
packaging           21.3
pandas              1.4.3
pyarrow             10.0.1
pydev_ipython       NA
pydevconsole        NA
pydevd              2.9.5
pydevd_file_utils   NA
pydevd_plugins      NA
pydevd_tracing      NA
pytz                2023.3
ruamel              NA
scipy               1.7.3
six                 1.16.0
sympy               1.11.1
torch               2.0.1
tqdm                4.64.1
typing_extensions   NA
zipp                NA
-----
Python 3.9.12 (main, Apr  5 2022, 01:53:17) [Clang 12.0.0 ]
macOS-10.16-x86_64-i386-64bit
-----
Session information updated at 2023-10-12 17:09

Thanks for the bug report!
Generally when you modify a view it stops being a view. That's being avoided in your code since you're not using one of the setter methods we overload.
We should probably make it so setting .index on a view actualizes the view.
For now, you can get the intended behaviour by setting adata.obs_names instead of adata.obs.index

Thank you, I didn't know if it was intended but now I understand, and this gives a rationale for the presence of the *_names properties, that seemed redundant at first look.


Fonts not getting exported in the img ?

Hello,
I've encountered an issue with the "modern-screenshot" tool where the font does not render as expected when exporting an image. Below are the details of the issue:
Description:
When using the domToJpeg method to export an image of a videoContainerElement, the resulting image does not display the text in the correct font. Instead of the expected font, the text appears in a default or fallback font. This issue occurs when exporting the image with a scale factor of 3.
Steps to Reproduce:

Navigate to a page.
Trigger the domToJpeg function with the following configuration:dataURL = await domToJpeg(element, {
  scale: 3,
});

Observe the exported image and compare the font style to the expected one.

Expected Behavior:
The text in the exported image should match the font style used in the element.
Actual Behavior:
The text in the exported image defaults to a different font, ignoring the specified font style in the element.
Screenshots:

Expected font rendering:
Actual font rendering in the exported image:

Environment:

OS: [Your Operating System]
Browser: [Your Browser]
Version of modern-screenshot: [The version you are using]

I've tried to look into the options and saw some css and fonts options but i'm not sure if those are the one I need. Is there a known workaround or fix for this issue?
Thank you for your assistance.

Did you solve it?


Documentation for www/bot.py

Just a simple code documentation

The code is documentation enough ;) Seriously, these 50 lines are pretty self-explanatory.


Semi-supervised integration with scANVI

Dear scVI authors,
I was trying to use scANVI for semi-supervised data integration, as it seemed to be the first tool ever to be able to perform something like that (as far as I'm aware of). Unfortunately, I failed miserably, so I'm wondering whether I'm doing something wrong or whether the concept of semi-supervised integration is not supported after all.
The concept:
What I mean by semi-supervised integration is this:
I have 2 datasets.
Dataset A contains:

control cells
cells exposed to various conditions, possibly very diverse populations

Dataset B contains:

control cells
cells exposed to various conditions, different from dataset A, possibly very diverse populations.

I know which cells are control cells and which are other, because I've used cell hashing to mark them in the experiment. So each of the datasets contains a subset of specified control cells, that are supposed to have very similar transcriptomes across the two experiments, plus a very diverse set of cells that might be very different from anything in the other dataset. In the case of the following example, especially batch1 contains several very distinct populations of cells.
I would like to utilize the information on which cells are control cells to help the integration - I would like to use the control cells only to drive the integration process, i.e. serve as "anchors" to say.
This is what I do:

#there are 2 batches in the dataset
scanvi = SCANVI(dataset.nb_genes, dataset.n_batches, dataset.n_labels)
trainer_scanvi = SemiSupervisedTrainer(scanvi, dataset, frequency=5)

#label 0 = control cells
#label 1 = any other cells, possibly very diverse.
#only control cells are considered labeled :

trainer_scanvi.labelled_set = trainer_scanvi.create_posterior(indices=(dataset.labels == 0).ravel())
trainer_scanvi.labelled_set.to_monitor = ['reconstruction_error', 'accuracy']
trainer_scanvi.unlabelled_set = trainer_scanvi.create_posterior(indices=(dataset.labels == 1).ravel())
trainer_scanvi.unlabelled_set.to_monitor = ['reconstruction_error', 'accuracy']

trainer_scanvi.train(n_epochs=600)

I'm not interested in labels (obviously, as label transfer is not possible at all with my settings). I'd only like to get a well integrated latent space. So I take the latent space and plot an UMAP of it:
full = trainer_scanvi.full_dataset
latent, batch_indices, labels = full.sequential().get_latent()
latent_u = UMAP(spread=2).fit_transform(latent)

I would expect batch0_ctrl and batch1_ctrl cells to be aligned well, which they are not.
In fact, running an unsupervised VAE without any external information does a somewhat better job:
vae = VAE(dataset.nb_genes, n_batch=dataset.n_batches, n_labels=2,
          n_hidden=128, n_latent=30, n_layers=2, dispersion='gene')
trainer = UnsupervisedTrainer(vae, dataset, train_size=1.0, n_epochs_kl_warmup=300)
n_epochs = 500
trainer.train(n_epochs=n_epochs)

full = trainer.create_posterior(trainer.model, merged, indices=np.arange(len(merged)))
latent, batch_indices, labels = full.sequential().get_latent()
latent_u = UMAP(spread=2).fit_transform(latent)

This result is qualitatively similar to the results of other common unsupervised integration methods on this dataset, i.e. sort of OK, but not really perfect (Not just based on the UMAP - I actually measured this, I'll skip the details in this post). You can see that the control cells blend together better while distinct batch1 populations stay distinct. I was hoping though that the scANVI approach could beat this result.
I played with the model parameters a lot, but nothing seems to really improve the results. So I was wondering - am I doing this incorrectly? And is such supervised integration even possible with scVI/scANVI?
Thanks a lot!
Adam

Hi @krejciadam! Thank you for your interest in scVI!
I think scanVI might not be the tool for what you're looking to do. scanVI is really for labeling unannotated cells. Eg, if you had cell type labels for 10% of your cells and wanted to label the remaining 90%.
What I can suggest - which isn't very statistically sound and definitely not best practice - but might work depending on your use case, is to train scVI on your combined dataset (Dataset A + Dataset B), without any batch correction (n_batch = 0). Get the latent spaces for Dataset A control as well as Dataset B control, then find the transformation between the centroids of each space. Then apply that transformation to your case cells.
The following resources might be useful:
https://www.nature.com/articles/s41592-019-0494-8 Specifically the part on δ vector estimation in the Appendix.
https://www.nature.com/articles/s41592-019-0494-8/figures/15
http://proceedings.mlr.press/v108/martens20a/martens20a.pdf
Goodluck!
Galen

Hi @krejciadam, thank for your issue. Let me add a bit more insight to what Galen proposed.
First, there is a bug in scANVI since May that we just saw / solved last week [1]. @galenxing what is the estimated timeline for the release of the new version?

I would expect batch0_ctrl and batch1_ctrl cells to be aligned well, which they are not.

As Galen emphasized, the purpose of scANVI is mostly for annotations. However, we did investigate scANVI's latent space in our applications. Still, there is a specific reason for which scANVI, as you applied it here, will not work well. If you have a closer look at the manuscript, scANVI's generative model use the labels to construct a Gaussian mixture model prior for the latent space. In your case, if you put the cells into two Gaussian blobs only, it makes sense you don't get as good as a result than scVI or other method, whose prior is more agnostic. To solve this problem, you might consider adding more "n_labels" (or clusters to your GMM prior). It is not obvious that scANVI will make good use of labels that are never observed (this is a hard problem), but it's worth trying.

And is such supervised integration even possible with scVI/scANVI?

We did try this type of scenario on a purified PBMC dataset from 10x in the scANVI manuscript [2]. Of course, this is a much easier setting because cell types are much easier to capture in PBMCs. However, in this semi-simulations we knew exactly the number of cell types in each dataset and we knew we were adding xx more cell types. Can you label somehow one of the two datasets? Or at least label all the overlapping cells into cell types? That would be a much more useful information for scANVI and it would alter the latent space significantly less.
Since you have already all this code snippet ready, I suggest you try these options. I'm curious so please let us know of what you find!
[1] https://github.com/YosefLab/scVI/issues/688
[2] Section: "Harmonizing datasets with a different composition of cell types" of scANVI manuscript

Thanks @romain-lopez! New release should go live tomorrow, but the scanVI fix is already in master, so @krejciadam you can also install from source and you'll get the changes.

Hi all!
Thanks for your detailed replies and suggestions!
@galenxing
Sure! I know scGen of course and I've tried a slightly modified version of what you suggested a while ago on a homebrew vanilla VAE (working on scaled data). The results were not bad, both in latent space and reconstructed original space. Definitely better than anything I've managed with any unsupervised tool. I'm yet to try this with your implementation of VAE. The authors of scGen actually have an interesting followup paper, in which they use a VAE with MMD layer. https://arxiv.org/pdf/1910.01791.pdf  Haven't tried this on my data yet, but my feeling is the dataset as I described it here does not fit this concept either, because the meaning of label "other" in my case is not really a single population of cells.
@romain-lopez
I understand the point now. I wanted to leverage the possibility to leave my diverse sets of "other" cells unlabeled, effectively only adding the information about  which cells are control to an otherwise unsupervised scenario, but I see now this is not how it works.
About adding more labeled populations: In this case, the control cells are a cell line, so most likely the only reasonable splitting/clustering is by cell cycle phase. I have datasets though where I could add more labels to the non-control cells, like:
dataset1 with control cells + cells treated with X different drugs
dataset2 with control cells and cells treated with yet another set of drugs
where cells with each drug treatment are separately marked. So the only overlap between sets of labels in datsaet1 and datsaet2 would be "control", while the effects of different drug treatments might be both similar or very different from one another, possibly also similar to control (drug does nothing). I'll experiment with this scenario a bit!

Please feel free to reopen if you have any further questions or results!


fix: update to see v0.0.8

fix: update to see v0.0.8

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

npm package (@latest dist-tag)
GitHub release
v12.11.1

Your semantic-release bot :package::rocket:


icon images do not get letterSpacing

If I apply letterSpacing, the icon images don't get spaced apart any further than normal

Related: #203


 (Or at least most of them)

Special thanks to @nicolas-cherel for finding a lot of the problems here and getting me started on a fix.
Biggest change is in tests/local.rs, with a much more robust self-test. Is it overkill? Yeah. Does it work? Hell yeah.
Mainly fixes logic errors concerning boundaries, but also cleans up some API usage that was clunky before.

👍🏻

Uploaded to Crates as 0.2.2.


Deprecate Formatter & move ScanInterpreter to SPI

I thought this might be a good clean up refactor for 2.0.  I removed Formatters that were deprecated in 1.8 and moved ScanInterpreter to SPI.  I am not sure if the Formatters should go into SPI or not.

@keith-turner had a good idea for this but I can't remember what it was so I am closing this until I remember or he implements the idea.

@milleruntime I removed the 2.0.0 label based on your last comment. Am I correct that this work was never merged?

@milleruntime I removed the 2.0.0 label based on your last comment. Am I correct that this work was never merged?

Correct.  These ideas spawned this ticket and its PR https://github.com/apache/accumulo/issues/1138


any_cpu_to_cores function fails when cpu_str has something after "m"

Steps to reproduce

Deploy with
juju deploy postgresql-k8s --channel 14/stable --trust
into Azure Kubernetes Service.
Expected behavior
The function would detect that the string passed into int() can be parsed.
Actual behavior

The any_cpu_to_cores() function fails.
https://github.com/canonical/postgresql-k8s-operator/blob/main/src/utils.py#L70
because the cpu_str has something else than "m" at the end of the cpu_str. Therefore int() fails with
invalid literal for int() with base 10: '7820m'.
Versions

Operating system: Ubuntu 22.04

Juju CLI: 3.4.1-ubuntu-amd64

Juju agent:

Charm revision:

microk8s: N/A
Log output

Juju debug log:

2024-04-03T09:43:16.040Z [container-agent] 2024-04-03 09:43:16 ERROR juju-log certificates:16: Uncaught exception while in charm code:
2024-04-03T09:43:16.040Z [container-agent] Traceback (most recent call last):
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 1556, in <module>
2024-04-03T09:43:16.040Z [container-agent]     main(PostgresqlOperatorCharm, use_juju_for_storage=True)
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 436, in main
2024-04-03T09:43:16.040Z [container-agent]     _emit_charm_event(charm, dispatcher.event_name)
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 144, in _emit_charm_event
2024-04-03T09:43:16.040Z [container-agent]     event_to_emit.emit(*args, **kwargs)
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 351, in emit
2024-04-03T09:43:16.040Z [container-agent]     framework._emit(event)
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 853, in _emit
2024-04-03T09:43:16.040Z [container-agent]     self._reemit(event_path)
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 942, in _reemit
2024-04-03T09:43:16.040Z [container-agent]     custom_handler(event)
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/tls_certificates_interface/v2/tls_certificates.py", line 1821, in _on_relation_changed
2024-04-03T09:43:16.040Z [container-agent]     self.on.certificate_available.emit(
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 351, in emit
2024-04-03T09:43:16.040Z [container-agent]     framework._emit(event)
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 853, in _emit
2024-04-03T09:43:16.040Z [container-agent]     self._reemit(event_path)
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 942, in _reemit
2024-04-03T09:43:16.040Z [container-agent]     custom_handler(event)
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/lib/charms/postgresql_k8s/v0/postgresql_tls.py", line 141, in _on_certificate_available
2024-04-03T09:43:16.040Z [container-agent]     if not self.charm.push_tls_files_to_workload():
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 1299, in push_tls_files_to_workload
2024-04-03T09:43:16.040Z [container-agent]     return self.update_config()
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 1350, in update_config
2024-04-03T09:43:16.040Z [container-agent]     available_cpu_cores, available_memory = self.get_available_resources()
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 1527, in get_available_resources
2024-04-03T09:43:16.040Z [container-agent]     cpu_cores = self.get_node_cpu_cores()
2024-04-03T09:43:16.040Z [container-agent]   File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/./src/charm.py", line 1523, in get_node_cpu_cores
2024-04-03T09:43:16.040Z [container-agent]     return int(node.status.allocatable["cpu"])
2024-04-03T09:43:16.040Z [container-agent] ValueError: invalid literal for int() with base 10: '7820m'

Additional context

One possible cause is that somewhere it is expected that "m" is not part of the string that tells allocated CPU amount.
"cpu_str = 7820mm" ==>> cpu_str[:-1] ==>> 7820m

Hi, @lk-1984, can you try 14/edge? This should be fixed in rev 212

@dragomirp Oh yes! I thought that the 14/stable was latest and therefore I assumed that the main branch would matchi it.
So with 14/edge it works.


Hibernation: No more pause, hack ClusterOperators

This commit changes how we check the health of ClusterOperators when resuming from hibernation.
The problem is that we can't immediately tell by looking at a ClusterOperator whether it has been checked yet since the cluster was resumed. This is because the status conditions' lastTransitionTimes are only updated if/when the condition's status changes -- and it may not change if the CO is already healthy by the time it is inspected. Thus even if the CO's status conditions indicate it is healthy, we can't be sure that that state is not stale, from before we hibernated.
Previously, we had a hardcoded 2m wait after nodes became ready, on the assumption that this was enough time to ensure all COs had been checked.
With this commit, we get rid of that 2m wait time. Instead, we update the CO's Available condition to have status="Unknown". This forces its owning controller to update the status and the lastTransitionTime, allowing us to ascertain definitively that that has happened since we started resuming (i.e. the lastTransitionTime of the ClusterDeployment's Hibernating condition).
WIP: Just editing status on restart doesn't work: some operators do not pay attention to their CO CR, so they don't revert that status (unless their pods are restarted -- maybe?). Current incarnation of this commit is experimenting with hacking the status before hibernation as well as on resume. But we still have some timing issues to work out: In order to not hot loop the before-hibernation bit, we would only want to hack the COs whose lastTransitionTime is earlier than when we started hibernating (i.e. the Ready condition's lastTransitionTime). But that means we would have to transition that status before hacking operators, which means adding a new state to the flow. This commit is partway there, but doesn't have it right yet. (I'm becoming more and more concerned that the hibernation controller is too brittle to handle how this change is turning out -- we may just want to punt and try to work it into the ever-forthcoming PowerState controller.)
HIVE-2226

Continuation of #2032

This experiment didn't work.


repackaging

Coverage remained the same at 88.957% when pulling 239439ee13bf0fb6b22581f7e8e80b9e7ffa9db2 on mbocek:repackaging into c9cb74f1c0519a736479c12806ffbefb438254e1 on jbehave-support:master.


Add Azure CLI 2.0 script to generate service principal.

@wangtt03,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Please update the README files as well

Closing this pull request since it's so easy to create a service principal in v2.0 of the CLI. (It's just these three commands:
az login
az account set --subscription <Subscription ID>
az ad sp create-for-rbac

We also deprecated the original script in #31


[noissue] Update readme and logo image

@shoenseiwaso If you are ok can you review 3 other PRs as well?


Make the sliders work in the expense details page.

can i work on this issue? @nexi9

@priyanshu68 sure


Programmer interface for the Cameraman classes

Define the access policies and create the access methods.
Now too many things a public.

Added a method calles SetShot, still missing an option to decide wether to cut or smoothly animate

Now added a parameter to select the type of transition


Fix Cameroon prefix/length

As reported by user. Reference:
https://en.wikipedia.org/wiki/Telephone_numbers_in_Cameroon#Changes_2014_november_21

Looks good to me. 🚢


Fix json keyorder bug

Fix json keyorder bug #481

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Leonid Ganin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

This fix to be determine.
We have 2 copies about dkjson as follows:

platform/resources/dkjson.lua
modules/json/external/dkjson.lua

According to build files listed below, we should fix on former one:

platform/android/ndk/CMakeLists.txt
platform/emscripten/gmake/lua2cpp.make
platform/iphone/libcorona.xcodeproj/project.pbxproj
platform/mac/CoronaBuilder.xcodeproj/project.pbxproj
platform/mac/ratatouille.xcodeproj/project.pbxproj
platform/tvos/ratatouille.xcodeproj/project.pbxproj
platform/windows/Corona.Rtt.Library/Corona.Rtt.Library.Win32.vcxproj
platform/windows/CoronaBuilder/CoronaBuilder.vcxproj
subrepos/enterprise/build.sh

Thanks.


Loading Spinner

Please remove files added by WebStorm (.idea) and add .idea/ to .gitignore

Also change the file name from example.scss. The file should be named after the component itself

please add .idea/ to .gitignore file


Home page

[x] Fixes issue #13  : "Improve the home page

"
[x] Other checks

Reason for pull request:
"Why was this pull request created"
Description of changes or additions:
"Insert description of changes made in this pull request here"
Screenshots:
"Insert screenshots here if available"

##[error]Resource not accessible by integration
##[error]Docker run failed with exit code 1
I am getting these issues and hence not passing the checks .
Please suggest what to do .

@snehalkhandve There is some issue with this PR. You have also committed every files of the virtualenv which is not expected. I can see all the files of your venv. Can you please update your PR? Feel free to reach me out in case of any difficulties :)


Two sample codes in the tutorial are missing commas

[Enter feedback here]

These two sample codes cause errors because of missing commas. After adding a comma after the circle place, it works fine.
Hope to correct the sample code. Thanks.

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

ID: ac7d9e2d-b537-cf1f-95fb-4e216514f3b1
Version Independent ID: 4a86c93b-70d8-38e4-f62e-83c43a0158dd
Content: Excel add-in tutorial - Office Add-ins
Content Source: docs/tutorials/excel-tutorial.md
Product: excel
Technology: add-ins
GitHub Login: @o365devx
Microsoft Alias: o365devx

Hi @JHJ-MS,
Thanks for reaching out. Could you please show the errors you're getting in those two instances? Neither piece of code should need a comma where highlighted because it's the end of a list. I just tried out the Create a table snippet in Script Lab (which uses the same 2D array to create the table), and it works fine.

Also, potentially unrelated, but how old are those screenshots? We changed the tutorial to not use var with a commit back in February. If the old version of the page is still showing, that would be a huge problem. Please make sure you're fully refreshed the page (Ctrl-F5 in most browsers) and see if you're still seeing the older code that used var.
Thanks!

Thanks, @AlexJerabek. We found it is a warning caused by a prettier config. I'll close this issue. Besides, this is a screenshot in January.Thank you again!


Update sbt-updates to 0.5.0

Updates com.timushev.sbt:sbt-updates from 0.3.4 to 0.5.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.timushev.sbt", artifactId = "sbt-updates" } ]

labels: semver-minor

Codecov Report

Merging #306 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #306      +/-   ##
==========================================
- Coverage    80.5%   80.44%   -0.06%
==========================================
  Files         128      128
  Lines        3334     3334
  Branches      136      136
==========================================
- Hits         2684     2682       -2
- Misses        650      652       +2

Impacted Files
Coverage Δ

...rotomappings/SensoryEventStatusMappingHelper.scala
76.92% <0%> (-15.39%)
:arrow_down:

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 f5d3309...ad3f760. Read the comment docs.


Replacing Instruction w/ DME

Hey there,
Certain memory addresses and consecutive byte-sized addresses that all serve only one purpose in various games don't seem to create the desired effect.
For example, writing 0x3BE00001 to 0x80269F50 in Super Mario Sunshine is supposed to change which Alt. Nozzle Mario has on from the normal Hover Nozzle to the Rocket Nozzle. By writing to the respective memory addresses with DME, it doesn't change anything. However, if I use Dolphin's built-in memory editor and right-click the address to "Replace Instruction", it works every time.
Additionally, I have confirmed that my instance of DME is hooked and I have even read the values of the addresses after writing to them, and it appears as though they are in fact writing the correct values to the correct addresses, but still it does not appear to work unless I use the "Replace Instruction" feature mentioned above.
If I'm missing a key function that I'm supposed to use, do let me know what it is!
(PS: Am running ipython in Windows Powershell, DME imported and using the write_byte and read_byte functions there to test memory addresses. Also have a custom write_bytes function for the case of writing across multiple addresses. Thanks!)

If you're replacing actual instructions, you need to be careful with Dolphin's JIT and instruction cache!
Sadly, the only way I know of doing this is having the game itself call icbi, so I imagine you'll need to do some dol patching. This is what I do for the multiworld things in Randovania.

Gotcha! Are there functions that allow me to do this in DME, and if so, where can I read about them / could you provide an example?
Thanks so much for the hasty response! :)

No, DME handles just changing the game's memory in runtime.
Randovania itself has a big framework for patching a gamecube dol file, including patching a function so it can run code written via remotely via DME or a Nintendont fork.
While I plan to split of part of that into it's own repository, that's not where it is right now :)
Ah, if you do use Randovania's code, be mindful of the different license.

Understood!
Thanks so much for the help. Yes, I'll be sure to read the license and follow whatever guidelines are necessary.
I'm working on a program that has not been made open-source (as of yet anyways) which will be very similar to Crowd Control, but with a much bigger scope for customization, catalog, and options for Twitch Chat to play with in-game.
We've made an enormous amount of progress so far in Bizhawk and Dolphin. DME has been extraordinarily helpful in all of this!

So, there's actually

So, there's another solution to the issue I initially commented on, it's related to the JIT Cache refreshing. It doesn't happen automatically when memory is written through DME. Is there a command to do it?
Thanks!

That is precisely what I said in my first reply.

I see that, but that's through patching the game. Since Dolphin natively has an option to manually clear the cache while the game is running, I was wondering if there was an object to do it through a terminal. (Currently using py-DME as a library rather than in its application form, using ipython in powershell)

That's the only way I know.
Triggering a JIT cache clear involves some form of RPC with Dolphin, which there isn't afaik.


Missing options dict when calling writers prevents output from being written to file

Whenever I call mufidiwiwhi, the whole transcriptions happens and gets printed to the terminal, but at the very end, when it must be written to the files, it crashes with the following error:
Traceback (most recent call last):
  File "/home/thomas/miniconda3/bin/mufidiwiwhi", line 8, in <module>
    sys.exit(cli())
  File "/home/thomas/miniconda3/lib/python3.9/site-packages/mufidiwiwhi/transcribe.py", line 434, in cli
    writer(result, output_filename)
  File "/home/thomas/miniconda3/lib/python3.9/site-packages/mufidiwiwhi/utils.py", line 69, in write_all
    writer(result, file)
TypeError: __call__() missing 1 required positional argument: 'options'

Indeed, the writers provided by whisper require an options dict that also cannot just be empty (I tried passing an empty dict) because some of the concrete writers expect some specific options to be present in it.
This requirement has been added in this commit and the options dict is generated in transcribe.py from the parsed command line arguments.

In the meantime, I have saved in a separate the output of the transcription that was printed to the terminal and I’d like to find a way to convert it to srt without having to re-run the transcription, which took several hours. What suggestions would you have for this? Thanks!

Have you tried adding
options = whisper.DecodingOptions()

?
Regarding the transcription you ran, I have no suggestion yet.

Hi,
Same problem here and everything is lost after hours of work :-(
Did you found a way ?

I made it work adding the default dict {"highlight_words": False, "max_line_count": None, "max_line_width": None} as a third argument to writer here https://github.com/ad-aures/mufidiwiwhi/blob/main/mufidiwiwhi/transcribe.py#L434
I also had to change in utils.py: add options: dict to the signature of write_result and write_all. And in write_all, add options  as the last argument of writer

I also tried to to set "max_line_count": 2, "max_line_width": 32 to have a format  with correct podcasting 2.0 specifications https://github.com/Podcastindex-org/podcast-namespace/blob/main/transcripts/transcripts.md#properties but it did not change anything

I should probably clean that code. Will try to do that this week…

Hi, any update on this @benjaminbellamy? :blush:

This project is not dead, yet. 😉
I'm working on it now with the v3 models that were published last month by openai.
Stay tuned. 📻

Great to know, thanks a lot for your work on it, wishing you strength for this and a happy holiday season! :wink: :sparkles:

Hi @benjaminbellamy
Any news on this ? :-)

The error goes away for me with a different version of whisper, however the final output seems incomplete.
$ pip install openai-whisper==20230314


Add SteamParental support for ASF 2FA

This mostly depends on https://github.com/geel9/SteamAuth/issues/37. Personally I don't feel an urge to fork it just to add that functionality, so this issue is on hold until devs of SteamAuth add proper implementation. I'm posting it here only to not forget about it.

Done as a part of #252.


Prepare for next release

Coverage decreased (-0.04%) to 95.004% when pulling 30ca8b9fd37ad2b3a076648ced3fbd3c6ffbe9e0 on next_release into b40272c76438ce7ca58e4ecf7db0a3696fa76fe7 on master.


Problem importing Flask

Hey Guys,
I'm trying to install the SDK in a Raspberry Pi 3+ following the instructions here.
However, I'm getting this message:
Traceback (most recent call last):   File "AuthServer/AuthServer.py", line 16, in <module>     from flask import Flask, redirect, request ImportError: No module named flask
I tried to create a virtualenv flask manually in the folder, in build and in the AuthServer folder,
however, the problem persists. Although I'm a hobbyist programmer, I'm unfamiliar with python
so I can't quit track why this issue is happening trying to import the module.
Thanks

Hi,
looks like the flask installation failed. Had similar problems using the install-script.
Solved it running
sudo apt-get -y install python-pip python
sudo pip install --upgrade setuptools
sudo pip install flask commentjson requests

Thanks @khassel
That worked, I could finish the compile!
Apparently what I was missing was just the setuptools
(although it should be present in a normal Raspbian install).


How to enforce uniqueness on a Title field

Since the Title field is excluded from the generated schema, how can we make it to enforce uniqueness and update other attribute such as DisplayName?

Hi,
Thanks for using PnP. Could you please expand a little bit more about this requirement? Thanks.

Closed due no response on the requested information.


RTL css support.

Hi Kenwheeler,
Great Slider mate! Not really a massive issue but I couldn't see anything in your documentation regarding adding the below css in when using this slider for right to left supported carousels? Only mention this as I've been doing a lot of work on RTL and missed out this css a few times. Might be worth adding it in if you haven't already. P.S (I know its part of the current slick.css but the selector i'm using is further up the page on the html tag as html[dir="rtl"] and is changed from ltr to rtl depending on the language support.
Cheers!
[dir='rtl'] .slick-slide {
float: right;
}

PR?


Error "couldn't find 'n load the lib" starting a game

After installing cloud-retro in my own VM, everything seems to work fine, but when loading a game this message appears:
cloud-game-local | I0812 17:25:54.413757      10 nanoarch.go:425] error core load: assets/cores/nestopia_libretro.so, couldn't find 'n load the lib
From the user point of view, the browser shows the virtua console, list of games..everything seems to work. Once selected the game, appears the animation of the Gameboy, but the actual game won't launch.
These are the docker info pre-selecting and after-selecting the game:
cloud-game-local | I0812 17:35:05.318897       8 main.go:31] [coordinator] version:
cloud-game-local | I0812 17:35:05.318957       8 main.go:32] Coordinator configs {{ {assets/games [] [neogeo pgm] true false} {6601 /coordinator false false} {:8000 false {:443    }} {false }} {1 {false 320 240} {user}/.cr/save {{{assets/cores assets/cores} {true {buildbot https://buildbot.libretro.com/nightly zip} {github https://github.com/sergystepanov/libretro-spiegel/blob/main zip}} map[gba:{mgba_libretro  [gba gbc] 240 160 0 false false false false} mame:{fbneo_libretro  [zip] 240 160 0 false false false false} n64:{mupen64plus_next_libretro mupen64plus_next_libretro.cfg [n64 v64 z64] 320 240 0 true true false false} nes:{nestopia_libretro  [nes] 256 240 0 false false false false} pcsx:{pcsx_rearmed_libretro pcsx_rearmed_libretro.cfg [cue] 350 240 0 false false false false} snes:{snes9x_libretro  [smc sfc swc fig bs] 256 224 0 false false true false}]}}} dev {false [{stun:stun.l.google.com:19302  }] {0 0} }}
cloud-game-local | I0812 17:35:05.319084       8 game_library.go:152] [lib] scan... started
cloud-game-local | I0812 17:35:05.319141       8 game_library.go:273]
cloud-game-local | --------------------------------------------
cloud-game-local | --- The Library of ROMs                  ---
cloud-game-local | --------------------------------------------
cloud-game-local |     Super Mario Bros. 3 (USA) (Super Mario Bros. 3 (USA).nes)
cloud-game-local |     Super Mario Bros (Super Mario Bros.nes)
cloud-game-local | --------------------------------------------
cloud-game-local | --- ROMs: 002                   44.113µs ---
cloud-game-local | --------------------------------------------
cloud-game-local | I0812 17:35:05.319146       8 game_library.go:195] [lib] scan... completed
cloud-game-local | I0812 17:35:05.320703       8 server.go:67] [server] address was set to localhost:8000 (:8000)
cloud-game-local | I0812 17:35:05.320793       8 server.go:75] Starting http server on localhost:8000
cloud-game-local | I0812 17:35:05.334669       9 main.go:32] [worker] version:
cloud-game-local | I0812 17:35:05.334954       9 server.go:67] [server] address was set to localhost:9000 (:9000)
cloud-game-local | I0812 17:35:05.334965       9 handlers.go:209] Set storage: /root/.cr/save
cloud-game-local | I0812 17:35:05.335994       9 storage.go:26] Warn: Failed to create client: dialing: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
cloud-game-local | I0812 17:35:05.336204       9 server.go:75] Starting http server on localhost:9000
cloud-game-local | I0812 17:35:05.336698       8 handlers.go:57] Coordinator: A worker is connecting...
cloud-game-local | I0812 17:35:05.336921       8 worker.go:62] Worker ac52f891-116d-4fae-bad3-4a4026227385] Generated worker ID
cloud-game-local | I0812 17:35:05.336950       8 worker.go:58] Worker ac52f891-116d-4fae-bad3-4a4026227385] addr: <IP_ADDRESS> | zone:  | pub: false | ping: http://localhost:9000/echo
cloud-game-local | I0812 17:35:05.336929       9 handlers.go:65] [worker] connected to: localhost:8000
cloud-game-local | I0812 17:35:05.337293       9 internalhandlers.go:17] [worker] new id: ac52f891-116d-4fae-bad3-4a4026227385
Once the game is selected (in this case, the Super Mario Bros. 3 (USA) , but happens the same with Super Mario Bros
cloud-game-local | I0812 17:39:34.325032       8 handlers.go:131] Coordinator: A user is connecting...
cloud-game-local | I0812 17:39:34.325119       8 browser.go:33] Browser afe3a42b-919c-460b-a0b1-2a8b9e8b0ccb] Generated worker ID
cloud-game-local | I0812 17:39:34.325148       8 browser.go:29] Browser afe3a42b-919c-460b-a0b1-2a8b9e8b0ccb] Get Room  Zone  From URL /ws?room_id=&zone=
cloud-game-local | I0812 17:39:34.325159       8 browser.go:33] Browser afe3a42b-919c-460b-a0b1-2a8b9e8b0ccb] Send sync[http://localhost:9000/echo]http://localhost:9000/echo
cloud-game-local | I0812 17:39:35.545460       8 browser.go:33] Browser afe3a42b-919c-460b-a0b1-2a8b9e8b0ccb] Latency mapmap[0xc0001c88c0:9999]
cloud-game-local | I0812 17:39:35.591668       8 browser.go:29] Browser afe3a42b-919c-460b-a0b1-2a8b9e8b0ccb] Received init_webrtc request -> relay to worker: ac52f891-116d-4fae-bad3-4a4026227385
cloud-game-local | I0812 17:39:35.591835       9 internalhandlers.go:41] Received a request to createOffer from browser via coordinator
cloud-game-local | I0812 17:39:35.591867       9 webrtc.go:119] === StartClient ===
cloud-game-local | I0812 17:39:35.600113       9 webrtc.go:137] Add video track
cloud-game-local | I0812 17:39:35.600999       9 webrtc.go:230] Created Offer
cloud-game-local | I0812 17:39:35.601237       9 internalhandlers.go:60] Start peerconnection afe3a42b-919c-460b-a0b1-2a8b9e8b0ccb
cloud-game-local | I0812 17:39:35.601553       8 browser.go:33] Browser afe3a42b-919c-460b-a0b1-2a8b9e8b0ccb] Received SDP from worker -> sending back to browser
cloud-game-local | I0812 17:39:35.602163       9 webrtc.go:191] OnIceCandidate: candidate:3030040486 1 udp<PHONE_NUMBER> <IP_ADDRESS> 56508 typ host
cloud-game-local | I0812 17:39:35.602268       8 worker.go:62] Worker ac52f891-116d-4fae-bad3-4a4026227385] Received IceCandidate from worker -> relay to browser
cloud-game-local | I0812 17:39:35.602337       9 webrtc.go:191] OnIceCandidate: candidate:233762139 1 udp<PHONE_NUMBER> <IP_ADDRESS> 46266 typ host
cloud-game-local | I0812 17:39:35.602387       8 worker.go:62] Worker ac52f891-116d-4fae-bad3-4a4026227385] Received IceCandidate from worker -> relay to browser
cloud-game-local | I0812 17:39:35.702269       9 webrtc.go:191] OnIceCandidate: candidate:2378964833 1 udp<PHONE_NUMBER> <IP_ADDRESS> 49491 typ srflx raddr <IP_ADDRESS> rport 49491
cloud-game-local | I0812 17:39:35.702731       8 worker.go:62] Worker ac52f891-116d-4fae-bad3-4a4026227385] Received IceCandidate from worker -> relay to browser
cloud-game-local | I0812 17:39:35.703066       8 worker.go:62] Worker ac52f891-116d-4fae-bad3-4a4026227385] Received IceCandidate from worker -> relay to browser
cloud-game-local | I0812 17:39:35.780006       8 browser.go:33] Browser afe3a42b-919c-460b-a0b1-2a8b9e8b0ccb] Received browser answered SDP -> relay to worker
cloud-game-local | I0812 17:39:35.780202       9 internalhandlers.go:73] Received answer SDP from browser
cloud-game-local | I0812 17:39:35.780453       9 webrtc.go:274] Set Remote Description
cloud-game-local | I0812 17:39:35.780516       9 webrtc.go:175] ICE Connection State has changed: checking
cloud-game-local | I0812 17:39:35.811320       8 browser.go:33] Browser afe3a42b-919c-460b-a0b1-2a8b9e8b0ccb] Received IceCandidate from browser -> relay to worker
cloud-game-local | I0812 17:39:35.811942       9 internalhandlers.go:90] Received remote Ice Candidate from browser
cloud-game-local | I0812 17:39:35.811997       9 webrtc.go:285] Decoded Ice: candidate:427294303 1 udp<PHONE_NUMBER> 118c0e84-c7a2-46ce-9356-3584717304f9.local 59681 typ host generation 0 ufrag XOTX network-cost 999
cloud-game-local | I0812 17:39:35.812030       9 webrtc.go:293] Add Ice Candidate: candidate:427294303 1 udp<PHONE_NUMBER> 118c0e84-c7a2-46ce-9356-3584717304f9.local 59681 typ host generation 0 ufrag XOTX network-cost 999
cloud-game-local | I0812 17:39:35.853015       8 browser.go:33] Browser afe3a42b-919c-460b-a0b1-2a8b9e8b0ccb] Received IceCandidate from browser -> relay to worker
cloud-game-local | I0812 17:39:35.853586       9 internalhandlers.go:90] Received remote Ice Candidate from browser
cloud-game-local | I0812 17:39:35.853618       9 webrtc.go:285] Decoded Ice: candidate:842163049 1 udp<PHONE_NUMBER> <IP_ADDRESS> 59681 typ srflx raddr <IP_ADDRESS> rport 0 generation 0 ufrag XOTX network-cost 999
cloud-game-local | I0812 17:39:35.853647       9 webrtc.go:293] Add Ice Candidate: candidate:842163049 1 udp<PHONE_NUMBER> <IP_ADDRESS> 59681 typ srflx raddr <IP_ADDRESS> rport 0 generation 0 ufrag XOTX network-cost 999
cloud-game-local | I0812 17:39:36.491066       9 webrtc.go:175] ICE Connection State has changed: connected
cloud-game-local | I0812 17:39:36.491610       9 webrtc.go:179] ConnectionStateConnected
cloud-game-local | I0812 17:39:36.491626       9 webrtc.go:325] Start streaming
cloud-game-local | I0812 17:39:36.667583       9 webrtc.go:159] Data channel 'game-input'-'824634398748' open.
cloud-game-local | I0812 17:39:40.073048       8 browser.go:33] Browser afe3a42b-919c-460b-a0b1-2a8b9e8b0ccb] Received start request from a browser -> relay to worker
cloud-game-local | I0812 17:39:40.073687       9 internalhandlers.go:110] Received a start request from coordinator
cloud-game-local | I0812 17:39:40.073755       9 internalhandlers.go:245] Loading game: Super Mario Bros. 3 (USA)
cloud-game-local | I0812 17:39:40.073768       9 internalhandlers.go:251] Got Room from local    ID:
cloud-game-local | I0812 17:39:40.073783       9 room.go:126] New room:  2b59073ed762416d___Super Mario Bros. 3 (USA) { Super Mario Bros. 3 (USA) nes /usr/local/share/cloud-game/assets/games/Super Mario Bros. 3 (USA).nes}
cloud-game-local | I0812 17:39:40.073803       9 room.go:241] Updated player Index to:  0
cloud-game-local | I0812 17:39:40.073811       9 internalhandlers.go:266] Is PC in room false
cloud-game-local | I0812 17:39:40.073815       9 handlers.go:133] [worker] closing peer connection
cloud-game-local | I0812 17:39:40.073937       8 internalhandlers.go:35] Coordinator: Received registerRoom room 2b59073ed762416d___Super Mario Bros. 3 (USA) from worker ac52f891-116d-4fae-bad3-4a4026227385
cloud-game-local | I0812 17:39:40.073951       8 internalhandlers.go:37] Coordinator: Current room list is: map[2b59073ed762416d___Super Mario Bros. 3 (USA):ac52f891-116d-4fae-bad3-4a4026227385]
cloud-game-local | I0812 17:39:40.074345       9 room.go:252] Start WebRTC session
cloud-game-local | I0812 17:39:40.075263       9 room.go:152] Check 2b59073ed762416d___Super Mario Bros. 3 (USA) on online storage: false
cloud-game-local | I0812 17:39:40.075302       9 room.go:384] Check if game is on cloud storage
cloud-game-local | I0812 17:39:40.075330       9 room.go:154] Warn: Room 2b59073ed762416d___Super Mario Bros. 3 (USA) is not in online storage, error cloud storage was not initialized
cloud-game-local | I0812 17:39:40.075347       9 room.go:158] Room 2b59073ed762416d___Super Mario Bros. 3 (USA) started. GameName: Super Mario Bros. 3 (USA), WithGame: false
cloud-game-local | I0812 17:39:40.075525       9 nanoarch.go:425] error core load: assets/cores/nestopia_libretro.so, couldn't find 'n load the lib
cloud-game-local | I0812 17:39:40.079479       8 cws.go:183] [!] read: websocket: close 1006 (abnormal closure): unexpected EOF
cloud-game-local exited with code 1

@indie-cloud, it seems that it can't find emulator libs in the assets/cores folder. Could you check this folder if it has emulators in there? Normally, when you start a worker, it will download all the cores automatically in that folder.

Thanks a lot @sergystepanov
Now the emulation works!!!!
Thanks


Auto Pan to the selected Node

Hi,
I am trying to highlight a node based on some logic, I am able to select them through code, but when I am trying to drag the screen to see the node, it gets deselected. Is there a way to pan the view to the selected node. And is there a way to select a connection?

Thanks for the Translate function. But for selecting a connection , a click event will select only one connection. How would I go about selecting multiple. Like I am trying to show a path.

Simple add css class to elements


Added scoping information to Console logger

@rynowak @loudej @lodejard

:shipit: after fixing minor comments


Timestamp request expired - 50102

This just started today.  When using the Rest client Trade.PlaceOrderAsync() to place an order, I'm getting a response back of: Code = 50102, Message = Timestamp request expired, Data = null.
I was using v2.4.8.  I upgraded to the latest version 5.4.1217.  But I'm still receiving the same issue.  Not sure what happened.  I was able to place Orders yesterday without any issues.
I really have no clue how to fix this on my own.  Any help would be appreciated.
I did look at Issue #47 from the past which looks like someone was having the same issue, I Added the options in the constructor like they suggested, but that didn't help.

Hi. Could you please share your request and raw response as below
var api = new OkxRestApiClient(new OkxRestApiOptions
{
  RawResponse = true,
});

var trade = await api.Trading.PlaceOrderAsync(...)
// send me trade.Raw property value```

This is what came back:
{"msg":"Timestamp request expired","code":"50102"}

It is caused by your computer's clock. There is actually no difference between v2.4.8 and v5.4.1217 in terms of the timestamp used in authorization. However, in version 5.4.1219 I enabled a time synchronization algorithm and fixed this problem even if your computer's clock is wrong. You can check links below. Thank you for sharing this issue.
https://github.com/burakoner/OKX.Api/commit/597e35ffe64aec8ea83271225565b15d6995e7a3
https://github.com/burakoner/OKX.Api/releases/tag/5.4.1219
https://www.nuget.org/packages/OKX.Api/5.4.1219

That worked.  Thank you very much.


Fix codestyle

Is this done? I'm getting ready to publish for the RF folks and want to get PRs in before merging up to master


Sockeye Training stopped halfway

My training ran for 3 epochs with 4000 batches. Then a Value error occurred. The log file says this:
[2018-06-28:23:59:19:INFO:sockeye.training:start_decoder] Starting process: Decoder-1
[2018-06-28:23:59:23:ERROR:main:exception_hook] Uncaught exception
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.5/dist-packages/sockeye/train.py", line 880, in
main()
File "/usr/local/lib/python3.5/dist-packages/sockeye/train.py", line 764, in main
train(args)
File "/usr/local/lib/python3.5/dist-packages/sockeye/train.py", line 876, in train
existing_parameters=args.params)
File "/usr/local/lib/python3.5/dist-packages/sockeye/training.py", line 576, in fit
self._update_metrics(metric_train, metric_val, process_manager)
File "/usr/local/lib/python3.5/dist-packages/sockeye/training.py", line 747, in _update_metrics
self.tflogger.log_metrics(metrics=tf_metrics, checkpoint=self.state.checkpoint)
File "/usr/local/lib/python3.5/dist-packages/sockeye/training.py", line 1033, in log_metrics
self.sw.add_histogram(tag=name, values=value, bins=100, global_step=checkpoint)
File "/usr/local/lib/python3.5/dist-packages/mxboard/writer.py", line 402, in add_histogram
self._file_writer.add_summary(histogram_summary(tag, values, bins), global_step)
File "/usr/local/lib/python3.5/dist-packages/mxboard/summary.py", line 148, in histogram_summary
hist = _make_histogram(values.astype(float), bins)
File "/usr/local/lib/python3.5/dist-packages/mxboard/summary.py", line 156, in _make_histogram
counts, limits = np.histogram(values, bins=bins)
File "/usr/local/lib/python3.5/dist-packages/numpy/lib/function_base.py", line 670, in histogram
'range parameter must be finite.')
ValueError: range parameter must be finite.
How to fix this?

Hi! Thanks for reporting this issue.
This may be related to an effect that we have seem sometimes where the training diverges and numpy takes a high value as infinity. Could you please post the evolution of the perplexity for the last updates, as reported in the log file?

Hi,
These are the last lines of the log file before it showed error:
[2018-06-28:23:58:31:INFO:sockeye.training:call] Epoch[3] Batch [4000]	Speed: 35.22 samples/sec 1054.00 tokens/sec 0.20 updates/sec	perplexity=977.218884
[2018-06-28:23:58:32:INFO:root:save_params_to_file] Saved params to "/home/cse/neela/sockeye-nmt/wmt_model/params.00001"
[2018-06-28:23:58:32:INFO:sockeye.training:fit] Checkpoint [1]	Updates=4000 Epoch=3 Samples=673205 Time-cost=40459.567 Updates/sec=0.099
[2018-06-28:23:58:32:INFO:sockeye.training:fit] Checkpoint [1]	Train-perplexity=977.218884
[2018-06-28:23:59:19:INFO:sockeye.training:fit] Checkpoint [1]	Validation-perplexity=2131.587664
[2018-06-28:23:59:19:INFO:sockeye.training:start_decoder] Starting process: Decoder-1

Agreed that this error is likely to be the result of nan values in the parameters OR in the gradients which are also serialized through mxboard. I am not sure though if we want to check for nan values with every update just for a more informative error message; this could be costly.
If one runs into such a situation the training probably has probably diverged anyway and this set of (hyper-)parameters isn't working well.

 Could you provide a larger portion of the log in order to see whether training is diverging?
I agree that when you see a nan something then probably training diverged and it would also not help to print a better error message. In case we still wanted to do so, or avoid this issue in logging there's also np.nan_to_num np.isnan.