Update switchers.js

rename voodooraze as per http://www.shacknews.com/chatty?id=32656523#item_32656523

If only it had stuck.


Search History

Recent searches should be saved to Local Storage
The city names should be populated in a list below the search form
When a user clicks on a city name in the list, it should load up new current weather conditions and a five day forecast for that city

10 most recent searches are saved to local storage and the list is populated on the DOM.  The most recent search is at the top, closest to the form.  Duplicate searches result in the search being moved to the top of the list in both local storage and in the DOM.    Clicking on a recent search button will load the current conditions and 5-day forecast for that city.


Add evm:db:dump:local and evm:db:dump:remote tasks

Builds off of https://github.com/ManageIQ/manageiq-gems-pending/pull/351 , which added pg_dump functionality back to the PostgresAdmin lib, and creates rake tasks for running a database dump to either a local file, of NFS/SMB share.
Notable changes

Refactors EvmDatabaseOps#backup so that EvmDatabaseOps#dump can leverage almost all of the same code.
Carbon copies the evm:db:backup tasks into evm:db:dump tasks.
Adds option to --exclude-table-data from the dump for specific tables

Links

Part of https://bugzilla.redhat.com/show_bug.cgi?id=1535345
Required (already merged): https://github.com/ManageIQ/manageiq-gems-pending/pull/351

Steps for Testing/QA
Not sure the best way to test that these work, but we probably should run some tests to confirm everything is behaving as expected.  I will probably do some testing of this locally now that I have this up for review, and will report back with how I tested things for others to try as well.
Update:  Here is what I did to test:

Found a db to dump on my local machine

Ran in the terminal:
$ rake evm:db:dump:local -- --local-file tmp/vmdb_db_dump --dbname my_vmdb

Checked the log/evm.log to see that the commands run made sense:
$ tail log/evm.log
...
[----] I, [2018-05-25T17:17:16.749795 #46992:3ff54d03fa0c]  INFO -- : MIQ(PostgresAdmin.runcmd_with_logging) Running command... psql --no-password --dbname my_vmdb --command SELECT\ pg_database_size\(\'my_vmdb\'\)\;
[----] I, [2018-05-25T17:17:16.769418 #46992:3ff54d03fa0c]  INFO -- : MIQ(EvmDatabaseOps.run_db_opt_for_new_uri) [my_vmdb] with database size: [100 bytes], free space at [tmp/vmdb_db_dump]: [200 bytes]
[----] I, [2018-05-25T17:17:16.769763 #46992:3ff54d03fa0c]  INFO -- : MIQ(PostgresAdmin.runcmd_with_logging) Running command... pg_dump --no-password --format c --file tmp/vmdb_db_dump my_vmdb
[----] I, [2018-05-25T17:18:25.311775 #46992:3ff54d03fa0c]  INFO -- : MIQ(EvmDatabaseOps.dump) [my_vmdb] database has been dumped up to file: [tmp/vmdb_db_dump]

Ran in the terminal:
$ rake evm:db:dump:local --           \
    --local-file tmp/vmdb_db_dump_2   \
    --dbname my_vmdb                  \
    --exclude-table-data "metrics_*" "vim_performance_states" "event_streams"

Confirmed that the dump size was smaller and commands executed made sense:
$ ls -lhtmp/vmdb_db_dump*
-rw-r--r--  1 nicklamuro  staff   452M May 25 17:18 tmp/vmdb_db_dump
-rw-r--r--  1 nicklamuro  staff   331M May 25 18:35 tmp/vmdb_db_dump_2
$ tail log/evm.log
...
[----] I, [2018-05-25T18:34:16.749795 #46993:3ff54d03fa0c]  INFO -- : MIQ(PostgresAdmin.runcmd_with_logging) Running command... psql --no-password --dbname my_vmdb --command SELECT\ pg_database_size\(\'my_vmdb\'\)\;
[----] I, [2018-05-25T18:34:16.769418 #46993:3ff54d03fa0c]  INFO -- : MIQ(EvmDatabaseOps.run_db_opt_for_new_uri) [my_vmdb] with database size: [100 bytes], free space at [tmp/vmdb_db_dump]: [200 bytes]
[----] I, [2018-05-25T18:34:16.769763 #46993:3ff54d03fa0c]  INFO -- : MIQ(PostgresAdmin.runcmd_with_logging) Running command... pg_dump --no-password --format c --file tmp/vmdb_db_dump my_vmdb --exclude-table-data metrics_\* --exclude-table-data vim_performance_states --exclude-table-data event_streams
[----] I, [2018-05-25T18:35:25.311775 #46993:3ff54d03fa0c]  INFO -- : MIQ(EvmDatabaseOps.dump) [my_vmdb] database has been dumped up to file: [tmp/vmdb_db_dump]

@miq-bot assign @carbonin
@miq-bot add_labels enhancement, gaprindashvili/no

Those EmptyLinesAroundArguments cops are strange, is that because of how we're using private_class_method here? Feels like a bug ...


velero-policy.json has an extra space in front of every line causing parsing error

What steps did you take and what happened:
Following instructions to add AWS IAM policies to velero user, using
aws iam put-user-policy
--user-name velero
--policy-name velero
--policy-document file://velero-policy.json
What did you expect to happen:
Expected successful response given the instructions
The output of the following commands will help us better understand what's going on:
(Pasting long output into a GitHub gist or other pastebin is fine.)
"An error occurred (MalformedPolicyDocument) when calling the PutUserPolicy operation: The policy failed legacy parsing"
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
The velero-policy.json described in the v1.0.0 documentation has an extra space in front of every line, so AWS service fails to parse the json and the policy is not applied.
Environment:

Velero version (use velero version): v1.0.0-rc.1
Kubernetes version (use kubectl version): v1.14.1
Kubernetes installer & version:
Cloud provider or hardware configuration: VMware CloudPKS
OS (e.g. from /etc/os-release): MacOS 10.14.4

@ali5ter I think this is just how the markdown gets rendered -- looks like every code block has an extra space in front of each line. Will check with the designers to see if there's anything we can do here.

Looking into this, thanks @ali5ter for reporting this bug.


Why model always gives grater than 90% accuracy if it predicts wrong class?

Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.
Thank you!

[ ] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps

[-] If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.

[ ] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

[ ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

While testing my Keras model on test images, the model predicts wrong class but with the probability greater than 90%. Can anyone tell me what could be the reason for that?

Your question is on ML, not Keras.
This issue isn't related to a bug/enhancement/feature request or other accepted types of issue.
To ask questions, please see the following resources :

https://keras.io/
https://keras.io/#support
https://gitter.im/Keras-io/Lobby

Thanks!
If you think I made a mistake, please re-open this issue.


Production releases contain dev javascript bundles

Steps to reproduce the behavior
Build a production version of the react-native application, and output the value of __DEV__
Expected behavior
The value of __DEV__ is set to false, and all dev tools are removed - i.e. prop type warnings etc.
Actual behavior
The value of __DEV__ is set to true, even though it is a production build.
Reason
The current dynamic case statement has syntax issues:
Showing All Issues
../node_modules/react-native-schemes-manager/lib/react-native-xcode.sh: eval: line 88: syntax error near unexpected token `)'
../node_modules/react-native-schemes-manager/lib/react-native-xcode.sh: eval: line 88: `  )'

Subsequently the status code is ignored, meaning $DEV is not set.
When $DEV is not set, the default bundling mechanism for react-native is true.
Therefore when using this plugin and requesting a production build, we are still given the dev build.
I'll put a PR up for this

Well spotted, thank you!

This was resolved in #12, and released in v1.0.0-beta.12.


addedimageatcorrectplace

Closes
Closes #1556
Description
i have made the image in chapter at correct place
Screenshots

Note to reviewers

Checklist:

[x] I have linked the PR to the correct issue.
[x] I have read the Contribution Guidelines
[x] I have built and tested the changes, and they do not break or show any errors.

can you please review my pr @Vaishnavi-Patil2211

can you please review my pr @Divesh2003

can you please review my pr @Divesh2003

can you please review my pr @Divesh2003


OpenAI Audio Transcription and Translation routes support

Description: (optional)

Add support for transcriptions and translations routes

Related Issues: (optional)

#488

TODO

[ ] Refactor the code

Refactoring to do

[ ] Think of an alternative to hardcoding MULTIPART_FORM_DATA_ROUTES (try to check request body type)
[ ] Theres two places at which the MULTIPART_FORM_DATA_ROUTES check is applied, make it only one
[ ] Why are we setting content-type as multipart/formdata and removing it? let the headers be auto inferred

changes now in https://github.com/Portkey-AI/gateway/pull/538


Strange type inference for defaultProps with union types

TypeScript Version:  3.1.0-dev.20180828

Search Terms: defaultProps, React, union defaultProps
Code
interface MyComponentProps {
  color: "red" | "blue"
}

const MyComponent: React.SFC<MyComponentProps> = ({ color }) =>
Hello!

MyComponent.defaultProps = {
  color: "red"
}

Expected behavior:
No compiler error on the MyComponent.defaultProps line.
Actual behavior:
Compiler error on the line, with the error being mitigated when asserting color: "red" as "red". This doesn't seem to make any sense.
Reproduction:
Here are screenshots from this implementation causing the error.

Playground Link: I'm not sure I can find a playground that uses this version?
Related Issues: None that I know of.

@weswigham can I just say — you, @RyanCavanaugh and the rest of the team are so responsive and are able to fix things so quickly! Thanks for all of your great work in providing us with an incredible, stable compiler.


Problem of the default key binding

The default shortcut keys made me waste half an hour, looking for why Ctrl+R cannot call Open Recent File.
(Ctrl+R) was pressed. Waiting for second key of chord.

It turns out that the murderer is these shortcut keys:

Alright, I notice the "Keyboard Shortcuts" section in npm extension introduction.

Keyboard Shortcuts
The extension defines a chording keyboard shortcut for the R key. As a consequence an existing keybinding for R is not executed immediately. If this is not desired, then please bind another key for these commands, see the customization documentation.

Although I certainly wouldn't have noticed this message if I didn't find the problem (put it at the beginning if you can)
All in all, I'm sorry for opening this issue without much thought.

But I still want the developers to notice this:
Put the "Keyboard Shortcuts" at the beginning if you can
please.
If no one responds, I'll close this issue in a day.


[MINOR][SQL] Fix the @since tag when backporting SPARK-18555 from 2.2 branch into 2.1 branch

What changes were proposed in this pull request?
Fix the @since tag when backporting critical bugs (SPARK-18555) from 2.2 branch into 2.1 branch.
How was this patch tested?
N/A
Please review http://spark.apache.org/contributing.html before opening a pull request.

Test build #75679 has finished for PR 17600 at commit 61e2497.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/75679/
Test PASSed.

Merged into mater.

Could you close it please?


Add empty CDK setup

Notes
Add CDK and empty CDK stack as part of #83
Testing
npm run build to ensure files are generated correctly
cdk synth to test CFT generation

Man you really stick to that Amazon CR style as if this is something serious

To be fair, I like adding all the details. We also don't have my old teams template for PRs so I don't remember what information is relevant.


Support Casbin as the authorization backend

Hi, Casbin is an authorization library that supports models like ACL, RBAC, ABAC. It is also a macaron middlware.
I'd like to make the permission management of gogs simpler with Casbin. For example, I think the routing part of gogs can be improved with Casbin. So the reqToken, reqBasicAuth, reqAdmin, reqRepoWriter can be replaced with Casbin policy rules.
The merit of doing this is the routing permissions are dynamic now, so they can be easily changed even at run-time. And it can be simplified too. Here's an example for Grafana, another user application for Macaron.
https://github.com/casbin/grafana/commit/87c15591e7fdd189b4adc5a8c1af43e5b36a6c33
Another permission part is access.go. They are more dynamic than the routing permissions. It can use Casbin as access control too.
What do you think about it? Thanks.

Some of logic behind permission management is in sql-queries (e.g. filtering out repositories, from list of repositories in repo.go) While it would be possible to move this logic out and make it more readable, it would either change performance characteristics of gogs or result in even more complex sql queries and logic (I tried, when I did changes for ldap. I ended up pulling list of all repositories in memory for filtering)
For protecting other resources, I'm not entirely sure, if this actually makes code more readable. You would have overhead of learning semantics of casbin, when developing gogs.
Also, I see that developers of grafana, had similar thoughts: https://github.com/grafana/grafana/issues/8584

Any update?


fix nesting of pod data under kubernetes in system info

fixes elastic/apm-agent-python#401

The finding part has kindly been provided by @fr0der1c :)


Exists any get or set method?

Hi,
how can i set or get a single config value e.g. shutterspeed, iso...?
Thank you providing us this wrapper.
Best regards,
Nic

Hi @Nic2012,
I think, the parameters can be changed with CameraWidgets class.
https://github.com/TypedProject/ts-gphoto2-driver/blob/master/src/components/CameraWidgets.ts
Honestly, I don't know how it works. But if I look the java version of gphoto2, the configuration should be changed with this peace of code:
const camera = new Camera();
try {
  console.log('[GPDRIVER] Camera init');
  camera.initialize();

  const cfg = new CameraWidgets(camera);

   try {
        cfg.setValue("/actions/autofocusdrive", true);
        cfg.apply();
   } finally {
      cfg.closeQuietly();
   }

} catch (er) {
  console.error(er.message);
} finally {
  camera.closeQuietly();
}

I thinks a list of actions can be retrieved somewhere :)
Tell if you have any question !
See you
Romain

Thanks Romain for the answer,
because I havent installed typescript on my Raspbian Stretch, I have tried to run one of the examples but I got:
pi@cc:~/node_modules/@typedproject/gphoto2-driver/examples $ node camera.js
module.js:538
    throw err;
    ^
Error: Cannot find module '../src'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/pi/node_modules/@typedproject/gphoto2-driver/examples/camera.js:3:38)

But there is no problem with other node modules. Do y have any idea?
Best regards,
Nic

Ok normal, the src directory isn't embed in the module package (only lib). Examples work if you checkout the project from git ;) or if you replace ../src by ../lib or@typedproject/gphoto2-driver.
See you,
Romain

Still doesnt work, sorry:
pi@cc:~/node_modules/@typedproject/gphoto2-driver/examples $ node camera-info.js
module.js:538
    throw err;
    ^

Error: Cannot find module '../lib'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/pi/node_modules/@typedproject/gphoto2-driver/examples/camera-info.js:3:38)

pi@cc:~/node_modules/@typedproject/gphoto2-driver/examples $ node camera-info.js
module.js:538
    throw err;
    ^

Error: Cannot find module '@typedproject/gphoto2-driver'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/pi/node_modules/@typedproject/gphoto2-driver/examples/camera-info.js:3:38)

Is there any action needed before, is it depending on which folder level I run the script?
BTW your package isnt accessible at npm after y last update 3 hours before:

Ok, the build process isn't done. I'll fix that.

it's fixed :) v1.0.3

Upgraded from npm minutes before.
But cannot really follow y, do I have to run npm build first? If yes where, but I tried:
pi@cc:~/node_modules/@typedproject/gphoto2-driver $ npm run build

><EMAIL_ADDRESS>build /home/pi/node_modules/@typedproject/gphoto2-driver
> tsc --project tsconfig.compile.json

sh: 1: tsc: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>build: `tsc --project tsconfig.compile.json`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

pi@cc:~/node_modules/@typedproject/gphoto2-driver $ node examples/camera-info.js
module.js:538
    throw err;
    ^

Error: Cannot find module '../src'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/pi/node_modules/@typedproject/gphoto2-driver/examples/camera-info.js:3:38)
    at Module._compile (module.js:635:30)

I have no typescript modules installed, is that really necessary too?

Hi @Nic2012,
Isn't necessary. I haven't checked the package deployed on npm and his dependencies. Now the package works fine.
Just before install the latest module remove your node_modules then run npm install or yarn install.
See you,
Romain

Ok, I can run a script referenced the driver, but the example directory is gone after installing v1.0.6:
pi@cc:~/node_modules/@typedproject/gphoto2-driver $ ls
lib  LICENSE  node_modules  package.json  README.md  src  yarn.lock

I will check later y suggested setter method on CameraWidgets.

Yep I removed the examples in node_modules. Examples shouldn't packaged in npm ;).
You can retrieve the same examples here https://github.com/TypedProject/ts-gphoto2-driver/tree/master/examples

Hey Romain,
setValue or getValue methods works fine with a Nikon camera :) Its faster than using original gphoto2 cli. Shortly after setValue its possible to call getValue and returning the new value asap. So I am wondering to call cfg.apply() afterwards. Do y think its really necessary?
What method do  I have to call to get same output like from the gphoto2 cli:
gphoto2 --get-config=iso
Label: ISO Speed
Type: RADIO
Current: 250
Choice: 0 50
Choice: 1 60
...

And finally what would be the aquivalent to gohoto2 --list-all-config?
I found in one example an exception:
node camera.js
Camera => Camera {
  gpMethodType: 'gp_camera',
  buffer: <Buffer@0x30217b0 70 57 02 03>,
  initialized: true,
  closed: false }

/home/pi/node_modules/@typedproject/gphoto2-driver/src/driver/utils/GPUtils.ts:15
    throw new Error(`${method} returned ${returnValue}: ${errorStr}`);
          ^
Error: gp_file_save returned -1: Unspecified error
    at Object.checkCode (/home/pi/node_modules/@typedproject/gphoto2-driver/src/driver/utils/GPUtils.ts:15:11)
    at CameraFile.save (/home/pi/node_modules/@typedproject/gphoto2-driver/src/components/CameraFile.ts:20:12)
    at Object.<anonymous> (/home/pi/_gp/camera.js:18:16)
    at Module._compile (module.js:635:30)
...

Thank y for y support and this great framework.
Best regards,
Nic

Hi @Nic2012

Shortly after setValue its possible to call getValue and returning the new value asap.
I think it's possible yes :). I'll work on ASAP.

And finally what would be the equivalent to gphoto2 --list-all-config?
I think Camera.getSummary(), Camera.getManual() or Camera.getAbout() give you some info. Otherwise, I can look in the source code of gphoto2 what is the function called from libphoto
when --list-all-config is used.

I saw this error, and generally the camera is completely blocked for few minutes after that. I don't how I can reproduce the bug and fix that. I thinks it come from N-API or from a bad operation.

See you,
Romain

Hum for config list. Maybe => CameraWidgets.getNames() return a list a of widgets name (configuration list).

Hi Romain,
yes, CameraWidgets.getNames() returns all existing keys but without values.
Maybe y could add a "toJson()" method returning a complete cameraWidget by key name formatting like
{
"shutterspeed2": {
            "label": "Shutter Speed 2",
            "type": "choice",
            "value": "1/500",
            "choices": [
              "1/8000",
             ...
              "30",
              "x 200",
              "Bulb"
            ]
          },
}

or much better ;) the complete treeview over sections > actions > props
{
  "main": {
    "type": "section",
    "label": "Camera and Driver Configuration",
    "children": {
      "actions": {
        "type": "section",
        "label": "Camera Actions",
        "children": {
          "autofocusdrive": {
            "label": "Drive Nikon DSLR Autofocus",
            "type": "toggle",
            "value": 0
          },

Is there any method in API to get the section and then to iterate through it?
Whenever its possible please returning results as json it makes it easier to process it.
Thank y and best regards,
Nic

Hello @Nic2012
Great news, v2.0.0 add method to generate configuration as JSON ;)
I thinks and I hope you'll be happy :D
See you,
Romain

haha :), I am already happy from the beginning of this new node wrapper ;)
only 2 suggestions:

in src/components/Widget.ts add readonly to ToJSON(), by this flag we are able to enable or disable a property e.g. on frontend
I would not show range, choices or info in toJSON() if they are null, undefined or empty; my Nikon shows in every widget an empty info field and has only few ranges

Best regards,
Nic

I forgot readonly ^^
Ok, I missed that because JSON.stringify remove automatically range and choices when the fields are undefined.

I'll fix that ASAP ;)

If you want help on the code PR are welcome. I can give you access to this repo ;). Tell me if you want to become a contributor.

Sorry, and 1 wish :)
I found storage-info only in this big block of the getSummary() method, could y integrate a function in cameraWidget to resolve it like in gphoto-cli:
 gphoto2 --storage-info
[Storage 0]
label=NIKON D70
basedir=/store_00010001
access=2 Read-only with delete
type=4 Removable RAM
fstype=4 Camera layout (DCIM)
totalcapacity=7822432 KB
free=7452704 KB
freeimages=697

It returns an array with an entry for each memory card.

I

I have mentioned y work at https://github.com/gphoto/libgphoto2 that Markus Meissner will maybe update the recommended bindings on his side.

Thanks @Nic2012 :D

BTW I would change in readme
Some example are available in the examples directory.
into
Some example are available in the examples directory, when you have cloned or downloaded the full project from github.
Otherwise people could confused when they cannot find it after npm install.

I sent you an invitation to this repo ;).

"thank y" ;)

I cannot git clone as mentioned in y guidelines (after replaced username)
git clone https://github.com/YOUR_USERNAME/ts-express-decorators.git
...
remote: Repository not found.
fatal: repository 'https://github.com/....-decorators.git/' not found

yes because, it's the wrong repository url XD.
git checkout https://github.com/TypedProject/ts-gphoto2-driver.git

doesnt work on my PiZero:
git checkout https://github.com/TypedProject/ts-gphoto2-driver.git
fatal: Not a git repository (or any of the parent directories): .git

git clone https://github.com/TypedProject/ts-gphoto2-driver.git ?

ok, works. Do I have then git checkout?

git checkout -b master, maybe ^^

I have warned y, first time doing this ;)
cd into cloned folder? or rightaway "git checkout -b master"

My bad too. I use Webstorm and his UI to checkout or clone project.
GitKraken is very good to manage your git project with a UI ;)
Normally you have cloned the repo in the current directory.  By default you are on master branch, but you can run git checkout -b master to be sure :)

So far I have git on commandline directly on PIZero (Stretch headless) could be fine for the mom. When I have changed e.g. the readme from project how can I commit it to server? or better first by PR?

The right process is:

create a new branch : fix/update_readme
commit your change with the right message: fix: Update readme information
Create PR on github
Then I valid the PR and I merge it ;)

See you
Romain

Before y comment I (hopefully) managed it, please check.


Gestures don't work in Android modal

I have a modal in my app, I would like to make gestures enabled on iOS. But it seem's it's disabled somehow. Can we enable this, because for a modal it's more common to have gesture control even on Android.

Closing in favour of https://github.com/react-community/react-navigation/issues/902#issuecomment-297112020


UI Grid Placement Styles should hold the calculated values during runtime.

What problem does this solve or what need does it fill?
The Getter functions on UI Grid Styles is effectively useless for any form of reactive behaviors as it only gives the set value rather than what was computed the previous frame.
What solution would you like?
Getter functions on UI Grid styles, such as the grid_placement styles, should return the computed values, not the values set by the setter/at spawn.
What alternative(s) have you considered?
An Alternative getter function would also work. Perhaps get_recent or get_state

Computed values will be non-trivial to get here, since they can depend on the context. I agree that we should expose these though!

In general, I'd like to be able to get all computed/assumed values for styles during runtime in the future but I figured a more focused area like grid would be good testing ground for difficulty in implementation first.

After digging through the UI code i think this might have to be implemented on taffy's end, i dont see anywhere we can save the data on bevy side, but perhaps im missing something?

Moving issue to taffy repo.


Why are three files generated for flutter build apk?

@Luffys6
This issue doesn't seem to describe a bug or a feature request, but more of a question. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Webpack issue

I've built a simple react web app with this starter-kit. The prototype is completed and now I am going to deploy it to AWS and tried to build this project and now I have unexpected error while building.

My package.json file
{
"name": "rnsk",
"homepage": "http://react-boilerplate.mcnam.ee/",
"version": "0.1.0",
"private": true,
"devDependencies": {
"autoprefixer": "^8.3.0",
"autoprefixer-loader": "^3.2.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
"babel-plugin-react-transform": "^3.0.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"css-loader": "^0.28.11",
"gulp": "^3.9.1",
"jest-expo": "^26.0.0",
"json-loader": "^0.5.7",
"node-sass": "^4.8.3",
"react-native-scripts": "1.13.2",
"react-test-renderer": "16.3.2",
"react-transform-catch-errors": "^1.0.2",
"react-transform-hmr": "^1.0.4",
"redbox-react": "^1.5.0",
"redux": "^4.0.0",
"redux-logger": "^3.0.6",
"sass-loader": "^7.0.1",
"style-loader": "^0.21.0",
"webpack": "^3.11.0",
"webpack-dev-server": "^2.11.2",
"webpack-hot-middleware": "^2.22.1"
},
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
"scripts": {
"start": "npm run debug && react-native-scripts start",
"eject": "react-native-scripts eject",
"android": "react-native-scripts android",
"ios": "react-native-scripts ios",
"test": "node node_modules/jest/bin/jest.js --watch",
"web": "webpack-dev-server --content-base build/ --config webpack/web.dev.config.js --port 3001 --inline --hot --colors --historyApiFallback",
"web-bundle": "webpack --config webpack/web.prod.config.js --progress --colors",
"clear-cache": "gulp clear-cache",
"debug": "open 'rndebugger://set-debugger-loc?host=localhost&port=19001'"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@expo/vector-icons": "^6.3.1",
"axios": "^0.18.0",
"babel": "^6.23.0",
"babel-eslint": "^8.2.3",
"babel-polyfill": "^6.26.0",
"bootstrap": "^4.1.0",
"browser-locale": "^1.0.3",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"expo": "^26.0.0",
"morgan": "^1.9.0",
"native-base": "^2.4.2",
"object-assign": "^4.1.1",
"prop-types": "^15.6.1",
"query-string": "^6.1.0",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-icons": "^2.2.7",
"react-native": "^0.54.2",
"react-native-router-flux": "4.0.0-beta.28",
"react-redux": "^5.0.7",
"react-router-dom": "^4.2.2",
"reactstrap": "^5.0.0",
"redux": "^4.0.0",
"redux-persist": "^5.9.1",
"redux-thunk": "^2.2.0",
"superagent": "^3.8.2"
}
}

I have fixed this issue after upgrading webpack to version 4


Fixed references to make in CONTRIBUTING.rst.

Checklist

[x] I have read contributing guidelines
[x] I'm sure that I did not unrelated changes in this pull request
[n/a] I have created at least one test case for the changes I have made
[x] I have added myself to the CONTRIBUTORS.rst

The Makefile was removed in v5.0.0 and CONTRIBUTING.rst has outdated references to make test and make type-check,

@ngnpope Thank you!


OCI REST APIs  base URL is not configurable.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
--> The problem is that the base URL for OCI REST APIs is standard and there is no way to override it in case you need to use another URL.
Describe the solution you'd like
A clear and concise description of what you want to happen.
-->If the URL could be part of the the config file it will be fine.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hey @manchr3 , Sorry for the delay in the response!
Based on the context provided, I believe this issue can be addressed by a way to override the base URL for OCI REST APIs. This would involve adding a configuration parameter to allow the use of custom endpoints.
If anyone is interested in contributing, we always welcome community support and contributions to the plugin! For more details on how to get started with development, please refer to our Table and Column Standards and Table Documentation Standards.  If you have any questions about the development process otherwise, please let us know!


Error in release 0.13.3 undefined: archiver.MatchingFormat

Hello,
There are a missing variable in httpclient :
# github.com/jfrog/jfrog-client-go/httpclient
$GOPATH/pkg/mod/github.com/jfrog/jfrog-client-go@v0.13.3/httpclient/client.go:311:10: undefined: archiver.MatchingFormat
$GOPATH/pkg/mod/github.com/jfrog/jfrog-client-go@v0.13.3/httpclient/client.go:386:12: arch.Read undefined (type archiver.Archiver has no field or method Read)
$GOPATH/pkg/mod/github.com/jfrog/jfrog-client-go@v0.13.3/httpclient/client.go:400:20: invalid method expression archiver.Zip.Open (needs pointer receiver: (*archiver.Zip).Open)
$GOPATH/pkg/mod/github.com/jfrog/jfrog-client-go@v0.13.3/httpclient/client.go:623:10: undefined: archiver.MatchingFormat

Thanks in advance for the fix.

@nabbar,
Thanks for reporting this issue!
We're not seeing this issue on our side - JFrog CLI uses v0.13.3 of jfrog-client-go and is being built without errors.
Here's what may have happened - your go application (which uses jfrog-client-go) brings a different version of github.com/mholt/archiver. This version introduces different APIs than used by jfrog-client-go. This causes the build errors.
Can you see if this is indeed the case?
If so, I believe that the right approach would be for everybody (all apps involved) to use the latest release. You can test this ad try upgrading the used versions.
Looking forward to your feedback.


[go-rancher] [client] let's encrypt support

Rancher Version:1.0.0
Docker Version:1.10.3
OS: rancher-os v0.4.4
Steps to Reproduce:
I'm using drone as my CI backbone,to deploy and communicate with in rancher-server drone use rancher client as a library. I hosted my rancher-server under a domaine that use Let's encrypt as Certifiicate Authority .
Results:
when I try to deploy using drone this message shows up
"Failed to create rancher client: Get https://domaine.com: x509: certificate signed by unknown authority"
Expected:
well the expected result is that the process does not stop in the SSL verification of the domaine.
Is there any chance for you to add support let's encrypt. or any work-around that you can suggest like skipping ssl verification ?
thank you.

@janeczku added let's encrypt as a community catalog entry.
https://github.com/rancher/rancher/issues/2734

My problem is not that i can't generate a let's encrypte certificate for rancher it's already done with a nginx reverse proxy. what I'm strugling with is that rancher client block when I give him an https domaine to communicate with.
returning this message :


Why define object inside factory as const?

With the const statement you can add properties to object because of how const is implemented. The object is not immutable so you can do that but it seems a bit illogical for me to expand an object that is declared as constant. Wouldn't a simple var/let be better here?
Example code take from this starter:
let UserFactory = function () {
  const user = {};

  let getUser = () => {
    return user;
  };

  let isSignedIn = () => {
    return user.isSignedIn;
  };

  return { getUser, isSignedIn };
};

export default UserFactory;

Could I get a response to my question? That would be great :)

@Emnalyeriar I'll try to explain.
tl;dr You should use const by default. let should be used if value of a variable could be changed, for example for index in for loop.

With the const statement you can add properties to object because of how const is implemented.

const restricts changes of variable value. In case of objects, value will be reference to object, not object itself. So by making variable const we are just protecting ourselves from accident reference changing.

The object is not immutable

variable is. That's the point.
p.s. I prefer this code:
export default function userFactory() {
    const user = {};

    return {
         getUser() {
              return user;
         }

         isSignedIn() {
              return user.isSignedIn;
         }
    };
}

This makes sense, thank you for this explanation :)


Upgrade to support ES6

Rework indexes to use the latest es6.x

This is already all done in 1.0

hello @awick
didn't know. Please can you tell me when 1.0.0 will be released?

not sure.  probably a few more weeks.  try it out and join the slack workspace if you can.


[Pg] run AWS RDS Data API execute inside transaction when transaction enabled

I believe transactions in the RDS Data API are broken.
For more details see #1171.

@AndriiSherman have rebased this PR, please let me know if you need anything else.

OK, this might still not work as expected. I'm reading back a change I've update (SQL update), and the update isn't visible. So looks like selects also do not happen in a transaction??

Thanks for your work on this one @berenddeboer . Is there anything I can do to help @AndriiSherman ? Having transactions working is a priority for my team. Thank you.

@berenddeboer is this PR still valid? I'm thinking of forking the repo and creating a release with this PR. I really need transactions to work. Thanks for the help!

@NachoVazquez I think it is still valid, although we are moving away from the RDS Data API as support for this in drizzle is second class, and too much postgresql functionality is not exposed via the RDS Data API. And obviously we hope to achieve better performance too.

Thanks @berenddeboer ! Based on that decision what would be the recommended way to use drizzle with Aurora from a AWS Lambda function?

Would Drizzle work better with an RDS Proxy?

@NachoVazquez yes, use drizzle directly with RDS/Aurora or through a proxy if you have a lot of connections per second.

Thanks @berenddeboer !

Just lost 5 hours to this bug :( can this PR be merged?

@kieranm It got another approval yesterday, so it might be close to being merged.
For now, you can visit the related issue and see the current workarounds

I opened a more complete PR here https://github.com/drizzle-team/drizzle-orm/pull/1939 - addressing the nested transaction issue (https://github.com/drizzle-team/drizzle-orm/issues/1171) and fixing the test suite

Anyone know why running this piece of code:
await Promise.all([
          ...(newProducts.length
            ? _.chunk(newProducts, 500).map((productsChunk) => tx.insert(products).values(productsChunk).execute())
            : []),
          productIdsToDelete.length && tx.delete(products).where(inArray(products.id, productIdsToDelete)).execute(),
          ...Object.entries(productUpdates).map(([catalogProductId, updatePayload]) =>
            tx
              .update(products)
              .set(updatePayload)
              .where(
                and(
                  eq(products.catalogProductId, catalogProductId as ProductCatalogId),
                  eq(products.productSetId, existingProductSet.id)
                )
              )
              .execute()
          )
        ]);

Inside a transaction fails with
error: DatabaseErrorException: Transaction is still running a query

Turns out my issue was with aws-data-api:
https://github.com/aws/aws-sdk-js/issues/4615


Rename models

Issues:
https://github.com/azure/azure-sdk-for-java/issues/11537
https://github.com/azure/azure-sdk-for-java/issues/11266

/azp run java - search - tests

/azp run java - search - ci


undefined method `channel' for #RSS::Atom::Feed:0x0000000886e310

When trying to pull information from RSS feeds, I receive the error "ERROR: undefined method `channel' for #RSS::Atom::Feed:0x0000000886e310" in my sidekiq log and it appears that I'm never getting any input from RSS feeds.  Any thoughts on why this would be?
OK, since posting this I believe I've figured out the issue.  I was trying to use a Google Alert as my RSS feed and they do not contain a "channel" tag.  Would it be possible to add the ability to support Google Alert RSS Feeds?

Hi @jwilczek,
Apparently google alerts uses atom feeds which are formatted a little differently. I just pushed up a commit to master which should work for either rss/atom feed. Try it out and let me know if you have any issues.

Thank you!  I’ll check it out and let you know.
Josh
From: Andy Hoernecke<EMAIL_ADDRESS>Sent: Wednesday, May 06, 2015 1:20 PM
To: Netflix/Scumblr
Cc: jwilczek
Subject: Re: [Scumblr] undefined method `channel' for #RSS::Atom::Feed:0x0000000886e310 (#45)
Hi @jwilczek https://github.com/jwilczek ,
Apparently google alerts uses atom feeds which are formatted a little differently. I just pushed up a commit to master which should work for either rss/atom feed. Try it out and let me know if you have any issues.
—
Reply to this email directly or view it on GitHub https://github.com/Netflix/Scumblr/issues/45#issuecomment-99558856 .  https://github.com/notifications/beacon/AIFP62qg0YLHGQkxgwiI7XbJRWV2On0Aks5oGlLMgaJpZM4ERWd9.gif


fix(relay): Typo for string type in _isIgnoreRequest

Why
We were checking for instanceof string, which should be instanceof String
How
Fix typo
Commit Messages
We use semantic-release for deployments. If one of your commits should be deployed, ensure the commit message is in the format corresponding to the correct release type. This can also be done in a squash commit.
Note: breaking changes should always use the BREAKING CHANGE: commit message format.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Would a TimedModule decorator be useful?

The interface would be something like nn.TimedModule(module, print_interval, name), and after print_interval calls to the module, it would print name and the average time for a forwards and backwards pass. If this seems useful, I'm happy to implement it here, or if there are other ways of timing specific modules / technical issues I'm overlooking, that'd be useful too.

That would indeed be useful!

Sorry for the delay on this - I wrote something, but the results look strange to me. I probably won't work on it this week, but I'll submit a PR this weekend.


lottie: [RuntimeError] memory access out of bounds

we're experiencing an issue in dotlottie player rendering this asset and would appreciate your help in determining whether the problem lies within the asset itself or if it's related to ThorVG.
The error occurs when using the ThorVG viewer. I suspect it might be related to the image assets, but I'm not certain about the exact cause.
Please see the screenshot below for more details:

You can also review the lottie here: hero_animation.json
related issue -> https://github.com/LottieFiles/dotlottie-web/issues/328

expression corruption:
ecma_lcache_invalidate (object_p=object_p@entry=0x7ffff7f39e90 <jerry_global_heap+5744>, name_cp=name_cp@entry=1, prop_p=0x7ffff7f3a108 <jerry_global_heap+6376> "\267\267") at ../src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-lcache.cpp:205
205         if (entry_p->id != 0 && entry_p->prop_p == prop_p)
(gdb) where
#0  ecma_lcache_invalidate (object_p=object_p@entry=0x7ffff7f39e90 <jerry_global_heap+5744>,
    name_cp=name_cp@entry=1, prop_p=0x7ffff7f3a108 <jerry_global_heap+6376> "\267\267")
    at ../src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-lcache.cpp:205
#1  0x00007ffff7e4ad46 in ecma_gc_free_property (options=0, prop_pair_p=0x7ffff7f3a108 <jerry_global_heap+6376>,
    object_p=0x7ffff7f39e90 <jerry_global_heap+5744>)
    at ../src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-gc.cpp:1543
#2  ecma_gc_free_properties (object_p=object_p@entry=0x7ffff7f39e90 <jerry_global_heap+5744>,
    options=options@entry=0) at ../src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-gc.cpp:1658
#3  0x00007ffff7e4b024 in ecma_gc_free_object (object_p=0x7ffff7f39e90 <jerry_global_heap+5744>)
    at ../src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-gc.cpp:1696
#4  ecma_gc_run () at ../src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-gc.cpp:2210
#5  0x00007ffff7e4b67d in ecma_free_unused_memory (pressure=pressure@entry=JMEM_PRESSURE_LOW)
    at ../src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-gc.cpp:2245
#6  0x00007ffff7e0a262 in jmem_heap_gc_and_alloc_block (max_pressure=JMEM_PRESSURE_FULL, size=16)
    at ../src/loaders/lottie/jerryscript/jerry-core/jmem/jmem-heap.cpp:292
#7  jmem_heap_alloc_block (size=size@entry=16)
    at ../src/loaders/lottie/jerryscript/jerry-core/jmem/jmem-heap.cpp:335
#8  0x00007ffff7e48f0e in ecma_alloc_property_pair ()
    at ../src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-alloc.cpp:215
#9  0x00007ffff7e534d9 in ecma_create_property (out_prop_p=0x7fffffffd7e8, value=..., type_and_flags=32 ' ',
    name_p=0x257d, object_p=0x7ffff7f3a7f8 <jerry_global_heap+8152>)
    at ../src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:454
#10 ecma_create_named_data_property (object_p=object_p@entry=0x7ffff7f3a7f8 <jerry_global_heap+8152>,
    name_p=name_p@entry=0x257d, prop_attributes=prop_attributes@entry=0 '\000',
    out_prop_p=out_prop_p@entry=0x7fffffffd7e8)
    at ../src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:533
#11 0x00007ffff7e4d557 in ecma_create_native_pointer_property (obj_p=0x7ffff7f3a7f8 <jerry_global_heap+8152>,
    native_p=0x555555a5b0a0, native_info_p=<optimized out>)
    at ../src/loaders/lottie/jerryscript/jerry-core/ecma/base/ecma-helpers-external-pointers.cpp:64
#12 0x00007ffff7eb3e4c in _buildLayer (context=363, frameNo=0, layer=0x555555645df0, comp=0x555555b25160,
    exp=<optimized out>) at ../src/loaders/lottie/tvgLottieExpressions.cpp:67
#13 0x00007ffff7eb5ac8 in LottieExpressions::evaluate (this=0x555555a529f0, frameNo=0, exp=0x555555aaaff0)
    at ../src/loaders/lottie/tvgLottieExpressions.cpp:1316
#14 0x00007ffff7eb0337 in LottieExpressions::result<LottieGenericProperty<tvg::Point> > (exp=0x555555aaaff0,
    out=<synthetic pointer>..., frameNo=0, this=0x555555a529f0)
    at ../src/loaders/lottie/tvgLottieExpressions.h:57
#15 LottieGenericProperty<tvg::Point>::operator() (this=0x555555645f78, frameNo=0, exps=0x555555a529f0)
    at ../src/loaders/lottie/tvgLottieProperty.h:401
#16 0x00007ffff7ea7899 in _updateTransform (transform=transform@entry=0x555555645f10, frameNo=frameNo@entry=0,
    autoOrient=<optimized out>, matrix=..., opacity=@0x555555645ef8: 32 ' ', exps=0x555555a529f0)
    at ../src/loaders/lottie/tvgLottieBuilder.cpp:135
#17 0x00007ffff7ea83fe in LottieBuilder::updateTransform (this=this@entry=0x5555559e85d0,
    layer=layer@entry=0x555555645df0, frameNo=frameNo@entry=0) at ../src/loaders/lottie/tvgLottieBuilder.cpp:161
#18 0x00007ffff7ead0b1 in LottieBuilder::updateTransform (frameNo=0, layer=0x555555645df0, this=0x5555559e85d0)
    at ../src/loaders/lottie/tvgLottieBuilder.cpp:152
#19 LottieBuilder::updateLayer (this=0x5555559e85d0, comp=0x555555a4da90, scene=0x5555555ded70,
    layer=0x555555645df0, frameNo=0) at ../src/loaders/lottie/tvgLottieBuilder.cpp:1217
#20 0x00007ffff7ead5e9 in LottieBuilder::updatePrecomp (frameNo=<optimized out>, precomp=0x5555555de100,
    comp=0x555555a4da90, this=0x5555559e85d0) at ../src/loaders/lottie/tvgLottieBuilder.cpp:985
--Type <RET> for more, q to quit, c to continue without paging--
#21 LottieBuilder::updatePrecomp (this=0x5555559e85d0, comp=0x555555a4da90, precomp=0x5555555de100,
    frameNo=<optimized out>) at ../src/loaders/lottie/tvgLottieBuilder.cpp:977
#22 0x00007ffff7eadbd4 in LottieBuilder::updateLayer (frameNo=0, layer=0x5555555de100, scene=0x5555555de690,
    comp=0x555555a4da90, this=0x5555559e85d0) at ../src/loaders/lottie/tvgLottieBuilder.cpp:1235
#23 LottieBuilder::updateLayer (frameNo=0, layer=0x5555555de100, scene=0x5555555de690, comp=0x555555a4da90,
    this=0x5555559e85d0) at ../src/loaders/lottie/tvgLottieBuilder.cpp:1210
#24 LottieBuilder::update (this=this@entry=0x5555559e85d0, comp=comp@entry=0x555555a4da90,
    frameNo=frameNo@entry=0) at ../src/loaders/lottie/tvgLottieBuilder.cpp:1389
#25 0x00007ffff7eadcb8 in LottieBuilder::build (this=0x5555559e85d0, comp=0x555555a4da90)
    at ../src/loaders/lottie/tvgLottieBuilder.cpp:1404
#26 0x00007ffff7eb75fd in LottieLoader::run (this=0x555555a4df50, tid=<optimized out>)
    at ../src/loaders/lottie/tvgLottieLoader.cpp:46
#27 0x00007ffff7eb7c29 in LottieLoader::header (this=0x555555a4df50)
    at ../src/loaders/lottie/tvgLottieLoader.cpp:79
#28 0x00007ffff7e0caf3 in LoaderMgr::loader (path="/home/hermet/thorvg/examples/resources/lottie/sample.json",
    invalid=invalid@entry=0x7fffffffdd7f) at ../src/renderer/tvgLoader.cpp:307
#29 0x00007ffff7e10c6d in tvg::Picture::Impl::load (path="", this=0x555555b07000)
    at ../src/renderer/tvgPicture.h:130
#30 tvg::Picture::Impl::load (path="", this=0x555555b07000) at ../src/renderer/tvgPicture.h:125
#31 tvg::Picture::load (this=this@entry=0x5555558dcee0,
    path="/home/hermet/thorvg/examples/resources/lottie/sample.json") at ../src/renderer/tvgPicture.cpp:166
#32 0x000055555555799a in UserExample::content (h=<optimized out>, w=1024, canvas=0x555555b1db90,
    this=<optimized out>) at ../examples/Animation.cpp:46
#33 tvgexam::Window::ready (this=0x55555556df00) at ../examples/Example.h:183
#34 0x00005555555567ee in tvgexam::main (example=<optimized out>, argc=argc@entry=1,
    argv=argv@entry=0x7fffffffe008, width=width@entry=1024, height=height@entry=1024,
    threadsCnt=threadsCnt@entry=4, print=false) at ../examples/Example.h:532
#35 0x0000555555556b37 in main (argc=1, argv=0x7fffffffe008) at ../examples/Animation.cpp:93

@theashraf Hello, the crash will be fixed in v0.14.8, but the effect still won't work afterward due to the missing layer effect. Please keep this: https://github.com/thorvg/thorvg/issues/2153


Road map for QIR support

Discussed in https://github.com/CQCL/pytket-extensions/discussions/507

Originally posted by hamidelmaazouz March 14, 2023
Hello @Roland-djee @cqc-alec,
I would like to know what the plans are for supporting more advanced QIR releases.
The QIR extension hosted at https://github.com/CQCL/pytket-qir supports only pyqir <0.7.0. Any plans for releases >= 0.7.0 and >= 0.8.0 ? If yes is somebody already working on it ? if yes when do you guys plan to release it ?
I would be happy to contribute  but don't want to start sth that is already in play.
Best,

See https://github.com/CQCL/pytket-extensions/discussions/507


Update README.md

Description

Added a setup for mongoDB in readme
Type of Change:

[x] Documentation

@Abhishek-kumar09 @KeenWarrior pls see if its ok


Trying to ignore some fields when serializing/deserializing an object graph

Hi,
I'm trying to clone (deep copy) a complete object graph fetched from DB using Hibernate.
The thing is that each entity should be considered as a new one ('transient' in Hibernate lingo).
Therefore I had the plan to set each entity's ID to 'null' and it's version property to zero.
My setup is currently like this:
first the global config:

Some 'hook' to ensure that we're working with a 'real' object instead of a Hibernate proxy:

Set a callback to erase each ID and version property for each entity that contains a @Conditional annotation:

The 'ProxySafeObjectOutput' is working fine; However, I'm experiencing issues with the callback that is invoked upon deserializing the object graph. Almost each entity in the graph contains a reference to an other one; it also contains lot of cyclic references where each reference is annotated with '@Conditional'.
I'm constantly having 'NullpointerException's upon deserialing; I'm sure that it's related to the '@Conditional' annotation because if I remove it everything works (besides resetting Id and version fields).
Is there an other way (some hook perhaps) that I can use to check if an entity field should be skipped?
I'm invoking the deep clone as follows:

Any ideas?

Hm .. advanced chemistry :) . I have to take a deeper look once back in my nerd cavern (at office currently).
on a first glance:

your check for proxies will be bypassed for classes where a serializer is registered (probably is not the case but still a caveat)
conditional does not have deep testcases and was implemented long ago (1.x), so it might be broken for complex objectgraphs.
another risk (unsure have to check the code) is that reference sharing might be distorted as the lookup will be done using the proxy object, registration migth happen using the unproxied object.

Before investigating workaround's I'd verify conditional in general. However in either case this problem will be solvable.
Thanks for detailed report :)

First the bad news (I could reproduce similar issues in a test):
To avoid writing fq classnames for the same class several times, fst enumerates classes encoutered during write/read. Once a classname is written second time, the id is written instead.
However using @conditional, complete object subgraphs are skipped leading to a different class enumeration such that an object cannot be decoded correctly.
**restriction 1: ** @Conditional only works if the skipped object subgraph contains preregistered classes.
Similar issues arise with shared object references: if an object is serialized twice, only a pointer to the stream position of first occurence of an object is written. However if the object subgraph skipped by @Conditional wrote the one and only instance of an object, a later backreference cannot be ressolved.
therefore
Restriction 2: @Conditional can be used safely only for non-shared object graphs.
I need to update documentation or drop this feature completely (as said: it has been introduced in a very early version of fst and has been used productive only for non-shared, simple flat messaging structures.
Now for the good news:
Originally, @Conditional was introduced to speed up reading in case. However for your use case it looks you just want to transform the object graph. So if you actually read all object from the stream, but don't save it to the fields, everything will work out. Its just you do not get a speed up in any way.
Solution (as far I understood your issue)
There is a hook to delegate serializer lookup. You then write the object using default, read the object normally but return a NULL object to avoid the result being stored. This can slow down a bit however it might solve your problem.
see https://github.com/RuedigerMoeller/fast-serialization/blob/master/src/test/ser/serializerdelegate/SerializerDelegateTest.java
Note: You'll have to clone the "master" (default) and use "mvn install" to test it (do not run tests, they take forever ..).
Pls feedback in time so I can push 2.34 release to maven.org

First of all thank you for your fast response and detailed explanation!
I cloned the master branch to get your latest changes and 'mapped' your gist-example to my case but I get some exception unfortunately.
So what did I change:
global config ->

My custom Serializer:

And my custom delegate:

The exception that occurs when invoking in.readObject in SkipSerializer class.

My questions:

Is each Serializer called for each object separately? Because in your example you do '((WrappedObject)toWrite).getWrapped())' -> please note that I'm not aware of possible references

I need to be able to reset only some dedicated fields of some entities. This is only required for some classes which contains an annotation with CloningMode.INSTANCE (like shown in code extract)
In your example all the instance fields are 'nullified'. Is there a way to test on a 'field by field' basis for nullifying?

I see the error (failed shared ref).
You actually need to register the read object (I missed that in my sample) in case it is referenced from elsewhere in the object graph

@Override
    public Object instantiate(Class objectClass, FSTObjectInput in, FSTClazzInfo serializationInfo, FSTClazzInfo.FSTFieldInfo referencee, int streamPosition) throws Exception {
        in.registerObject( in.readObject() , streamPosition, serializationInfo, referencee);
        return REALLY_NULL;
    }

Second you don't do any check for specific classes so your skipserializer will be selected for ANY CLASS being serialized. You should check for instanceof HibernateProxy in the delegate, else return null (=use default).

normally serializers are static "function pointers" registered by class (optionally all subclasses of a class). The delegate can override serializer selection completely and globally to the configuration used.

Yes, I did not completely understand your use case. Its kind of hard as serializers are per object not per field.
Actually I would need to pass the referencing field to the delegate, so you could check for annotations like:

 conf.setSerializerRegistryDelegate(new FSTSerializerRegistryDelegate() {
            @Override
            public FSTObjectSerializer getSerializer(Class cl, FSTFieldInfo referencingField) {
                if (referencingField.getField().getType().getAnnotation(@NULLME) != null ) {
                    return skippingSer;
                }
                return null;
            }
        });

I'll check back if I could extend the SerializerRegistryDelegate interface this way .. btw expect this to have a big performance penalty ..

Nope, previous idea won't work as the serializer is cached at class level (lookup is done once per configuration). So you cannot choose based on referencing field only. Changing this would have severe performance impact for all other users.
A completely different approach:
just deserialize normally, override in FSTObjectInput.java
    public Object readObject(Class... possibles) throws Exception {
            Object res = super.readObject(possibles);
            if ( res != null ) { // just manually NULL out fields marked with an annotation @MyNullMeAnnotation
                FSTClazzInfo.FSTFieldInfo[] fieldInfo = getConf().getClassInfo(res.getClass()).getFieldInfo();
                for (int i = 0; i < fieldInfo.length; i++) {
                    FSTClazzInfo.FSTFieldInfo fstFieldInfo = fieldInfo[i];
                    if ( fstFieldInfo.getField() != null && fstFieldInfo.getField().getAnnotation(MyNullMeAnnotation.class) ) {
                        fstFieldInfo.setObjectValue(res,null);
                    }
                }
            }
            return res;
    }

unwrapping the hibernate object can be done with the delegate, nulling out fields can be done like outlined above by simple post processing of a read object.

In order to avoid the penalty of getAnnotation for each field ref being written, king of "user field" could be added to FSTFieldInfo to speed up things, but still ..

other possibility would be to add a hook called upon each field read, passing the referencing field and object to be written. You can check for an annotation and choose to not set the field value.

Thank you for your investigation and comments!
Unfortunately, I'm still having the issue of undefined reference. Also after invoking the register method.
The hook of 'readObject' in FSTObjectInput doesn't satisfy because I'm only able to inspect the fields of the root object of my object graph.
Maybe I was not clear about what I'm trying to do:
First I retrieve an object graph from DB. The point here is that it needs to be duplicated (cloned) via Serialization. Some objects need to interpreted as 'new' object in DB; therefore it's ID value (that maps with some primary key) needs to be cleared. Some other object don't need to be treated as 'new' in DB; therefore the default serialization mechanism can be used which doesn't touch it's values.
The difference between these 2 concepts (clear ID or don't clear ID) is basically made by a custom Annotation named  (like the examples in previous comments) having a value 'CloningMode.INSTANCE' (=clear the ID) or 'CloningMode.REFERENCE' (don't clear the ID).
So it seems that I need to apply the default mechanism for object with annotation value CloningMode.REFERENCE and a special mechanism (or hook) for objects with annotation value CloningMode.INSTANCE.
That's the reason why I returned the 'SkipSerializer' from the delegate in case of CloningMode.INSTANCE and 'null' in case of CloningMode.REFERENCE.
Also note that in case of CloningMode.INSTANCE I know up front which field name I have to touch.
Additionally, the Hibernate proxy thing is just to make sure that serialization begins with the 'real' object instead of the proxy. But it doesn't play a role in deciding how the object should be treated.
An other thing: objects of INSTANCE and REFERENCE also have cyclic references with each other
But it seems that:

The SkipSerializer is having an undefined referencee
The suggested 'hook' of FSTObjectInput is not satisfying because only root object is passed.

Hm .. best thing would be to have kind of a toy structure standalone test program with a short description of what you want to achieve. I am always interested in extending applicability of fst, but probably I'd need an example to introduce appropriate hooks (however I won't sacrifice too much of performance), its just too hard to understand in detail what you want to achieve. The serializer does traverse each object so in theory it should be possible to apply any transformation required.
An interesting option would be introduction of a traversal codec (just traverses/copies objects instead of writing them). somewhat work+time required..

You're correct that the serializer traverses each object.
However, if I want to hook that method I need to override FSTObjectInput::void readObjectFields
This method has package visibility.
Any chance to make it protected? It would definitely help me out!

No problem, however notice there are several variants depending on decoder (json, ..). afair there is also a branch if an object requires JDK-ser compatibility ..
I'll make everything protected as its impossible to predict people requirements in advance.

will be released with 2.35

released relax of access modifiers, hope it helps ;)


Discovery base url inconsistent in some cases

Sometimes the baseUrl for the compute api is returned as www.googleapis.com/compute, other times I see compute.googleapis.com/compute. The code this is affecting for me determines if the api is in the hostname, or the first segment of the URL, but doesn't expect it to be both. I think latter result mentioned above is incorrect.
I reference the script, and a link to the inconsistent results below, but ill also include the example output here directly:
$ python test.py
https://compute.googleapis.com/compute/v1/projects/
https://www.googleapis.com/compute/v1/projects/
https://www.googleapis.com/compute/v1/projects/
https://compute.googleapis.com/compute/v1/projects/

This looks like it would be an issue in the discovery API itself, but I'm not sure how to submit a bug for that. If there's nothing that can be done, this can be closed, but I wanted to report it in case someone else encounters it.
Environment details

OS: N/A
Python version: replicated in 3.4, 3.5, 3.6, 3.7
pip version:
google-api-python-client version: 1.7.8

Steps to reproduce

Run the simple script here: https://github.com/jceresini/test-gcp-discovery/blob/master/test.py
Example output here: https://travis-ci.com/jceresini/test-gcp-discovery/jobs/201917796#L238

Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!

Just to provide more info, we noticed this while attempting to generate a full resource name using the request URL using the google-api-python-client library. That code is open sourced: https://github.com/forseti-security/resource-policy-evaluation-library/blob/master/rpe/resources/gcp.py#L116
I realize its an odd use-case for this library. But anyway, we noticed our test cases failing occasionally, so far only for the compute API.

@jceresini Thank you for the report and the sample scripts! We'll investigate to see if this is something odd happening in the discovery document or in the way we build the url.

It looks like we're in the process of rolling out a change to the baseUrl for some of our APIs (including compute). Both those URLs are correct (we're moving from the www.googleapis.com/compute/v1/projects to compute.googleapis.com/compute/v1/projects.
This is working as intended, so I will close the issue. It looks like you already have a workaround for determining the full resource name. Let us know if you have any other issues!

Every other api I've run into uses one of these 2 format:
www.googleapis.com/[api_name]/[version]
[api_name]'.googleapis.com/[version]
This is the first I've seen that is a combination of the 2. Its not an issue with this library though, so I submitted some feedback in the compute issuetracker: https://issuetracker.google.com/issues/133249122
Thanks for looking into it!


How to get the 'Drag open' Add-on on working with two menus?

To open the mmenu on a swipe gesture, you can include hammer.js and configure the add-on in the options when initializing the menu (see http://mmenu.frebsite.nl/documentation/addons/drag-open.html):
_JQ('#rightMenu').mmenu({
    dragOpen: true
}, {
    // configuration
    clone: true
});

_JQ('#leftMenu').mmenu({
    dragOpen: true
}, {
    // configuration
    clone: true
});

That works fine for one menu, but as I have two menus on one site (one opening from the left side, one from the right), the add-on does only work on the first (the left) menu, but not on the second (right) menu.
How to get it work on both menus?

I don't think this is possible at all. It would mean the same HTML node is used twice for creating a new Hammer().
Are you getting any errors on that?


Help Article: Comparing columns through raw query

Help Article Candidate: Comparing columns of the same table through raw queries.
Describe this PR
Added Help article which can be added at: https://www.prisma.io/docs/support/help-articles
Any other relevant information
Internal Notion Document: Comparing columns help article

All suggested edits are done @tanberry. It looks like we are good to merge.

Thanks @TasinIshmam for suggestions 👍
I have applied the edits.


Amplify + React Native. Run Amplify init and codegen on existing project. Is it possible?

Hi all! I can't find answer to my question anywhere.
I updated libs:
 "aws-amplify": "1.1.19",
    "aws-amplify-react-native": "2.1.7",
    "aws-appsync": "1.7.2",
    "aws-appsync-react": "1.2.7",
    "aws-sdk": " 2.432.0",

And now I want to use amplify mutation helpers and features of amplify-cli such as codegen etc...
Tell me please, can I connect existing project (React Native, AWS Appsync) with new amplify init features?

@RadoAz Yes, you can use the CLI to perform codegen operations for an existing AppSync API.
Step 1 (Configure the CLI):
amplify configure
amplify init
Step 2 (Add Codegen for your AppSync API):
amplify add codegen --apiId
More documentation regarding this can be found out here - https://aws-amplify.github.io/docs/cli/codegen?sdk=js

@kaustavghosh06 , Thank you very much! That works! Documentation is not clear. Your answer is!)) Thanks!


variable duplication does not catch function parameters

redefined function parameters should be caught.

verified that this is fixed on the latest tslint.


Arantir playground

Description, Motivation and Context

Various fixes. PR to run it through CI.
How Has This Been Tested?

Command line to run all the tests that I run locally:
ham Run_ci

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that cause existing functionality to change)
[ ] Documentation (code docs, comments, or changes to the doc systems)
[ ] Testing/Build (test coverage or the test/build subsystems themselves)
[ ] Packaging (adds examples or modifies a release package)

Split into #40, #41, #42, #43, #44, #45, #46, #47, #48


New version: DiffEqTutorials v0.2.1

Registering package: DiffEqTutorials
Repository: https://github.com/JuliaDiffEq/DiffEqTutorials.jl
Created by: @ChrisRackauckas
Version: v0.2.1
Commit: e209544175fa0183a15b428950b00df9db0cdb06
Reviewed by: @ChrisRackauckas
Reference: https://github.com/JuliaDiffEq/DiffEqTutorials.jl/issues/71#issuecomment-569543911

@ChrisRackauckas Looks like this is failing to install. Any idea why?
[noblock]

It requires installing half of the Julia ecosystem. Not surprised it has issues 🤷♂, but it's not a big deal with this one.
[noblock]


Increase latitude accuracy level

with this code change, the buildings 3d story has global accuracy.
previously, when drawing buildings further away from the origin, the lat component got an offset.
here i calculate the mercator factor, which represents the scale difference between the vector unit and the mercator unit.
since the background map is in mercator, we need to adapt the change in this unit factor with increasing latitude.
the simple way is to have the mean factor between origin and point "(originFactor + pointFactor) / 2" . But this relation is not linear, so it does not scale well to larger distances.
To mitigate this, i calculate the factor for different steps on the latitude from origin towards the point and take an average of this list.
For performance reasons, there is a precalculated lookup list.
This step adds about 20% computational overhead to the draw of the buildings, but it makes the buildings match the background layers even if you are hundreds of kilometers away from the origin.
i also updated the earthRadius to the one maplibre uses, this further increases the accuracy of the placement.
https://github.com/maplibre/maplibre-gl-js/blob/8ea76118210dd18fa52fdb83f2cbdd1229807346/src/geo/lng_lat.ts#L8

thanks to your examples, I noticed that my calculations where still off when the origin and the point where not in the same hemisphere. removing the absolute values from the latitudes fixes this.
I'll look into the scaling problem, but I'm actually a python developer and not react/JavaScript, so sometimes its hard to understand the relations in the scripts.

The issue with the scale is also linked to the mercatorFactor it seems. I can fix the scale changing in nearCoordinates by using the scale using the mercatorFactor of the origin position (which is blue[1]) and then using this scale.
This does not work for coordinates, because they all use their own origin to calculate the scale.
By placing the origin (blue box) far to the north (lat 80) the effect is very big.
 **const scaleFactor = getMercatorScale(blue[1]); // blue[1] is the origin latitude   const mercatorScale = scale / scaleFactor**   return <StoryMap     longitude={blue[0]}     latitude={blue[1]}     zoom={20}     pitch={60}     canvas={{ frameloop: 'demand' }}>     <MyBox scale={**mercatorScale**} position={[2, 0, 0]} color="blue"/>     <CoordsControl       longitude={green[0]}       latitude={green[1]}     >       <MyBox scale={**mercatorScale**} position={[-2, 0, 0]} color="green"/>     </CoordsControl>     <CoordsControl       longitude={purple[0]}       latitude={purple[1]}     >       <MyBox scale={**mercatorScale**} color="purple"/>     </CoordsControl>   </StoryMap> }
without fix:

with fix:

fix breaks 'coordinates' option because every bar gets the scale from the blue bar:

To fix this i think the structure of the object has to be changed, so the mercator scale factor can be provided at a different point liek here:
{coords === CoordinatesType.Coordinates && <Coordinates {...props} />}
{coords === CoordinatesType.NearCoordinates && <NearCoordinates {...props} />}

yes, I think the scale needs some other reshuffling in de code to work, and is only somewhat related (same root cause).
ideally the scale parameter needs to be updated after the coordinates are set.

Sorry the delay (on vacations!). Updated the README.md files to reflect changes and will deploy now :).
In summary, this gives a much more accurate translation to coordsToVector3, which makes NearCoordinates better, although scale is still being ignored, so probably still not recommended for very long distances.
vector3ToCoords does not have this tweak, so it will still have the old inaccuracies at long distances.
But this tweak is perfect if for example you just want to create a mesh of lines at multi-country level distances.

this makes drawing buildings on larger areas better (they do not use scaling, but a fixed height).
Thanks for the merge.


Image does not display for Trezor wallet

in https://dogecoin.com/wallets/ the Trezor icon does not show because it points to an incorrect image src. I have corrected for all languages in seperate PR's. For example:  https://github.com/dogecoinfoundation/dogecoin.com/pull/250

Much thanks. This was pushed :)


Cannot run php artisan migrate because of Mysql 8

Hi @guillaumebriday, thanks for providing this awesome feature. After I run docker-compose run --rm todolist-server php artisan migrate, it shows error like this picture:

I suspect the problem is caching_sha2_password as mysql 8 authentication. How can you solve your problem about this one in your local computer?

Hi there, because of nobody response, then I will close this issue.

Hey, sorry I didn't see your issue.
I didn't solve this issue so I'm still using mysql 5.7 for now. I know, it's not the best practice :/
cf: https://github.com/guillaumebriday/todolist-backend-laravel/commit/9d059b1a3a1e45f74d58102db8eb577afe9476a1

Hi @guillaumebriday, thanks for the reply. Great, I will try again.

php artisan migrate seems to work on Mysql v 8.0:
$ mysql --version
mysql  Ver 8.0.16 for osx10.13 on x86_64 (Homebrew)


Timers are not started automatically

I have systemd.user.startServices = true; and a user timer defined. However, after switch my timer is not listed as active:
# systemctl --user list-timers --all
NEXT LEFT LAST PASSED UNIT                      ACTIVATES
n/a  n/a  n/a  n/a    nix-collect-garbage.timer nix-collect-garbage.service

I have to do systemctl --user restart timers.target manually, then timers are activated
# systemctl --user list-timers --all
NEXT                         LEFT     LAST PASSED UNIT                      ACTIVATES
Thu 2020-02-06 09:00:00 UTC  10h left n/a  n/a    nix-collect-garbage.timer nix-collect-garbage.service

Would be great to start timers alongside with services.

Should be sorted now. Thanks for the suggestion!


tabs-content on mobile devices

I use the Nice Tabs with tabs-content as main navigation on a webpage + the .mobile option. But when it shows up on a mobile device, the tabs change to the mobile-version but at the content part the remaining padding and the grey border look kind of strange to me. How can I remove them on mobile-devices only?

Hmmm. The contained tabs were designed to work with standard tabs rather than the mobile tabs. What you could do is add to app.css a section inside a phone-sized media query which would remove the borders and padding from the contained element. Should look something like this:
@media only screen and (max-width: 767px) { 	ul.nice.contained.tabs-content { border: none; padding 20px 0px; }  }


Remove TODOs from documentation

Codecov Report

Merging #294 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #294   +/-   ##
=======================================
  Coverage   77.03%   77.03%
=======================================
  Files         116      116
  Lines        7902     7902
=======================================
  Hits         6087     6087
  Misses       1161     1161
  Partials      654      654

Impacted Files
Coverage Δ

plumbing/transport/server/server.go
60.63% <ø> (ø)
:white_check_mark:

references.go
71.18% <ø> (ø)
:white_check_mark:

plumbing/protocol/packp/srvresp.go
87.87% <ø> (ø)
:white_check_mark:

blame.go
54.23% <ø> (ø)
:white_check_mark:

plumbing/protocol/packp/updreq.go
80% <ø> (ø)
:white_check_mark:

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 0e9dea1...9251df1. Read the comment docs.


Update link to doc for linux.

Update link to doc for linux.

Can one of the admins verify this patch?

Thanks @johmathe for fixing the link!


LANG-1127: Use JUnit rules to set and reset the default Locale and TimeZone

Alternative proposal to fix LANG-1127 using JUnit TestRules.

Coverage decreased (-0.01%) to 93.3% when pulling abfcf0a8cfb40cd30c83d30923bea6d412cc5a22 on britter:LANG-1127 into 8e7ea70a33ecb8db5207849ea6371b4a5a8ffd26 on apache:master.

Overall, I like this approach better than explicit classes.  Two items I would like to see:

Allow tests to run in parallel.  This will probably requires some sort of synchronization to allow only one tests at a time to change default TimeZone or Locale.
Apply the rule to individual test methods instead of to all methods in a test class.  Perhaps this could be done by creating annotation(s) which enable the Rule.  I am thinking of something like SwitchDefaults(locale="locale_name", timezone="timezone_name").

Hello @chonton,
very good feedback, thank you!

Allow tests to run in parallel. This will probably requires some sort of synchronization to allow only one tests at a time to change default TimeZone or Locale.

Good point. Should be possible by wrapping the code in the apply method with some synchronization logic.

Apply the rule to individual test methods instead of to all methods in a test class. Perhaps this could be done by creating annotation(s) which enable the Rule. I am thinking of something like SwitchDefaults(locale="locale_name", timezone="timezone_name").

This is already possible by calling explicitly the setLocale method on the TestLocale instance. The idea is to set up a default for all tests and only switch it for tests when needed. However this doesn't make much sense in the light of parallel test execution...

Coverage increased (+0.06%) to 93.37% when pulling 3dbf1eedd93565481f8b5d3c9678a5e9234cb91a on britter:LANG-1127 into 8e7ea70a33ecb8db5207849ea6371b4a5a8ffd26 on apache:master.

@chonton I've worked some more on this. Renamed the Rule to SystemDefaultsSwitch and wrote a unit test. What do you think about integrating this now and create a new PR for the synchronization?

Coverage decreased (-0.04%) to 93.27% when pulling d68f7f5f44924ddee14428e16b7458e2878baef2 on britter:LANG-1127 into 8e7ea70a33ecb8db5207849ea6371b4a5a8ffd26 on apache:master.

Iterate fast and often. Go forward with it.
Chas

On May 7, 2015, at 12:17 PM, Benedikt Ritter<EMAIL_ADDRESS>wrote:
@chonton I've worked some more on this. Renamed the Rule to SystemDefaultsSwitch and wrote a unit test. What do you think about integrating this now and create a new PR for the synchronization?
―
Reply to this email directly or view it on GitHub.


Migrate @jest/reporters to TypeScript

Summary
This is still a working progress, there's still some work to do:

It appears that istanbul-api doesn't have any typings in DefinitelyTyped
The typings for istanbul-lib-coverage are out of date (e.g. there aren't any typings for CoverageSummary.merge)
@types/node-notifier doesn't have the typings for actions used here
I still have to migrate the tests 😅

Some help here would be awesome!

I dont think the tests are part of this migration.
Regarding this, you could probably raise a pr for this if it isn't too difficult. I did the same thing with https://github.com/DefinitelyTyped/DefinitelyTyped/pull/33351

@types/node-notifier doesn't have the typings for actions used here

Regarding this, you could probably raise a pr for this if it isn't too difficult.

Some PRs to definitelytyped fixing their types would be awesome 🙂

Sure thing! I will make the PRs soon. I'm also updating all the underscore properties.

Feel free to add some definition files to your PR as you work - both to avoid waiting for definitelytyped to merge and so you can verify the changes does the job 🙂

Ok, that was quite challenging 😅 I have only one test failing though, so i'm almost there. @SimenB I'll continue as soon as i'm done working
For now i've done the typings for node-notifier, istanbul-lib-coverage and istanbul-api (for this one i wrote only the strictly necessary types for everything to work). This weekend i'll try to create the PRs to DefinitelyTyped.

Awesome! Happy to land this in Jest including typings at first, then go back and remove them once definitelytyped is updated

I've finally resolved all the failing tests and wrong typings ✨ Now it should be ready to merge

/cc @thymikee @jeysal PTAL


How do I host the Sitka font for web?

I'd like to use the Sitka font family for a website, but I can't find a commercial license for it. I see that it says here that we don't have the rights to self-host system fonts. Where can I find a commercial license for it?

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

ID: 1ea5ad39-ec78-af12-1479-e3def2c62723
Version Independent ID: 4c9dbe2a-0d30-42fe-34be-38053fcf5c4e
Content: Font redistribution FAQ - Typography
Content Source: typographydocs/fonts/font-faq.md
Product: typography
GitHub Login: @mijacobs
Microsoft Alias: mijacobs

Sitka was commissioned by and is wholly owned by Microsoft. It's not currently available through one of our font licensing partners. I'll check with my colleagues to see if that is likely to change in the near future.

Thank you!

@FontBoss
Legend say that he is still asking, to this day.

Any news on that matter @FontBoss?

Checking to see if there has been any activity on this issue @FontBoss ?

Segoe UI can be acquired from our licensing partner Monotype. License Microsoft fonts for enterprises, web developers, for hardware & software redistribution or server installations.

Sitka and Segoe are completely different fonts.
On Wed, Feb 7, 2024, 10:22 AM Basit Ali @.***> wrote:

Segoe UI can be acquired from our licensing partner Monotype. License
Microsoft fonts https://www.fonts.com/content/microsoft-typography for
enterprises, web developers, for hardware & software redistribution or
server installations.
—
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/typography-issues/issues/145#issuecomment-1932407090,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGGDF4ZKRW7SMQ5UC6ZGGE3YSOS3RAVCNFSM4GHINIY2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJTGI2DANZQHEYA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Sorry, updated my post. Segoe UI can be licensed from Monotype.

The question is about Sitka.
Best, Si
Sent from Outlookhttp://aka.ms/weboutlook
From: Basit Ali @.>
Sent: Wednesday, February 7, 2024 8:48 AM
To: MicrosoftDocs/typography-issues @.>
Cc: Comment @.>; Assign @.>
Subject: Re: [MicrosoftDocs/typography-issues] How do I host the Sitka font for web? (Issue #145)
Sorry, updated my post. Segoe UI can be licensed from Monotype.
—
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/typography-issues/issues/145#issuecomment-1932464614 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH5YTWBZGORRO47TIDHEAA3YSOV5TBFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLLDTOVRGUZLDORPXI6LQMWWES43TOVSUG33NNVSW45FGORXXA2LDOOJIFJDUPFYGLKTSMVYG643JORXXE6NFOZQWY5LFVEYTIMZUGYZDQOBQQKSHI6LQMWSWS43TOVS2K5TBNR2WLKJTHA2TQMZTGYZTFJ3UOJUWOZ3FOKTGG4TFMF2GK.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Getting "Cannot read property 'length' of undefined" when trying to retrieve channel list

Hi guys,
Trying to implement the JS SDK and trying to retrieve a list of group channels filtered by user id as shown here: https://docs.sendbird.com/javascript/group_channel#3_filter_group_channels_by_user_ids
Here is the code:
const groupChannelListQuery = SendBirdClient.GroupChannel.createMyGroupChannelListQuery();         groupChannelListQuery.userIdsIncludeFilter = [username];         groupChannelListQuery.userIdsIncludeFilterQueryType = 'OR';         return new Promise((resolve, reject) => {             return groupChannelListQuery.next((channels, error) => {                 if (error) reject(error)                 resolve(channels)             })         });
Unfortunately when trying to get the channels im getting the error "Cannot read property 'length' of undefined" - i can't make out where this is being cause because i'm using the minified version installed with yarn.
I only have 1 Group channel and i know this user is definitely a part of it. Using version 3.0.91 according to yarn.
Any help will be much appreciated

Here is the full error if it helps

I got some correction for you below.
// groupChannelListQuery.userIdsIncludeFilterQueryType = ‘OR’;
groupChannelListQuery.queryType = sb.GroupChannelListQuery.QueryType.OR;
...
new Promise((resolve, reject) => {
  return groupChannelListQuery.next((channels, error) => {
    if(error) reject(error);
    else resolve(channels); // ‘else’ is missing here
  });
});

The error is not related to the correction above. I am checking the error in SDK and back after spotting the issue. Thanks!

Hi @just-tom
We reproduced this error. We'll fix the bug in the next version(v3.0.92).
Thank you for your interest in SendBird SDK. :)

My bad. I edited the code where 'else' is missing in Promise.

I think it's fixed now. So close the issue.


Surround URL pasted from clipboard with angle brackets when composing a message

Checklist

[X] I have used the search function to see if someone else has already submitted the same feature request.
[X] I will describe the problem with as much detail as possible.
[X] This issue only contains a request for one single feature, not multiple (related) features.

App version
6.509
Problem you are trying to solve
Sometimes people compose text and include URLs in parentheses. This presents a challenge to apps trying to linkify URLs in this text because ( and ) are valid characters in a URL that don't have to be encoded.
Examples:

some text here (https://domain.example/path)
(some text here: https://domain.example/path)
(some text here and then a URL on a new line
https://domain.example/path)
(some text here :) https://domain.example/path)
(some text here https://domain.example/path_(still_part_of_the_url))

https://domain.example/path) is a valid URL, but probably not what the sender meant.
For a human reader it's mostly easy to see what is part of the URL and what is part of the surrounding text. However, I hope you can see that a piece of code trying to come to the same conclusion gets very complex pretty soon.
Suggested solution
Make things easier for apps trying to find URLs in plain text, by surrounding URLs pasted from the clipboard in angle brackets (that can't be part of a URL in their unencoded form).
The examples from above turn into:

some text here (<https://domain.example/path>)
(some text here: <https://domain.example/path>)
(some text here and then a URL on a new line
<https://domain.example/path>)
(some text here :) <https://domain.example/path>)
(some text here <https://domain.example/path_(still_part_of_the_url)>)

Screenshots / Drawings / Technical details
No response

@cketti In the case that the user pastes in some texts with a link like This is a link https://link.com do we convert the text to This is a link <https://link.com> or the angle brackets should only be added when a link is pasted with no other text like https://link.com.
Should I also handle linked without the http or https part eg www.link.com?

Only pasted text that consists solely of a URI supported by UriMatcher should be surrounded with angle brackets.


Adjust *nix makefiles for 32-/64-bit compiles

The Windows makefiles use "-march=pentiumpro -m32" for the 32-bit version and "-march=x86-64 -m64" for the 64-bit version.
At the moment, the *nix makefiles don't use any of these options, so they will compile a 32-bit version on 32-bit systems, a 64-bit version on 64-bit systems.

Fixed in commit  116d7d981dc0a198fdde3aed434884d2dc2afbf6 - make builds a 64-bit version, make -f Makefile.32 builds a 32-bit version.


Add missing tfvars template to the tfc blueprint

Aleks, can you explain the rationale for this change? Why are youa dding PIIs to the repo?

There are no PIIs, it was a generated billing account as an example, but now it's already replaced with "xxxx" to make it more clear.


When creating a new pack, thumbnails will not be honored

If you create a new sticker pack, and set a thumbnail, the app will erroneously /skip the thumbnail setting portion.
Not sure if it's not implemented, or just related to me using an icon larger than 100x100 and expecting the app to downsize it for me.
Example in screenshot. The thumbnail I set shows up in the app, but in the end, it didn't even matter.

The icon that got set (first sticker in pack:)

Which version are you using, and could you send me the images in a private chat so I can test it?
I checked the code where it determines whether to skip or to upload a thumbnail and the only condition is whether the file exists. Is there a chance you may have moved the file between when you entered the pack details and started adding stickers?
Here's the link to the code in question

I think I've found the issue, I'll try and push a fix later today

Thumbnails should work now, I can't push another release build for a while but it should be fixed for the next alpha release.


refactor(ci): use custom DCO action

Since the hosted DCO app is currently down we will use a forked version, implemented as a Github Action. This is a temporary fix until the projects resolves the hosting issues.

@harlem88 cherry-picked on release-0.8


All the broken things

About
This is a running list of bugs in the app. Feel free to add more, assign yourself (add your name near the bug), and create a PR with the fix.

Test Queue

[x] queue no work -- Tim (#144)
[x] search queries that yield no results crashes (unable to process null suggestions) -- Neil (#129)
[x] search input has react prop name errors -- Neil (#129)
[x] search results do not display DoB or lookupId (these values may just be blank, and this may not be a bug)- looks like they were just blank and it's not a bug (Alicia)
[x] adding a patient to the queue does not actually add them to the queue  -- Tim (#142)
[x] If the same person gets added to the queue twice you can't get either instance out or submit a result for them - This is currently happening in the demo environment
Notes on this: 1) this should not be possible through the UI, because it's supposed to flag "already in the queue." 2) this should not be possible on the API, because we should have both code and database-level protections against it. I think putting in a bandaid for now and elevating this to a standalone issue for the longer term is the correct approach.  New top-level issue: #151. Bandaid: #152
[ ] (LOW PRIORITY) queue shows "There are no people in the queue. Search for people above to add them to the queue." when there are people in the queue but the organization has no devices

Settings

[x] not possible to add a device to org. might have to do with the default org only having 0 devices -- Neil (#134)
[x] internal server error when trying to save settings  -- Tim (#143)
[x] the UI lets you add multiple of the same devices, but the db enforces uniqueness, causing a crash (this bug is unverified) -- Neil (#134)
[ ] Saving settings doesn't save the settings (even with a reload of the app) except for device
[ ] page errors when required fields are not met
[ ](Low Priority) device list in form should always have a default device set (first device added is not default)
[ ] (Low Priority) user should not be able to remove required device
[ ] (Low Priority) Changing default device sets all devices for tests in the queue to be the default device

Add/Edit Patient

[x] creating a new patient tries to get a patient with id "new" -- Tim (#145)
[x] add patient mutation breaks query patient api --Tim (https://github.com/CDCgov/prime-data-input-client/commit/727f35f77d4774b5cbce08a0ca80d7bc8095eacd)
[ ] A URL http://localhost:3000/organization/123/patient/ without "new" on it infinitely recurses: http://localhost:3000/organization/123/patient//queue/queue/queue/queue/qu...
[ ] no uniqueness enforcement for lookupId (probably low priority but easy to fix in the DB). should there be? "I think there are duplicates in practice" - Tim
[ ] patient.getTestResults() should return a list of TestEvents
[ ] patient.race doesn't save correctly (should be JSONb field in db not String) (BW setting aside the implementation details, it's a string in the API schema--is the issue that the client has to serialize and deserialize, or that the data is corrupted somehow?) -- Tim (#155 )
[ ] Creating a new patient does not create a new patient (even if you fill out all of the fields)
[x] When you click on a person to edit their profile everything breaks.  (Ben #150)react_devtools_backend.js:2430 TypeError: Cannot read property 'map' of undefined
    at mt (PatientForm.jsx:440)
    at Ho (react-dom.production.min.js:153)
    at vs (react-dom.production.min.js:261)
    at lu (react-dom.production.min.js:246)
    at su (react-dom.production.min.js:246)
    at Zs (react-dom.production.min.js:239)
    at react-dom.production.min.js:123
    at t.unstable_runWithPriority (scheduler.production.min.js:19)
    at Vi (react-dom.production.min.js:122)
    at $i (react-dom.production.min.js:123)

[ ] (Low priority) after you successfully create a new patient by clicking "Save" the app should redirect you back to People page with the list of people and give you a success message.

Upload patient CSV

[ ] (LOW PRIORITY) submitting the uploaded csv doesn't do anything

Results

[ ] page should display TestEvents not completed TestOrders (BW: not clear that the front end should know the difference?)
[x] add FK to Person and Org to TestEvent
[x] (High Priority) Results for a test are not displayed on the result page unless you reload the app (seems like the results are not refreshed when a user navigates to the results page) -- Dave (#153 )
[ ] The date displayed for a test result is tomorrow and not today (we can start by hardcoding the timezone to mountain time) (BW this is actually a great place for passing arguments to the back end—pass the time zone you want, and let the timestamp be formatted accordingly.  Otherwise, it's gonna be GMT, sorry.)

Misc

[x] client UI seems to get rather badly botched up when it is deployed to a path other than the server root
[ ] the "reset demo data" button is still hiding in the header
[ ] (Low Priority) we need an error.html error page in the react app
[x] narrow window pane sizes cause the menu to disappear - Tom (#135)
[ ] (Low Priority) all the urls are old and designed around a RESTful backend. Do we really need complex routing like: localhost:3000/organization/123/patient? s

might just need  /queue, /results, /settings, /patients, and /user, and have no url parameters

submitting the uploaded csv doesn't do anything

That is fine for now and lower priority. We should probably hide the button if anything at this point.

It seems like error reporting up through the graphql API needs some help--in REST we'd just return a 409 or a 400, not sure what the best way to handle that here is.

I think errors are still 200, but the query response has the error object: https://www.apollographql.com/docs/apollo-server/data/errors/

On the race field, I would think a simple string array would suffice, no?

And I commented a couple places above about things which look like bugs or issues caused by tight coupling between the DB and API layers: this is exactly what façade (API) models are for, and I would recommend we use them in place of the DB models for those cases.

I found the way to poke informative errors into the GraphQL response—I will implement it on the one I just added and we can work from there.

See this note from Katie about bugs she found in the app and compare against what's here: https://github.com/CDCgov/prime-central/issues/122#issuecomment-733101440

Going to close this out and track issues individually. It's gotten out of date...


Update package.json

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Update

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Other information:
Updating package versions to be up to date

@vadimzham - Thanks but we have greenkeeper.io for this. Also worth nothing more than a few of the packages you updated break functionality that will require additional work to upgrade.


[WIP] Error depth callop

insufficient_balance has been merge into main and scroll-stable. This PR can be refactor.


404s for Public Domain

I noticed a bunch of 404s in relation to Public Domain in Google Analytics, e.g.
https://creativecommons.org/404.html?page=/share-your-work/public-domain/zero/1.0/&from=
Public Domain is located at https://creativecommons.org/share-your-work/licensing-types-examples/public-domain/ now, which i think was changed quite recently. So maybe a redirect is needed?
Also, on https://creativecommons.org/share-your-work/licensing-types-examples/public-domain/ , the Use This Tool does to 404 and I'm not sure where that should be pointed?
@mattl

@ageeroms issue is here I think https://github.com/creativecommons/creativecommons.org/issues/292

Oh from a design point of view I missed the import of this.
The pages about the licenses and public domain in genreal at /licenses/ and /publicdomain/ should probably redirect to the pages in /share-your-work/ but the license deeds and PD deeds are in subdirectories of /licenses/ and /publicdomain/, and we can't change that without breaking the Internet. :-)
So as per #292 , I've removed the redirect and restored access to the PD deeds under /publicdomain/ .
I personally would like to switch to the new /share-your-work/ pages for the descriptions, but we should talk about where things should go in the site hierarchy (with apologies for missing this until now). @mattl and @peterspdx what do you think?

@robmyers  It's still redirecting to https://creativecommons.org/share-your-work/public-domain/zero/1.0/ which has a Oops! That page can’t be found. message.

Also the CC0 waiver is broken but maybe that should be a new issue or maybe it's because of this issue?  https://creativecommons.org/choose/zero/waiver

Oh this is the trailing slash problem. Thank you for reporting it. Looking...

Ah, no, my mistake. There was a bad redirect I missed. That's fixed now, thank you for reporting it.

@mmoreshead Please can you create a new issue for that and ping mattl regarding it? Thank you.

Done and done, thanks @robmyers!

@mmoreshead Thank you! :-)

I believe this is fixed